/* =========================================================
   Dovela International — Contracting · Fit-out · Joinery
   Matched to "Screenshot Lovable rev0.png"
   ========================================================= */

:root {
  --bg: #f4efe8;
  --card: #f8f4ee;
  --tan: #d9cab3;
  --line: #dcc8ab;
  --ink: #2b2622;
  --ink-soft: #4a423b;
  --muted: #6f655c;
  --gold: #a1692a;
  --gold-btn: #9c6b25;
  --gold-light: #cf9a5c;
  --brown: #5b3c2b;
  --dark: #2d2926;
  --cream: #f4efe8;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;

  /* Wood-toned fallback shown if a photo is missing */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.004 0.09' numOctaves='3' seed='7'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

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

.gold { color: var(--gold); }
.gold-light { color: var(--gold-light); }
.brown { color: var(--brown); }

/* ---------- Eyebrows ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow-line::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.eyebrow-ink { color: var(--ink-soft); }
.eyebrow-light { color: var(--gold-light); }

/* ---------- Headings ---------- */
.h2 {
  font-size: clamp(40px, 4.4vw, 70px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  font: 600 15px/1 var(--font);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn .arrow { font-size: 14px; transition: transform .25s; }
.btn:hover .arrow { transform: translate(2px, 2px); }
.btn-gold {
  background: var(--gold-btn);
  color: #fff;
  box-shadow: 0 14px 30px rgba(156, 107, 37, 0.3);
}
.btn-gold:hover { background: #87591b; transform: translateY(-1px); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-outline-light { border-color: rgba(244, 239, 232, .75); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--brown); }

.btn-rect {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 32px;
  background: var(--ink);
  color: #fff;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s;
}
.btn-rect:hover { background: var(--gold); }

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

/* ---------- Photo slots ---------- */
.media {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #8a5d3a;
  background-image: var(--img, none), var(--grain);
  background-size: cover, 600px 600px;
  background-position: center;
  background-blend-mode: normal, multiply;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;   /* the A's bottom sits on the text baseline */
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--ink);
}
/* Montserrat cap height is 0.7em, so the A is exactly as tall as D-O-V-E-L */
.logo-a {
  flex: none;
  width: 0.77em;
  height: 0.7em;
  color: currentColor;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.is-scrolled {
  background: rgba(244, 239, 232, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(43, 38, 34, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); }
.nav a:not(.btn-rect) {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav a:not(.btn-rect):hover { color: var(--gold); }
.nav-cta-mobile { display: none !important; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s, top .3s;
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 130px;
}
.hero-outline {
  position: absolute;
  left: 50%;
  bottom: -0.11em;
  transform: translateX(-50%);
  font-size: 22.5vw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px #ddcfba;
  pointer-events: none;
  user-select: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 42.5% 1fr;
  grid-template-rows: auto auto auto;
}
.hero-eyebrow { grid-column: 1 / -1; grid-row: 1; margin-bottom: 30px; }
.hero-title {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  z-index: 3;
  font-size: clamp(54px, 8.6vw, 126px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.045em;
  pointer-events: none;
}
.hero-main {
  grid-column: 2;
  grid-row: 2 / span 2;
  position: relative;
  z-index: 1;
  margin-top: clamp(80px, 9.4vw, 122px);
  align-self: start;
}
.hero-main .media {
  aspect-ratio: 690 / 518;
  box-shadow: 0 40px 80px rgba(43, 38, 34, .16);
}
.stat-card {
  position: absolute;
  right: -24px;
  bottom: -116px;
  width: 256px;
  padding: 26px 24px 28px;
  background: var(--dark);
  color: var(--cream);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .22);
}
.stat-card strong {
  display: block;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.stat-card span { display: block; font-size: 15px; line-height: 1.5; color: #e7ded2; }

.hero-sub {
  grid-column: 1;
  grid-row: 3;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 231px 1fr;
  gap: 24px;
  margin-top: clamp(40px, 6.5vw, 112px);
}
.hero-detail {
  height: 288px;
  box-shadow: 0 30px 60px rgba(43, 38, 34, .2);
}
.hero-sub-copy p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 4px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  height: 80px;
  display: flex;
  align-items: center;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; }
.marquee li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.marquee li::before {
  content: "";
  width: 9px; height: 9px;
  margin: 0 clamp(28px, 2.4vw, 44px);
  background: var(--gold-btn);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 9.5vw, 168px) 0; }
.section-tan { background: var(--tan); }
.section-dark {
  background-color: var(--dark);
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.018) 0 2px, transparent 2px 7px);
  color: var(--cream);
}
.section-brown { background: var(--brown); color: var(--cream); }

.split-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 86px);
}
.split-head-center { align-items: center; }
.split-intro {
  max-width: 490px;
  justify-self: end;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  padding-bottom: 12px;
}
#work .split-head { grid-template-columns: 1fr 384px; gap: 24px; }
#work .split-intro { justify-self: start; max-width: 340px; font-size: 16px; line-height: 1.55; padding-bottom: 0; }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  padding: 40px 40px 56px;
  background: var(--card);
  border: 1px solid var(--line);
}
.service-card:nth-child(2) { margin-top: 64px; }
.service-card:nth-child(3) { margin-top: 128px; }
.service-num {
  display: block;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #d5c3a9;
  margin: 8px 0 48px;
}
.diamond {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 12px; height: 12px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
}
.service-card h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.service-card p { font-size: 15.5px; line-height: 1.7; color: var(--muted); }

/* ---------- Work collage ---------- */
.collage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  column-gap: 24px;
  padding-bottom: 40px;
}
.shot { position: relative; }
.shot .media { box-shadow: 0 30px 60px rgba(43, 38, 34, .14); }
.shot-a { grid-column: 1; grid-row: 1; z-index: 2; }
.shot-a .media { aspect-ratio: 792 / 594; }
.shot-b { grid-column: 2; grid-row: 1; margin-top: 160px; z-index: 1; }
.shot-b .media { aspect-ratio: 384 / 480; }
.shot-c { grid-column: 1; grid-row: 2; margin: 97px 0 0 13%; z-index: 1; }
.shot-c .media { aspect-ratio: 690 / 430; }

