/* === Theme Tokens === */
:root {
  --emerald: #19643b;
  --emerald-dark: #059669;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #fff;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

/* === Resets & Base === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* === START: NEW BANNER STYLES === */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-color: var(--emerald-dark);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: center;
  position: relative;
}

.promo-banner p {
  margin: 0;
  font-weight: 600;
}

.promo-banner button {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.5rem;
  position: absolute;
  right: 1rem;
}
/* === END: NEW BANNER STYLES === */


/* === Header & Nav === */
.site-header { position: sticky; top: 0; background: var(--white); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06); z-index: 20; }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 0.75rem 1rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 900; font-size: 1rem; letter-spacing: .01em; white-space: nowrap; justify-self: center; }
.brand-logo { height: 30px; width: auto; }
.nav-desktop { display: none; }
.header-cta { font-size: 0.8rem; padding: 0.6rem 0.8rem; justify-self: end; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}
.hamburger { display: inline-flex; flex-direction: column; gap: 4px; background: transparent; border: 0; cursor: pointer; padding: .5rem; border-radius: .5rem; flex-shrink: 0; justify-self: start; }
.hamburger:focus-visible { outline: 2px solid var(--emerald); }
.hamburger span { width: 22px; height: 2px; background: var(--ink); display: block; transition: transform .2s ease; }

