/* =========================================================
   Silver Luxe Design: site styles
   ========================================================= */

:root {
  /* Brand */
  --navy: #162840;          /* logo background */
  --navy-deep: #0f1d30;
  --navy-ink: #0a1422;
  --navy-line: rgba(214, 216, 220, 0.16);
  --silver-1: #f3f3f3;
  --silver-2: #d6d7d9;
  --silver-3: #a3a4a8;
  --silver-4: #8e8f94;
  --silver-gradient: linear-gradient(100deg, #cfd0d3 0%, #f4f4f4 28%, #bfc0c3 52%, #9a9b9f 70%, #b8b9bc 100%);

  /* Light sections */
  --ivory: #f5f3ef;
  --stone: #e8e4dd;
  --ink: #162840;
  --ink-muted: #5a6474;

  /* Type */
  --font-display: "Marcellus", "Optima", "Times New Roman", serif;
  --font-accent: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(80px, 11vw, 160px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--silver-2);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.12; }
p { margin: 0; }
em { font-family: var(--font-accent); font-style: italic; font-weight: 400; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Shared type ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--silver-3);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--silver-gradient);
}
.eyebrow-dark { color: var(--ink-muted); }
.eyebrow-dark::before { background: var(--ink); opacity: .5; }

.section-title {
  font-size: clamp(38px, 5.4vw, 68px);
  color: var(--silver-1);
  letter-spacing: 0.005em;
  margin-bottom: 24px;
}
.section-title em {
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
}
.section-light .section-title { color: var(--ink); }
.section-light .section-title em {
  background: none;
  color: #6b7686;
  -webkit-text-fill-color: currentColor;
}

.muted { color: var(--silver-3); max-width: 42ch; }
.muted-dark { color: var(--ink-muted); max-width: 52ch; }

