/* Fonts (Inter, Outfit) enqueued via wp_enqueue_style with preconnect - see inc/enqueue.php. */

:root {
  /* Brand Colors */
  --color-primary-peach: #FFE5D9;
  --color-primary-purple: #5A3A7E;
  --color-secondary-lavender: #F4F0F7;
  --color-secondary-gray: #F9FAFB;
  --color-white: #FFFFFF;
  
  /* Text Colors */
  --text-dark: #1F2937;
  --text-muted: #4B5563;
  --text-light: #9CA3AF;

  /* Accents */
  --accent-peach: #FFD1C1;
  --accent-purple-light: #7E5DA2;

  /* UI Elements */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --transition: all 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--color-secondary-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--color-primary-purple);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.py-4 { padding: 4rem 0; }
.py-6 { padding: 6rem 0; }

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary,
.nav-links a.btn-primary {
  background-color: var(--color-primary-purple);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--accent-purple-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--color-primary-peach);
  color: var(--color-primary-purple);
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: var(--accent-peach);
  transform: translateY(-2px);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-purple);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary-purple);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 0;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
  color: var(--color-primary-purple);
}

.nav-dropdown-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  min-width: 280px;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 999;
  border: 1px solid rgba(0,0,0,0.06);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--color-secondary-lavender);
  color: var(--color-primary-purple);
}

.dropdown-menu a .dd-icon {
  width: 32px;
  height: 32px;
  background: var(--color-secondary-lavender);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-purple);
  flex-shrink: 0;
}

.dropdown-divider {
  height: 1px;
  background: var(--color-secondary-gray);
  margin: 0.5rem 0;
}

.dropdown-footer-link {
  display: block;
  text-align: center;
  padding: 0.6rem;
  color: var(--color-primary-purple) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  border-radius: var(--radius-md);
}

.dropdown-footer-link:hover {
  background: var(--color-primary-peach) !important;
  color: var(--color-primary-purple) !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary-purple);
  cursor: pointer;
}

/* Mobile dropdown - hidden on desktop */
.mobile-dropdown-toggle {
  display: none;
}

.mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
  gap: 0.25rem;
}

.mobile-dropdown-menu.open {
  display: flex;
}

.mobile-dropdown-menu a {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  padding: 0.3rem 0 !important;
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg, var(--color-secondary-lavender) 0%, var(--color-primary-peach) 100%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary-purple);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Services Grid */
.services-section {
  background-color: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: left;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-peach);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: var(--color-secondary-lavender);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary-purple);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* About Preview */
.about-preview {
  background-color: var(--color-secondary-gray);
}

.about-preview .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Stats/Why Choose Us */
.stats-section {
  background-color: var(--color-primary-purple);
  color: var(--color-white);
}

.stats-section h2 {
  color: var(--color-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--color-primary-peach);
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials {
  background-color: var(--color-secondary-lavender);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-content {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info h4 {
  font-size: 1rem;
  margin: 0;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-peach) 0%, #FFD1C1 100%);
  text-align: center;
  border-radius: var(--radius-xl);
  margin: 4rem auto;
  max-width: 1000px;
  padding: 4rem 2rem;
}

.cta-section h2 {
  color: var(--color-primary-purple);
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-family: 'Outfit', sans-serif;
}

.footer-col p {
  color: var(--text-light);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary-peach);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero .container,
  .about-preview .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  /* On mobile: hide desktop button, show anchor link instead */
  .nav-dropdown-toggle {
    display: none;
  }

  .mobile-dropdown-toggle {
    display: block;
    font-weight: 500;
    color: var(--text-muted);
  }

  /* Hide hover-based dropdown panel on mobile */
  .dropdown-menu {
    display: none !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Accessibility: skip link ---- */
.screen-reader-shortcut {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: var(--color-primary-purple);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-md) 0;
}
.screen-reader-shortcut:focus {
  left: 0;
}
/* Account for fixed navbar when jumping to #main / anchors */
#main { scroll-margin-top: 120px; }
:target { scroll-margin-top: 120px; }

/* ---- Logo sizing (constrains custom-logo + fallback img to original 100px) ---- */
.navbar .logo img,
.navbar .custom-logo,
.navbar .custom-logo-link img,
.footer .logo img {
  height: 100px;
  width: auto;
  max-width: 100%;
}
.navbar .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
@media (max-width: 768px) {
  .navbar .logo img,
  .navbar .custom-logo,
  .navbar .custom-logo-link img {
    height: 64px;
  }
}

/* ---- Form status messages + honeypot (global: forms appear on contact AND service pages) ---- */
.bc-form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.bc-form-status.is-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.bc-form-status.is-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}
/* Honeypot: visually hidden from humans (bots still fill it and get rejected). */
.bc-hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Keep primary button text white on hover/active in the nav ----
   (overrides .nav-links a:hover which would otherwise turn it purple) */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary:focus,
.nav-links a.btn-primary.active {
  color: var(--color-white);
}
