/*
Theme Name:  Ameya Golf
Theme URI:   https://ameyatravel.co.uk
Description: Ameya Golf — premium UK golf travel specialists. Kadence child theme.
Author:      Ameya Golf
Template:    kadence
Version:     1.0.0
Text Domain: ameya-golf
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --green:       #1a3d2b;
  --green-dark:  #0f2419;
  --green-mid:   #245235;
  --gold:        #c9a84c;
  --gold-light:  #dfc07a;
  --gold-pale:   #f5ecd0;
  --offwhite:    #f8f5f0;
  --charcoal:    #2c2c2c;
  --grey:        #6b6b6b;
  --white:       #ffffff;

  --font-h:      'Cormorant Garamond', Georgia, serif;
  --font-b:      'DM Sans', system-ui, -apple-system, sans-serif;
  --font-hero:   'Italiana', 'Cormorant Garamond', Georgia, serif;

  --nav-h:       76px;
  --sp:          clamp(48px, 5vw, 72px);    /* section padding */
  --sp-sm:       clamp(28px, 3.5vw, 44px);
  --mw:          1200px;
  --mw-text:     780px;
  --r:           3px;
  --ease:        0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
}

body {
  font-family: var(--font-b);
  color: var(--charcoal);
  background: var(--offwhite);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.eyebrow {
  font-family: var(--font-b);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.1rem; }

p { font-size: 1rem; color: var(--grey); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: min(100%, var(--mw));
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

.section {
  padding-block: var(--sp);
}

.section--dark {
  background: var(--green);
}
.section--offwhite {
  background: var(--offwhite);
}
.section--white {
  background: var(--white);
}
.section--green-mid {
  background: var(--green-mid);
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}
.section-header h2 { margin-top: 10px; }
.section-header p {
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: var(--r);
  font-family: var(--font-b);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--ease);
  border: 2px solid transparent;
}

.btn-gold {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--green-dark);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.ameya-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(15, 36, 25, 0.0);
  backdrop-filter: blur(0px);
  transition: background var(--ease), backdrop-filter var(--ease), box-shadow var(--ease);
}

/* Permanent soft scrim behind the un-scrolled nav so the logo and links
   stay legible over bright hero photos, without a hard bar edge. */
.ameya-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 170px;
  background: linear-gradient(to bottom, rgba(6, 16, 10, 0.6) 0%, rgba(6, 16, 10, 0.3) 55%, rgba(6, 16, 10, 0) 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity var(--ease);
}

.ameya-nav.scrolled {
  background: rgba(15, 36, 25, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.ameya-nav.scrolled::before { opacity: 0; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.nav-logo .logo-main {
  font-family: var(--font-h);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}
.nav-logo .logo-sub {
  font-family: var(--font-b);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-logo-img {
  max-height: 64px;
  width: auto;
  filter: saturate(1.8) brightness(1.1) contrast(1.2)
          drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 14px rgba(223, 192, 122, 0.5));
}

/* Nav links */
.ameya-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0;
  /* Kadence styles list items; without this the mobile menu shows bullets. */
  list-style: none;
  padding-left: 0;
}
.ameya-nav .nav-links li { list-style: none; }
.ameya-nav .nav-links li::marker { content: none; }
.nav-links a {
  font-family: var(--font-b);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--ease);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-cta {
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.5);
  padding: 8px 20px;
  border-radius: var(--r);
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

/* Colour reset kept in its own rule, separate from the layout above:
   Kadence styles `button` (including :focus/:active) and would otherwise
   paint the toggle with the theme's blue once tapped open. Deliberately
   carries no `display`, so the mobile media query still controls that —
   these state selectors outrank it. */
.ameya-nav .nav-toggle,
.ameya-nav .nav-toggle:hover,
.ameya-nav .nav-toggle:focus,
.ameya-nav .nav-toggle:focus-visible,
.ameya-nav .nav-toggle:active,
.ameya-nav .nav-toggle.open {
  background: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--ease);
  transform-origin: center;
}
.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); }

/* ============================================================
   HERO
   ============================================================ */
.ameya-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--green-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  opacity: 0;
  transition: transform 8s ease, opacity 1.6s ease;
}

.hero-bg.is-active { opacity: 1; }

.ameya-hero.loaded .hero-bg.is-active { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 24, 16, 0.55) 0%,
    rgba(10, 24, 16, 0.72) 50%,
    rgba(10, 24, 16, 0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 60px 24px 30px;
}