.caption {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  background: var(--bg);
  box-shadow: 0 24px 50px rgba(43, 38, 34, .16);
}
.caption-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.caption strong {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.caption span:last-child { font-size: 14px; color: var(--muted); }
.shot-a .caption { left: 40px; top: 100%; width: 288px; }
.shot-b .caption { left: 24px; right: 24px; bottom: -75px; }
.shot-c .caption { right: -96px; bottom: 48px; width: 288px; }

/* ---------- Clients ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: 408px 1fr;
  align-items: start;
}
.clients-grid .h2 { font-size: clamp(40px, 4vw, 64px); }
.clients-intro {
  margin-top: 40px;
  max-width: 390px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
.client-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.client-list li {
  display: flex;
  flex-direction: column;
  padding: 48px 40px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.client-list .num { font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 24px; }
.client-list strong { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 8px; }
.client-list span:last-child { font-size: 14.5px; color: var(--muted); }

/* ---------- Craft ---------- */
.craft-grid {
  display: grid;
  grid-template-columns: 486px 1fr;
  gap: clamp(48px, 10.5%, 126px);
  align-items: center;
}
.craft-media { position: relative; margin-top: 24px; }
.craft-media .media { aspect-ratio: 486 / 608; }
.craft-frame {
  position: absolute;
  top: -24px;
  right: -40px;
  width: 128px; height: 128px;
  border: 1px solid var(--gold);
  z-index: 2;
}
.h2-craft {
  font-size: clamp(34px, 3.4vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-top: 14px;
  max-width: 570px;
}
.craft-text {
  margin-top: 6px;
  max-width: 540px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.65;
  color: #efe7dc;
}
.craft-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 48px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid rgba(244, 239, 232, .14);
}
.craft-stats strong { display: block; font-size: 20px; font-weight: 700; color: var(--gold-light); margin-bottom: 4px; }
.craft-stats span { font-size: 14.5px; color: #ddd3c6; }

/* ---------- Process ---------- */
.process-title { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.steps li {
  padding: 48px 40px 44px;
  border-right: 1px solid var(--line);
  min-height: 322px;
}
.steps li:last-child { border-right: 0; }
.steps .num { display: block; font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 70px; }
.steps h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 16px; }
.steps p { font-size: 16px; line-height: 1.65; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 384px;
  gap: 48px;
  align-items: end;
}
.h2-contact {
  font-size: clamp(52px, 7vw, 110px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--cream);
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 56px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(244, 239, 232, .2);
  font-size: 19px;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cfc5b8; padding: 64px 0 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 24px;
}
.logo.logo-footer { font-size: 68px; color: var(--cream); }
.footer-tag {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; padding-bottom: 2px; }
.footer-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #e8e0d4;
}
.footer-nav a:hover { color: var(--gold-light); }
.footer-meta { display: flex; flex-direction: column; font-size: 14px; line-height: 1.7; padding-bottom: 6px; }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .nav { gap: 18px; }
  .nav a:not(.btn-rect) { letter-spacing: 0.14em; font-size: 12px; }
  .clients-grid { grid-template-columns: 1fr; gap: 48px; }
  .craft-grid { grid-template-columns: 0.85fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .header-cta { display: none; }
  .menu-toggle { display: block; z-index: 2; }
  .logo { font-size: 28px; }
  .nav {
    /* explicit size: the scrolled header's backdrop-filter makes it the containing block */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav a:not(.btn-rect) { font-size: 16px; letter-spacing: 0.22em; color: var(--ink); }
  .nav-cta-mobile { display: inline-flex !important; margin-top: 8px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }

  .hero { padding-bottom: 96px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { grid-column: 1; grid-row: 3; margin-top: 36px; }
  .stat-card { position: relative; right: auto; bottom: auto; margin: -48px 0 0 auto; width: min(256px, 70%); }
  .hero-sub { grid-column: 1; grid-row: 4; margin-top: 40px; padding-right: 0; }

  .split-head, #work .split-head { grid-template-columns: 1fr; gap: 24px; }
  .split-intro { justify-self: start; }

  .services { grid-template-columns: 1fr; }
  .service-card:nth-child(n) { margin-top: 0; }

  .collage { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-bottom: 0; }
  .shot-a, .shot-b, .shot-c { grid-column: 1; grid-row: auto; margin: 0 0 48px; }
  .shot-b .media { aspect-ratio: 4 / 3; }
  .caption,
  .shot-a .caption,
  .shot-b .caption,
  .shot-c .caption {
    position: relative;
    inset: auto;
    width: auto;
    margin: -40px 16px 0;
  }

  .craft-grid { grid-template-columns: 1fr; }
  .craft-media { max-width: 486px; margin-right: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { min-height: 0; border-bottom: 1px solid var(--line); }
  .steps li:nth-child(2n) { border-right: 0; }
  .steps li:nth-child(n+3) { border-bottom: 0; }
  .steps .num { margin-bottom: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-sub { grid-template-columns: 1fr; }
  .hero-detail { height: 240px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .client-list { grid-template-columns: 1fr; }
  .client-list li { padding: 32px 24px; }
  .service-card { padding: 32px 28px 40px; }
  .diamond { top: 32px; right: 28px; }
  .craft-stats { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); padding: 36px 28px; }
  .steps li:last-child { border-bottom: 0; }
  .contact-list li { font-size: 16px; }
  .logo.logo-footer { font-size: 50px; }
  .footer-meta { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
