/* ============================================================
   SEALINKS FURNITURE — stylesheet
   ============================================================
   PALETTE
     primary    #9c6b3f   warm brown, accents and eyebrows
     secondary  #2e2119   dark brown, headings
     background #faf7f2   warm off-white
   ============================================================ */

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #faf7f2;
  color: #2e2119;
  font-size: 0.875rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TYPE SCALE
   Headings run large and light; body copy sits small and quiet
   underneath them. The contrast between the two is the whole
   look, so these two blocks belong together.
   ============================================================ */

.display {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.h-section {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  color: #2e2119;
}

.h-card {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.25;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: #2e2119;
}

.eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9c6b3f;
}

.lede {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #6b5d4f;
}

.body-sm { font-size: 0.8rem; line-height: 1.8; }

.muted { color: #7a6a59; }

/* Section rhythm. One rule so vertical spacing never drifts. */
.section { padding: 5.5rem 1rem; }
.section-tight { padding: 3.5rem 1rem; }
@media (min-width: 768px) {
  .section { padding: 7rem 1.5rem; }
  .section-tight { padding: 4.5rem 1.5rem; }
}

.rule {
  width: 2.5rem;
  height: 1px;
  background: #9c6b3f;
  margin: 1.25rem auto 0;
}
.rule-left { margin-left: 0; margin-right: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: linear-gradient(120deg, #ffffff 0%, #f4ead9 45%, #c79b6b 100%);
  box-shadow: 0 1px 12px rgba(46, 33, 25, 0.08);
}

/* ---- Social bar --------------------------------------------
   Slim strip above the main row, tablet/desktop only (mobile
   keeps its socials inside the hamburger menu, unchanged). A
   hairline divider separates it from the nav below. */
.header-topbar {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(46, 33, 25, 0.10);
}
html.dark .header-topbar { border-bottom-color: rgba(255, 255, 255, 0.12); }

/* ---- Main row -------------------------------------------
   Three-column grid (logo / nav / actions) instead of a
   flex justify-between — that way the nav links sit on the
   true centre line of the bar, not just the midpoint between
   two unequal side groups. */
.header-main { grid-template-columns: auto 1fr; }   /* logo | actions (links hidden) */
@media (min-width: 1024px) {
  /* Equal outer columns put the links on the true centre of the bar. */
  .header-main { grid-template-columns: 1fr auto 1fr; }
}
.site-footer {
  background: linear-gradient(120deg, #ffffff 0%, #f4ead9 45%, #c79b6b 100%);
}

/* ============================================================
   ICON VISIBILITY — Font Awesome vs Tailwind

   Font Awesome sets  display: inline-block  on .fa-solid, and
   Tailwind sets  display: none  on .hidden. Both are single-class
   selectors, so their specificity is identical and the winner is
   decided purely by which stylesheet loads last. Font Awesome
   loads after Tailwind's injected styles, so it won — which is
   why the theme toggle was showing the sun and the moon at the
   same time even though the JavaScript was toggling the class
   correctly.

   Two classes plus !important settles it for good, whatever the
   load order ends up being.
   ============================================================ */
.fa-solid.hidden, .fa-brands.hidden, .fa-regular.hidden,
.fas.hidden, .fab.hidden, .far.hidden { display: none !important; }

#theme-toggle i { line-height: 1; }

/* ---- Logo -------------------------------------------------
   The mark is rendered inside a fixed box and told never to
   scale beyond its natural size. Browsers downscale cleanly
   but blur badly when they stretch a bitmap up, so capping the
   height is what keeps the edges sharp.

   NOTE: if the source PNG is itself low-resolution, no amount
   of CSS fixes it. Re-export at 3x (or as SVG) and drop it in
   at the same path for a genuinely crisp mark. */
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark {
  height: 2.25rem;
  width: auto;
  max-height: 2.25rem;
  object-fit: contain;
  display: block;
  image-rendering: auto;
  transition: background .25s ease, padding .25s ease;
}
.brand-word {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #2e2119;
  line-height: 1;
}
html.dark .brand-word { color: #f5efe6; }

/* ============================================================
   DARK-MODE LOGO
   Light mode never filters the logo. This only decides what
   happens on dark.

   ACTIVE: nothing at all. No chip, no filter, no background —
   the mark sits directly on the header gradient in its own
   colours. This works because the logo's gold outline is light
   enough to read against the brown bar on its own.

   If a white or cream box appears behind the mark, that
   background is baked into the PNG itself rather than being
   added here. CSS cannot remove it; the file needs re-exporting
   with a transparent background (Save As → PNG-24, transparency
   on) at the same path.

   Two fallbacks, if the mark ever reads too dim on the bar:

   1. A gentle lift that keeps every colour —
      html.dark .brand-mark {
        filter: brightness(1.15) saturate(1.05);
      }

   2. A flat white silhouette, guaranteed legible but drops all
      colour —
      html.dark .brand-mark {
        filter: brightness(0) invert(1) brightness(0.95);
      }
   ============================================================ */

.nav-link {
  position: relative;
  color: #2e2119;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
  transition: color .25s ease;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: #9c6b3f;
  transition: width .25s ease;
}
.nav-link:hover { color: #9c6b3f; }
.nav-link:hover::after { width: 100%; }
.nav-link.is-active { color: #9c6b3f; }
.nav-link.is-active::after { width: 100%; }
/* Mobile / tablet menu: roomier links, easy to tap. */
#mobile-menu .nav-link { font-size: 1.05rem; }
/* Header CTA: same 40px height as the theme toggle beside it. */
.btn-nav { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: #2e2119;
  color: #faf7f2;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background .25s ease, transform .2s ease;
}
.btn-primary:hover { background: #9c6b3f; transform: translateY(-1px); }

.btn-outline {
  border: 1px solid #2e2119;
  color: #2e2119;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all .25s ease;
}
.btn-outline:hover { background: #2e2119; color: #faf7f2; }

/* ============================================================
   SOCIAL ICONS
   Two sizes: compact for the navigation bar, roomier in the
   footer where there is space for a proper tap target.
   ============================================================ */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(46, 33, 25, 0.18);
  color: #2e2119;
  font-size: 0.95rem;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.social-icon:hover {
  background: #9c6b3f;
  border-color: #9c6b3f;
  color: #ffffff;
  transform: translateY(-2px);
}
.social-nav {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.8rem;
  border-color: rgba(46, 33, 25, 0.22);
}
html.dark .social-icon { border-color: rgba(255,255,255,0.24); color: #f5efe6; }
html.dark .social-icon:hover { background: #c79b6b; border-color: #c79b6b; color: #241b14; }

/* ============================================================
   FLOATING WHATSAPP
   Sits clear of the corner on every screen size and above all
   page content, but below the mobile menu when that is open.
   ============================================================ */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #25d366;
  color: #ffffff;
  font-size: 1.65rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform .22s ease, box-shadow .22s ease;
}
.wa-float:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid #25d366;
  animation: wa-pulse 2.6s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
@media (max-width: 640px) {
  .wa-float { width: 3.1rem; height: 3.1rem; font-size: 1.45rem; right: 1rem; bottom: 1rem; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
#mobile-menu { transition: max-height .3s ease, opacity .3s ease; }
.card-img-zoom img { transition: transform .7s ease; }
.card-img-zoom:hover img { transform: scale(1.06); }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: all .8s ease-out; }
.reveal-visible { opacity: 1; transform: translateY(0); }
.star { color: #c79b6b; }

.card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(46, 33, 25, 0.07);
}
.card-bordered {
  border: 1px solid rgba(46, 33, 25, 0.12);
  border-radius: 1rem;
}

/* ============================================================
   DARK MODE
   Lifted from the previous build — the old values sat almost at
   pure black, which crushed the warm brown out of the palette.

   TO TUNE: change the five values in this block only. Everything
   below reads from them. Higher numbers = lighter. For reference,
   the previous build was --dk-bg #17110d and --dk-surface #221912.
   ============================================================ */
html.dark {
  --dk-bg:      #241b14;  /* page background      */
  --dk-surface: #322419;  /* cards and panels     */
  --dk-mid:     #3d2d21;  /* header gradient mid  */
  --dk-warm:    #7d5836;  /* header gradient end  */
  --dk-text:    #f5efe6;  /* body text            */
  --dk-muted:   #cfc2b0;  /* secondary text       */
  --dk-accent:  #d9ab74;  /* eyebrows and rules   */
}

html.dark body { background: var(--dk-bg); color: var(--dk-text); }
html.dark .bg-white, html.dark .card { background: var(--dk-surface) !important; }
html.dark .bg-background { background: var(--dk-bg) !important; }
html.dark .h-section, html.dark .h-card { color: var(--dk-text); }
html.dark .lede { color: var(--dk-muted); }
html.dark .muted { color: #bcac97; }
html.dark .text-secondary { color: var(--dk-text) !important; }
html.dark .text-gray-600 { color: #d2c6b4 !important; }
html.dark .text-gray-500 { color: #bfb1a0 !important; }
html.dark .text-gray-200 { color: #f0e7da !important; }
html.dark .border-secondary\/15 { border-color: rgba(255,255,255,0.16) !important; }
html.dark .border-gray-200 { border-color: rgba(255,255,255,0.14) !important; }
html.dark .card-bordered { border-color: rgba(255,255,255,0.14); }
html.dark .shadow-md, html.dark .shadow-xl, html.dark .card {
  box-shadow: 0 6px 26px rgba(0,0,0,0.42) !important;
}
html.dark .site-header, html.dark .site-footer {
  background: linear-gradient(120deg, var(--dk-bg) 0%, var(--dk-mid) 45%, var(--dk-warm) 100%) !important;
}
html.dark .nav-link { color: var(--dk-text); }
html.dark .nav-link.is-active { color: #e0bd8e; }
html.dark .nav-link:hover { color: #e0bd8e; }
html.dark .eyebrow { color: var(--dk-accent); }
html.dark .rule { background: var(--dk-accent); }
html.dark .btn-primary { background: #c79b6b; color: var(--dk-bg); }
html.dark .btn-primary:hover { background: #e0bd8e; color: var(--dk-bg); }
html.dark .btn-outline { border-color: var(--dk-text); color: var(--dk-text); }
html.dark .btn-outline:hover { background: var(--dk-text); color: var(--dk-bg); }
html.dark .bg-primary\/10 { background: rgba(199,155,107,0.20) !important; }
html.dark .border-primary\/20 { border-color: rgba(199,155,107,0.38) !important; }
html.dark #theme-toggle { border-color: rgba(255,255,255,0.26); color: var(--dk-text); }
html.dark #menu-toggle { color: var(--dk-text); }
html.dark .text-secondary\/80 { color: rgba(245, 239, 230, 0.86) !important; }
html.dark .text-secondary\/70 { color: rgba(245, 239, 230, 0.76) !important; }
html.dark .text-primary { color: var(--dk-accent) !important; }

/* ============================================================
   SELECTED WORK CAROUSEL
   Snapping is handled in JavaScript, not CSS — the two fight
   over the same scroll position and CSS wins, which is what
   used to make the arrow buttons stall mid-animation.
   ============================================================ */
#scroll-left, #scroll-right {
  background: rgba(255, 255, 255, 0.88);
  color: #2e2119;
  cursor: pointer;
}
html.dark #scroll-left, html.dark #scroll-right {
  background: rgba(36, 27, 20, 0.88);
  color: #f5efe6;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
#scroll-left:hover, #scroll-right:hover,
html.dark #scroll-left:hover, html.dark #scroll-right:hover {
  background: #9c6b3f;
  color: #ffffff;
}
#scroll-left:active, #scroll-right:active { transform: translateY(-50%) scale(0.94); }
#project-scroll {
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* ============================================================
   "WHAT WE DO" TILE — sliding curtain image
   The image slides sideways on hover. Sized to exactly fill its
   card it would uncover the dark overlay behind it as a black
   strip down the left edge, so it is oversized before it moves.
   ============================================================ */
.tile-slide img {
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
}
.tile-slide:hover img { transform: scale(1.25) translateX(1rem); }

/* ============================================================
   PAGE HERO — inner pages
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 24rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
@media (max-width: 640px) { .page-hero { min-height: 20rem; } }
/* The social topbar only exists from md up, which makes the fixed
   header taller — give the hero a little more room there so its
   centred content clears it instead of sitting half under it. */
@media (min-width: 768px) { .page-hero { min-height: 30rem; } }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.52); }
.page-hero-body { position: relative; z-index: 10; padding: 7rem 1rem 3.5rem; max-width: 46rem; color: #ffffff; }
@media (min-width: 768px) { .page-hero-body { padding-top: 10rem; } }
.page-hero-body .eyebrow { color: #e0c39a; }
.page-hero-body .display { color: #ffffff; }
.page-hero-body .rule { background: #e0c39a; }

.hero-shell { height: 100vh; }
@supports (height: 100dvh) { .hero-shell { height: 100dvh; } }
@media (max-width: 640px) { .hero-shell { min-height: 34rem; } }

/* ============================================================
   BOOKING FLOW
   ============================================================ */
.step-panel { display: none; }
.step-panel.is-active { display: block; animation: fade-up .45s ease-out; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.progress-track { display: flex; align-items: center; gap: 0.5rem; }
.progress-dot {
  flex: 1;
  height: 2px;
  background: rgba(46, 33, 25, 0.14);
  transition: background .35s ease;
}
.progress-dot.is-done { background: #9c6b3f; }
html.dark .progress-dot { background: rgba(255,255,255,0.16); }
html.dark .progress-dot.is-done { background: #d9ab74; }

/* Selectable option tiles */
.choice {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(46, 33, 25, 0.16);
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.choice:hover { border-color: #9c6b3f; transform: translateY(-2px); }
.choice.is-selected {
  border-color: #9c6b3f;
  box-shadow: 0 0 0 2px rgba(156, 107, 63, 0.28);
}
html.dark .choice { background: #322419; border-color: rgba(255,255,255,0.16); }
html.dark .choice:hover, html.dark .choice.is-selected { border-color: #d9ab74; }
html.dark .choice.is-selected { box-shadow: 0 0 0 2px rgba(217, 171, 116, 0.35); }

/* Product tiles in the estimator */
.product-tile {
  border: 1px solid rgba(46, 33, 25, 0.16);
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.65rem;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.product-tile.is-selected { border-color: #9c6b3f; box-shadow: 0 0 0 2px rgba(156, 107, 63, 0.25); }
.product-tile img { width: 100%; height: 5rem; object-fit: cover; border-radius: 0.5rem; margin-bottom: 0.5rem; }
html.dark .product-tile { background: #322419; border-color: rgba(255,255,255,0.16); }
html.dark .product-tile.is-selected { border-color: #d9ab74; }

/* Horizontal date strip */
.date-strip { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0 0.75rem; }
.date-pill {
  flex: 0 0 auto;
  width: 3.5rem;
  padding: 0.6rem 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(46, 33, 25, 0.16);
  background: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}
.date-pill span { display: block; }
.date-pill .dow { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: #7a6a59; }
.date-pill .dom { font-size: 1rem; color: #2e2119; }
.date-pill.is-selected { border-color: #9c6b3f; background: #9c6b3f; }
.date-pill.is-selected .dow, .date-pill.is-selected .dom { color: #ffffff; }
html.dark .date-pill { background: #322419; border-color: rgba(255,255,255,0.16); }
html.dark .date-pill .dom { color: #f5efe6; }
html.dark .date-pill .dow { color: #bcac97; }
html.dark .date-pill.is-selected { background: #c79b6b; border-color: #c79b6b; }
html.dark .date-pill.is-selected .dow, html.dark .date-pill.is-selected .dom { color: #241b14; }

.price-figure {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: #9c6b3f;
  line-height: 1;
}
html.dark .price-figure { color: #e0bd8e; }

/* ============================================================
   FORM FIELDS
   ============================================================ */
.field {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(46, 33, 25, 0.18);
  border-radius: 0.65rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: #2e2119;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder { color: rgba(46, 33, 25, 0.38); }
.field:focus { outline: none; border-color: #9c6b3f; box-shadow: 0 0 0 3px rgba(156, 107, 63, 0.15); }
html.dark .field { background: #322419; border-color: rgba(255,255,255,0.18); color: #f5efe6; }
html.dark .field::placeholder { color: rgba(245, 239, 230, 0.38); }

.label { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #7a6a59; margin-bottom: 0.4rem; }
html.dark .label { color: #bcac97; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .25s ease; }
.faq-item[open] summary .chev { transform: rotate(180deg); }

/* ============================================================
   MOBILE & ACCESSIBILITY BASELINE
   ============================================================ */
html, body { max-width: 100%; overflow-x: hidden; }
:target { scroll-margin-top: 6rem; }
section[id] { scroll-margin-top: 5.5rem; }
/* Matches the taller md+ header (social topbar + main row) so an
   in-page link (e.g. services.html#bespoke) doesn't land a
   heading underneath the fixed bar. */
@media (min-width: 768px) {
  :target { scroll-margin-top: 9rem; }
  section[id] { scroll-margin-top: 8.5rem; }
}
#mobile-menu nav { max-height: calc(100vh - 6rem); overflow-y: auto; }
h1, h2, h3, p, li, blockquote { overflow-wrap: break-word; }

@media (max-width: 640px) {
  #scroll-left, #scroll-right { width: 2.5rem; height: 2.5rem; font-size: 0.85rem; top: 42%; }
}
@media (max-width: 767px) {
  .site-footer a:not(.brand):not(.social-icon), #mobile-menu a:not(.brand):not(.social-icon) { display: inline-block; padding: 0.15rem 0; }
}

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible, label:focus-visible {
  outline: 2px solid #9c6b3f;
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  .wa-float::before { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}