/* Sena Home layout. Tide-mark measurements live in tokens as --tide (8px). */

html { overflow-x: clip; scroll-padding-top: var(--header-h, 3.5rem); }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  box-sizing: border-box;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 56px;
  width: min(var(--max-w), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.wordmark {
  color: var(--c-ink);
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.desktop-nav { display: none; }
.header-cta.button { display: none; }

.desktop-nav a,
.drawer-nav a {
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 500;
}

.lang-switch {
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  gap: 0.7rem;
  margin-inline-start: auto;
}

.lang-switch a {
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border-bottom: var(--tide) solid transparent;
  padding-bottom: 0.1rem;
}

.lang-switch a[aria-current="true"] { border-bottom-color: var(--c-accent); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-ink);
}

.menu-toggle svg,
.icon-button svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }

.kicker {
  margin: 0;
  color: var(--c-muted);
  font-size: var(--fs-0);
  font-weight: 600;
}

.wrap, .about-copy, .prose, .hero-copy, .contact-copy, .section-intro, .gallery-heading { min-width: 0; max-width: 100%; }
h1, h2, h3, p, dd, .hours-note { overflow-wrap: anywhere; }

.hero-subline { margin: 0; max-width: 38rem; }

.hero-actions, .fact-chips, .service-list, .gallery-grid, .highlights, .contact-details {
  margin: 0;
  padding: 0;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
  min-height: 48px;
  min-width: 44px;
  padding: 0.55rem 1.05rem;
  border: 1.5px solid var(--c-accent);
  border-radius: var(--r-md);
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font: 600 var(--fs-0) / 1.3 var(--font-body);
  text-align: center;
  text-decoration: none;
}

.button:hover { background: #731C44; border-color: #731C44; color: var(--c-accent-ink); }

.button.secondary {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}

.button.secondary:hover { background: var(--c-tint); color: var(--c-ink); border-color: var(--c-ink); }

.fact-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }

.fact-chips li {
  background: var(--c-tint);
  border-radius: var(--r-md);
  padding: 0.4rem 0.8rem;
  font-size: var(--fs-0);
  font-weight: 500;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.5rem max(var(--gutter), calc((100vw - var(--max-w)) / 2)) 1.35rem;
}

.hero-media { position: relative; margin: 0; }
.hero-media picture { display: block; height: 100%; }

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 62%;
}

.tide-mark {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: var(--tide);
  background: var(--c-accent);
  pointer-events: none;
}

.sample-badge {
  position: absolute;
  inset-inline-start: 0.6rem;
  bottom: calc(var(--tide) + 0.55rem);
  z-index: 1;
  padding: 0.2rem 0.45rem;
  border-radius: var(--r-sm);
  background: rgb(26 46 40 / .55);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.hero-media .sample-badge { bottom: calc(var(--tide) + 0.7rem); }

.tide-section {
  border-top: var(--tide) solid var(--c-accent);
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  box-sizing: border-box;
  padding-block: clamp(2.5rem, 6vw, 4.75rem);
}

/* The image tide and the about border meet. Overlap them so the junction stays 8px. */
#about { margin-top: calc(var(--tide) * -1); }

.about-copy, .section-intro, .gallery-heading, .contact-copy { display: grid; gap: 0.85rem; }
.prose { display: grid; gap: 0.85rem; }
.prose p, .section-intro p, .gallery-heading p, .contact-intro { margin: 0; }

.about-figure { margin: 1.25rem 0 0; position: relative; }
.about-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.about-figure .sample-badge { bottom: 0.7rem; }

.highlights {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  list-style: none;
  margin-top: 1.25rem;
}

.highlights div {
  background: var(--c-tint);
  border-radius: var(--r-md);
  padding: 0.85rem 0.95rem;
}

.highlights dt { font-size: var(--fs-0); color: var(--c-muted); font-weight: 500; }
.highlights dd { margin: 0.2rem 0 0; font-weight: 600; }

.service-list { list-style: none; display: grid; gap: 1.15rem; margin-top: 1.5rem; }

.service-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 0.9rem;
  align-items: start;
}

.svc-icon { width: 1.75rem; height: 1.75rem; color: var(--c-accent); margin-top: 0.15rem; }
.service-list h3 { font-weight: 600; }
.service-list p { margin: 0.3rem 0 0; color: var(--c-muted); }

.gallery-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-tint);
  color: inherit;
  cursor: pointer;
}

.gallery-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.gallery-tile .sample-badge { bottom: 0.5rem; }

