/* Laboratorio Español — página de muestra
   Paleta: marfil, vino profundo y oro suave. Sin aqua ni teal. */

:root {
  --ivory: #F8F4ED;
  --ivory-deep: #F0E8DB;
  --cream: #FBF8F3;
  --white: #FFFcf7;
  --wine: #6A2E3A;
  --wine-deep: #4A1F28;
  --wine-soft: #8A4E58;
  --wine-mist: #F0E6E7;
  --gold: #C4A46A;
  --gold-deep: #A6864E;
  --gold-pale: #E6D5B3;
  --ink: #2B2322;
  --ink-soft: #5C534F;
  --line: #E5D9CB;
  --shadow: 0 10px 30px rgba(74, 31, 40, 0.07);
  --radius: 14px;
  --header-h: 4.25rem;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --max: 72rem;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--wine-deep); }
button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--wine);
  color: var(--ivory);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { top: 0.5rem; }

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

h1, h2, h3, .wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--wine-deep);
  letter-spacing: 0.01em;
}

.section-title {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.15;
}

.section-lead {
  margin: 0 auto 2.2rem;
  max-width: 38rem;
  color: var(--ink-soft);
  text-align: center;
}

.section-head { text-align: center; margin-bottom: 0.4rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  line-height: 1.2;
}
.btn:hover { color: var(--ivory); transform: translateY(-1px); }
.btn-wine {
  background: var(--wine);
  color: var(--ivory);
  border-color: var(--wine);
}
.btn-wine:hover { background: var(--wine-deep); color: var(--ivory); }
.btn-gold {
  background: transparent;
  color: var(--wine-deep);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--wine);
  color: var(--ivory);
  border-color: var(--wine);
}
.btn-ivory {
  background: var(--ivory);
  color: var(--wine-deep);
  border-color: var(--ivory);
}
.btn-ivory:hover { background: var(--white); color: var(--wine-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 599px) {
  .hero .btn-row .btn, .contact-copy .btn-row .btn { width: 100%; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(248, 244, 237, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-pale);
}
.header-inner {
  height: 100%;
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: 2.35rem;
  height: auto;
  flex-shrink: 0;
}
.wordmark {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--wine-deep);
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.wordmark small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.12rem;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--wine); }
.header-phone {
  display: none;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wine);
  border: 1px solid var(--gold);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.header-phone:hover {
  background: var(--wine);
  color: var(--ivory);
  border-color: var(--wine);
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.45rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  height: 1.5px;
  width: 1.25rem;
  background: var(--wine-deep);
  margin-inline: auto;
  transition: transform .2s, opacity .2s;
}
body.nav-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
body.nav-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav, .header-phone { display: flex; }
  .menu-btn { display: none; }
  .wordmark { font-size: 1.28rem; }
}

/* Mobile nav panel */
.nav-panel {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--ivory);
  z-index: 49;
  padding: 1.5rem 1.25rem 3rem;
}
body.nav-open .nav-panel { display: block; }
.nav-panel a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--wine-deep);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
}
.nav-panel .panel-phone {
  margin-top: 1.5rem;
  display: inline-flex;
}

/* Hero */
.hero {
  position: relative;
  background: var(--ivory);
}
.hero-cover {
  width: min(calc(100% - 2rem), 84rem);
  margin: 0.85rem auto 0;
}
.hero-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--ivory-deep);
}
.hero-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}
.hero-copy {
  padding: 1.5rem 0 2.2rem;
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}
.hero-copy .btn-row { justify-content: center; }
.hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2.4rem, 8vw, 4.1rem);
  line-height: 0.95;
  font-weight: 600;
}
.hero .slogan {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--wine-soft);
  line-height: 1.3;
}
.hero .intro {
  margin: 0 auto 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 36rem;
}

/* Sections common */
.section { padding: 4.2rem 0; }
.section-ivory { background: var(--ivory); }
.section-cream { background: var(--cream); }
.section-mist { background: var(--wine-mist); }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.15rem 1rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.service-card svg {
  width: 1.85rem;
  height: 1.85rem;
  stroke: var(--wine);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 auto 0.7rem;
}
.service-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}
@media (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .service-card { padding: 1.5rem 1.1rem 1.4rem; }
  .service-card h3 { font-size: 1.15rem; }
}
@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(12, 1fr); }
  .service-card { grid-column: span 3; }
  .service-card:nth-child(5) { grid-column: 2 / span 3; }
}


