/* ==========================================================================
   Direction 02 — Gallery
   A multi-page, light, editorial site. Utility bar + dropdown mega-menu,
   separate pages for Care / Gallery / About / Contact, and a real lightbox.
   Motion is deliberately restrained — this is the calm counterpoint.
   ========================================================================== */

.gallery-site { background: var(--paper); color: var(--ink); }

/* Utility bar -------------------------------------------------------------- */

.g-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px var(--gutter);
  background: var(--ink);
  color: rgb(255 255 255 / 76%);
  font-size: 12px;
}

.g-utility a:hover { color: white; }
.g-utility-right { display: flex; gap: 26px; }
.g-utility b { color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 10px; }

/* Header + mega menu -------------------------------------------------------- */

.g-header {
  position: sticky;
  top: 0;
  z-index: 110;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}

.g-header[data-stuck] { box-shadow: 0 12px 40px rgb(6 22 42 / 8%); }

.g-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  width: min(100% - var(--gutter) * 2, 1320px);
  height: 88px;
  margin-inline: auto;
}

.g-nav { display: flex; justify-content: center; gap: clamp(14px, 2vw, 32px); }

.g-nav > li { position: relative; list-style: none; }
.g-nav { margin: 0; padding: 0; }

.g-nav > li > a,
.g-nav > li > button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 32px 2px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: rgb(10 26 44 / 76%);
  transition: color .2s var(--ease);
}

.g-nav > li > a::after,
.g-nav > li > button::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 26px;
  left: 2px;
  height: 1px;
  background: var(--ink);
  transition: right .28s var(--ease);
}

.g-nav a:hover, .g-nav button:hover,
.g-nav > li > a[aria-current="page"] { color: var(--ink); }

.g-nav > li > a:hover::after,
.g-nav > li > button:hover::after,
.g-nav > li > a[aria-current="page"]::after { right: calc(100% - 100% + 2px); right: 2px; }

.g-caret { width: 9px; transition: transform .25s var(--ease); }
.g-nav [aria-expanded="true"] .g-caret { transform: rotate(180deg); }

.g-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 5;
  width: min(92vw, 720px);
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgb(6 22 42 / 14%);
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
}

.g-mega[data-open] { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.g-mega ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 26px; margin: 0; padding: 0; list-style: none; }
.g-mega ul a { display: grid; gap: 3px; padding: 13px 14px; margin-inline: -14px; transition: background .2s var(--ease); }
.g-mega ul a:hover { background: var(--bone); }
.g-mega strong { font-family: var(--serif); font-size: 1.12rem; font-weight: 400; }
.g-mega span { color: var(--muted); font-size: 13px; line-height: 1.45; }

.g-mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.g-mega-foot p { margin: 0; max-width: 34ch; color: var(--muted); font-size: 13px; }

.g-actions { display: flex; align-items: center; gap: 18px; }

.g-toggle { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line-strong); background: none; cursor: pointer; }
.g-toggle span { display: block; width: 18px; height: 1.5px; margin: 2.5px 0; background: currentColor; transition: transform .25s var(--ease); }
.g-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.g-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.g-mobile { position: fixed; inset: 0; z-index: 105; display: grid; align-content: start; gap: 2px; padding: 100px var(--gutter) 28px; background: var(--paper); overflow-y: auto; }
.g-mobile a { padding: 15px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 27px; }
.g-mobile .g-mobile-sub { padding-left: 18px; font-family: var(--sans); font-size: 15px; color: var(--muted); }
.g-mobile .button { margin-top: 24px; }

/* Page hero (no photo — type only) ------------------------------------------ */

