/*
Theme Name: Heart in Hand Custom
Author: Denise
Version: 1.0
*/

/* Fonts and Colors */
body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  background-color: #f8f8ff;
  color: #002347;
}

.rubik-medium {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
}

.rubik-regular {
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
}

.highlight {
  color: #38c1c5;
}

.light-text {
  color: #f8f8ff;
}

.navy-text {
  color: #002347;
}

/* Brand Icon */
.brand-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Navigation */
.navbar {
  background-color: #002347;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  box-sizing: border-box;
  position: relative;
}

.nav-brand {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
}

.nav-brand:hover {
  color: inherit;
}

.nav-brand img {
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

.nav-links a:hover {
  color: #38c1c5;
}

.nav-links a.active {
  border-bottom: 2px solid #38c1c5;
}

/* Desktop Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block; 
}

.dropdown-toggle {
  color: white;
  text-decoration: none;
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  padding: 0;
  margin: 0;
  display: inline-block;
  cursor: pointer;
}

.dropdown-toggle:hover {
  color: #38c1c5;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 0.75rem;
  margin-left: 0.25rem;
  vertical-align: middle;
  display: inline-block;
}

/* Dropdown container */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background: linear-gradient(to bottom, #ffffff, #cccccc);
  padding: 0;
  margin: 0;
  display: none;
  flex-direction: column;
  gap: 0;
  box-shadow: none;
  z-index: 1000;
  border-radius: 0;
  overflow: hidden; 
}

/* Dropdown links */
.dropdown-menu a {
  display: block;
  box-sizing: border-box; 
  width: 100%;
  padding: 0.75rem 1rem;
  margin: 0;
  border: none;
  border-radius: 0;
  color: #002347;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: #25cad0; 
  color: #002347;  
}

/* Show dropdown on hover */
.nav-dropdown:hover .dropdown-menu {
  display: flex;
}

/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

/* Hero */
.hero {
  background-color: #002347;
  color: #f8f8ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7.5rem;
  box-sizing: border-box;
}

.hero-content {
  margin-top: -2rem;
}

.hero-title {
  font-size: 4.5rem;
  color: #f8f8ff;
}

.subtitle {
  color: #f8f8ff;
}

.hero-image img {
  max-width: 650px;
  height: auto;
}

/* Partners */
.partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  background-color: #f8f8ff;
  text-align: center;
  box-sizing: border-box;
  min-height: 60vh;
}

.partners h2 {
  font-size: 2rem;
  margin-top: -1rem;
  margin-bottom: 2rem;
  color: #002347;
  text-align: center;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.partner-logo {
  width: 80px;
  height: 80px;
  background-color: #ccc;
  border-radius: 50%;
}

/* CTA Section */
.cta {
  background-color: #38c1c5;
  padding: 5rem 2rem;
  text-align: center;
}

.cta h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #002347;
}

.cta-button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #002347;
  color: #f8f8ff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #1a1f3a;
}

/* Footer */
footer {
  background-color: #002347;
  color: #eee;
  padding: 2rem;
}

.footer-columns {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.footer-column {
  margin-bottom: 1rem;
}

.footer-brand {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.footer-brand:hover {
  color: inherit;
}

.footer-title {
  font-size: 1.3rem;
  color: #f8f8ff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #f8f8ff;
  text-decoration: none;
  font-family: 'Work Sans', sans-serif;
}

.footer-links a:hover {
  color: #38c1c5;
}

/* Copyright */
.copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #ccc;
}

/* Hide sidebar and overlay by default */
.sidebar-menu,
.sidebar-overlay {
  display: none;
}

/* ---------------------------------- */
/* 📱 Mobile Responsiveness */
/* ---------------------------------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  width: 20px;
  height: auto;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;               /* ✅ consistent line thickness */
  background-color: white;  /* ✅ uniform color */
  border: none;             /* ✅ no border inconsistencies */
  border-radius: 0;         /* ✅ sharp edges */
  box-sizing: border-box;
}

  .navbar {
    flex-direction: row;
    justify-content: space-between;
    height: auto;
    padding: 2rem;
  }

  /* Sidebar Overlay */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 998;
    display: none;
  }

  .sidebar-overlay.show {
    display: block;
  }

  /* Sidebar Menu */
.sidebar-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-color: #f8f8ff;
  z-index: 999;
  padding: 2rem;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;

  transform: translateX(100%); /* ✅ start off-screen */
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
  .sidebar-menu.open {
  transform: translateX(0); /* ✅ slide into view */
  opacity: 1;
 }
  /* Sidebar Navigation */
  .sidebar-nav a,
  .sidebar-nav summary {
  color: #002347;
  text-decoration: none;
  font-size: 1.2rem;
  margin: 0;
  display: block;
  cursor: pointer;
  padding: 0.75rem 1rem; 
  border-radius: 0;      
  box-sizing: border-box; 
  position: relative;
  }
	
 .sidebar-nav summary::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  top: 45%;
  transform: translateY(-50%); 
  font-size: 0.75rem;
  color: #002347;
  line-height: 1;
}
  .sidebar-nav details {
    margin-bottom: 0rem;
  }

.sidebar-nav a:hover,
.sidebar-nav summary:hover,
.sidebar-nav a:active {
  background-color: #25cad0; 
  color: #002347;           
  border-radius: 0;         
}
	
  .sidebar-nav details[open] summary::after {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
  }

  /* Indented Subpages */
  .sub-links {
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
  }

  .sub-links a {
  font-size: 1rem;
  margin: 0;              
  padding: 0.75rem 1rem;  
  border-radius: 0;        
  box-sizing: border-box;  
}

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 4rem 2rem;
    height: auto;
  }

  .hero-content {
    margin-top: 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .hero-image img {
    max-width: 100%;
    height: auto;
    margin-top: 2rem;
  }

  .partners {
    padding: 4rem 1.5rem;
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-logo {
    width: 60px;
    height: 60px;
  }

  .cta {
    padding: 4rem 1.5rem;
  }

  .cta h3 {
    font-size: 1.5rem;
  }

  .cta-button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .footer-column {
    text-align: center;
  }
}