/* ============================================================
   The Dorset Floor Sanding Company — Landing Page
   Palette: logo navy + gold, warmed with creams + oak
   ============================================================ */

:root {
  /* Brand */
  --navy:      #15324f;
  --navy-700:  #1d4368;
  --navy-900:  #0f2638;
  --gold:      #b3873d;
  --gold-soft: #c9a468;
  --gold-tint: #e9d9b8;
  --walnut:    #5b3d29;

  /* Neutrals (warm) */
  --cream:     #faf5ec;
  --cream-2:   #f3ead9;
  --paper:     #fffdf8;
  --ink:       #2a2521;
  --ink-soft:  #6f655a;
  --line:      rgba(42, 37, 33, 0.12);
  --line-soft: rgba(42, 37, 33, 0.07);

  /* Accent — locked: warm walnut brown */
  --accent:    #8a5a34;

  /* Type — locked: Playfair Display headings */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Manrope", system-ui, sans-serif;

  /* Shape — locked: slightly rounded */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Shadows — soft, warm */
  --sh-sm: 0 1px 2px rgba(42,37,33,.05), 0 2px 6px rgba(42,37,33,.05);
  --sh:    0 4px 14px rgba(42,37,33,.08), 0 2px 6px rgba(42,37,33,.05);
  --sh-lg: 0 22px 60px -18px rgba(15,38,56,.30), 0 8px 24px rgba(42,37,33,.08);

  --maxw: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

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

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--alt   { background: var(--cream-2); }
.section--navy  { background: var(--navy); color: var(--cream); }
.section--navy h1,.section--navy h2,.section--navy h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; border-radius: 2px; }
.eyebrow.center { justify-content: center; }

.section-head { max-width: 640px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); }
.section-head p { margin-top: 18px; color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  border: none;
  border-radius: 999px;
  padding: 16px 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px -8px color-mix(in oklab, var(--accent), black 25%);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px color-mix(in oklab, var(--accent), black 30%); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 8px 22px -10px rgba(15,38,56,.6); }
.btn-navy:hover { transform: translateY(-2px); background: var(--navy-700); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--navy); background: rgba(21,50,79,.04); }
.btn-block { width: 100%; }
.btn-lg { padding: 19px 34px; font-size: 1.08rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

/* ---------- Image placeholders / slots ---------- */
.photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    repeating-linear-gradient(115deg,
      #c79a5a 0px, #c79a5a 3px,
      #bd8e4d 3px, #bd8e4d 6px,
      #c4965560 6px, #c49655 9px),
    linear-gradient(135deg, #caa063, #9c6f3e);
}
image-slot {
  --slot-bg: linear-gradient(135deg, #caa063, #9c6f3e);
}
.slot-grain {
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
}

.photo-tag {
  position: absolute;
  left: 14px; bottom: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(15,38,56,.55);
  backdrop-filter: blur(4px);
  padding: 6px 11px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
}

/* Wood-grain decorative texture */
.woodgrain {
  background-image:
    repeating-linear-gradient(92deg,
      rgba(91,61,41,.05) 0px, rgba(91,61,41,.05) 2px,
      transparent 2px, transparent 7px);
}

/* ---------- Pills / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 600;
  font-size: .96rem;
  color: var(--navy);
  transition: all .16s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ---------- Reassurance dot list ---------- */
.dotline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.dotline .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* fade-up reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