.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 17px 30px;
  background: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
  white-space: nowrap;
}
.btn-silver {
  background: var(--silver-gradient);
  background-size: 200% 100%;
  color: var(--navy-ink);
  font-weight: 500;
}
.btn-silver:hover { background-position: 100% 0; box-shadow: 0 12px 40px -12px rgba(220, 222, 226, .45); transform: translateY(-2px); }
.btn-outline { border-color: var(--silver-3); color: var(--silver-1); }
.btn-outline:hover { background: var(--silver-1); color: var(--navy-ink); border-color: var(--silver-1); }
.btn-ghost { color: var(--silver-2); padding-left: 6px; padding-right: 6px; }
.btn-ghost:hover { color: #fff; }
.btn-ghost span { transition: transform .4s var(--ease); }
.btn-ghost:hover span { transform: translateX(6px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease);
  padding: 26px 0;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(15, 29, 48, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom-color: var(--navy-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; transition: height .5s var(--ease); }
.site-header.scrolled .brand img { height: 38px; }
.brand-mono { display: none; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav a:not(.btn) {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--silver-2);
  position: relative;
  padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--silver-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 13px 22px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  z-index: 60;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1px;
  background: var(--silver-1);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 78% 35%, rgba(120, 140, 170, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(5, 12, 24, 0.7), transparent 70%),
    linear-gradient(160deg, #1b3150 0%, var(--navy) 45%, var(--navy-deep) 100%);
  padding: 140px 0 120px;
}
.hero.has-img {
  background:
    linear-gradient(100deg, rgba(10, 20, 34, 0.92) 0%, rgba(15, 29, 48, 0.72) 50%, rgba(15, 29, 48, 0.35) 100%),
    var(--img) center / cover no-repeat;
}
.hero.has-img .hero-watermark { display: none; }

/* thin silver frame lines echoing the logo border */
.hero::before {
  content: "";
  position: absolute;
  inset: clamp(16px, 3vw, 36px);
  top: 120px; /* start below the header so the line never crosses the logo or nav */
  border: 1px solid var(--navy-line);
  pointer-events: none;
}
.hero-watermark {
  position: absolute;
  right: -6%;
  top: 50%;
  width: min(68vw, 980px);
  transform: translateY(-50%);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(48px, 8.4vw, 116px);
  line-height: 1.02;
  color: var(--silver-1);
  margin-bottom: 34px;
  letter-spacing: -0.005em;
}
.hero-title em {
  background: var(--silver-gradient);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .1em;
  animation: shimmer 9s ease-in-out infinite alternate;
}
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: 100% 0; } }

.hero-lede {
  max-width: 50ch;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--silver-2);
  margin-bottom: 46px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }

.scroll-cue {
  position: absolute;
  bottom: clamp(36px, 5vw, 60px);
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 64px;
  background: var(--navy-line);
  overflow: hidden;
}
.scroll-cue span {
  position: absolute;
  inset: 0;
  background: var(--silver-gradient);
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Light sections ---------- */

.section-light { background: var(--ivory); color: var(--ink); }

.intro { padding: var(--section-y) 0; }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 3fr;
  gap: 40px;
  align-items: start;
}
.statement {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 36px;
}
.statement em { color: #6b7686; }
.intro-body { color: var(--ink-muted); max-width: 62ch; font-size: 18px; }

/* ---------- Services ---------- */

.services { padding: var(--section-y) 0; background: var(--navy); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.services-head { position: sticky; top: 140px; }
.services-head .muted { margin-bottom: 38px; }

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy-line); }
.service {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 38px 0;
  border-bottom: 1px solid var(--navy-line);
  transition: padding-left .5s var(--ease);
}
.service:hover { padding-left: 12px; }
.service-num {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 22px;
  color: var(--silver-4);
  padding-top: 4px;
}
.service h3 { font-size: clamp(24px, 2.4vw, 31px); color: var(--silver-1); margin-bottom: 12px; }
.service p { color: var(--silver-3); max-width: 52ch; }

/* ---------- Material textures (pure CSS) ---------- */

.tex-marble {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.45), transparent 60%),
    url("assets/marble-white.svg") center / cover,
    #f0eeea;
}
.tex-nero {
  background:
    radial-gradient(ellipse at 60% 30%, rgba(255, 255, 255, 0.06), transparent 60%),
    url("assets/marble-black.svg") center / cover,
    #121315;
}
.tex-plaster {
  background:
    radial-gradient(ellipse 40% 30% at 20% 30%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(ellipse 35% 40% at 75% 65%, rgba(255, 255, 255, 0.4), transparent 70%),
    radial-gradient(ellipse 50% 30% at 60% 15%, rgba(170, 160, 145, 0.35), transparent 70%),
    radial-gradient(ellipse 40% 35% at 30% 85%, rgba(160, 150, 135, 0.3), transparent 70%),
    linear-gradient(135deg, #d9d2c6, #c9c0b2);
}
.tex-walnut {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 30%, rgba(255, 220, 180, 0.08) 60%, rgba(0, 0, 0, 0.2)),
    repeating-linear-gradient(91deg, #4b2f1e 0 3px, #5d3b26 3px 9px, #43291a 9px 11px, #6a4630 11px 19px, #553521 19px 24px);
}
.tex-brass {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px),
    linear-gradient(125deg, #86672c 0%, #d8b56b 28%, #9e7c3a 52%, #e8cc8f 74%, #8c6c30 100%);
}
.tex-cement {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.22) 0 8%, transparent 22%),
    radial-gradient(circle at 70% 60%, rgba(90, 85, 78, 0.18) 0 10%, transparent 26%),
    radial-gradient(circle at 45% 85%, rgba(255, 255, 255, 0.16) 0 6%, transparent 20%),
    radial-gradient(circle at 85% 15%, rgba(90, 85, 78, 0.14) 0 8%, transparent 22%),
    linear-gradient(160deg, #bdb7ae, #a59f96);
}

/* ---------- Finishes ---------- */

.finishes { padding: var(--section-y) 0; }
.swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
}
.swatch { margin: 0; }
.swatch-tile {
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 60px -30px rgba(22, 40, 64, 0.45);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.swatch:hover .swatch-tile { transform: translateY(-8px); box-shadow: 0 40px 70px -30px rgba(22, 40, 64, 0.55); }
.swatch figcaption { padding-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.swatch strong { font-family: var(--font-display); font-weight: 400; font-size: 18px; color: var(--ink); }
.swatch span { font-size: 13px; letter-spacing: 0.06em; color: var(--ink-muted); }

/* ---------- Work / gallery ---------- */

.work { padding: var(--section-y) 0; background: var(--navy-deep); }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(220px, 24vw, 320px);
  gap: clamp(12px, 1.6vw, 22px);
}
.tile { position: relative; overflow: hidden; background: var(--navy); }
.tile-lg { grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.tile-bg {
  position: absolute;
  inset: 0;
  transition: transform 1.2s var(--ease);
}
.tile.has-img .tile-bg { background: var(--img) center / cover no-repeat; }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 34, 0) 40%, rgba(10, 20, 34, 0.86) 100%);
  transition: opacity .6s var(--ease);
}
.tile:hover .tile-bg { transform: scale(1.05); }
.tile-caption {
  position: absolute;
  left: clamp(18px, 2vw, 30px);
  right: clamp(18px, 2vw, 30px);
  bottom: clamp(18px, 2vw, 28px);
  z-index: 2;
}
.tile-caption span {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver-2);
}
.tile-caption h3 { font-size: clamp(22px, 2.2vw, 30px); color: #fff; margin-top: 6px; }
/* inner frame on hover, logo motif */
.tile::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 2;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.tile:hover::before { opacity: 1; transform: scale(1); }

.tile-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--navy-line);
  background: radial-gradient(ellipse at 80% 20%, rgba(120, 140, 170, 0.18), transparent 70%), var(--navy);
}
.tile-cta::after { display: none; }
.tile-cta img { width: 96px; opacity: .9; }
.tile-cta p { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); color: var(--silver-1); line-height: 1.2; }
.tile-cta-link {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--silver-2);
}
.tile-cta-link span { display: inline-block; transition: transform .4s var(--ease); }
.tile-cta:hover .tile-cta-link span { transform: translateX(6px); }

