/* ==========================================================================
   Hampton Construction & Interior Design Ltd.
   Brand: blue + red taken from the business card, blueprint-grey neutrals.
   ========================================================================== */

:root {
  --navy:   #06315E;
  --blue:   #084795;
  --blue-2: #1A63BC;
  --red:    #BA171E;
  --ink:    #171B21;
  --steel:  #5C6673;
  --line:   #D7DCE3;
  --paper:  #F4F5F7;
  --white:  #FFFFFF;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;

  --wrap: 1180px;
  --gut: 24px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 .5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: 68ch; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--blue-2);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px;
}
.skip:focus { left: 8px; top: 8px; }

/* --- Signature device: a measuring rule -------------------------------- */
.rule {
  position: relative;
  height: 13px;
  margin: 0 0 26px;
  max-width: 210px;
  border-top: 2px solid var(--red);
}
.rule::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 8px;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 21px 100%;
}
.rule.on-dark { border-top-color: var(--red); }
.rule.on-dark::before { background-image: linear-gradient(to right, rgba(255,255,255,.34) 1px, transparent 1px); }

/* --- Header ------------------------------------------------------------ */
.topbar {
  background: var(--navy);
  color: #C9D6E8;
  font-size: .86rem;
}
.topbar .wrap {
  display: flex; gap: 22px; align-items: center; justify-content: flex-end;
  min-height: 40px; flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(6px);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 82px; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { width: 50px; height: auto; flex: none; }
.brand b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--blue);
  max-width: 15ch;
}
.brand span {
  display: block; font-size: .74rem; color: var(--steel);
  font-weight: 500; letter-spacing: .01em; margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 500;
  font-size: .97rem;
  text-decoration: none;
  border-radius: 3px;
}
.nav a:hover { background: var(--paper); color: var(--navy); }
.nav a[aria-current="page"] {
  color: var(--blue);
  box-shadow: inset 0 -3px 0 var(--red);
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -0.01em;
  padding: 13px 24px;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--navy); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line); background: #fff;
  padding: 10px 13px; font-family: var(--display); font-weight: 600;
  font-size: .95rem; cursor: pointer; color: var(--navy);
}

@media (max-width: 940px) {
  .site-head .wrap { min-height: 70px; }
  .brand-mark { width: 42px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 18px;
    box-shadow: 0 14px 24px -18px rgba(6,49,94,.55);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin-top: 14px; text-align: center; border-bottom: 2px solid var(--blue); }
  .topbar .wrap { justify-content: center; gap: 16px; font-size: .8rem; }
}

/* --- Hero -------------------------------------------------------------- */
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px;
  align-items: center; padding-block: 82px 0;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .tag {
  font-family: var(--display);
  font-style: italic; font-weight: 600;
  color: #FF8B8F;
  font-size: 1.2rem; margin: 0 0 22px;
}
.hero p.lede { color: #C4D2E4; font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding-bottom: 78px; }

.hero-figure { align-self: end; }
.hero-shot { aspect-ratio: 4 / 3.4; }
.hero-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero-strip div { padding: 20px 18px 30px; border-left: 1px solid rgba(255,255,255,.16); }
.hero-strip div:first-child { border-left: 0; padding-left: 0; }
.hero-strip b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 1.02rem; color: #fff; letter-spacing: -0.01em;
}
.hero-strip span { font-size: .84rem; color: #9DB2CC; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; padding-block: 54px 0; }
  .hero-actions { padding-bottom: 34px; }
  .hero-figure { margin-inline: calc(var(--gut) * -1); }
  .hero-strip { padding-inline: var(--gut); }
}

