/* style--header.css */
/* Modern Header Navigation Styles for Pet Savers */

/* ===== HEADER STYLES ===== */
.main-header {
  background: var(--bg-white);
  border-bottom: 8px solid var(--primary-color);
  border-top: 2px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1460px;
  padding: var(--space-16) var(--space-20);
  position: relative;
}

/* Logo Styles */
.header-logo {
  align-items: center;
  color: var(--text-primary);
  display: flex;
  gap: var(--space-12);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.header-logo:hover {
  opacity: 0.8;
}

.logo-image {
  height: 90px;
  object-fit: contain;
  width: 270px;
}

.logo-text h1 {
  color: var(--primary-color);
  font-size: var(--font-size-xl);
  line-height: 1.2;
  margin: 0;
}

.logo-text span {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

/* Main Navigation */
.main-nav {
  align-items: center;
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  align-items: center;
  color: var(--text-primary);
  display: flex;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  padding: var(--space-12) var(--space-16);
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-link:hover {  
  background: var(--bg-secondary);
  color: var(--primary-color);
}

/* CTA Button in Navigation */
.nav-cta .btn {
  margin-left: var(--space-8);
}

/* Dropdown Styles */
.has-dropdown > .nav-link::after {
  content: '▼';
  font-size: 10px;
  margin-left: var(--space-4);
  text-decoration: none !important;
  transition: transform 0.5s ease;
}

.has-dropdown:hover > .nav-link::after {
  text-decoration: none !important;
  transform: rotate(-90deg);
}

.dropdown {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  left: 0;
  margin-top: var(--space-8);
  min-width: 216px;
  opacity: 0;
  position: absolute;
  top: 100%;
  transition: all 0.3s ease;
  visibility: hidden;
  z-index: 1001;
}

.dropdown.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.dropdown-content {
  display: grid;
  gap: var(--space-16);
  grid-template-columns: 1fr;
  padding: var(--space-8);
}

.dropdown-section h3 {
  color: var(--primary-color);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.5px;
  margin: var(--space-8) var(--space-8) var(--space-12) var(--space-8);
  text-transform: uppercase;
}

.dropdown-section a {
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  display: block;
  font-size: var(--font-size-sm);
  padding: var(--space-8) var(--space-12);
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-section a:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  height: 40px;
  justify-content: center;
  padding: var(--space-8);
  width: 40px;
}

.hamburger-line {
  background: var(--text-primary);
  border-radius: 1px;
  height: 2px;
  margin: 2px 0;
  transition: 0.3s;
  width: 24px;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-4px, 4px);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-4px, -4px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  background: rgba(0, 0, 0, 0.5);
  display: none;
  height: 100%;
  left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  transition: all 0.3s ease;
  visibility: hidden;
  width: 100%;
  z-index: 2000;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  background: var(--bg-white);
  height: 100%;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  width: 320px;
}

.mobile-nav-overlay.active .mobile-nav {
  transform: translateX(0);
}

.mobile-nav-header {
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  padding: var(--space-20);
}

.mobile-logo {
  height: 32px;
  width: 108px;
}

.mobile-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--font-size-2xl);
  padding: var(--space-4);
}

.mobile-nav-content {
  padding: var(--space-20);
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-item {
  margin-bottom: var(--space-8);
}

.mobile-nav-link {
  align-items: center;
  background: none;
  border: none;
  border-radius: var(--border-radius);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  justify-content: space-between;
  padding: var(--space-16);
  text-decoration: none;
  transition: background 0.3s ease;
  width: 100%;
}

.mobile-nav-link:hover {
  background: var(--bg-secondary);
}

.submenu-toggle {
  text-align: left;
}

.toggle-icon {
  color: var(--primary-color);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

.mobile-submenu {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  list-style: none;
  margin: 0;
  margin-top: var(--space-8);
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: max-height 0.3s ease;
}

.mobile-submenu.open {
  max-height: 400px;
  padding: var(--space-8) 0;
}

.mobile-submenu li {
  margin: 0;
}

.mobile-submenu a {
  color: var(--text-secondary);
  display: block;
  font-size: var(--font-size-sm);
  padding: var(--space-12) var(--space-20);
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-submenu a:hover {
  background: var(--bg-white);
  color: var(--primary-color);
  transform: translateX(4px);
}

.submenu-divider {
  background: var(--border-light);
  height: 1px;
  margin: var(--space-8) var(--space-20);
}

.mobile-nav-cta {
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-top: var(--space-32);
  padding-top: var(--space-20);
}

/* Prevent body scroll when nav is open */
body.nav-open {
  overflow: hidden;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .header-container {
    padding: var(--space-12) var(--space-16);
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .dropdown {
    min-width: 400px;
  }
  
  .dropdown-content {
    grid-template-columns: 1fr;
    gap: var(--space-16);
    padding: var(--space-20);
  }
}

@media (max-width: 768px) {
  .logo-text h1 {
    font-size: var(--font-size-lg);
  }
  
  .logo-text span {
    font-size: var(--font-size-xs);
  }
  
  .mobile-nav {
    width: 280px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: var(--space-8) var(--space-12);
  }
  
  .mobile-nav {
    width: 100%;
  }
  .logo-image {
    height: 36px;
    width: 108px;
  }
}



/* Hero Section Styles */
.hero {
  align-items: center;
  aspect-ratio: 3 / 1;
  background: url('/imgx/hero.webp') right 20% center no-repeat transparent;
  background-size: cover;
  display: flex;
  position: relative;
  width: 100%;
}

/*.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(51, 0, 102, 0.8) 0%,
    rgba(51, 0, 102, 0.6) 40%,
    transparent 70%
  );
  z-index: 1;
}*/

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  padding: 0 var(--space-20);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-40);
  align-items: center;
}

.hero-text {
  background: rgba(118, 153, 82, .5);
  border-radius: 24px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, .5);
  color: rgba(255,255,255,.95);
  margin: 36px;
  max-width: 60ch;
  padding: 36px;
}

.hero-text h1 {
  font-size: clamp(var(--font-size-xl), 3vw, 3rem);
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

span.hero-subtitle {
  display: block;
  font-size:clamp(var(--font-size-lg), 2vw, 2rem);
  font-weight: var(--font-weight-medium);
  margin: 0 0 var(--space-16) 0;
  opacity: 0.9;
}

.hero-description {
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin: 0 0 var(--space-32) 0;
  opacity: 0.95;
  max-width: 500px;
  text-wrap-style: balance;
}

.hero-actions {
  display: flex;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: var(--space-16) var(--space-32);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  min-height: var(--space-56);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.hero-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-actions .btn-primary {
  background: var(--bg-white);
  color: var(--primary-color);
}

.hero-actions .btn-primary:hover {
  background: #f8f9fa;
}

.hero-actions .btn-secondary {
  background: transparent;
  color: var(--bg-white);
  border: 2px solid var(--bg-white);
}

.hero-actions .btn-secondary:hover {
  background: var(--bg-white);
  color: var(--primary-color);
}

/* Content container for rest of page */
.page-content {
  max-width: 1580px;
  margin: 0 auto;
  padding: 0 var(--space-20);
}

/* Responsive hero */
@media (max-width: 768px) {  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 var(--space-16);
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-actions .btn {
    flex: 1;
    min-width: 150px;
  }
}

@media (max-width: 480px) {  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
}



@media (max-width: 540px) {
  .hero {
    background-position: right 10% center !important;
    height: auto !important;
    overflow: visible !important;
    padding: 16px;

  }
  .grid__card--pet {
    flex-direction: column;
  }
  
  .hero-text {
    margin: 0;
    padding: 16px;

  }
}