/* =========================
   Base / Theme
   ========================= */
:root{
  --teal:#0F766E;       /* primary */
  --white:#FDFEFE;      /* soft white */
  --coral:#FF6F61;      /* accent */
  --ink:#111827;        /* text */
  --muted:#6b7280;      /* secondary text */
  --bg:#f9fafb;         /* page bg */
  --panel:#ffffff;      /* card/header bg */
  --panel-shadow:0 1px 5px rgba(0,0,0,.1);
}

* { box-sizing: border-box; }
* { -webkit-tap-highlight-color: rgba(0,0,0,0.05); }

body.body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

/* Utility */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.stack-gap { margin-top: 1.5rem; }

/* =========================
   Header / Nav
   ========================= */
.header {
  background: var(--panel);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative; /* allows mobile nav to position absolutely */
}

.header-lang-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px; /* space between buttons */
}

.header-lang-wrapper .lang-button {
  background: #ffffff;
  color: #0F766E;
  border: 2px solid #ffffff;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.header-lang-wrapper .lang-button[aria-pressed="true"],
.header-lang-wrapper .lang-button:hover {
  background: #0F766E;
  color: #ffffff;
  border-color: #ffffff;
}


.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Smaller logo + company name */
.logo-image {
  width: 56px;   /* reduced */
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
}
.logo {
  font-size: 1rem;    /* reduced */
  font-weight: 600;
}


/* Hamburger visible on mobile-first, hidden >=768px */
.hamburger {
  background: none;
  border: none;
  display: block;
  padding: .25rem;
  min-height: 44px;
  z-index: 70;
  /* ensures clickability */
}
.hamburger-icon {
  width: 28px;
  height: 28px;
  color: #4b5563;
  stroke: currentColor;
  stroke-width: 2;
}

/* Drawer-style nav (mobile-first) */
.nav {
  display: none;
  position: absolute;
  right: 1rem;
  top: calc(100% + .5rem);
  flex-direction: column;
  background: var(--panel);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: .75rem;
  width: min(92vw, 320px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  z-index: 60;
  padding: .25rem;
}
.nav.show { display: flex; }

.nav-link {
  display: block;
  padding: .9rem 1rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid #eee;
  min-height: 44px;
}
.nav-link:last-child { border-bottom: 0; }
.nav-link:hover { color: var(--teal); }

/* =========================
   Language Buttons
   ========================= */
.lang-select-wrapper {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

/* Smaller translation buttons */
.lang-button {
  background: var(--white);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--teal);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  min-height: 36px;
}
.lang-button:hover { background-color: #f3f4f6; }
.lang-button[aria-pressed="true"] {
  background: var(--teal);
  color: var(--white);
}
.lang-button:active { transform: translateY(1px); }

.gt-brand {
  font-size: .8rem;
  color: var(--muted);
}


/* Smaller Google Translate dropdown */
.goog-te-combo {
  font-size: 12px !important;
  padding: 0.25rem 0.4rem !important;
  border-radius: 0.25rem !important;
  border: 1px solid #d1d5db !important;
  background-color: #fff !important;
  color: #1f2937 !important;
}

/* =========================
   Main / Hero / Cards
   ========================= */
.main {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
}

.hero {
  background-color: var(--teal);
  color: var(--white);
  padding: 4rem 1rem;
  border-radius: 1rem;
  margin-bottom: 3rem;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* UPDATED: fluid typography for hero */
.hero-title {
  font-size: clamp(1.5rem, 6vw, 2.25rem); /* ~24px → 36px */
  font-weight: 800;
  margin: 0 0 .5rem 0;
  line-height: 1.2; /* added for readability */
}
.hero-subtitle {
  font-size: clamp(1rem, 3.5vw, 1.0625rem); /* fluid */
  margin: 0.25rem 0 1rem 0;
}

/* NEW: hero badge for schedule page */
.hero-badge{
  background: radial-gradient(1200px 400px at 10% -10%, rgba(0,128,128,.18), transparent),
              linear-gradient(180deg, #ffffff, #f6fbfb);
  border-radius: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.06);
  margin: 1.25rem auto; padding: clamp(1.5rem, 3vw, 2.5rem);
}
.hero-badge .hero-wrap{
  max-width: 64rem; margin: 0 auto; text-align: center;
  display: grid; gap: 1rem; justify-items: center;
}
.hero-badge .hero-badge-icon{
  width: 72px; height: 72px; color: var(--teal);
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,128,128,.08); border: 2px solid rgba(0,128,128,.18);
  border-radius: 16px;
}
.hero-badge .cal{ width: 44px; height: 44px; }
.hero-badge .hero-title{
  font-family: 'Arial Black','Arial Narrow',Arial,sans-serif;
  font-weight: 800; font-style: italic; line-height: 1.1;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: .25rem 0;
  color: var(--ink);
}
.hero-badge .hero-title em{ color: var(--teal); font-style: normal; text-decoration: underline; text-decoration-thickness: 0.12em; }
.hero-badge .hero-subtitle{
  max-width: 50ch; color:#374151; font-size: 1rem; margin: 0 auto .5rem;
}
/* CTA button for schedule page */
.hero-badge .cta-button{
  background: var(--teal);
  color: var(--white);
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.hero-badge .cta-button:hover,
.hero-badge .cta-button:focus-visible{
  background: #007373;         /* slightly darker teal */
  color: var(--white);
  border-color: #006968;        /* subtle ring */
  box-shadow: 0 6px 18px rgba(0,128,128,.35);
  transform: translateY(-1px);
  text-decoration: none;
}

.cta-button {
  background: var(--white);
  color: var(--teal);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-block;
}
.cta-button:hover { background-color: #f3f4f6; }

.hero-image img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

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

.service-card {
  background: var(--panel);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--panel-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.service-card h3 {
  font-size: 1.375rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  width: 85%;
  color: var(--teal);
  line-height: 1.3;
  position: relative;
}

.service-card h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--teal);
  margin-top: 0.75rem;
  border-radius: 2px;
}

.service-card p {
  font-size: 1rem;
  color: var(--muted);
  margin: .5rem 0;
  width: 85%;
  line-height: 1.6;
}

/* About page cards same style as service cards */
.about-card {
  background: #f9fafb; /* same as var(--bg) for the gray look */
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--panel-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/* two side-by-side centered cards */
.services.two-locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
}

.card-note { margin: .75rem 0 1rem 0; color: #374151; }
.card-links { margin-top: .75rem; }

/* =========================
   Footer
   ========================= */
/* Footer */
.footer {
  background: var(--panel);
  box-shadow: var(--panel-shadow);
  border-top: 1px solid #e5e7eb;
  margin-top: 2rem;
  color: var(--ink);
}

.footer a { color: var(--teal); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef2f7;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 0.95rem;
}
.logo-mini {
  width: 40px; height: 40px; object-fit: contain;
  border-radius: .5rem; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.footer-contact {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: 0.95rem;
}

.footer-legal {
  padding: 1rem 0;
  display: grid;
  gap: .75rem;
}

.cms-disclaimer {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: .75rem .9rem;
  border-radius: .5rem;
  font-size: .95rem;
  line-height: 1.5;
}

.policy {
  border: 1px solid #e5e7eb;
  border-radius: .6rem;
  background: #fff;
  overflow: hidden;
}
.policy + .policy { margin-top: .5rem; }

.policy > summary {
  list-style: none;
  cursor: pointer;
  padding: .8rem .95rem;
  display: flex; align-items: center; gap: .6rem;
  font-weight: 600;
}
.policy > summary::-webkit-details-marker { display: none; }

.summary-icon { font-size: 1.1rem; }
.summary-meta {
  margin-left: auto; font-weight: 500; color: var(--muted); font-size: .9rem;
}

.policy-content {
  padding: .9rem .95rem 1rem;
  display: grid; gap: .5rem;
  max-height: 320px; /* keeps footer compact */
  overflow: auto;    /* scroll long policy text inside */
}
.policy-content h4 { margin: .2rem 0; font-size: 1rem; }
.policy-content p, .policy-content li { font-size: .95rem; color: #374151; }

.footer-bottom {
  padding-top: .75rem;
  border-top: 1px dashed #e5e7eb;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .95rem;
}
.footer-bottom .mini-link { font-size: .95rem; }
.footer-bottom .dot { opacity: .6; }

@media (max-width: 640px) {
  .footer-top { flex-direction: column; align-items: flex-start; }
  .summary-meta { display: none; } /* keep summary compact on phones */
  .footer-contact { gap: .6rem; }
}

.mobile-only { display: block; }

/* Teal hero background, rounded, shadow, spacing
   (replaces: bg-teal-700 text-white py-20 rounded-lg shadow-lg mb-12) */
.hero.hero-teal {
  background: var(--teal);
  color: var(--white);
  padding: 5rem 1rem;              /* ~py-20 */
  border-radius: 1rem;             /* rounded-lg */
  box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* shadow-lg */
  margin-bottom: 3rem;             /* mb-12 */
}

/* Inner layout container
   (replaces: max-w-7xl mx-auto px-4 flex flex-col md:flex-row items-center justify-between gap-10 md:gap-16) */
.hero-container {
  max-width: 1200px;               /* ~max-w-7xl */
  margin: 0 auto;                  /* mx-auto */
  padding: 0 1rem;                 /* px-4 */
  display: flex;
  flex-direction: column;          /* flex-col */
  align-items: center;             /* items-center */
  justify-content: space-between;  /* justify-between */
  gap: 2.5rem;                     /* gap-10 */
}

/* Media (image) column */
.hero-media {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Portrait image (replaces: w-full max-w-sm rounded-lg shadow-lg) */
.hero-portrait {
  width: 100%;
  max-width: 28rem;                /* ~max-w-sm */
  border-radius: .75rem;           /* rounded-lg */
  box-shadow: 0 10px 24px rgba(0,0,0,.25); /* shadow-lg */
  object-fit: cover;
}

/* Text column */
.hero-text {
  flex: 1 1 0;
}

/* Larger headline (replaces: text-5xl font-bold leading-tight mb-6) */
.hero.hero-teal .hero-title,
.hero-container .hero-title {
  font-size: clamp(2rem, 5.5vw, 3rem); /* ~text-5xl */
  font-weight: 800;                    /* font-bold */
  line-height: 1.15;                   /* leading-tight-ish */
  margin: 0 0 1.5rem 0;                /* mb-6 */
}

/* Subhead (replaces: text-lg mb-8) */
.hero.hero-teal .hero-subtitle,
.hero-container .hero-subtitle {
  font-size: 1.125rem;                 /* text-lg */
  line-height: 1.7;
  margin: 0 0 2rem 0;                  /* mb-8 */
}

/* Style for updated forms to meet compliance */
.form-legal {
  font-size: 0.85rem;
  color: #555;
  margin-top: 10px;
  text-align: center;
}

.form-legal a {
  color: #0073e6;
  text-decoration: underline;
}


#booking-form iframe {
  min-height: 820px;
  display: block;
}

/* Responsive: switch to row and increase gap at md+ (replaces: md:flex-row md:gap-16) */
@media (min-width: 768px){
  .hero-container {
    flex-direction: row;               /* md:flex-row */
    gap: 4rem;                         /* md:gap-16 */
  }
}

/* =========================
   Responsive
   ========================= */

/* Small phones */
@media (max-width: 479px) {
  /* UPDATED: slightly tighter hero on tiny screens */
  .hero { padding: 2rem 1rem; }
  /* hero-title/subtitle now fluid via clamp() above */
  .cta-button { padding: .65rem 1rem; }
  .services { grid-template-columns: 1fr; }
  .logo-image { width: 48px; height: 48px; }
  .logo { font-size: 0.9rem; }
  .lang-button { font-size: 0.8rem; padding: 0.25rem 0.5rem; }
  .hero-content { gap: 1rem; } /* NEW: reduce gap on tiny phones */
}

/* Large phones / small tablets */
@media (min-width: 480px) and (max-width: 767px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .header-container { flex-wrap: nowrap; }
}

/* Tablets and up */
@media (min-width: 768px) {
  .mobile-only { display: none !important; }
  .hamburger { display: none; }
  .nav {
    display: flex !important;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    width: auto;
    padding: 0;
    flex-direction: row;
  }
  .nav-link {
    border: 0;
    padding: .5rem 1rem;
  }
  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .hero-text, .hero-image { flex: 1; }
  .services { grid-template-columns: repeat(3, 1fr); }
}

/* Keep two-locations single-column on phones + other mobile tweaks */
@media (max-width: 767px) {
  /* Two-row header: brand + burger on row 1, language buttons on row 2 */
  .header-container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand burger"
      "langs langs";
    align-items: center;
    gap: .5rem .75rem;
    padding: .5rem 1rem; /* slightly tighter */
    position: relative;  /* keeps the mobile drawer anchored */
    overflow: visible;   /* NEW: prevent clipping */
  }

  .brand { 
    grid-area: brand; 
    display: flex; 
    align-items: center; 
    gap: .5rem;
    min-width: 0;        /* NEW: allow text truncation */
  }

  /* Tighter, balanced branding on mobile */
  .logo-image { width: 48px; height: 48px; }
  .logo {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(.78rem, 2.9vw, .95rem); /* shrink more on small widths */
    font-weight: 600;
  }

  /* Hamburger pinned to top-right */
  .hamburger { 
    grid-area: burger;
    justify-self: end;
    z-index: 70; /* sits above menu */
    padding: .25rem;
    min-height: 44px; 
  }
  .hamburger-icon { width: 28px; height: 28px; }

  /* Language buttons centered on their own row */
  .lang-select-wrapper {
    grid-area: langs;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: .25rem;
  }
  .lang-button {
    font-size: .85rem;
    padding: .3rem .6rem;
    min-height: 36px;
  }

  /* Mobile drawer placement & style */
  .nav {
    display: none;
    position: absolute;
    right: 1rem;
    top: calc(100% + .5rem);  /* appears just under header */
    flex-direction: column;
    background: var(--panel, #fff);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: .75rem;
    width: min(92vw, 320px);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    z-index: 999; /* NEW: ensure above content */
    padding: .25rem;
  }
  .nav.show { display: flex; }

  /* Make each target comfy to tap (you can add more styles) */
  .nav-link { }
  
  /* NEW: force Locations section to stack on mobile */
  .services.two-locations {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  /* NEW: let card text use full width on phones */
  .service-card h3,
  .service-card p {
    width: 100%;
  }

  /* NEW: full-width CTA on phones */
  .cta-button {
    width: 100%;
    text-align: center;
  }
}

/* Desktop/Tablet: return CTA to intrinsic width */
@media (min-width: 768px) {
  .cta-button { width: auto; }
}