.g-page-head { padding: clamp(40px, 5vw, 72px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.g-page-head h1 { max-width: 19ch; margin: 16px 0 0; font-family: var(--serif); font-size: clamp(2.5rem, 4.8vw, 4.15rem); line-height: 1.08; letter-spacing: -.015em; }
.g-page-head p:not(.eyebrow) { max-width: 58ch; margin: 18px 0 0; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.15rem); }

.g-breadcrumb { display: flex; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.g-breadcrumb a:hover { color: var(--ink); }
.g-breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: .5; }

/* Home ---------------------------------------------------------------------- */

.g-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-bottom: 1px solid var(--line); }
.g-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 5.5vw, 82px) clamp(28px, 5vw, 72px); }
.g-hero h1 { max-width: 15ch; margin: 18px 0 0; font-family: var(--serif); font-size: clamp(2.7rem, 4.2vw, 4.15rem); line-height: 1.06; letter-spacing: -.015em; }
.g-hero-copy > p:not(.eyebrow) { max-width: 44ch; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.22rem); }
.g-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.g-hero-media { min-height: 460px; background: url("../assets/dental-clinic.jpg") 62% 46% / 135% no-repeat; }

.g-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.g-strip div { padding: 30px clamp(20px, 3vw, 44px); border-left: 1px solid var(--line); }
.g-strip div:first-child { border-left: 0; padding-left: 0; }
.g-strip .container-pad { padding-left: 0; }
.g-strip b { display: block; color: var(--gold-text); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.g-strip span { display: block; margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.45; }

.g-section { padding: clamp(56px, 7vw, 96px) 0; }
.g-page-head + .g-section { padding-top: clamp(36px, 4vw, 52px); }
.g-section-alt { background: var(--bone); }
.g-section-head { max-width: 620px; margin-bottom: clamp(36px, 4vw, 56px); }
.g-section-head h2 { margin: 14px 0 0; font-family: var(--serif); font-size: clamp(2.1rem, 3.4vw, 3.05rem); line-height: 1.1; letter-spacing: -.012em; }
.g-section-head p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); font-size: 1.05rem; }

.g-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.g-split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.g-split h2 { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -.02em; }
.g-split p:not(.eyebrow) { margin: 18px 0 26px; color: var(--muted); }

.g-index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.g-index li { border-bottom: 1px solid var(--line); }
.g-index a { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 26px 4px; transition: padding-inline .3s var(--ease), background .3s var(--ease); }
.g-index a:hover { padding-inline: 14px 4px; background: var(--bone); }
.g-index em { font-style: normal; color: var(--gold-text); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.g-index h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.85rem); }
.g-index p { margin: 6px 0 0; max-width: 52ch; color: var(--muted); font-size: 15px; }
.g-index .g-index-go { color: var(--gold-text); font-size: 17px; opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.g-index a:hover .g-index-go { opacity: 1; transform: none; }

.g-quote { padding: clamp(56px, 7vw, 96px) 0; background: var(--ink); color: white; --gold-text: var(--gold); }
.g-quote h2, .g-quote blockquote { max-width: 22ch; margin: 0; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 400; line-height: 1.16; letter-spacing: -.012em; }
.g-quote-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 5vw, 80px); align-items: end; }
.g-quote cite { display: grid; gap: 4px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--on-dark-faint); font-size: 14px; font-style: normal; font-weight: 600; }
.g-quote cite span { color: rgb(255 255 255 / 56%); font-weight: 400; }
.g-quote-grid > p { margin: 0; color: var(--on-dark); }
.g-quote-profile { display: grid; gap: 22px; }
.g-quote-profile > p { margin: 0; color: var(--on-dark); }
.g-quote-profile .text-link { justify-self: start; }
.g-doctor-photo { position: relative; margin: 0; overflow: hidden; background: #17283c; }
.g-doctor-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 28%; }
.g-doctor-photo figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 11px;
  background: rgb(10 26 44 / 84%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Care page ----------------------------------------------------------------- */

.g-service { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(38px, 4.5vw, 62px) 0; border-bottom: 1px solid var(--line); }
.g-service:first-of-type { border-top: 1px solid var(--line); }
.g-service > em { font-style: normal; color: var(--gold-text); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.g-service h2 { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; }
.g-service h2 + p { margin: 14px 0 0; color: var(--muted); }
.g-service-detail { color: var(--muted); font-size: 15px; }
.g-service-detail ul { margin: 0; padding: 0; list-style: none; }
.g-service-detail li { position: relative; padding: 7px 0 7px 20px; }
.g-service-detail li::before { content: ""; position: absolute; top: 16px; left: 0; width: 7px; height: 1px; background: var(--gold-text); }

/* Gallery page + lightbox ---------------------------------------------------- */

.g-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.g-filters button { min-height: 44px; padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .2s var(--ease); }
.g-filters button:hover { border-color: var(--ink); color: var(--ink); }
.g-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: white; }

.g-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: row dense; gap: 14px; }

