.section-pattern {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top left, rgba(214, 181, 94, 0.14), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f7fffb 48%, #eefcf4 100%);
}

.section-pattern > * {
  position: relative;
  z-index: 1;
}

.section-pattern::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
}

.section-pattern::before {
  top: 0;
  left: -150px;
  width: min(54vw, 660px);
  height: min(42vw, 430px);
  opacity: 0.24;
  background-image: url("../images/icons/premium-leaf-1.png");
  background-size: cover;
  background-position: top left;
  mix-blend-mode: multiply;
}

.section-pattern-soft::before {
  opacity: 0.12;
}

.section-pattern-soft {
  background:
    radial-gradient(circle at 12% 10%, rgba(16, 185, 129, 0.16), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(214, 181, 94, 0.16), transparent 24%),
    linear-gradient(135deg, #e9fff4 0%, #f8fff5 54%, #fff7e4 100%);
}

.hero-page-overlay {
  background:
    linear-gradient(135deg, rgba(3, 47, 37, 0.88) 0%, rgba(4, 120, 87, 0.68) 46%, rgba(16, 185, 129, 0.36) 100%),
    radial-gradient(circle at 20% 18%, rgba(214, 181, 94, 0.28), transparent 34%);
}

/* ================= Premium Navigation ================= */

#siteHeader {
  --nav-fg: #ffffff;
  --nav-fg-dim: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, rgba(2, 44, 34, 0.42), rgba(2, 44, 34, 0.08));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#siteHeader.header-scrolled {
  --nav-fg: #065f46;
  --nav-fg-dim: rgba(71, 85, 105, 0.92);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 253, 247, 0.88));
  border-bottom: 1px solid rgba(4, 120, 87, 0.12);
  box-shadow: 0 16px 34px rgba(2, 44, 34, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#siteHeader::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--scroll-progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, #d6b55e 0%, #10b981 45%, #047857 100%);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.45);
  transition: width 0.12s linear;
  z-index: 5;
}

/* Brand badge */
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  border-radius: 9999px;
  color: #d6b55e;
  background:
    radial-gradient(circle at 30% 25%, rgba(214, 181, 94, 0.35), transparent 55%),
    linear-gradient(135deg, rgba(6, 78, 59, 0.92), rgba(2, 44, 34, 0.95));
  border: 1px solid rgba(214, 181, 94, 0.55);
  box-shadow:
    0 8px 20px rgba(2, 44, 34, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-badge svg {
  width: 1.3rem;
  height: 1.3rem;
}

.group:hover .brand-badge {
  transform: rotate(-8deg) scale(1.06);
  box-shadow:
    0 12px 26px rgba(2, 44, 34, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#headerLogo {
  color: var(--nav-fg);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: color 0.3s ease;
}

#siteHeader.header-scrolled #headerLogo {
  text-shadow: none;
}

#headerTagline,
#headerTaglineMobile {
  color: var(--nav-fg-dim);
  transition: color 0.3s ease;
}

#siteHeader.header-scrolled #headerTagline,
#siteHeader.header-scrolled #headerTaglineMobile {
  color: rgba(5, 150, 105, 0.9);
}

/* Desktop pill menu */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(2, 44, 34, 0.16);
  transition: background 0.3s ease, border-color 0.3s ease;
}

#siteHeader.header-scrolled .nav-pill {
  background: rgba(236, 253, 245, 0.75);
  border-color: rgba(4, 120, 87, 0.14);
  box-shadow: 0 10px 26px rgba(2, 44, 34, 0.07);
}

.header-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--nav-fg-dim);
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.header-link:hover {
  color: var(--nav-fg);
  background: rgba(255, 255, 255, 0.14);
}

#siteHeader.header-scrolled .header-link:hover {
  background: rgba(16, 185, 129, 0.12);
}

