/* ==========================================================================
   GENORA — main stylesheet
   Section 1: foundation (tokens, base, buttons, forms, header, footer, banner)
   ========================================================================== */

/* ---- Tokens --------------------------------------------------------------- */
:root {
  /* Brand colours, from the GENORA brand sheet */
  --ink:  #292f3d;
  --teal: #55b1be;

  /* Supporting colours */
  --ink-soft:  #444d5e;   /* secondary text, strong borders */
  --muted:     #5b6476;   /* helper text (5.9:1 on white) */
  --teal-deep: #1f7a89;   /* teal for text and links on light backgrounds (5:1) */
  --teal-tint: #e7f3f5;   /* soft teal panels, hover fills */
  --paper:     #f3f7f8;   /* alternate section background */
  --line:      #dbe4e7;   /* hairlines and card borders */
  --field:     #7f8c94;   /* form control borders (3.4:1) */
  --lamp:      #f6c25b;   /* offers and announcements: the lamp over the desk */
  --danger:    #b3261e;
  --ok:        #1d7a4d;

  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 76px;

  --r-sm: 10px;
  --r-md: 18px;
  --r-pill: 999px;
  --shadow-pop: 0 22px 44px -22px rgba(41, 47, 61, .5);
}

/* ---- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

img, svg { max-width: 100%; }
img { display: block; height: auto; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem); }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; line-height: 1.35; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1em; }

a { color: var(--teal-deep); text-underline-offset: .2em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .7rem 1.1rem; background: var(--ink); color: #fff; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.icon { width: 20px; height: 20px; flex: none; }
.icon--lg { width: 24px; height: 24px; }

/* ---- Type utilities ------------------------------------------------------- */
.t-display { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.t-lead    { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.t-small   { font-size: .875rem; line-height: 1.55; }
.t-muted   { color: var(--muted); }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  font: 600 .9375rem/1.2 var(--font);
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--sm { padding: .6rem 1.15rem; font-size: .875rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }

.btn--primary { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--teal); border-color: var(--teal); color: var(--ink); }

.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* ---- Forms ---------------------------------------------------------------- */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field > label, .field__label { font-weight: 600; font-size: .9rem; }
.field__hint  { color: var(--muted); font-size: .85rem; }
.field__error { color: var(--danger); font-size: .85rem; font-weight: 500; }

.input, .select, .textarea {
  width: 100%;
  padding: .8rem 1rem;
  font: inherit; color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--field); border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-soft); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 4px rgba(85, 177, 190, .35);
}
.input::placeholder, .textarea::placeholder { color: #8a94a3; }
.textarea { min-height: 7.5rem; resize: vertical; }
.select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23292f3d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem;
}
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--danger); }

.check { display: flex; align-items: flex-start; gap: .65rem; font-size: .92rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--ink); flex: none; }

/* ---- Badges --------------------------------------------------------------- */
.badge {
  display: inline-block; padding: .2rem .7rem;
  font-size: .78rem; font-weight: 600; line-height: 1.5;
  background: var(--teal-tint); color: var(--teal-deep);
  border-radius: var(--r-pill);
}
.badge--offer { background: var(--lamp); color: var(--ink); }

/* ---- Announcement banner -------------------------------------------------- */
.announce { background: var(--lamp); color: var(--ink); font-size: .875rem; font-weight: 500; }
.announce__inner { position: relative; padding-block: .6rem; padding-right: calc(var(--gutter) + 2.6rem); }
.announce__text { margin: 0; text-align: center; line-height: 1.45; }
.announce__link { margin-left: .4rem; color: var(--ink); font-weight: 700; text-underline-offset: .2em; white-space: nowrap; }
.announce__link:hover { text-decoration-thickness: 2px; }
.announce__close {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  color: var(--ink); background: transparent; border: 0; border-radius: 50%; cursor: pointer;
}
.announce__close:hover { background: rgba(41, 47, 61, .12); }

/* ---- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); box-shadow: 0 10px 28px -22px rgba(41, 47, 61, .6); }

.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 150px; height: auto; }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

/* Menu toggle (mobile) */
.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  color: var(--ink); background: transparent; border: 0; border-radius: 50%; cursor: pointer;
}
.nav-toggle:hover { background: var(--teal-tint); }
.nav-toggle__close { display: none; }
.site-header.is-open .nav-toggle__open  { display: none; }
.site-header.is-open .nav-toggle__close { display: block; }