.service-card.has-photo {
  padding-top: 0;
  overflow: hidden;
}
.service-photo {
  margin: 0 -1rem 0.85rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ivory-deep);
}
.service-card.has-photo .service-photo { margin-left: -1rem; margin-right: -1rem; }
@media (min-width: 700px) {
  .service-card.has-photo .service-photo { margin-left: -1.1rem; margin-right: -1.1rem; }
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}


/* Dental team */
.dental-team {
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--gold-pale);
  text-align: center;
}
.dental-team-title {
  margin: 0 0 1.3rem;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--wine-deep);
}
.dental-team-grid {
  display: grid;
  gap: 1.15rem;
  max-width: 40rem;
  margin-inline: auto;
}
.dental-team-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}
.dental-team-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.dental-team-card figcaption {
  padding: 0.9rem 1rem 1.05rem;
  border-top: 1px solid var(--gold-pale);
}
.dental-team-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--wine-deep);
}
.dental-team-card span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (min-width: 700px) {
  .dental-team-grid { grid-template-columns: 1fr 1fr; max-width: 44rem; gap: 1.35rem; }
}

/* Instalaciones gallery */
.gallery-grid {
  display: grid;
  gap: 1.15rem;
}
.gallery-item {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.gallery-item figcaption {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--wine-deep);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--gold-pale);
}
@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem;
    max-width: 56rem;
    margin-inline: auto;
  }
}

/* Why us */
.why-grid {
  display: grid;
  gap: 1.1rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.why-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}
.why-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}
.why-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
@media (min-width: 700px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
@media (min-width: 1100px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Branches */
.branches-grid {
  display: grid;
  gap: 1rem;
}
.branch {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.branch-photo {
  margin: -1.25rem -1.15rem 0.15rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ivory-deep);
}
.branch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.branch h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
}
.branch .addr {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  min-height: 3.4em;
}
.hours {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  font-size: 0.86rem;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.22rem 0;
  border-top: 1px solid var(--line);
}
.hours span:first-child { color: var(--ink-soft); }
.hours span:last-child { font-weight: 600; color: var(--ink); text-align: right; }
.map-link {
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wine);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.map-link:hover { color: var(--wine-deep); }
.map-link svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
@media (min-width: 700px) {
  .branches-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .branches-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Results CTA */
.cta {
  background:
    linear-gradient(180deg, rgba(74,31,40,0.25), rgba(74,31,40,0.55)),
    url("../img/instalaciones-laboratorio.jpg") center 45% / cover no-repeat;
  color: var(--ivory);
  text-align: center;
  padding: 4.2rem 0;
  position: relative;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(74, 31, 40, 0.72);
}
.cta .wrap { position: relative; z-index: 1; }
.cta .kicker { color: var(--gold-pale); }
.cta h2 { color: var(--ivory); margin: 0 0 0.7rem; }
.cta p {
  margin: 0 auto 1.6rem;
  max-width: 36rem;
  color: rgba(248, 244, 237, 0.9);
}
.cta .btn-ivory { font-size: 0.88rem; padding: 0.95rem 1.6rem; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.contact-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--ivory-deep);
}
.contact-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 46%;
  aspect-ratio: 4 / 5;
  max-height: 36rem;
}
.contact-copy h2 { margin-bottom: 0.3rem; }
.contact-copy .section-head,
.contact-copy .section-lead { text-align: left; margin-left: 0; }
.cred {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.contact-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}
.contact-list li {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
  }
  .contact-photo img { max-height: 38rem; aspect-ratio: 3 / 4; }
}

/* Footer */
.site-footer {
  background: var(--wine-deep);
  color: rgba(248, 244, 237, 0.85);
  padding: 2.4rem 0 2rem;
  text-align: center;
}
.site-footer img {
  width: 2.4rem;
  margin: 0 auto 0.8rem;
}
.site-footer .fname {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--ivory);
  margin: 0 0 0.2rem;
}
.site-footer .places {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold-pale);
  margin: 0 0 0.9rem;
}
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--gold-pale); }
.site-footer .fine {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  color: rgba(248, 244, 237, 0.55);
}

/* WhatsApp FAB */
.fab-wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--wine);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(74, 31, 40, 0.35);
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.fab-wa:hover { background: var(--wine-deep); color: var(--ivory); transform: scale(1.05); }
.fab-wa svg { width: 1.55rem; height: 1.55rem; fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .fab-wa, .menu-btn span { transition: none; }
}

@media (max-width: 799px) {
  .hero-cover { width: min(calc(100% - 1.7rem), 84rem); margin-top: 0.65rem; }
  .hero-copy { padding: 1.25rem 0 1.6rem; }
  .hero .intro { margin-bottom: 1.1rem; }
  .hero .btn-row .btn { width: 100%; }
}