.header-link-active,
.header-link-active:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #047857, #10b981);
  box-shadow:
    0 6px 16px rgba(4, 120, 87, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Gold CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.3rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #33290a;
  background: linear-gradient(135deg, #f5e3a1 0%, #d6b55e 55%, #c49a35 100%);
  box-shadow:
    0 10px 22px rgba(214, 181, 94, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 14px 28px rgba(214, 181, 94, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* Hamburger */
.nav-hamburger {
  position: relative;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav-hamburger:hover {
  transform: scale(1.05);
}

#siteHeader.header-scrolled .nav-hamburger {
  background: rgba(236, 253, 245, 0.85);
  border-color: rgba(4, 120, 87, 0.18);
}

.nav-hamburger span {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: var(--nav-fg);
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.nav-hamburger span:nth-child(2) {
  width: 0.85rem;
}

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

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

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

/* Mobile panel */
#mobileMenu {
  background:
    radial-gradient(circle at 85% 6%, rgba(214, 181, 94, 0.2), transparent 34%),
    linear-gradient(160deg, #03271e 0%, #064e3b 58%, #065f46 100%);
  border-top: 1px solid rgba(214, 181, 94, 0.28);
  box-shadow: 0 24px 48px rgba(2, 44, 34, 0.35);
  animation: mobileMenuIn 0.35s ease both;
}

@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-inner > * {
  animation: mobileLinkIn 0.45s ease both;
}

.mobile-nav-inner > *:nth-child(1) { animation-delay: 0.04s; }
.mobile-nav-inner > *:nth-child(2) { animation-delay: 0.09s; }
.mobile-nav-inner > *:nth-child(3) { animation-delay: 0.14s; }
.mobile-nav-inner > *:nth-child(4) { animation-delay: 0.19s; }
.mobile-nav-inner > *:nth-child(5) { animation-delay: 0.24s; }
.mobile-nav-inner > *:nth-child(6) { animation-delay: 0.3s; }

@keyframes mobileLinkIn {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.25rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: rgba(236, 253, 245, 0.92);
  border-bottom: 1px solid rgba(214, 181, 94, 0.16);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.mobile-link:hover {
  color: #d6b55e;
  padding-left: 0.6rem;
}

.mobile-link-active {
  color: #d6b55e;
}

.mobile-link::after {
  content: "\2192";
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  opacity: 0.45;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-link:hover::after {
  transform: translateX(4px);
  opacity: 0.9;
}

.mobile-nav-footer {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mobile-nav-footer p {
  color: rgba(236, 253, 245, 0.65);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-align: center;
}

/* Compact header on small screens */
@media (max-width: 640px) {
  .brand-badge {
    width: 2.15rem;
    height: 2.15rem;
  }

  .brand-badge svg {
    width: 1.05rem;
    height: 1.05rem;
  }

  .nav-hamburger {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.premium-cta {
  background: linear-gradient(135deg, #047857 0%, #10b981 54%, #d6b55e 130%);
  box-shadow: 0 16px 34px rgba(4, 120, 87, 0.28);
}

.hero-premium-title {
  font-size: clamp(1.55rem, 4vw, 3.45rem) !important;
  line-height: 1.04;
  letter-spacing: 0;
  white-space: nowrap !important;
  text-shadow:
    0 6px 20px rgba(2, 44, 34, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.18);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-premium-title {
    color: transparent;
    background: linear-gradient(135deg, #ffffff 0%, #fff7d6 42%, #d8ffe9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

@media (max-width: 640px) {
  .hero-premium-title {
    font-size: clamp(1.05rem, 6vw, 1.95rem) !important;
    white-space: nowrap !important;
  }
}

.premium-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.premium-panel {
  background:
    radial-gradient(circle at 15% 12%, rgba(214, 181, 94, 0.22), transparent 30%),
    linear-gradient(135deg, #042f25 0%, #065f46 54%, #0f766e 100%);
}

.call-question-card {
  padding: 1.5rem 0;
}

.call-question-title {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: 0;
  color: #047857;
  text-shadow: 0 10px 28px rgba(4, 120, 87, 0.16);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .call-question-title {
    color: transparent;
    background: linear-gradient(135deg, #047857 0%, #10b981 46%, #d6b55e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.premium-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(214, 181, 94, 0.22), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(16, 185, 129, 0.2), transparent 28%),
    linear-gradient(135deg, #020617 0%, #042f2e 42%, #064e3b 72%, #0f3d33 100%);
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.premium-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, #d6b55e 0%, #10b981 48%, #064e3b 100%);
}

.premium-footer > * {
  position: relative;
  z-index: 1;
}

.premium-footer h3,
.premium-footer h4 {
  color: #ffffff;
  letter-spacing: 0.01em;
}

.premium-footer h4 {
  display: inline-block;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid rgba(214, 181, 94, 0.55);
}

.premium-footer p,
.premium-footer li {
  color: rgba(226, 232, 240, 0.82);
}

.premium-footer a {
  color: rgba(226, 232, 240, 0.9);
  text-decoration: none;
}

.premium-footer a:hover {
  color: #d6b55e;
}

.premium-footer .footer-dev-link {
  color: #facc15 !important;
  font-weight: 700;
}

.premium-footer .footer-dev-link:hover {
  color: #fde68a !important;
}

.premium-footer svg {
  filter: drop-shadow(0 6px 14px rgba(16, 185, 129, 0.18));
}

.premium-footer .border-t {
  border-color: rgba(214, 181, 94, 0.22) !important;
  color: rgba(226, 232, 240, 0.7);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section-pattern div.rounded-2xl:not(.text-white) {
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(240, 253, 244, 0.72));
}

.section-pattern div[class*="bg-brand-100"],
.section-pattern div[class*="bg-brand-50"] div[class*="bg-brand-100"] {
  background-image: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 58%, #f5e6b0 140%);
}

@media (max-width: 640px) {
  .section-pattern::before {
    left: -150px;
    width: 360px;
    height: 250px;
    opacity: 0.18;
  }
}

/* ================= Booking Modal ================= */

#bookingModal {
  animation: bookingFadeIn 0.25s ease both;
}

.booking-backdrop {
  background: rgba(2, 20, 15, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.booking-card {
  position: relative;
  width: 100%;
  max-width: 24rem;
  border-radius: 1.5rem;
  padding: 2.5rem 1.75rem 1.75rem;
  text-align: center;
  color: #ecfdf5;
  background:
    radial-gradient(circle at 85% 0%, rgba(214, 181, 94, 0.25), transparent 36%),
    linear-gradient(160deg, #042f25 0%, #064e3b 60%, #065f46 100%);
  border: 1px solid rgba(214, 181, 94, 0.35);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
  animation: bookingCardIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bookingFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bookingCardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.booking-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: rgba(236, 253, 245, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.booking-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: rotate(90deg);
}

.booking-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #d6b55e;
  background:
    radial-gradient(circle at 30% 25%, rgba(214, 181, 94, 0.35), transparent 55%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(214, 181, 94, 0.5);
}

.booking-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.booking-card > p {
  color: rgba(236, 253, 245, 0.72);
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}

.booking-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 0.7rem;
  border-radius: 9999px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #33290a;
  background: linear-gradient(135deg, #f5e3a1 0%, #d6b55e 55%, #c49a35 100%);
  box-shadow:
    0 10px 22px rgba(214, 181, 94, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.booking-phone:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 14px 28px rgba(214, 181, 94, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.booking-phone svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.booking-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  color: rgba(236, 253, 245, 0.85);
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: rgba(214, 181, 94, 0.5);
  text-underline-offset: 3px;
  word-break: break-all;
  transition: color 0.25s ease;
}

.booking-email:hover {
  color: #d6b55e;
}
