/* ============================================================
   VSquare Living — stylesheet
   Palette: deep teal, warm ivory, terracotta accent
   ============================================================ */

:root {
  --ink: #0f2a33;
  --ink-2: #1d4c57;
  --teal: #2d6a7a;
  --teal-dark: #16434d;
  --accent: #d46a3b;
  --accent-2: #c95a2a;
  --cream: #faf6ee;
  --cream-2: #f2ead8;
  --line: #e4dcc6;
  --muted: #5a6b72;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 30px 60px -30px rgba(15,42,51,.25);
  --shadow-sm: 0 10px 30px -18px rgba(15,42,51,.25);
  --max: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .4em;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin: 0 0 .8em;
}
.eyebrow.light { color: #c9e3ea; }

.h-display {
  font-size: clamp(2.2rem, 5vw + .4rem, 4.6rem);
  line-height: 1.02;
  margin-bottom: .3em;
}
.h-display .ink {
  display: inline-block;
  position: relative;
  font-style: italic;
  color: var(--teal);
}
.h-display .ink::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .04em;
  height: .14em;
  background: var(--accent);
  opacity: .35;
  border-radius: 4px;
}

.h-section {
  font-size: clamp(1.75rem, 2.4vw + .8rem, 2.8rem);
  line-height: 1.1;
  margin-bottom: .5em;
}

.sec-head {
  max-width: 760px;
  margin: 0 auto 2.8rem;
  text-align: center;
}
.sec-sub { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 14px 30px -18px rgba(15,42,51,.6);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(250,246,238,.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(15,42,51,.08);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
}
.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
}
.brand-text strong { font-weight: 800; letter-spacing: -0.01em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: .95rem;
  font-weight: 500;
}
.nav-links a { color: var(--ink); opacity: .85; }
.nav-links a:hover { opacity: 1; color: var(--teal); }
.nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  opacity: 1 !important;
}
.nav-cta:hover { background: var(--teal-dark); }
.nav-burger {
  display: none;
  background: none; border: 0;
  width: 42px; height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}
.hero-copy .lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 1.2rem 0 1.8rem;
}
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 1.2rem 1.4rem;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hero-stats li { display: block; }
.hero-stats strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1;
}
.hero-stats span {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  margin-top: .4rem;
}