/* --- Page header (inner pages) ----------------------------------------- */
.page-head { background: var(--navy); color: #fff; padding-block: 66px 60px; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: #C4D2E4; max-width: 56ch; margin: 0; font-size: 1.06rem; }
.crumb { font-size: .85rem; color: #8FA6C2; margin: 0 0 18px; }
.crumb a { color: #C4D2E4; text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }

/* --- Sections ---------------------------------------------------------- */
.section { padding-block: 84px; }
.section-tight { padding-block: 60px; }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #C4D2E4; }

.section-intro { max-width: 62ch; margin-bottom: 46px; }
.section-intro p { font-size: 1.08rem; color: var(--steel); margin-bottom: 0; }
.section-navy .section-intro p { color: #C4D2E4; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.split-wide { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 880px) { .split, .split-wide { grid-template-columns: 1fr; gap: 38px; } }

/* --- Image slots ------------------------------------------------------- */
.shot {
  position: relative;
  background:
    repeating-linear-gradient(135deg, #E7EAEF 0 12px, #E1E5EB 12px 24px);
  aspect-ratio: 4 / 3;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot::after {
  content: attr(data-label);
  position: relative; z-index: 1;
  width: 100%;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: .78rem;
  color: #4A5563;
  background: rgba(255,255,255,.82);
}
.shot:has(img)::after { display: none; }

/* --- Service list ------------------------------------------------------ */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 260px 1fr auto; gap: 34px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.service h3 { margin: 0; color: var(--navy); }
.service p { margin: 0; color: var(--steel); }
.service ul { margin: 12px 0 0; padding-left: 18px; color: var(--steel); font-size: .96rem; }
.service ul li { margin-bottom: 5px; }
.service .service-aside { color: var(--steel); font-size: .9rem; max-width: 22ch; }
@media (max-width: 880px) {
  .service { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .service .service-aside { max-width: none; }
}

/* --- Cards / grids ----------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.project h3 { margin: 16px 0 4px; font-size: 1.08rem; }
.project p { margin: 0; color: var(--steel); font-size: .94rem; }
.project .meta { font-size: .82rem; color: var(--blue); font-weight: 600; margin-top: 8px; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  padding: 28px 26px;
}
.panel h3 { margin-bottom: .4em; }
.panel p:last-child { margin-bottom: 0; }

/* --- Checklist --------------------------------------------------------- */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative; padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--steel);
}
.checks li b { display: block; color: var(--ink); font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 21px;
  width: 11px; height: 11px;
  border: 2px solid var(--red);
  transform: rotate(45deg);
}
.section-navy .checks li { border-bottom-color: rgba(255,255,255,.16); color: #C4D2E4; }
.section-navy .checks li b { color: #fff; }

/* --- Process steps (genuine sequence, so numbered) --------------------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 62px 1fr; gap: 22px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  color: var(--red); line-height: 1;
}
.step h3 { margin: 0 0 .3em; font-size: 1.1rem; }
.step p { margin: 0; color: var(--steel); }
.section-navy .step { border-bottom-color: rgba(255,255,255,.16); }
.section-navy .step p { color: #C4D2E4; }

/* --- Stats ------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.stats div { background: #fff; padding: 26px 22px; }
.stats b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 2.1rem; color: var(--blue); letter-spacing: -0.03em; line-height: 1;
}
.stats span { font-size: .9rem; color: var(--steel); }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; } }

/* --- Quote / testimonial ----------------------------------------------- */
blockquote.quote {
  margin: 0; padding: 0 0 0 26px;
  border-left: 3px solid var(--red);
  font-size: 1.22rem; line-height: 1.5;
  font-family: var(--display); font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
}
blockquote.quote footer {
  margin-top: 14px; font-family: var(--body); font-size: .9rem;
  font-weight: 400; color: var(--steel); letter-spacing: 0;
}
.section-navy blockquote.quote { color: #fff; }
.section-navy blockquote.quote footer { color: #9DB2CC; }

/* --- CTA band ---------------------------------------------------------- */
.cta-band { background: var(--blue); color: #fff; padding-block: 62px; }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: #D6E3F5; max-width: 52ch; }
.cta-band .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Forms ------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .93rem; color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--steel); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem;
  padding: 12px 13px;
  border: 1px solid var(--line);
  background: #fff; color: var(--ink);
  border-radius: 2px;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); outline: 3px solid rgba(8,71,149,.22); outline-offset: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.form .note { font-size: .85rem; color: var(--steel); margin: 0; }

/* --- Contact details --------------------------------------------------- */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list b { display: block; font-size: .84rem; color: var(--steel); font-weight: 600; margin-bottom: 3px; }
.contact-list a { font-family: var(--display); font-weight: 600; font-size: 1.12rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list address { font-style: normal; font-size: 1.02rem; }

/* --- Footer ------------------------------------------------------------ */
.site-foot { background: var(--ink); color: #A8B2C0; padding-block: 58px 0; font-size: .94rem; }
.site-foot h4 {
  color: #fff; font-size: .95rem; font-weight: 700; margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.site-foot a { color: #D5DCE6; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-mark { width: 56px; height: auto; margin-bottom: 16px; }
.foot-brand p { color: #8B95A3; font-size: .9rem; max-width: 34ch; }
.foot-brand .tag { color: #FF8B8F; font-style: italic; font-weight: 600; font-family: var(--display); }
.foot-bar {
  margin-top: 46px; padding-block: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: .84rem; color: #79838F;
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* --- Form feedback, honeypot, captcha ---------------------------------- */

.alert {
  padding: 18px 20px;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: var(--paper);
  font-size: .97rem;
}
.alert b { display: block; margin-bottom: 4px; color: var(--navy); }
.alert ul { margin: 8px 0 0; padding-left: 20px; }
.alert li { margin-bottom: 4px; }
.alert p:last-child { margin-bottom: 0; }

.alert-ok {
  border-left-color: #1E7A45;
  background: #F1F8F3;
}
.alert-ok b { color: #14532D; }

.alert-error {
  border-left-color: var(--red);
  background: #FDF2F2;
}
.alert-error b { color: #8C1015; }

/* Honeypot: kept out of view without display:none, which some bots detect. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

.field-captcha {
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.field-captcha input { max-width: 140px; }
.field-captcha label { display: block; }

.cf-turnstile { min-height: 65px; }