/* Mobile navigation panel */
.primary-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto;
  padding: .25rem var(--gutter) 1.75rem;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 30px 40px -30px rgba(41, 47, 61, .5);
}
.site-header.is-open .primary-nav { display: block; }
html.nav-open { overflow: hidden; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item { border-bottom: 1px solid var(--line); }
.nav-link {
  display: block; padding: .95rem 0;
  font-size: 1.05rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav-item.is-current > .nav-link { color: var(--teal-deep); font-weight: 600; }

.has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.sub-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  color: var(--ink); background: transparent; border: 0; border-radius: 50%; cursor: pointer;
}
.sub-toggle .icon { transition: transform .2s ease; }
.has-sub.is-open > .sub-toggle .icon { transform: rotate(180deg); }
.sub-menu { grid-column: 1 / -1; display: none; padding-bottom: .5rem; }
.has-sub.is-open > .sub-menu { display: block; }
.sub-list { list-style: none; margin: 0; padding: 0; }
.sub-link { display: block; padding: .65rem 0 .65rem 1rem; border-left: 3px solid var(--teal-tint); text-decoration: none; color: var(--ink); }
.sub-link:hover { border-left-color: var(--teal); }
.sub-link__title { display: block; font-weight: 600; font-size: .97rem; }
.sub-link__desc  { display: block; font-size: .85rem; color: var(--muted); line-height: 1.45; }

/* Desktop navigation */
@media (min-width: 1100px) {
  .header-inner { min-height: var(--header-h); gap: 1.5rem; }
  .brand img { width: 168px; }

  .nav-toggle { display: none; }

  .primary-nav {
    display: flex; align-items: center; position: static; flex: 1; max-height: none; overflow: visible;
    padding: 0; background: transparent; border: 0; box-shadow: none;
  }
  .nav-list { display: flex; justify-content: flex-start; gap: .1rem; }
  /* Updates and Offers sit on the right as their own group, next to Book Now */
  .nav-list--side { margin-left: auto; padding-left: 1rem; border-left: 1px solid var(--line); align-items: center; }
  .header-actions { margin-left: .25rem; }
  .nav-item { position: relative; display: flex; align-items: center; border: 0; }
  .nav-link { padding: .6rem .7rem; font-size: .9375rem; border-radius: var(--r-pill); }
  .nav-link:hover { background: var(--teal-tint); color: var(--ink); }
  .nav-item.is-current > .nav-link { font-weight: 600; color: var(--ink); }
  .nav-item.is-current > .nav-link::after {
    content: ""; position: absolute; left: 50%; bottom: .1rem;
    width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--teal);
  }

  .has-sub { display: flex; }
  .has-sub > .nav-link { padding-right: .35rem; }
  .sub-toggle { width: 28px; height: 28px; margin-left: -.1rem; }
  .sub-toggle:hover { background: var(--teal-tint); }

  .sub-menu {
    display: block; position: absolute; top: 100%; left: -1rem; width: 380px;
    padding-top: .6rem; padding-bottom: 0;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
  }
  .has-sub:hover > .sub-menu,
  .has-sub:focus-within > .sub-menu,
  .has-sub.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover > .sub-toggle .icon,
  .has-sub:focus-within > .sub-toggle .icon { transform: rotate(180deg); }

  .sub-list {
    padding: .5rem; background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-md); box-shadow: var(--shadow-pop);
  }
  .sub-link { padding: .75rem .9rem; border: 0; border-radius: 12px; }
  .sub-link:hover, .sub-link:focus-visible { background: var(--teal-tint); }
  .sub-link[aria-current="page"] { background: var(--teal-tint); }
}

/* ---- Footer --------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: #dfe5ee; }
.site-footer a:not(.btn) { color: #dfe5ee; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--teal); text-decoration: underline; text-underline-offset: .2em; }

/* The ring from the logo, cropped by the footer's corner */
.footer-ring {
  position: absolute; top: -150px; right: -110px;
  width: 240px; height: 240px; max-width: none; color: var(--teal);
  pointer-events: none;
}

.footer-top { position: relative; padding-block: clamp(3rem, 6vw, 4.5rem) 2.25rem; }
.footer-brand { max-width: 28rem; }
.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { width: 196px; height: auto; }
.footer-tagline { margin: 1.25rem 0 1.5rem; font-size: .97rem; color: #c9d2de; }
.footer-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.footer-grid {
  position: relative; display: grid; gap: 2rem 1.5rem;
  grid-template-columns: repeat(2, 1fr);
  padding-block: 1rem 3rem;
}
.footer-col--visit { grid-column: 1 / -1; }
.footer-heading { margin: 0 0 .9rem; font-size: .95rem; font-weight: 600; letter-spacing: 0; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .94rem; }

.footer-address { font-style: normal; font-size: .94rem; }
.footer-line { display: grid; grid-template-columns: 20px 1fr; gap: .75rem; align-items: start; margin: 0 0 .85rem; }
.footer-line .icon { margin-top: .15rem; color: var(--teal); }
.site-footer a.footer-directions { display: block; margin-top: .25rem; font-weight: 600; color: var(--teal); }

.footer-bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 1.25rem 9rem; }
.footer-bottom__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.5rem; }
.footer-copy { margin: 0; font-size: .85rem; color: #aab4c3; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.footer-social { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.footer-social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%;
}
.site-footer .footer-social a:not(.btn):hover, .site-footer .footer-social a:not(.btn):focus-visible { background: var(--teal); border-color: var(--teal); color: var(--ink); text-decoration: none; }