/* ---------- Hero viz : draggable reveal ---------- */
.hero-viz { display: flex; flex-direction: column; align-items: center; }
.reveal {
  position: relative;
  width: 100%;
  aspect-ratio: 600/420;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 0;
  background: #eef4f7;
  user-select: none;
  cursor: ew-resize;
}
.reveal-layer {
  position: absolute;
  inset: 0;
}
.reveal-layer svg { width: 100%; height: 100%; }
.reveal-before {
  /* Revealed area shown on the LEFT of the handle — via clip-path */
  clip-path: inset(0 50% 0 0);
  transition: clip-path .05s linear;
}
.reveal-label {
  position: absolute;
  top: 14px;
  padding: 6px 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
}
.reveal-label--before {
  left: 14px;
  background: rgba(15,42,51,.8);
  color: #fff;
}
.reveal-label--after {
  right: 14px;
  background: var(--accent);
  color: #fff;
}
.reveal-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #fff;
  border: 0;
  padding: 0;
  transform: translateX(-50%);
  z-index: 4;
  box-shadow: 0 0 0 1px rgba(15,42,51,.15), 0 0 40px rgba(255,255,255,.5);
  cursor: ew-resize;
}
.reveal-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 700;
  font-size: .8rem;
  box-shadow: 0 14px 30px -10px rgba(15,42,51,.35);
}
.reveal-hint {
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- Logo strip ---------- */
.logos {
  padding: 2.2rem clamp(1rem, 4vw, 2.5rem);
  background: var(--ink);
  color: #c9e3ea;
  text-align: center;
}
.logos p {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 1rem;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  color: #fff;
  opacity: .85;
}
.logo-row span {
  padding: .2rem .6rem;
  border-bottom: 1px dashed rgba(255,255,255,.25);
}

/* ---------- Section defaults ---------- */
section {
  padding: clamp(4rem, 7vw, 7rem) clamp(1rem, 4vw, 2.5rem);
}
.why, .services, .solutions, .process, .quotes, .areas {
  max-width: var(--max);
  margin: 0 auto;
}

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.why-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.why-grid article:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.why-grid .ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--cream-2);
  color: var(--teal);
  border-radius: 14px;
  margin-bottom: 1.1rem;
}
.why-grid h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.why-grid p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- Services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.svc-card {
  padding: 2rem 1.8rem 1.8rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.svc-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 260px; height: 260px;
  border-radius: 50%;
  opacity: .15;
  filter: blur(20px);
}
.svc-waterproof::before { background: radial-gradient(circle, var(--teal), transparent 70%); }
.svc-paint::before      { background: radial-gradient(circle, var(--accent), transparent 70%); }
.svc-wood::before       { background: radial-gradient(circle, #7a5a2b, transparent 70%); }

.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--ink-2);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.svc-card h3 {
  font-size: 1.45rem;
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}
.svc-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  position: relative;
  z-index: 1;
}
.svc-card li {
  padding: .5rem 0 .5rem 1.4rem;
  color: var(--muted);
  font-size: .94rem;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.svc-card li:last-child { border-bottom: 0; }
.svc-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.link {
  font-weight: 600;
  color: var(--teal);
  position: relative;
  z-index: 1;
}
.link:hover { color: var(--accent); }

/* ---------- Solutions ---------- */
.solutions { position: relative; }
.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.sol {
  padding: 2rem 1.7rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.sol-num {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  color: var(--cream-2);
  font-weight: 800;
  line-height: 1;
  position: absolute;
  right: 1.4rem;
  top: 1rem;
}
.sol h3 { font-size: 1.25rem; margin-bottom: .6rem; position: relative; }
.sol p { color: var(--muted); font-size: .94rem; }
.chip {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  letter-spacing: .05em;
}

/* ---------- Segments ---------- */
.segments {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  padding: clamp(4rem, 7vw, 7rem) clamp(1rem, 4vw, 2.5rem);
}
.seg {
  padding: 2.6rem 2.2rem;
  border-radius: 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.seg h2 { color: #fff; }
.seg p { color: rgba(255,255,255,.82); }
.seg-new {
  background: linear-gradient(135deg, #164752 0%, #0f2a33 100%);
}
.seg-repair {
  background: linear-gradient(135deg, #d46a3b 0%, #9c3a12 100%);
}
.seg .btn-primary {
  background: #fff;
  color: var(--ink);
}
.seg .btn-primary:hover { background: var(--cream-2); }
.tick { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.tick li {
  padding: .55rem 0 .55rem 1.6rem;
  position: relative;
  border-bottom: 1px dashed rgba(255,255,255,.18);
  font-size: .95rem;
}
.tick li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #fff;
  opacity: .8;
  font-weight: 700;
}

/* ---------- Process ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  counter-reset: step;
  gap: 1rem;
}
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.1rem;
  text-align: left;
  position: relative;
}
.steps li span {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  margin-bottom: .8rem;
}
.steps h4 { font-size: 1.05rem; margin: 0 0 .3rem; }
.steps p { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quotes { }
.q-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
blockquote {
  margin: 0;
  padding: 2rem 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
blockquote::before {
  content: "“";
  position: absolute;
  top: -14px; left: 18px;
  font-family: 'Fraunces', serif;
  font-size: 5rem;
  color: var(--accent);
  line-height: 1;
}
blockquote p {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.45;
  margin: 0 0 1rem;
}
blockquote footer {
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- Areas ---------- */
.areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.pins {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pin {
  padding: 1.4rem 1rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
}
.pin strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  margin-bottom: .3rem;
}
.pin span { font-size: .8rem; color: var(--muted); }
.pin-active { background: var(--ink); color: var(--cream); }
.pin-active span { color: #b6d3da; }

/* ---------- Contact ---------- */
.contact {
  max-width: var(--max);
  margin: 0 auto clamp(3rem, 5vw, 5rem);
  background: linear-gradient(135deg, #0f2a33 0%, #164752 60%, #1d4c57 100%);
  color: #fff;
  border-radius: 28px;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact h2 { color: #fff; }
.contact-copy p { color: rgba(255,255,255,.75); }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li {
  padding: .8rem 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-size: .97rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.contact-list .ci {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  flex: 0 0 auto;
}
.contact-list a { color: #fff; border-bottom: 1px dashed rgba(255,255,255,.4); }

.contact-form {
  background: rgba(255,255,255,.06);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  font-weight: 600;
  gap: .4rem;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  padding: .85rem .95rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .95rem;
  font-weight: 400;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.45); }
.contact-form select option { color: var(--ink); }
.contact-form textarea { resize: vertical; }
.contact-form .btn {
  grid-column: 1 / -1;
  background: var(--accent);
  color: #fff;
  justify-self: start;
  border: 0;
}
.contact-form .btn:hover { background: var(--accent-2); }
.form-ok {
  grid-column: 1 / -1;
  color: #b6f0c0;
  font-size: .9rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.foot {
  background: #0a1d23;
  color: #c9e3ea;
  padding: 4rem clamp(1rem, 4vw, 2.5rem) 1.4rem;
}
.foot-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand--foot { color: #fff; }
.brand--foot .brand-mark { background: var(--accent); }
.brand-logo--foot {
  height: 72px;
  width: auto;
  border-radius: 10px;
  margin-bottom: .9rem;
}
.foot p { color: rgba(255,255,255,.6); font-size: .9rem; max-width: 38ch; margin-top: .9rem; }
.foot h5 { color: #fff; font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; margin-bottom: 1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { padding: .35rem 0; font-size: .9rem; color: rgba(255,255,255,.7); }
.foot li a:hover { color: var(--accent); }
.foot-base {
  max-width: var(--max);
  margin: 1.2rem auto 0;
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Reveal-on-scroll ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .sol-grid, .q-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .segments, .areas, .contact { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 1rem; right: 1rem;
    flex-direction: column;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    gap: 1rem;
    box-shadow: var(--shadow);
  }
  .hero-stats { grid-template-columns: 1fr; }
  .why-grid, .svc-grid, .sol-grid, .q-grid, .foot-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; gap: .5rem; }
}

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem .95rem .65rem .8rem;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .35), 0 2px 6px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, .45); }
.wa-float svg { display: block; }
@media (max-width: 480px) {
  .wa-float span { display: none; }
  .wa-float { padding: .75rem; border-radius: 50%; }
}

.form-err {
  margin: 0;
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  padding: .6rem .8rem;
  border-radius: .5rem;
  font-size: .92rem;
}
.contact-form button[disabled] { opacity: .6; cursor: not-allowed; }