/* ---------- Process ---------- */

.process { padding: var(--section-y) 0; background: var(--stone); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  counter-reset: step;
}
.step { border-top: 1px solid rgba(22, 40, 64, 0.25); padding-top: 28px; position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--ink);
  transform: rotate(45deg);
}
.step-num {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 40px;
  color: #8a93a1;
  line-height: 1;
  display: block;
  margin-bottom: 18px;
}
.step h3 { font-size: 22px; color: var(--ink); margin-bottom: 12px; }
.step p { color: var(--ink-muted); font-size: 15.5px; }

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

.about { padding: var(--section-y) 0; background: var(--navy); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.about-mark {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--navy-line);
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(ellipse at 50% 40%, rgba(120, 140, 170, 0.16), transparent 70%);
}
.about-mark::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid var(--navy-line);
}
.about-mark img { width: 72%; }
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  margin-top: 20px;
}
.principle h3 {
  font-size: 22px;
  color: var(--silver-1);
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--navy-line);
}
.principle p { color: var(--silver-3); font-size: 16px; }

.areas { margin-top: clamp(80px, 9vw, 130px); text-align: center; }
.areas .eyebrow { margin-bottom: 30px; }
.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 0;
}
.area-list li {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--silver-2);
  padding: 0 clamp(14px, 1.8vw, 26px);
  position: relative;
}
.area-list li + li::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--silver-4);
  transform: translateY(-50%) rotate(45deg);
}

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

.contact {
  padding: var(--section-y) 0 calc(var(--section-y) + 20px);
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(120, 140, 170, 0.14), transparent 70%),
    var(--navy-deep);
}
/* Frame with a gap in the bottom edge, mirroring the logo */
.frame {
  position: relative;
  padding: clamp(36px, 6vw, 80px);
  border: 1px solid transparent;
  border-image: var(--silver-gradient) 1;
  border-bottom: 0;
}
.frame::before, .frame::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 1px;
  width: calc(50% - 170px);
  background: var(--silver-gradient);
}
.frame::before { left: 0; }
.frame::after { right: 0; }
.frame-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--silver-2);
  white-space: nowrap;
  padding-left: .42em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
}
.contact-info .muted { margin-bottom: 40px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver-4);
  margin-bottom: 2px;
}
.contact-list a, .contact-list p { font-size: 18px; color: var(--silver-1); }
.contact-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.contact-form { display: grid; gap: 26px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--silver-3);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--silver-1);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(214, 216, 220, 0.3);
  border-radius: 0;
  padding: 10px 0 12px;
  outline: none;
  width: 100%;
  transition: border-color .4s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--silver-3) 50%), linear-gradient(-45deg, transparent 50%, var(--silver-3) 50%);
  background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field select option { background: var(--navy-deep); color: var(--silver-1); }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(214, 216, 220, 0.35); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--silver-1); }
.field.invalid input { border-bottom-color: #e2a3a3; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 8px; }
.form-note { font-size: 14px; color: var(--silver-3); min-height: 1.5em; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-ink); padding: 90px 0 40px; border-top: 1px solid var(--navy-line); }
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--navy-line);
}
.footer-logo { height: 64px; width: auto; }
.footer-tag { color: var(--silver-4); font-size: 14px; line-height: 1.7; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.footer-nav a {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-3);
}
.footer-nav a:hover { color: var(--silver-1); }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 30px;
  font-size: 13px;
  color: var(--silver-4);
}
.footer-base a:hover { color: var(--silver-1); }

/* ---------- WhatsApp float ---------- */

.wa-float {
  position: fixed;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--silver-gradient);
  color: var(--navy-ink);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.55);
  transition: transform .4s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Mobile-only pieces (hidden on desktop) ---------- */

.nav-contact, .mobile-bar, .carousel-progress, .carousel-hint { display: none; }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

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