.hero-content h1 {
  color: var(--white);
  font-family: var(--font-hero);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 400;
  margin: 16px 0 20px;
  letter-spacing: 0.01em;
}

.hero-content h1 em {
  font-family: var(--font-h);
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll svg { opacity: 0.5; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   DIVIDER — GOLD RULE
   ============================================================ */
.gold-rule {
  width: 50px;
  height: 2px;
  background: var(--gold);
  display: block;
  margin: 14px auto 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

.about-text .eyebrow { margin-bottom: 16px; }
.about-text h2 { margin-bottom: 24px; color: var(--green); }
.about-text p { margin-bottom: 16px; font-size: 1.05rem; line-height: 1.8; }
.about-text .btn { margin-top: 10px; }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.stat-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--white);
  border-radius: var(--r);
  border-left: 3px solid var(--gold);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: transform var(--ease), box-shadow var(--ease);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.stat-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.stat-body h4 {
  color: var(--green);
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.stat-body p { font-size: 0.9rem; margin: 0; }

/* ============================================================
   DESTINATIONS
   ============================================================ */
.destinations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dest-card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}

.dest-card .dest-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.dest-card:hover .dest-bg { transform: scale(1.06); }

.dest-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,24,16,0.88) 0%, rgba(10,24,16,0.2) 60%, transparent 100%);
}

/* Background images are set via inline style in page-home.php (CMS-editable) */

.dest-content {
  position: relative;
  z-index: 2;
  padding: 36px 36px 32px;
  width: 100%;
}
.dest-content .eyebrow { margin-bottom: 10px; }
.dest-content h3 {
  color: var(--white);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 10px;
}
.dest-content p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  margin-bottom: 22px;
  line-height: 1.65;
}
.dest-content .btn { font-size: 0.78rem; }

/* ============================================================
   PACKAGES
   ============================================================ */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pkg-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
  border-top: 3px solid transparent;
}
.pkg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  border-top-color: var(--gold);
}

.pkg-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--gold);
}

.pkg-card h3 {
  color: var(--green);
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.pkg-card p {
  font-size: 0.95rem;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 28px;
}
.pkg-card .btn { align-self: flex-start; font-size: 0.78rem; }

/* ============================================================
   PARTNER COURSES
   ============================================================ */
.courses-group + .courses-group {
  margin-top: 56px;
}

.courses-group-title {
  color: var(--gold);
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.course-card {
  position: relative;
  aspect-ratio: 4 / 5;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--gold);
  border-radius: var(--r);
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  transition: background var(--ease), border-color var(--ease), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.course-card:hover {
  background: rgba(201, 168, 76, 0.06);
  border-color: var(--gold-light);
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(201, 168, 76, 0.2);
}

.course-card.featured {
  background: rgba(201, 168, 76, 0.08);
}

.course-card.has-photo {
  background-size: cover;
  background-position: center;
}
.course-card.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,24,16,0.9) 0%, rgba(10,24,16,0.68) 55%, rgba(10,24,16,0.55) 100%);
  z-index: 0;
  transition: background var(--ease);
}
.course-card.has-photo:hover::before {
  background: linear-gradient(to top, rgba(10,24,16,0.78) 0%, rgba(10,24,16,0.5) 55%, rgba(10,24,16,0.4) 100%);
}
.course-card.has-photo .course-badge,
.course-card.has-photo h4,
.course-card.has-photo p,
.course-card.has-photo .featured-tag,
.course-card.has-photo .course-flag {
  position: relative;
  z-index: 1;
}
.course-card.has-photo:hover {
  background-color: transparent;
}

.course-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), background var(--ease), border-color var(--ease);
}
.course-card:hover .course-badge {
  transform: scale(1.1) rotate(-10deg);
  background: rgba(201, 168, 76, 0.24);
  border-color: var(--gold);
}

.course-badge-ball {
  width: 28px;
  height: 28px;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .course-card,
  .course-card .course-badge,
  .course-card.has-photo::before {
    transition: none;
  }
}

.course-flag {
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: normal;
  opacity: 0.92;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.45)) saturate(0.9);
}

.course-card h4 {
  color: var(--white);
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}
.course-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin: 0;
}
.course-card p.course-price {
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
}
.course-card .featured-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ============================================================
   ENQUIRY FORM SECTION
   ============================================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

