@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --primary-pink: #eb9aa5;
  --primary-pink-hover: #d98692;
  --primary-green: #8FBC8A;
  --primary-green-light: rgba(143, 188, 138, 0.6);
  --primary-green-hover: #76A371;
  
  /* Neutral Colors */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-white: #ffffff;
  --bg-off-white: #fafafa;
  
  /* Typography */
  --font-heading: "Nunito", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-accent: "Nunito", system-ui, sans-serif;
  
  /* Spacing */
  --section-padding: 5rem 2rem;
  --container-width: 1200px;
  
  /* Transitions */
  --transition: all 0.3s ease-in-out;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: #000;
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
  cursor: pointer;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- NAVIGATION --- */
header {
  background-color: var(--bg-white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
  gap: 3rem;
}

.logo a {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 40px;
}

.logo-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

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

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-indent: 1px;
  line-height: 1;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-pink);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-pink-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(235, 154, 165, 0.4);
  color: var(--text-light); /* keep white on hover */
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
  background-color: var(--primary-green);
  color: var(--text-light);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(15, 30, 8, 0.48), rgba(15, 30, 8, 0.48)), url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?q=80&w=2653&auto=format&fit=crop') center/cover no-repeat;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55), 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5), 0 2px 20px rgba(0, 0, 0, 0.35);
}

/* --- SECTIONS --- */
.section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-pink);
}

.bg-light {
  background-color: var(--bg-off-white);
}

.card.bg-green-overlay {
  background-color: var(--primary-green-light) !important;
  color: var(--text-light) !important;
}

.card.bg-green-overlay h2, .card.bg-green-overlay h3, .card.bg-green-overlay p {
  color: var(--text-light) !important;
}

/* --- MAIN LAYOUT GRIDS --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

/* Cards */
.card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transition: var(--transition);
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.11);
}

.card h3 {
  color: var(--primary-green);
  margin-top: 1rem;
}

/* --- QUOTE / TESTIMONIAL --- */
.testimonial {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.quote-icon {
  font-size: 3rem;
  color: var(--primary-pink);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.testimonial p {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 500;
  color: var(--primary-green);
}

/* --- KALIX EMBED PLACEHOLDER --- */
.kalix-container {
  width: 100%;
  max-width: 800px;
  min-height: 600px;
  margin: 0 auto;
  border: 2px dashed #ccc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fafafa;
  flex-direction: column;
  color: #888;
}

/* --- BLOG GRID --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* --- BLOG CARDS --- */
.blog-card {
  padding: 0;
  overflow: hidden;
  text-align: left;
  position: relative;
}

.blog-card a.read-more::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.blog-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.blog-card:hover img {
  transform: scale(1.03);
}

.blog-card .card-body {
  padding: 1.5rem;
}

.blog-card .category-tag {
  color: var(--primary-green);
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

/* --- TESTIMONIAL CARDS --- */
.testimonial-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  text-align: center;
  border-top: 4px solid var(--primary-pink);
}

.testimonial-card p.testimonial {
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: #444;
}

/* --- FOOTER --- */
footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  padding: 3rem 0;
  text-align: center;
}

.footer-acknowledgement {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
  line-height: 1.6;
}

footer a {
  color: var(--primary-pink);
}

footer a:hover {
  color: var(--primary-pink-hover);
}

/* --- DROPDOWN NAVIGATION --- */
.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-radius: 8px;
  list-style: none;
  min-width: 240px;
  padding: 0.5rem 0;
  z-index: 1001;
  /* Invisible top padding bridges gap between trigger and menu */
  margin-top: 0;
  padding-top: 0.75rem;
}

.has-dropdown:hover .dropdown {
  display: block;
}

/* Invisible bridge so mouse can travel from link to dropdown without gap */
.has-dropdown::after {
  content: '';
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}

/* Chevron arrow on desktop dropdown triggers */
.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.75rem;
  opacity: 0.55;
  display: inline-block;
  transition: transform 0.2s ease;
}

.has-dropdown:hover > a::after {
  opacity: 1;
  transform: rotate(-180deg);
}

.dropdown li a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--text-dark);
}

.dropdown li a:hover {
  color: var(--primary-green);
  background: var(--bg-off-white);
}

/* --- PAGE HERO (interior pages) --- */
.page-hero {
  background: linear-gradient(135deg, rgba(113,148,48,0.08) 0%, rgba(235,154,165,0.08) 100%);
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.page-hero h1 {
  font-size: 2.8rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2rem;
  color: #555;
}

/* --- CONDITION GRID --- */
.condition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.condition-tag {
  background: var(--bg-off-white);
  border: 1px solid rgba(113,148,48,0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.condition-tag:hover {
  border-color: var(--primary-green);
  background: rgba(113,148,48,0.05);
}

/* --- CTA BAND --- */
.cta-band {
  background: var(--primary-green);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.cta-band h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.btn-white {
  background: white;
  color: var(--primary-green);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--bg-off-white);
  color: var(--primary-green-hover);
}

.btn-white-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
  font-weight: 700;
}

.btn-white-outline:hover {
  background: white;
  color: var(--primary-green);
}

/* --- REFERRALS --- */
.referral-block {
  background: var(--bg-off-white);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--primary-green);
}

.referral-block h3 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

/* --- POLICY PAGES --- */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-green);
}

.policy-content p, .policy-content li {
  color: #555;
  line-height: 1.8;
}

.policy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* --- HAMBURGER BUTTON --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-green);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  header {
    position: relative;
  }

  .nav-container {
    padding: 0.75rem 1rem;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }

  .logo {
    flex: 1;
    min-width: 0;
  }

  .logo a {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
  }

  body {
    overflow-x: hidden;
  }

  /* Hide the nav wrapper itself; mobile links drop down from header */
  nav {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 0 1.5rem 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 0;
    z-index: 999;
    border-top: 1px solid var(--bg-off-white);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--bg-off-white);
  }

  .nav-links li:last-child {
    border-bottom: none;
    padding: 1rem 0;
  }

  .nav-links a.btn {
    padding: 0.8rem 2rem;
    display: inline-block;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.9rem;
  }

  .has-dropdown > a::after {
    content: ' +';
    font-size: 0.8rem;
    opacity: 0.6;
    transform: none !important;
  }

  .has-dropdown.open > a::after {
    content: ' −';
    transform: none !important;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0.5rem 1rem;
    min-width: unset;
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .has-dropdown:hover .dropdown {
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .dropdown li a {
    padding: 0.5rem 0;
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