.trust-score {
  margin: 0.4rem 0 0;
  color: var(--c-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(var(--fs-4) * var(--scale-heading));
  line-height: 1;
}

.trust-source { display: inline-block; margin-top: 0.7rem; font-weight: 500; }
.trust-detail, .trust-disclaimer, .hours-note, .map-precision { margin: 0.45rem 0 0; color: var(--c-muted); }
.trust-disclaimer { max-width: 38rem; }

.contact-grid { display: grid; gap: 1.75rem; }
.contact-details { display: grid; gap: 0.85rem; margin-top: 1.15rem; }
.contact-details div { display: grid; gap: 0.15rem; padding-top: 0.75rem; border-top: 1px solid var(--c-line); }
.contact-details dt { color: var(--c-muted); font-size: var(--fs-0); font-weight: 500; }
.contact-details dd { margin: 0; }
.contact-details a { font-weight: 600; }
.hours-note { margin-top: 1rem; max-width: 36rem; }
.hours-label { display: block; font-weight: 600; color: var(--c-ink); }

.map-column { display: grid; align-content: start; gap: 0.75rem; }
.map-card {
  background: var(--c-tint);
  border-radius: var(--r-lg);
  min-height: 16rem;
  overflow: hidden;
}
.map-placeholder { display: grid; justify-items: start; align-content: center; gap: 0.75rem; min-height: 16rem; padding: 1.25rem; }
.map-pin { width: 2.25rem; height: 2.25rem; fill: none; stroke: var(--c-accent); stroke-width: 1.75; }
.map-card iframe { display: block; width: 100%; min-height: 18rem; height: 100%; border: 0; }
.maps-link { font-weight: 600; }

.site-footer { padding-block: 2rem 2.5rem; }
.footer-top, .footer-bottom, .preview-notice { display: grid; gap: 0.45rem; }
.footer-top { margin-bottom: 1.25rem; }
.footer-bottom { color: var(--c-muted); font-size: var(--fs-0); }
.footer-bottom p, .preview-notice p { margin: 0; }
.back-top { color: var(--c-ink); font-weight: 600; text-decoration: none; }
.preview-notice { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--c-line); }
.offer-link { font-weight: 600; }
.offer-link[hidden] { display: none; }

.sticky-cta {
  position: fixed;
  z-index: 25;
  inset-inline: 0;
  bottom: 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  padding: 0.55rem var(--gutter) calc(0.55rem + env(safe-area-inset-bottom));
}
.sticky-cta .button { width: 100%; min-width: 0; white-space: normal; min-height: 48px; }

.drawer {
  width: min(22rem, 100%);
  height: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
  padding: 1rem 1.1rem 1.5rem;
  border: 0;
  background: var(--c-surface);
  color: var(--c-ink);
  box-shadow: var(--shadow-1);
}
.drawer::backdrop, .lightbox::backdrop { background: rgb(26 46 40 / .45); }
.drawer[open] { display: flex; flex-direction: column; gap: 1.25rem; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-nav { display: grid; gap: 0.35rem; }
.drawer-nav a { min-height: 44px; display: flex; align-items: center; font-size: 1.15rem; }
.drawer .lang-switch { margin-inline-start: 0; }
.drawer .button { width: 100%; }

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--c-tint);
  color: var(--c-ink);
}

.lightbox {
  width: min(68rem, calc(100% - 1.5rem));
  max-height: calc(100% - 1.5rem);
  margin: auto;
  padding: 0.75rem;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  color: var(--c-ink);
  box-shadow: var(--shadow-1);
}
.lightbox[open] { display: grid; gap: 0.6rem; }
.viewer-toolbar, .viewer-bottom, .viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.viewer-toolbar .sample-badge { position: static; }
.viewer-image { display: grid; place-items: center; min-height: 12rem; background: var(--c-tint); border-radius: var(--r-md); }
.viewer-image img { width: auto; max-width: 100%; max-height: min(68vh, 760px); height: auto; object-fit: contain; }
#viewer-caption { margin: 0; flex: 1; }
.viewer-count { font-variant-numeric: tabular-nums; color: var(--c-muted); }

picture.image-unavailable {
  display: grid;
  place-items: center;
  min-height: 8rem;
  background: var(--c-tint);
}
picture.image-unavailable img { visibility: hidden; }
picture.image-unavailable::after {
  content: attr(data-fallback-label);
  padding: 1rem;
  text-align: center;
  color: var(--c-muted);
}

@media (max-width: 359px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand menu" "lang lang";
    align-items: center;
    padding-block: 0.35rem;
  }
  .wordmark { grid-area: brand; }
  .menu-toggle { grid-area: menu; }
  .lang-switch { grid-area: lang; margin-inline-start: 0; }
}

@media (max-width: 1023px) {
  .site-footer { padding-bottom: calc(var(--sticky-cta-h) + 1.5rem); }
}

@media (min-width: 769px) {
  .hero {
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: stretch;
    min-height: 78vh;
  }
  .hero-copy { justify-content: center; padding-block: 2rem; }
  .hero-copy > :not(.fact-chips) { max-width: 28rem; }
  .hero-media { min-height: 78vh; }
  .hero-media img {
    height: 100%;
    min-height: 78vh;
    aspect-ratio: auto;
    object-position: center bottom;
  }
}

@media (min-width: 1024px) {
  .site-header { height: 56px; }
  .header-inner { display: flex; height: 100%; min-height: 0; padding-block: 0; }
  .desktop-nav { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
  .desktop-nav a { white-space: nowrap; }
  .menu-toggle { display: none; }
  .lang-switch { margin-inline-start: 0; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 2.5rem; }
  .about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: start; }
  .about-figure { margin-top: 0; }
  .service-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
  .service-list li { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2rem; align-items: start; }
  .footer-top { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 1200px) {
  .header-cta.button { display: inline-flex; flex-shrink: 0; white-space: nowrap; height: 48px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: tide-fade var(--t-hero) var(--ease) both; }
  .hero-media { animation: tide-slide var(--t-hero) var(--ease) both; }
}

@keyframes tide-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tide-slide {
  from { transform: translateX(12px); }
  to { transform: none; }
}