.g-tile { position: relative; margin: 0; overflow: hidden; background: var(--bone); grid-column: span 2; }
.g-tile-wide { grid-column: span 4; }
.g-tile-tall { grid-row: span 2; }
.g-tile.is-hidden { display: none; }

.g-tile button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-tile img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; transition: transform .7s var(--ease-out); }
.g-tile:hover img { transform: scale(1.05); }

.g-grid[data-filtered] .g-tile { grid-column: span 2; grid-row: auto; }
.g-grid[data-filtered] .g-tile button { height: auto; aspect-ratio: 4 / 3; }
.g-grid[data-filtered] .g-tile img { min-height: 0; }

.g-tile figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 34px 18px 16px;
  background: linear-gradient(0deg, rgb(6 22 42 / 82%), transparent);
  color: white;
  font-size: 13px;
  text-align: left;
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.g-tile:hover figcaption, .g-tile button:focus-visible + figcaption { opacity: 1; }
.g-tile figcaption b { font-weight: 600; }
.g-tile figcaption i { font-style: normal; opacity: .7; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; grid-template-rows: auto 1fr auto; background: #061a2a; color: white; }
.lightbox[hidden] { display: none; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(16px, 3vw, 36px); }
.lightbox-count { color: rgb(255 255 255 / 60%); font-size: 12px; font-weight: 600; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.lightbox-stage { position: relative; display: grid; place-items: center; padding: 0 clamp(16px, 6vw, 90px); overflow: hidden; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; animation: lb-in .4s var(--ease-out); }

@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }

.lightbox-caption { padding: 18px clamp(16px, 3vw, 36px) 30px; text-align: center; }
.lightbox-caption b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.lightbox-caption span { display: block; margin-top: 6px; color: rgb(255 255 255 / 58%); font-size: 13px; }

.lightbox-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 50%; background: none; color: white; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease); }
.lightbox-btn:hover { background: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 45%); }
.lightbox-btn svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-prev { position: absolute; top: 50%; left: clamp(8px, 2vw, 26px); transform: translateY(-50%); }
.lightbox-next { position: absolute; top: 50%; right: clamp(8px, 2vw, 26px); transform: translateY(-50%); }

/* Contact page --------------------------------------------------------------- */

