/* Custom styles layered on top of Tailwind (loaded via CDN). */

/* Brand tokens mirrored from the marketing site (index.html :root). */
:root {
  --forest: #17646b;    /* deep teal - primary brand */
  --deep: #0e474d;      /* darker teal (hovers) */
  --sage: #6fa890;      /* soft green - leaves & borders */
  --mint: #cfe6d6;
  --mint-soft: #e7f2ea;
  --cream: #f6f3ea;
  --paper: #fbf9f2;
  --gold: #c9a25e;
  --ink: #20302b;
  --brand: var(--forest);
}

html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }

/* Smooth, native-feeling tap states on mobile */
button, a { touch-action: manipulation; }

/* Selected-slot emphasis used by booking.js (uses Tailwind ! overrides too) */
.slot-btn { transition: border-color .15s, background-color .15s; }

/* Slimmer scrollbars for table overflow on desktop */
.overflow-x-auto::-webkit-scrollbar { height: 6px; }
.overflow-x-auto::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }

/* Respect iOS safe areas */
@supports (padding: max(0px)) {
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* ── Brand header (mirrors the marketing site's header/logo/nav) ───────────── */
.site-header { position: relative; background: var(--paper); border-bottom: 1px solid rgba(111,168,144,0.28); }
.site-header-inner {
  max-width: 1140px; margin: 0 auto; padding: 14px 20px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand { display: inline-flex; flex-shrink: 0; }
.brand-logo {
  width: 132px; max-width: 42vw; height: auto; display: block;
  background: #fff;
  border: 1px solid rgba(111,168,144,0.35);
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: 0 14px 32px -22px rgba(23,100,107,0.45);
}

/* ── Main menu ── */
.nav { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav a {
  position: relative;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--forest); text-decoration: none; padding: 6px 0;
  white-space: nowrap;   /* labels must never break mid-phrase */
  transition: color .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover { color: var(--deep); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nav-cta {
  background: var(--forest); color: var(--cream);
  padding: 10px 20px; border-radius: 999px;
  transition: background .2s, transform .2s;
}
.nav a.nav-cta::after { display: none; }
.nav a.nav-cta:hover { background: var(--deep); color: var(--cream); transform: translateY(-2px); }

/* ── Account cluster ──────────────────────────────────────────────────────
   These are session actions, not site navigation, so they drop the menu's
   underline treatment and sit behind a divider as self-contained controls. */
.nav-account {
  display: flex; align-items: center; gap: 10px;
  padding-left: 22px; border-left: 1px solid rgba(111,168,144,0.4);
}
.nav-account a::after { display: none; }   /* no menu underline in here */

/* Signed-in identity: a chip with an initial avatar. */
.nav a.account-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 13px 4px 4px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(111,168,144,0.4);
  font-size: 0.84rem; color: var(--forest); max-width: 190px;
  transition: background .2s, border-color .2s;
}
.nav a.account-chip:hover { background: var(--mint-soft); border-color: var(--sage); }
.account-avatar {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--forest); color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; line-height: 1;
}
.account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Log in / log out: quiet, icon-led - reads as an action, not a destination. */
.nav a.account-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 10px;
  font-size: 0.82rem; font-weight: 600; color: #6f7d77;
  transition: background .2s, color .2s;
}
.nav a.account-action:hover { background: rgba(201,162,94,0.16); color: var(--deep); }
.account-action svg { width: 15px; height: 15px; flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: #fff; border: 1px solid rgba(111,168,144,0.35); border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--forest);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* This menu carries the site links AND the account cluster, so it needs roughly
   900px to lay out. Below that the items used to wrap mid-label; hand over to the
   hamburger well before the squeeze rather than at the exact point it breaks. */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; right: 20px; left: 20px; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border: 1px solid rgba(111,168,144,0.35); border-radius: 16px;
    padding: 12px; box-shadow: 0 22px 48px -26px rgba(23,100,107,0.55);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 12px; }
  .nav a::after { display: none; }
  .nav a:hover, .nav a[aria-current="page"] { background: var(--mint-soft); }
  .nav a.nav-cta { text-align: center; margin-top: 6px; justify-content: center; }
  .nav a.nav-cta:hover { background: var(--deep); transform: none; }

  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  /* Divider moves from the side to above the cluster when the menu stacks. */
  .nav-account {
    flex-direction: column; align-items: stretch; gap: 4px;
    padding-left: 0; padding-top: 10px; margin-top: 8px;
    border-left: 0; border-top: 1px solid rgba(111,168,144,0.4);
  }
  .nav a.account-chip { max-width: none; padding: 8px 14px 8px 8px; border-radius: 12px; }
  .nav a.account-action { padding: 12px 14px; }
}

/* Headings pick up the site's display face. */
h1, h2.section-title { font-family: 'Fraunces', Georgia, serif; }

/* Print: invoices only */
@media print {
  header, footer, nav { display: none !important; }
}
