/* ============================================================
   D M Dixon & Son LTD — Maldon Builders
   Bespoke build · Crimson Pro + Inter · Deep brick red palette
   ============================================================ */

:root{
  --brand: #9b3a3a;            /* deep brick red, evolved from original #993333 */
  --brand-deep: #7a2d2d;
  --brand-soft: #c25a5a;
  --ink: #1a1a1a;
  --ink-soft: #444;
  --line: #e6dfd6;
  --cream: #faf7f2;
  --cream-deep: #f0e9dd;
  --gold: #b88a3e;
  --green: #2d6a3f;
  --shadow: 0 12px 32px rgba(28,18,12,.10);
  --shadow-lg: 0 24px 60px rgba(28,18,12,.18);
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img{max-width:100%; height:auto; display:block;}
a{color: var(--brand); text-decoration: none;}
a:hover{color: var(--brand-deep);}

.h-serif{
  font-family: 'Crimson Pro', 'Source Serif Pro', Georgia, serif;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.15;
}

.container{ width: min(1180px, 92vw); margin: 0 auto; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.brand-mark{
  display: flex; align-items: baseline; gap: 10px;
  color: var(--ink); text-decoration: none;
}
.brand-mark .mark-name{
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  letter-spacing: -.01em;
}
.brand-mark .mark-name .amp{ color: var(--brand); font-style: italic; }
.brand-mark .mark-sub{
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
@media (min-width: 720px){ .brand-mark .mark-sub{ display: inline-block; } }

.nav-list{
  list-style: none;
  display: none;
  gap: 26px;
}
@media (min-width: 980px){ .nav-list{ display: flex; } }
.nav-list a{
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  letter-spacing: .01em;
}
.nav-list a::after{
  content: '';
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--brand);
  transition: width .25s ease;
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after{ width: 100%; }
.nav-list a[aria-current="page"]{ color: var(--brand); }

.has-sub{ position: relative; }
.has-sub > a::before{
  content: ''; position: absolute; right: -14px; top: 50%;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
}
.sub-menu{
  position: absolute; top: 100%; left: -18px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 240px;
  padding: 10px 0;
  display: none;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu{ display: block; }
.sub-menu a{ display: block; padding: 10px 22px; font-size: .9rem; }
.sub-menu a:hover{ background: var(--cream-deep); color: var(--brand); }
.sub-menu a::after{ display: none; }

.phone-cta{
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  padding: 11px 18px;
  border-radius: 2px;
  letter-spacing: .01em;
  transition: background .2s ease;
}
.phone-cta:hover{ background: var(--brand-deep); color: #fff; }
.phone-cta .icn{ width: 16px; height: 16px; }

.mobile-toggle{
  display: inline-flex;
  flex-direction: column; gap: 5px;
  background: transparent; border: 0;
  padding: 8px; cursor: pointer;
}
@media (min-width: 980px){ .mobile-toggle{ display: none; } }
.mobile-toggle span{ width: 26px; height: 2px; background: var(--ink); }
.mobile-nav{
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 0 24px;
}
.mobile-nav.open{ display: block; }
.mobile-nav ul{ list-style: none; padding: 0 24px; }
.mobile-nav li{ border-bottom: 1px solid var(--line); }
.mobile-nav a{
  display: block; padding: 14px 0;
  color: var(--ink);
  font-weight: 500;
}
.mobile-nav .sub-list{ padding: 0 0 8px 18px; }
.mobile-nav .sub-list a{ padding: 8px 0; font-size: .92rem; color: var(--ink-soft); }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  min-height: 78vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #1c1310;
}
.hero-bg{
  position: absolute; inset: 0; z-index: -2;
  background-size: cover;
  background-position: center;
  filter: saturate(.95) brightness(.85);
}
.hero::before{
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(20,12,8,.85) 0%, rgba(20,12,8,.55) 45%, rgba(20,12,8,.15) 100%);
}
.hero-inner{
  padding: 80px 0 64px;
  max-width: 640px;
  color: #fff;
}
.hero-eyebrow{
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #f0d9ad;
  margin-bottom: 22px;
}
.hero-eyebrow::before{
  content: ''; width: 36px; height: 1px; background: #f0d9ad;
}
.hero h1{
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -.012em;
  margin-bottom: 22px;
}
.hero h1 em{
  font-style: italic;
  color: #f0d9ad;
  font-weight: 500;
}
.hero p.lead{
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  line-height: 1.55;
  color: rgba(255,255,255,.86);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-size: .95rem; font-weight: 600;
  border-radius: 2px;
  text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn-primary{ background: var(--brand); color: #fff; }
.btn-primary:hover{ background: var(--brand-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost{
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.btn-ghost:hover{ border-color: #fff; }

/* Hero stat row */
.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 28px;
  margin-top: 40px;
  max-width: 560px;
}
.hero-stat .n{
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: #f0d9ad;
  line-height: 1;
}
.hero-stat .lbl{
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-top: 8px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
section{ padding: 88px 0; }
@media (max-width: 720px){ section{ padding: 64px 0; } }

.section-head{
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head .eyebrow{
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
  display: inline-block;
}
.section-head h2{
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}
.section-head h2 em{ color: var(--brand); font-style: italic; }
.section-head p.kicker{
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 600px;
}

/* About — split with stats */
.about{ background: #fff; }
.about-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px){ .about-grid{ grid-template-columns: 1fr; gap: 48px; } }
.about-body p{ margin-bottom: 18px; color: var(--ink-soft); }
.about-body p:first-of-type::first-letter{
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 3.4rem;
  line-height: .9;
  float: left;
  padding: 6px 14px 0 0;
  color: var(--brand);
}
.about-numbers{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.num-cell{
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.num-cell:nth-child(2n){ border-right: 0; }
.num-cell:nth-last-child(-n+2){ border-bottom: 0; }
.num-cell .n{
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 10px;
}
.num-cell .lbl{
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Services — offset grid (non-uniform) */
.services{ background: var(--cream); }
.svc-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}
@media (max-width: 880px){ .svc-grid{ grid-template-columns: 1fr; gap: 22px; } }
.svc-card{
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.svc-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.svc-card .photo{
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
}
.svc-card .body{ padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.svc-card h3{
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.45rem; font-weight: 600;
  margin-bottom: 12px; letter-spacing: -.005em;
}
.svc-card p{ color: var(--ink-soft); font-size: .96rem; margin-bottom: 18px; }
.svc-card .more{
  margin-top: auto;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.svc-card .more::after{ content: ' →'; }
/* Asymmetric placement */
.svc-card.span-7{ grid-column: span 7; }
.svc-card.span-5{ grid-column: span 5; }
.svc-card.span-4{ grid-column: span 4; }
.svc-card.span-8{ grid-column: span 8; }
.svc-card.span-6{ grid-column: span 6; }
.svc-card.span-12{ grid-column: span 12; }
@media (max-width: 880px){
  .svc-card.span-7, .svc-card.span-5, .svc-card.span-4, .svc-card.span-8, .svc-card.span-6, .svc-card.span-12{
    grid-column: 1 / -1;
  }
}

/* Gallery — mosaic */
.gallery{ background: #fff; }
.mosaic{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 720px){ .mosaic{ grid-template-columns: repeat(2, 1fr); } }
.mosaic .tile{
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}
.mosaic .tile::after{
  content: ''; position: absolute; inset: 0;
  background: rgba(28,18,12,0);
  transition: background .25s ease;
}
.mosaic .tile:hover::after{ background: rgba(28,18,12,.18); }
.mosaic .tile.w2{ grid-column: span 2; }
.mosaic .tile.w3{ grid-column: span 3; }
.mosaic .tile.h2{ aspect-ratio: 4 / 6; }
@media (max-width: 720px){
  .mosaic .tile.w2, .mosaic .tile.w3{ grid-column: span 1; }
  .mosaic .tile.h2{ aspect-ratio: 4 / 3; }
}

/* Lightbox */
.lightbox{
  position: fixed; inset: 0;
  background: rgba(10,7,5,.92);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 24px;
}
.lightbox.open{ display: flex; }
.lightbox img{ max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox .close, .lightbox .prev, .lightbox .next{
  position: absolute; background: transparent; border: 0;
  color: #fff; font-size: 32px; cursor: pointer;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .close{ top: 16px; right: 16px; }
.lightbox .prev{ left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .next{ right: 16px; top: 50%; transform: translateY(-50%); }

/* Testimonials — two stacked quote blocks */
.testimonials{ background: var(--cream-deep); }
.quote-stack{ display: grid; gap: 36px; max-width: 900px; margin: 0 auto; }
.quote-card{
  background: #fff;
  padding: 56px 56px 48px;
  border-left: 3px solid var(--brand);
  position: relative;
}
@media (max-width: 720px){ .quote-card{ padding: 40px 28px 32px; } }
.quote-card::before{
  content: '"';
  position: absolute; top: 12px; left: 30px;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 7rem;
  line-height: 1;
  color: var(--cream-deep);
  z-index: 0;
}
.quote-card blockquote{
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink);
  position: relative; z-index: 1;
  margin-bottom: 22px;
  font-style: italic;
  font-weight: 400;
}
.quote-card cite{
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}

/* Full-width CTA */
.cta-band{
  background: var(--brand);
  color: #fff;
  padding: 96px 0;
  text-align: center;
}
.cta-band h2{
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 22px;
}
.cta-band h2 em{ color: #f0d9ad; font-style: italic; }
.cta-band p{
  max-width: 580px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,.88);
  font-size: 1.08rem;
}
.cta-actions{ display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.cta-band .btn-primary{ background: var(--ink); color: #fff; }
.cta-band .btn-primary:hover{ background: #000; }
.cta-band .btn-ghost{ border-color: rgba(255,255,255,.5); color: #fff; }
.cta-band .btn-ghost:hover{ background: rgba(255,255,255,.08); }
.cta-band .phone-line{
  display: block; margin-top: 26px;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: #fff;
}
.cta-band .phone-line a{ color: #fff; text-decoration: underline; text-underline-offset: 5px; }

/* Contact panel */
.contact-panel{ background: #fff; }
.contact-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: flex-start;
}
@media (max-width: 880px){ .contact-grid{ grid-template-columns: 1fr; gap: 40px; } }

.contact-form{
  background: var(--cream);
  padding: 40px 36px;
  border-top: 3px solid var(--brand);
}
.form-row{ display: grid; gap: 16px; margin-bottom: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px){ .form-row{ grid-template-columns: 1fr; } }
.contact-form label{
  display: block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-weight: 600;
}
.contact-form input, .contact-form select, .contact-form textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
}
.contact-form textarea{ min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus{
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
.contact-form button{
  margin-top: 14px;
  width: 100%;
}
.contact-form .promise{
  margin-top: 14px;
  font-size: .82rem;
  color: var(--ink-soft);
}

.contact-details dl{ display: grid; grid-template-columns: 100px 1fr; row-gap: 18px; align-items: baseline; }
.contact-details dt{
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}
.contact-details dd{ font-size: 1rem; color: var(--ink); }
.contact-details dd a{ color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.contact-details h3{
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.contact-map{
  margin-top: 32px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.contact-map iframe{ width: 100%; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background: #1a1410;
  color: #c8bfb3;
  padding: 72px 0 28px;
  font-size: .92rem;
}
.foot-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
}
@media (max-width: 720px){ .foot-grid{ grid-template-columns: 1fr 1fr; gap: 36px; } }
.foot-col h4{
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.15rem;
  color: #f0d9ad;
  margin-bottom: 18px;
  font-weight: 600;
}
.foot-col ul{ list-style: none; }
.foot-col li{ margin-bottom: 8px; }
.foot-col a{ color: #c8bfb3; }
.foot-col a:hover{ color: #fff; }
.foot-brand .mark{
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.45rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.foot-brand .mark .amp{ color: var(--brand-soft); font-style: italic; }
.foot-bottom{
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .82rem;
  color: #8a8175;
}

/* Page hero (sub-pages) */
.page-hero{
  background: var(--ink);
  color: #fff;
  padding: 96px 0 72px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-hero-bg{
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  opacity: .35;
}
.page-hero h1{
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 18px;
}
.page-hero h1 em{ color: #f0d9ad; font-style: italic; }
.page-hero p{ color: rgba(255,255,255,.82); max-width: 560px; font-size: 1.08rem; }
.crumbs{
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(240,217,173,.85);
  margin-bottom: 22px;
}
.crumbs a{ color: rgba(240,217,173,.85); }
.crumbs span{ margin: 0 10px; opacity: .45; }

/* Sub-page body */
.sub-body{ background: var(--cream); padding: 80px 0; }
.sub-body-grid{
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: flex-start;
}
@media (max-width: 880px){ .sub-body-grid{ grid-template-columns: 1fr; gap: 40px; } }
.sub-body h2{
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 22px;
  font-weight: 600;
}
.sub-body p{ color: var(--ink-soft); margin-bottom: 18px; }
.sub-body .side-card{
  background: #fff;
  border-left: 3px solid var(--brand);
  padding: 32px 30px;
}
.sub-body .side-card h3{
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.2rem; margin-bottom: 14px;
}
.sub-body .side-card p{ font-size: .94rem; margin-bottom: 16px; }

/* Sticky mobile CTA (rule 5) */
.sticky-call{
  position: fixed; bottom: 14px; left: 14px; right: 14px; z-index: 60;
  background: var(--brand);
  color: #fff;
  border-radius: 2px;
  padding: 13px 18px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: .95rem;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.sticky-call:hover{ color: #fff; }
.sticky-call .icn{ width: 18px; height: 18px; }
@media (min-width: 900px){ .sticky-call{ display: none; } }