.contact-info .eyebrow { margin-bottom: 16px; }
.contact-info h2 { margin-bottom: 20px; color: var(--white); }
.contact-info p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-bottom: 32px; }

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}
.contact-detail-item svg { color: var(--gold); flex-shrink: 0; }
.contact-detail-item a { color: inherit; text-decoration: none; }
.contact-detail-item a:hover { color: var(--gold); }

.contact-form-box {
  background: var(--white);
  border-radius: var(--r);
  padding: clamp(18px, 2.4vw, 30px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  /* WPForms Modern theme reads button colors from these custom
     properties (falls back to WPForms' own blue otherwise). */
  --wpforms-button-background-color: var(--green);
  --wpforms-button-background-color-alt: var(--green-mid);
  --wpforms-button-text-color: var(--white);
  --wpforms-button-text-color-alt: var(--white);
  --wpforms-button-border-radius: var(--r);
}

/* WPForms overrides */
.contact-form-box .wpforms-form .wpforms-field { margin-bottom: 12px; }
.contact-form-box .wpforms-form label {
  font-family: var(--font-b);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}
.contact-form-box .wpforms-form input,
.contact-form-box .wpforms-form select,
.contact-form-box .wpforms-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: var(--r);
  padding: 8px 16px;
  font-family: var(--font-b);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--offwhite);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}
.contact-form-box .wpforms-form input:focus,
.contact-form-box .wpforms-form select:focus,
.contact-form-box .wpforms-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.contact-form-box .wpforms-form textarea { min-height: 110px; resize: vertical; }
.contact-form-box .wpforms-submit-container { margin-top: 8px; }
.contact-form-box .wpforms-form [type=submit] {
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  font-family: var(--font-b);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.contact-form-box .wpforms-form [type=submit]:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
}

/* Fallback form styles (before WPForms) */
.fallback-form { display: flex; flex-direction: column; gap: 16px; }
.fallback-form label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 5px;
}
.fallback-form input,
.fallback-form select,
.fallback-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: var(--r);
  padding: 12px 16px;
  font-family: var(--font-b);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--offwhite);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.fallback-form input:focus,
.fallback-form select:focus,
.fallback-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.fallback-form textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; }
.submit-btn {
  width: 100%;
  margin-top: 6px;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: #a52a2a; }
.submit-btn:disabled { opacity: 0.65; cursor: wait; transform: none; }

/* Travel dates — range calendar (attaches to whichever "Travel Dates"
   text field is actually on the page — fallback form or WPForms).
   Everything below is scoped under .contact-form-box: WPForms ships a
   defensive reset (div.wpforms-container-full * { position:static;
   background:none; border-radius:0; width:auto; padding:0; box-shadow:
   none; ... }) whose specificity beats a bare single class, which was
   stripping our layout and styling entirely. Scoping under an extra
   ancestor class outweighs it without resorting to !important. */
.contact-form-box .date-range-field-wrap { position: relative; }

/* WPForms also ships `div.wpforms-container-full input[type="text"]`
   (specificity 0,2,2) which ties the rule above on class-count and then
   wins on element-count, stripping the background-image entirely. This
   duplicate, more specific selector pushes past it. */
.contact-form-box .date-range-field,
.contact-form-box .wpforms-form input.date-range-field,
.contact-form-box .fallback-form input.date-range-field {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}

.contact-form-box .date-range-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 14px);
  left: 0;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 24px 48px rgba(10,24,16,0.22);
  padding: 22px;
  width: min(340px, 90vw);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.contact-form-box .date-range-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.contact-form-box .date-range-panel::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 24px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-left: 1px solid rgba(0,0,0,0.06);
  border-top: 1px solid rgba(0,0,0,0.06);
  transform: rotate(45deg);
}

.contact-form-box .date-range-panel-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.contact-form-box .date-range-nav-btn {
  border: none;
  background: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--green);
  font-size: 1.2rem;
  line-height: 1;
  transition: background var(--ease), color var(--ease);
}
.contact-form-box .date-range-nav-btn:hover:not(:disabled) {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
}
.contact-form-box .date-range-nav-btn:disabled { opacity: 0.25; cursor: default; }