@media (max-width: 1080px) {
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--navy-deep);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav a:not(.btn) { font-size: 15px; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  /* backdrop-filter would trap the fixed overlay inside the header */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--navy-line);
    width: min(280px, 80vw);
  }
  .nav .nav-contact a { font-size: 14px; letter-spacing: 0.06em; text-transform: none; color: var(--silver-3); }
  .nav .nav-contact a::after { display: none; }

  .intro-grid, .services-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-head { position: static; }
  .about-mark { max-width: 420px; aspect-ratio: 5 / 3; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .tile-lg, .tile-cta { grid-row: span 1; grid-column: span 2; }
  .principles { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-full { display: none; }
  .brand-mono { display: block; }
  .brand img { height: 30px; }
  .site-header.scrolled .brand img { height: 26px; }
  .hero { padding: 120px 0 110px; }
  .hero::before { display: none; }
  .eyebrow { letter-spacing: 0.3em; }
  .hero-watermark { width: 120vw; right: -40%; opacity: 0.06; }
  .hero-actions .btn-silver { width: 100%; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .tile-lg, .tile-wide, .tile-cta { grid-column: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .frame { padding: 36px 20px 56px; }
  .frame::before, .frame::after { width: calc(50% - 130px); }
  .frame-label { font-size: 11px; letter-spacing: 0.3em; }
  .form-actions .btn { width: 100%; }
  .service { grid-template-columns: 44px 1fr; padding: 30px 0; }
  .area-list li { padding: 0 12px; }
}

/* ---------- Phone layout ---------- */

@media (max-width: 600px) {
  :root { --section-y: 72px; --bar-h: 64px; }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  .section-head { margin-bottom: 36px; }
  .section-title { font-size: 38px; }
  .statement { font-size: 26px; margin-bottom: 24px; }
  .intro-body { font-size: 16px; }

  /* Sticky quick-contact bar replaces the floating WhatsApp button */
  .wa-float { display: none; }
  .mobile-bar {
    display: grid;
    grid-template-columns: 72px 72px 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    height: calc(var(--bar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(10, 20, 34, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--navy-line);
    transform: translateY(110%);
    transition: transform .5s var(--ease);
  }
  .bar-visible .mobile-bar { transform: none; }
  .nav-open .mobile-bar { transform: translateY(110%); }
  .mobile-bar-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--silver-2);
    border-right: 1px solid var(--navy-line);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .mobile-bar-icon svg { width: 20px; height: 20px; }
  .mobile-bar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 12px;
    background: var(--silver-gradient);
    color: var(--navy-ink);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  /* Swipeable carousels for finishes and work */
  [data-carousel] {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 6px;
    scroll-padding: 0 var(--gutter);
  }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel] > * { flex: 0 0 auto; scroll-snap-align: start; }
  .js [data-carousel] > .reveal { opacity: 1; transform: none; }

  .swatch { width: 58%; }
  .swatch-tile { aspect-ratio: 4 / 5; }

  .gallery { grid-auto-rows: auto; }
  .tile, .tile-lg, .tile-wide, .tile-cta { width: 84%; height: 380px; }
  .tile-cta { width: 70%; }

  .carousel-progress {
    display: block;
    position: relative;
    height: 1px;
    margin-top: 26px;
    background: rgba(128, 134, 144, 0.3);
  }
  .carousel-progress span {
    position: absolute;
    top: -1px;
    left: 0;
    height: 3px;
    width: var(--w, 30%);
    transform: translateX(var(--x, 0));
    background: var(--ink);
    transition: transform .15s linear;
  }
  .work .carousel-progress span { background: var(--silver-2); }
  .carousel-hint {
    display: block;
    margin-top: 12px;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }
  .work .carousel-hint { color: var(--silver-4); }

  /* Process as a compact vertical timeline */
  .steps { gap: 0; }
  .step {
    border-top: 0;
    border-left: 1px solid rgba(22, 40, 64, 0.25);
    padding: 0 0 34px 26px;
  }
  .step:last-child { padding-bottom: 0; }
  .step::before { top: 10px; left: -4px; }
  .step-num { font-size: 26px; margin-bottom: 4px; }
  .step h3 { font-size: 21px; margin-bottom: 6px; }

  /* About: the big monogram duplicates the header logo on phones */
  .about-mark { display: none; }
  .principles { gap: 28px; }
  .areas { margin-top: 64px; }

  /* Contact */
  .contact-info .muted { margin-bottom: 28px; }
  .contact-list { gap: 16px; }
  .contact-list a, .contact-list p { font-size: 17px; }

  .site-footer { padding: 56px 0 28px; }
  .footer-logo { height: 52px; }
  .footer-inner { gap: 28px; padding-bottom: 36px; }
}

/* Touch screens: no sticky hover effects after a tap */
@media (hover: none) {
  .service:hover { padding-left: 0; }
  .swatch:hover .swatch-tile { transform: none; }
  .tile:hover .tile-bg { transform: none; }
  .tile:hover::before { opacity: 0; }
  .btn-silver:hover { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