@media (min-width: 760px) {
  .footer-bottom { padding-bottom: 5rem; }
}

@media (min-width: 700px) {
  .footer-ring { top: -170px; right: -150px; width: 440px; height: 440px; }
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1.7fr; gap: 2rem 2.5rem; }
  .footer-col--visit { grid-column: auto; }
}

/* ---- Floating contact buttons -------------------------------------------- */
.fab-stack { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: flex; flex-direction: column; gap: .65rem; }
.fab {
  display: grid; place-items: center; width: 54px; height: 54px;
  color: #fff; border-radius: 50%; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55);
  transition: transform .15s ease;
}
.fab:hover { color: #fff; transform: scale(1.06); }
.fab--whatsapp { background: #128c7e; }
.fab--call { background: var(--teal); color: var(--ink); }
.fab--call:hover { color: var(--ink); }
@media (min-width: 760px) { .fab--call { display: none; } }

/* ---- Placeholder pages ---------------------------------------------------- */
.stub { padding-block: clamp(4rem, 12vw, 8rem); background: var(--paper); }
.stub__inner { max-width: 40rem; }
.stub__title { margin-bottom: .75rem; }
.stub__note { color: var(--ink-soft); font-size: 1.05rem; }

/* Highlighted menu item (Updates): lamp-amber pill with a soft pulsing dot */
.nav-link--hot { display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start; margin: .6rem 0; padding: .55rem 1rem; background: var(--lamp); color: var(--ink); font-weight: 700; border-radius: var(--r-pill); }
.nav-link--hot:hover { background: var(--ink); color: #fff; }
.nav-dot { position: relative; width: .6rem; height: .6rem; border-radius: 50%; background: var(--ink); flex: none; }
.nav-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); animation: nav-pulse 1.8s ease-out infinite; }
.nav-link--hot:hover .nav-dot, .nav-link--hot:hover .nav-dot::after { background: var(--lamp); }
@keyframes nav-pulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.nav-item.is-current > .nav-link--hot { color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.nav-item.is-current > .nav-link--hot::after { display: none; }
@media (min-width: 1100px) { .nav-link--hot { margin: 0 .25rem; padding: .5rem .95rem; } .nav-link--hot:hover { background: var(--ink); color: #fff; } }
@media (prefers-reduced-motion: reduce) { .nav-dot::after { animation: none !important; display: none; } }

/* ---- Shared page pieces: eyebrow label and closing call to action ---- */
.eyebrow { margin: 0 0 .75rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.eyebrow--deep { color: var(--teal-deep); }

/* ---- Closing call to action ---------------------------------------------- */
.cta { position: relative; overflow: hidden; background: var(--teal); color: var(--ink); padding: 3.5rem 0; }
.cta::before { content: ""; position: absolute; border-radius: 50%; border: 48px solid rgba(255, 255, 255, .22); pointer-events: none; }
.cta::before { width: 420px; height: 420px; right: -150px; top: -170px; }
.cta__inner { position: relative; }
.cta__copy { max-width: 44rem; }
.cta__title { margin: 0 0 1rem; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.cta__lead { margin: 0 0 1.75rem; font-size: 1.1rem; line-height: 1.6; max-width: 48ch; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.cta .btn svg { width: 1.2em; height: 1.2em; flex: none; }
.cta__main { background: var(--ink); border-color: var(--ink); color: #fff; }
.cta__main:hover { background: #fff; border-color: #fff; color: var(--ink); }
.cta__alt { background: transparent; border-color: var(--ink); color: var(--ink); }
.cta__alt:hover { background: var(--ink); color: #fff; }
.cta__hours { margin: 0; font-size: .95rem; line-height: 1.6; font-weight: 600; }
@media (min-width: 900px) { .cta { padding: 5.5rem 0; } }

/* ---- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 1099px) { .nav-list--side { margin-top: .4rem; border-top: 2px solid var(--line); } }
@media (min-width: 1100px) {
  .nav-link { white-space: nowrap; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  .header-inner { gap: .75rem; }
  .nav-link { padding: .6rem .5rem; font-size: .9rem; }
  .nav-list--side { padding-left: .6rem; }
  .nav-link--hot { margin: 0 .1rem; padding: .5rem .75rem; }
  .brand img { width: 140px; }
}