.contact-form-box .date-range-panel-months {
  display: flex;
  gap: 28px;
}
.contact-form-box .date-range-month { flex: 1; min-width: 0; }
.contact-form-box .date-range-month-title {
  text-align: center;
  font-family: var(--font-h);
  font-weight: 600;
  color: var(--green);
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.contact-form-box .date-range-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.contact-form-box .date-range-dow {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  padding-bottom: 8px;
}
.contact-form-box .date-range-pad { visibility: hidden; }
.contact-form-box .date-range-day {
  border: none;
  background: none;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-b);
  font-size: 0.85rem;
  color: var(--charcoal);
  cursor: pointer;
  position: relative;
  transition: background var(--ease), color var(--ease);
}
.contact-form-box .date-range-day:hover:not(.is-disabled):not(.is-start):not(.is-end) {
  background: rgba(201, 168, 76, 0.18);
}
.contact-form-box .date-range-day.is-disabled { color: #d8d8d8; cursor: default; }
.contact-form-box .date-range-day.is-today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
}
.contact-form-box .date-range-day.is-today.is-start::after,
.contact-form-box .date-range-day.is-today.is-end::after { background: var(--white); }
.contact-form-box .date-range-day.is-in-range { background: rgba(201, 168, 76, 0.15); border-radius: 3px; }
.contact-form-box .date-range-day.is-start,
.contact-form-box .date-range-day.is-end {
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(26, 61, 43, 0.35);
}

.contact-form-box .date-range-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px -22px -22px;
  padding: 14px 22px;
  background: var(--offwhite);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-radius: 0 0 10px 10px;
}
.contact-form-box .date-range-hint { font-size: 0.78rem; color: var(--grey); }
.contact-form-box .date-range-panel-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.contact-form-box .date-range-clear {
  background: none;
  border: none;
  font-family: var(--font-b);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey);
  text-decoration: underline;
  cursor: pointer;
}
.contact-form-box .date-range-clear:hover { color: var(--charcoal); }

/* WPForms' reset also strips background/border-radius/letter-spacing/
   text-transform from the generic .btn/.btn-green classes at this
   specificity, so the Apply button is redeclared in full here rather
   than relying on those shared classes surviving the cascade. */
.contact-form-box .date-range-panel-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r);
  font-family: var(--font-b);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid var(--green);
  background: var(--green);
  color: var(--white);
  transition: background var(--ease), transform var(--ease);
}
.contact-form-box .date-range-panel-actions .btn:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.ameya-footer {
  background: var(--green-dark);
  padding: 48px 0 28px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-logo .logo-main {
  font-family: var(--font-h);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}
.footer-logo .logo-sub {
  font-family: var(--font-b);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.footer-logo-img {
  max-height: 92px;
  width: auto;
}

.footer-tagline {
  font-family: var(--font-h);
  font-style: italic;
  color: rgba(255,255,255,0.55);
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.footer-social-link:hover {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.footer-contact a { color: var(--gold); }
.footer-contact a:hover { color: var(--gold-light); }

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 16px 0 0;
}

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .destinations-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .dest-card { min-height: 360px; }

  .packages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .ameya-nav .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 24, 16, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 32px 24px 40px;
    gap: 28px;
  }
  .ameya-nav .nav-links.open { display: flex; }
  .ameya-nav .nav-toggle,
  .ameya-nav .nav-toggle.open { display: flex; }

  /* Keep the top bar solid and seamless with the open dropdown below it,
     instead of staying in its semi-transparent un-scrolled state. */
  .ameya-nav:has(.nav-links.open) {
    background: rgba(10, 24, 16, 0.98);
  }
  .ameya-nav:has(.nav-links.open)::before {
    opacity: 0;
  }

  .nav-links a { font-size: 1rem; }
  .nav-links a.nav-cta { padding: 12px 28px; font-size: 0.9rem; }

  .hero-content h1 { font-size: clamp(2.2rem, 9vw, 3rem); }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row { grid-template-columns: 1fr; }

  .contact-form-box .date-range-panel { width: min(340px, 92vw); padding: 16px; }
  .contact-form-box .date-range-panel-months { flex-direction: column; gap: 20px; }
  /* `flex: 1` sizes along the main axis, which is now vertical — it would
     collapse each month's height to 0 and leave the panel empty. */
  .contact-form-box .date-range-month { flex: 0 0 auto; }
  .contact-form-box .date-range-panel-footer { flex-direction: column; align-items: stretch; gap: 12px; margin: 16px -16px -16px; padding: 14px 16px; }
  .contact-form-box .date-range-panel-actions { justify-content: space-between; }

  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

@media (max-width: 400px) {
  .courses-grid { grid-template-columns: 1fr; }
}