.g-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 76px); align-items: start; }
.g-contact-block + .g-contact-block { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--line); }
.g-contact-block h2 { color: var(--gold-text); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.g-contact-block address { margin: 14px 0 0; font-family: var(--serif); font-size: 1.5rem; font-style: normal; line-height: 1.4; }
.g-contact-block .g-links { display: grid; gap: 8px; margin: 14px 0 0; }
.g-contact-block .g-links a { justify-self: start; padding-bottom: 3px; border-bottom: 1px solid var(--line-strong); font-weight: 600; }
.g-contact-block .g-links a:hover { color: var(--gold-text); border-color: var(--gold-text); }
.g-hours-list { margin: 14px 0 0; }
.g-hours-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.g-hours-list > div:last-child { border-bottom: 1px solid var(--line); }
.g-hours-list dt { color: var(--muted); }
.g-hours-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.g-form-card { padding: clamp(28px, 3.4vw, 44px); background: var(--bone); border: 1px solid var(--line); }
.g-form-card h2 { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.g-form-card > p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.g-form-card .form-grid input, .g-form-card .form-grid select, .g-form-card .form-grid textarea { background: var(--paper); }

.g-map { margin-top: clamp(48px, 6vw, 80px); }
.g-map-frame { position: relative; display: grid; place-items: center; aspect-ratio: 21 / 8; background: repeating-linear-gradient(45deg, var(--bone), var(--bone) 12px, #eeece7 12px, #eeece7 24px); border: 1px solid var(--line); }
.g-map-pin { display: grid; justify-items: center; gap: 10px; text-align: center; }
.g-map-pin svg { width: 30px; fill: none; stroke: var(--gold-text); stroke-width: 1.6; }
.g-map-pin b { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.g-map-pin span { color: var(--muted); font-size: 13px; }

/* About page ------------------------------------------------------------------ */

.g-bio { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(36px, 5vw, 76px); align-items: start; }
.g-bio p { margin: 0 0 20px; color: var(--muted); font-size: 1.02rem; }
.g-bio p:first-child { color: var(--ink); font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.35; }
.g-cv { position: sticky; top: 120px; padding: 28px; background: var(--bone); border: 1px solid var(--line); }
.g-cv h2 { color: var(--gold-text); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.g-cv dl { margin: 18px 0 0; }
.g-cv dt { font-weight: 600; font-size: 14px; }
.g-cv dd { margin: 4px 0 16px; color: var(--muted); font-size: 14px; }

/* CTA + footer ----------------------------------------------------------------- */

.g-cta { padding: clamp(52px, 6vw, 84px) 0; background: var(--ink); color: white; --gold-text: var(--gold); text-align: center; }
.g-cta h2 { margin: 16px auto 0; max-width: 18ch; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -.025em; }
.g-cta p:not(.eyebrow) { margin: 18px auto 30px; max-width: 46ch; color: var(--on-dark); }

.g-footer { padding: clamp(52px, 6vw, 78px) 0 24px; background: var(--paper); border-top: 1px solid var(--line); }
.g-footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 52px); padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.g-footer-grid h2 { margin: 0 0 14px; color: var(--gold-text); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.g-footer-grid nav, .g-footer-col { display: grid; align-content: start; gap: 11px; font-size: 14px; }
.g-footer-grid a { color: var(--muted); }
.g-footer-grid a:hover { color: var(--ink); }
.g-footer-brand p { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.g-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; }
.g-footer-base p { margin: 0; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* Responsive -------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .g-grid { grid-template-columns: repeat(4, 1fr); }
  .g-tile-wide { grid-column: span 4; }
  .g-bio, .g-contact-grid, .g-quote-grid { grid-template-columns: 1fr; }
  .g-cv { position: static; }
  .g-footer-grid { grid-template-columns: 1fr 1fr; }
  .g-footer-brand { grid-column: 1 / -1; }
  .g-service { grid-template-columns: 60px minmax(0, 1fr); }
  .g-service-detail { grid-column: 2; }
}

@media (max-width: 960px) {
  .g-nav, .g-actions { display: none; }
  .g-header-inner { grid-template-columns: 1fr auto; height: 72px; }
  .g-toggle { display: grid; }
  .g-hero { grid-template-columns: 1fr; }
  .g-hero-media { min-height: 320px; order: -1; }
  .g-utility-left { display: none; }
}

@media (max-width: 700px) {
  .g-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .g-tile, .g-tile-wide { grid-column: span 2; }
  .g-tile-tall { grid-row: auto; }
  .g-strip { grid-template-columns: 1fr; }
  .g-strip div, .g-strip div:first-child { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .g-split { grid-template-columns: 1fr; }
  .g-footer-grid { grid-template-columns: 1fr; }
  .g-index a { grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; }
  .g-index .g-index-go { display: none; }
}