.nav-mobile { background: var(--white); border-top: 1px solid var(--border); display: none; gap: .25rem; padding: .5rem 1rem 1rem; }
.nav-mobile.open { display: grid; }
.mobile-link { display: block; padding: .9rem .75rem; border-radius: .5rem; color: var(--ink-2); }
.mobile-link:hover { background: #f3f4f6; }

/* --- Active Nav Link Styling --- */
.nav-desktop a.active {
  color: var(--ink);
  font-weight: 700;
}
.mobile-link.active {
  background-color: var(--bg);
  color: var(--emerald-dark);
  font-weight: 700;
}

/* === Buttons & Utilities === */
.btn-primary, .btn-secondary, .btn-contrast {
  display: inline-block; padding: .75rem 1.1rem; border-radius: .75rem;
  font-weight: 700; line-height: 1; transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); white-space: nowrap;
}
.btn-primary { background: var(--emerald); color: var(--white); }
.btn-primary:hover { background: var(--emerald-dark); }
.btn-secondary { background: var(--ink); color: var(--white); }
.btn-secondary:hover { background: #0b1220; }
.btn-contrast { background: var(--white); color: var(--ink); border: 2px solid var(--emerald); }
.btn-contrast:hover { background: #ecfdf5; }
.btn-primary:active, .btn-secondary:active, .btn-contrast:active { transform: translateY(1px); }

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}
.back-link:hover {
  color: var(--emerald);
  text-decoration: underline;
}

.block { display: block; text-align: center; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.center-row { justify-content: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.link-cta { color: var(--emerald); font-weight: 600; }
.link-cta:hover { text-decoration: underline; }

.kicker { color: var(--emerald); font-weight: 700; letter-spacing: .04em; font-size: .85rem; text-transform: uppercase; }
.h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.25rem); font-weight: 800; margin: .5rem 0 1rem; }
.h3 { font-size: 1.5rem; font-weight: 800; margin: .25rem 0 .5rem; }
.muted { color: var(--muted); }
.muted-light { color: #d1d5db; }
.fineprint { 
  color: var(--muted); 
  font-size: .875rem; 
  font-weight: 500;
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
}
.quote-attrib { font-weight: 700; margin-top: .5rem; }

.section { padding: clamp(2.5rem, 4vw, 6rem) 0; background: var(--white); }
section[id] {
  scroll-margin-top: 70px; /* Offset for sticky header on mobile */
}
.section-alt { background: #f3f4f6; }
.center { text-align: center; }
.maxw { max-width: 42rem; margin: 0 auto; }
.narrow { max-width: 40rem; margin: 0 auto; }
.section.pt-0 { padding-top: 0; }
.section.pb-0 { padding-bottom: 0; }

/* === HERO with Background Video === */
.hero { position: relative; min-height: 70vh; display: grid; align-items: center; overflow: hidden; }
.hero-background-video {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 1; }
.hero-inner { position: relative; z-index: 2; padding: 3rem 1.5rem; }
.hero-title { font-size: clamp(2rem, 6vw, 3.75rem); font-weight: 900; letter-spacing: -.01em; margin: 0 0 .75rem; color: #fff; }
.hero-subtitle { font-size: clamp(1rem, 2.2vw, 1.25rem); color: #e5e7eb; margin: 0 0 1rem; }

/* === Cards & Grids === */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem; box-shadow: var(--shadow); }
.card-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 .25rem; }
.card.wide { max-width: 48rem; margin: 0 auto; }

.grid-2 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.align-center { align-items: center; }

.img-rounded { border-radius: 1rem; }
.shadow { box-shadow: var(--shadow); }
.spacey > * + * { margin-top: 1rem; }

/* === Pricing Cards === */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  text-align: left;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 900;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-card .price-container { min-height: 90px; }

.pricing-card .unit {
  color: var(--muted);
  font-weight: 600;
  font-size: 1.15rem;
}

.pricing-card .features { padding-left: 1rem; margin: .5rem 0; color: var(--ink-2); }
.pricing-card .features li { margin: .25rem 0; }
.pricing-card .block { margin-top: auto; }

.pricing-card.featured { background: var(--ink); color: var(--white); border-color: #0f172a; transform: scale(1.02); }
.pricing-card.featured .badge { position: absolute; top: -10px; right: 16px; background: var(--emerald); color: var(--white);
  font-size: .7rem; font-weight: 800; padding: .25rem .5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.pricing-card.featured .features.light { color: #e5e7eb; }
.pricing-card .price.accent { color: #6ee7b7; }

.price-prefix {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: -0.25rem;
}

.pricing-card.featured .price-prefix {
  color: #9ca3af;
}


/* === Corporate CTA Card === */
.corporate-cta-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem 2rem;
  margin: 5rem auto 0 auto;
  max-width: 60rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.corporate-cta-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* === FAQ === */
.faq-category-title { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-top: 3rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); }
.faq-category-title:first-of-type { margin-top: 0; }
.faq-item { background: var(--bg); border: 1px solid var(--border); padding: .75rem 1rem; border-radius: .75rem; }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; /* Hide default marker */ display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; } /* Hide marker for Chrome/Safari */
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--emerald); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { color: var(--muted); padding-top: .5rem; }

/* === Forms === */
.form { display: grid; gap: 1rem; }
.form-grid { display: grid; gap: .75rem; grid-template-columns: 1fr; }
.form input, .form textarea, .form select { 
  width: 100%; 
  padding: .75rem .9rem; 
  border: 1px solid var(--border); 
  border-radius: .75rem; 
  font: inherit; 
  background: var(--white); 
  color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { 
  outline: 2px solid #a7f3d0; 
  border-color: #a7f3d0; 
}
.form select {
  color: var(--muted);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25em;
  padding-right: 2.5rem;
}
.form select.has-value {
  color: var(--ink);
}


/* === Map Embed === */
.map-embed { border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow); }
.map-embed.tall iframe { height: 420px; }

/* === Footer === */
.footer { background: var(--white); border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 2rem 1.25rem; grid-template-columns: 1fr; padding: clamp(2.5rem, 5vw, 4rem) 1.5rem; }
.footer-title { font-weight: 800; margin: 0 0 .5rem; }
.footer-brand { font-weight: 900; font-size: 1.35rem; display: inline-block; margin-bottom: .5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1rem; }
.footer-links a, .footer-link { color: var(--muted); font-weight: 500; text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover, .footer-link:hover { color: var(--emerald); text-decoration: underline; }
.footer-cta { display: none; }
.copyright { text-align: center; color: var(--muted); border-top: 1px solid var(--border); padding: 1rem 0; }

/* === Sticky Book Bar === */
.has-sticky-bar { padding-bottom: 72px; }
.sticky-book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; background: var(--white);
  border-top: 1px solid var(--border); padding: 12px env(safe-area-inset-right) 12px env(safe-area-inset-left);
  box-shadow: 0 -6px 14px rgba(0, 0, 0, 0.06); display: flex; justify-content: center; z-index: 50;
}
.sticky-book-btn { display: inline-block; width: min(640px, 92%); text-align: center; background: var(--emerald); color: #fff; font-weight: 800; padding: 14px 18px; border-radius: 14px; }
.sticky-book-btn:hover { background: var(--emerald-dark); }

/* === Page-Specific Components & Fixes === */
.feature-list { 
  margin-top: 1.5rem; 
  display: grid; 
  gap: 1rem; 
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.05rem;
  color: var(--ink-2);
}

.feature-item > strong {
  flex-shrink: 0;
}

.feature-item::before {
  content: '✓';
  color: var(--emerald);
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 0.125em; /* Adjust checkmark alignment */
}

.improved-intro { gap: 4rem; }
.intro-image-wrapper img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.feature-card { text-align: center; padding: 1rem; }
.feature-icon { width: 40px; height: 40px; color: var(--emerald); margin: 0 auto 1rem; }

.faq-condensed { display: grid; gap: .75rem; margin-top: 2rem; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.social-link:hover {
  color: var(--ink);
}
.social-icon {
  width: 24px;
  height: 24px;
}

.feature-grid { gap: 4rem; }
.checklist { list-style: none; padding-left: 0; margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.checklist li { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; color: var(--ink-2); }
.checklist li::before { content: '✓'; color: var(--emerald); font-weight: 700; font-size: 1.25rem; }
.checklist.right { justify-content: flex-end; }
.checklist.right li { flex-direction: row-reverse; }

.gallery-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 50%;
  gap: 1rem;
  margin-top: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar {
  display: none;
}
.gallery-scroll .gallery-item {
  scroll-snap-align: center;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-scroll .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.choice-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.choice-block {
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background-color: var(--white);
  cursor: pointer;
}
.choice-icon {
  width: 48px;
  height: 48px;
  color: var(--emerald);
  margin-bottom: 1rem;
}
.membership-choice .choice-icon {
  color: var(--white);
}
.choice-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}
.choice-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.membership-choice {
  background-color: var(--ink);
  color: var(--white);
  border: none;
}
.choice-block.active {
  transform: scale(1.05);
  z-index: 5;
}
.choice-block.inactive {
  transform: scale(0.95);
  opacity: 0.8;
}

.table-wrapper {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow-x: auto;
  box-shadow: var(--shadow);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  table-layout: fixed;
}
.comparison-table th, .comparison-table td {
  padding: 1rem;
}
.comparison-table th:first-child,
.comparison-table td:first-child {
  width: 34%;
}
.comparison-table thead {
  background-color: var(--bg);
}
.comparison-table th {
  font-weight: 700;
  color: var(--ink);
}
.comparison-table tbody tr:nth-child(even) {
  background-color: var(--bg);
}
.comparison-table tbody td {
  color: var(--muted);
}
.comparison-table tbody td:first-child,
.comparison-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-2);
}
.icon-cell svg {
  width: 20px;
  height: 20px;
  margin: 0 auto;
}
.icon-cell.yes svg {
  color: var(--emerald);
}
.icon-cell.no svg {
  color: #ef4444;
}

.contact-layout {
  gap: 3rem;
}
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.contact-icon {
  width: 36px;
  height: 36px;
  color: var(--emerald);
  margin-bottom: 0.5rem;
}

.job-posting-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.job-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.job-salary {
  background-color: #ecfdf5;
  color: var(--emerald-dark);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 600;
}

.prose {
  line-height: 1.7;
}
.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}
.prose a {
  color: var(--emerald);
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background-color: var(--ink);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 100;
  max-width: 900px;
  margin: 0 auto;
}
.cookie-banner.show {
  display: flex;
}
.cookie-text {
  margin: 0;
  font-size: 0.9rem;
}
.cookie-text a {
  color: var(--emerald);
  font-weight: 600;
  text-decoration: underline;
}
.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* === Responsive Rules === */
@media (max-width: 767px) {
  /* --- Mobile Table Fix --- */
  .table-wrapper {
    border: none;
    box-shadow: none;
    overflow-x: hidden;
  }
  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table th,
  .comparison-table td,
  .comparison-table tr {
    display: block;
  }
  .comparison-table thead {
    display: none;
  }
  .comparison-table tr {
    border: 1px solid var(--border);
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    background: var(--white);
  }
  .comparison-table tr:last-child {
    margin-bottom: 0;
  }
  .comparison-table td {
    padding-left: 50%;
    position: relative;
    text-align: right;
    border-bottom: 1px solid var(--border);
  }
  .comparison-table td:last-child {
    border-bottom: none;
  }
  .comparison-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: 700;
    color: var(--ink);
  }
  .comparison-table th[scope="row"] {
     background-color: var(--bg);
     padding: 1rem;
     font-size: 1.2rem;
     border-bottom: 1px solid var(--border);
     border-top-left-radius: 1rem;
     border-top-right-radius: 1rem;
  }
  .comparison-table td.icon-cell svg {
    margin: 0 0 0 auto;
  }
}

@media (max-width: 639px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-item {
    flex-wrap: wrap;
  }
  .feature-item > span {
    width: 100%;
    padding-left: calc(1.25em + 0.75rem);
  }
  
  .promo-banner {
    padding-right: 3rem; /* Make space for the close button */
  }
  .promo-banner p {
    font-size: 0.9rem;
  }
}

@media (min-width: 640px) { 
  .grid-4 { grid-template-columns: repeat(4, 1fr); } 
  .form-grid { grid-template-columns: 1fr 1fr; }
  .choice-container { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  section[id] {
    scroll-margin-top: 96px; /* Offset for sticky header on desktop */
  }
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    padding: 1rem;
  }
  .brand {
    font-size: 1.5rem;
    gap: 0.75rem;
    justify-self: start;
  }
  .brand-logo {
    height: 40px;
  }
  .hamburger {
    display: none;
  }
  .nav-desktop {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
  .nav-mobile {
    display: none !important;
  }
  .header-cta {
    display: inline-block;
    font-size: 0.9rem;
    padding: 0.75rem 1.1rem;
  }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .has-sticky-bar { padding-bottom: 0; } 
  .sticky-book-bar { display: none; }
  .gallery-scroll { grid-auto-columns: 30%; }
  .corporate-cta-card {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .corporate-cta-card .btn-secondary {
     flex-shrink: 0;
  }
  
  .job-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .job-salary {
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .contact-info-grid.improved {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* === Events Page Hero Styles === */

.hero-events {
  position: relative;
  min-height: 60vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  /* The background-image is handled by the <img> tag in the HTML now */
}

.hero-events .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.hero-events .hero-inner {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem;
}

@media (min-width: 768px) {
    .hero-events {
        min-height: 550px;
    }
}