/* === CSS Variables === */
:root {
  --color-primary: #f4c141;
  --color-primary-dark: #c99a2e;
  --color-primary-light: #fce9a8;
  --color-secondary: #2d2926;
  --color-background: #fffbf0;
  --color-white: #ffffff;
  --color-text: #3d3530;
  --color-text-light: #6b5e54;
  --color-warm-bg: #fff5e1;
  --color-accent: #85681f;
  --font-body:
    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --shadow-soft: 0 4px 20px rgba(45, 41, 38, 0.06);
  --shadow-hover: 0 12px 32px rgba(45, 41, 38, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

/* === Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === Utility === */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Base === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Header & Navigation === */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 251, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(244, 193, 65, 0.2);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

nav a {
  color: var(--color-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

nav a:hover {
  color: var(--color-primary-dark);
  background: var(--color-warm-bg);
}

nav .nav-logo {
  display: flex;
  align-items: center;
  padding: 0.2rem 0;
  background: none;
}

nav .nav-logo:hover {
  background: none;
  transform: scale(1.05);
}

.nav-logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  animation: bee-float 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(244, 193, 65, 0.3));
}

@media (min-width: 640px) {
  .nav-logo-img {
    height: 56px;
    width: 56px;
  }
}

@keyframes bee-float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(3px, -4px) rotate(2deg);
  }
  50% {
    transform: translate(-2px, -2px) rotate(-1deg);
  }
  75% {
    transform: translate(-3px, -5px) rotate(-2deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* Mobile default: nav-links hidden, toggle visible */
.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-background);
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.5rem;
  box-shadow: var(--shadow-hover);
  border-bottom: 2px solid var(--color-primary);
}

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

.nav-links a {
  font-size: 1.05rem;
  padding: 0.75rem 1rem;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--color-warm-bg);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-secondary);
  margin: 5px 0;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* Hamburger -> X animation */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Desktop: nav-links visible, toggle hidden */
@media (min-width: 640px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-bottom: none;
  }

  .nav-links a {
    font-size: 0.88rem;
    padding: 0.4rem 0.75rem;
  }

  .nav-toggle {
    display: none;
  }
}

/* === Hero === */
#hero {
  background-color: var(--color-background);
  padding: 4rem 1rem 3rem;
  position: relative;
}

.hero-content {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 0.8s ease-out both;
}

.hero-banner {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: var(--color-secondary);
  box-shadow: 0 4px 16px rgba(244, 193, 65, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(244, 193, 65, 0.45);
}

/* Hero load animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content {
    animation: none;
  }
}

/* === Wave Dividers === */
.wave-divider {
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  width: 100%;
  height: 40px;
}

.wave-divider--flip {
  margin-top: 0;
  margin-bottom: -1px;
}

@media (min-width: 640px) {
  .wave-divider svg {
    height: 60px;
  }
}

/* === Section Headings (global) === */
main section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

main section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  margin: 0.75rem auto 0;
  border-radius: 3px;
}

@media (min-width: 640px) {
  main section h2 {
    font-size: 2.4rem;
  }
}

/* === Placeholder === */
.placeholder-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.85rem;
  color: #bfa87a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === About === */
#about {
  padding: 4rem 1rem;
  background-color: var(--color-warm-bg);
}

.about-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* === Services === */
#services {
  padding: 4rem 1rem;
  background-color: var(--color-background);
}

.services-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--color-primary);
  transition: all 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.service-card-text {
  padding: 1.25rem 1.25rem 1.5rem;
}

.service-card-text p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* === Shared Icon Style === */
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--color-warm-bg);
  border-radius: 50%;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.target-groups-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-align: center;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
}

.target-groups {
  display: grid;
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .target-groups {
    grid-template-columns: 1fr 1fr;
  }
}

.target-group-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--color-primary);
  transition: all 0.35s ease;
}

.target-group-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.target-group-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.target-group-text {
  padding: 1.25rem 1.5rem;
}

.target-group-text h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.4rem;
}

.target-group-text p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.services-area {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-light);
}

/* === Team Showcase === */
.team-showcase {
  padding: 4rem 1rem;
  background: linear-gradient(
    170deg,
    var(--color-warm-bg) 0%,
    var(--color-background) 100%
  );
  position: relative;
  overflow: hidden;
}