/* Preview hook: ?shot=1 freezes hero height so full-page captures are not stretched by 100svh */
html.shot .hero,
html.shot .hero-inner { min-height: 0 !important; }

/* Dental team: works link on Dr. Flores card */
.dental-works-link {
  display: inline-flex;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.62rem 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

/* Dr. Alejandro Flores works gallery */
.works-page { padding-top: 2.4rem; }
.works-back {
  margin: 0 0 1.4rem;
  font-size: 0.88rem;
}
.works-back a {
  color: var(--wine);
  text-decoration: none;
  font-weight: 500;
}
.works-back a:hover { color: var(--wine-deep); text-decoration: underline; }
.works-actions {
  justify-content: center;
  margin: 1.4rem 0 2rem;
}
.works-actions-end { margin: 2.4rem 0 0; }
.works-block { margin: 2.2rem 0 0; }
.works-heading {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 600;
  color: var(--wine-deep);
  text-align: center;
  line-height: 1.25;
}
.works-grid {
  display: grid;
  gap: 1.15rem;
  max-width: 52rem;
  margin-inline: auto;
}
@media (min-width: 720px) {
  .works-grid { grid-template-columns: 1fr 1fr; }
  .works-item-wide { grid-column: 1 / -1; }
}
.works-item {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.works-item a {
  display: block;
  text-decoration: none;
  cursor: zoom-in;
}
.works-item img {
  width: 100%;
  height: auto;
  display: block;
}
.works-item-wide img { width: 100%; }

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(43, 35, 34, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 3.2rem 2.4rem;
}
.lightbox-stage {
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  text-align: center;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: calc(90vh - 3rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  background: var(--ivory);
}
.lightbox-stage figcaption {
  margin-top: 0.7rem;
  color: var(--ivory);
  font-size: 0.88rem;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: 0;
  color: var(--ivory);
  cursor: pointer;
  font-size: 2.2rem;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--gold-pale); }
.lightbox-close { top: 0.6rem; right: 0.8rem; font-size: 2.4rem; }
.lightbox-prev { left: 0.35rem; top: 50%; transform: translateY(-50%); font-size: 2.8rem; }
.lightbox-next { right: 0.35rem; top: 50%; transform: translateY(-50%); font-size: 2.8rem; }
body.lightbox-open { overflow: hidden; }

/* Facebook page cover, full-width under the hero — never crop the artwork */
.fb-cover {
  background: var(--ivory);
  padding: 0.9rem 1rem 2.1rem;
}
.fb-cover-inner {
  width: min(100%, 84rem);
  margin-inline: auto;
}
.fb-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--ivory-deep);
}

/* Branch map modal / phone sheet */
.branch-modal[hidden] { display: none; }
.branch-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.branch-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 35, 34, 0.58);
}
.branch-modal-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  max-height: min(92vh, 52rem);
  overflow: auto;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(74, 31, 40, 0.28);
  border: 1px solid var(--gold-pale);
  -webkit-overflow-scrolling: touch;
}
.branch-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(248, 244, 237, 0.94);
  color: var(--wine-deep);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(74, 31, 40, 0.18);
}
.branch-modal-close:hover {
  background: var(--white);
  color: var(--wine);
}
.branch-modal-photo {
  background: var(--wine-mist);
  min-height: 10rem;
}
.branch-modal-photo > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.branch-modal-photo.is-fallback > img { display: none; }
.branch-modal-fallback {
  display: none;
  min-height: 14rem;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--wine-mist), var(--ivory));
  padding: 2rem 1rem;
}
.branch-modal-photo.is-fallback .branch-modal-fallback {
  display: flex;
}
.branch-modal-fallback img {
  width: 7.2rem;
  height: auto;
  display: block;
}
.branch-modal-body {
  padding: 1.15rem 1.25rem 1.4rem;
}
.branch-modal-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.55rem;
  line-height: 1.2;
}
.branch-modal-body .addr {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.branch-modal-body .hours {
  margin: 0 0 1rem;
}
.branch-modal-map {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ivory-deep);
  margin: 0 0 1.05rem;
  aspect-ratio: 16 / 11;
}
.branch-modal-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.branch-modal-openmaps {
  width: 100%;
}
body.branch-modal-open { overflow: hidden; }

@media (max-width: 599px) {
  .branch-modal { padding: 0; align-items: stretch; justify-content: stretch; }
  .branch-modal-sheet {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border: 0;
  }
  .fb-cover { padding: 0.65rem 0.85rem 1.5rem; }
}