.team-showcase::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(244, 193, 65, 0.08);
}

.team-showcase::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(244, 193, 65, 0.06);
}

.team-showcase-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.team-showcase-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
  position: relative;
  padding: 0 1.5rem;
}

.team-showcase-label::before,
.team-showcase-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  border-radius: 2px;
}

.team-showcase-label::before {
  left: -20px;
}

.team-showcase-label::after {
  right: -20px;
}

.team-showcase-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow:
    0 8px 40px rgba(45, 41, 38, 0.1),
    0 2px 8px rgba(45, 41, 38, 0.06);
  display: block;
}

.team-showcase-caption {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-text-light);
  margin-top: 1.25rem;
  letter-spacing: 0.01em;
}

/* === USPs === */
#usps {
  padding: 4rem 1rem;
  background-color: var(--color-warm-bg);
  position: relative;
}

.usps-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 640px) {
  .usps-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.usp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  min-height: 160px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.usp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
}

.usp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.usp-icon {
  margin-bottom: 0.75rem;
  background: var(--color-warm-bg);
  color: var(--color-primary-dark);
}

.usp-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-secondary);
  line-height: 1.3;
}

.usps-insurance {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* === Contact === */
#contact {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.contact-cards-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .contact-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

a.contact-card:hover {
  transform: translateX(4px);
  border-left-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
}

.contact-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-warm-bg),
    var(--color-primary-light)
  );
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--color-primary-dark);
}

.contact-card strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-card span:not(.contact-icon) {
  color: var(--color-accent);
  font-weight: 500;
}

.contact-map {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.contact-map iframe {
  border: 0;
  width: 100%;
  min-height: 250px;
  display: block;
}

/* === Legal Pages === */
.legal-page {
  background-color: var(--color-warm-bg);
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
}

.legal-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  max-width: 700px;
  width: 100%;
}

.legal-card h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--color-primary);
  padding-bottom: 0.75rem;
}

.legal-card h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.legal-page p {
  margin-bottom: 0.75rem;
}

.legal-page a {
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* === Footer === */
footer {
  background: var(--color-secondary);
  color: var(--color-white);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-dark),
    var(--color-primary)
  );
}

.footer-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
    text-align: left;
  }
}

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

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.footer-section span:not(.footer-heading) {
  font-size: 0.85rem;
  opacity: 0.75;
}

footer a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.75;
  transition: all 0.2s ease;
}

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

/* === Scroll Animations === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered card animations */
.service-card.animate-on-scroll:nth-child(2) {
  transition-delay: 0.08s;
}
.service-card.animate-on-scroll:nth-child(3) {
  transition-delay: 0.16s;
}
.service-card.animate-on-scroll:nth-child(4) {
  transition-delay: 0.24s;
}
.service-card.animate-on-scroll:nth-child(5) {
  transition-delay: 0.32s;
}
.service-card.animate-on-scroll:nth-child(6) {
  transition-delay: 0.4s;
}
.service-card.animate-on-scroll:nth-child(7) {
  transition-delay: 0.48s;
}
.service-card.animate-on-scroll:nth-child(8) {
  transition-delay: 0.56s;
}

.usp-card.animate-on-scroll:nth-child(2) {
  transition-delay: 0.1s;
}
.usp-card.animate-on-scroll:nth-child(3) {
  transition-delay: 0.2s;
}
.usp-card.animate-on-scroll:nth-child(4) {
  transition-delay: 0.3s;
}

.contact-card.animate-on-scroll:nth-child(2) {
  transition-delay: 0.08s;
}
.contact-card.animate-on-scroll:nth-child(3) {
  transition-delay: 0.16s;
}
.contact-card.animate-on-scroll:nth-child(4) {
  transition-delay: 0.24s;
}
.contact-card.animate-on-scroll:nth-child(5) {
  transition-delay: 0.32s;
}
.contact-card.animate-on-scroll:nth-child(6) {
  transition-delay: 0.4s;
}
.contact-card.animate-on-scroll:nth-child(7) {
  transition-delay: 0.48s;
}

/* Global transitions */
a {
  transition: all 0.25s ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-logo-img {
    animation: none;
  }

  .btn-primary:hover,
  .service-card:hover,
  .usp-card:hover,
  a.contact-card:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
  }
}
