/* chathamhedges.co.uk — dockyard navy & brass, timeline-led house style */
:root {
  --steel: #8fa6b3;
  --steel-light: #dbe5ea;
  --cream: #f2ede0;
  --chalk: #faf8f3;
  --paper: #ffffff;
  --ink: #14191c;
  --ink-soft: #46504f;
  --navy: #1b3a5c;
  --navy-deep: #0f2438;
  --navy-bright: #29537e;
  --slate: #274a5e;
  --brass: #b8863f;
  --brass-deep: #94682c;
  --brick: #a34a2e;
  --rule: #e2ddce;
  --rule-dark: #d0c8b2;
  --shadow: 0 1px 3px rgba(15, 36, 56, 0.08), 0 2px 8px rgba(15, 36, 56, 0.05);
  --shadow-lg: 0 4px 16px rgba(15, 36, 56, 0.10), 0 12px 32px rgba(15, 36, 56, 0.08);
  --max: 1100px;
  --content: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--navy-deep);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); margin: 1.8em 0 0.6em; }
h3 { font-size: 1.35rem; margin: 1.4em 0 0.4em; }
p { margin: 0 0 1.1em; }

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.prose { max-width: var(--content); margin: 0 auto; padding: 0 1.5rem; }

/* Topbar */
.topbar {
  background: var(--navy-deep);
  color: var(--cream);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.topbar a { color: var(--steel); text-decoration: none; }
.topbar a:hover { color: var(--chalk); }
.topbar span em {
  color: var(--brass);
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Header */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 600; color: var(--navy-deep); text-decoration: none; line-height: 1; }
.brand .ampersand { color: var(--brick); font-style: italic; padding: 0 0.1em; }
.brand small { display: block; font-family: 'Public Sans', sans-serif; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.2rem; }
nav.primary ul { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav.primary a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; position: relative; padding: 0.25rem 0; }
nav.primary a:hover { color: var(--navy-bright); }
nav.primary a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.4rem; height: 2px; background: var(--brick); }

/* Hero */
.hero {
  background:
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.2) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='200' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200 L0 150 Q40 130 80 145 Q120 160 160 140 Q200 120 240 138 Q280 156 320 132 Q360 108 400 130 Q440 152 480 128 Q520 104 560 126 Q600 148 640 124 Q680 100 720 122 Q760 144 800 120 Q840 96 880 118 Q920 140 960 116 Q1000 92 1040 114 Q1080 136 1120 112 Q1160 88 1200 110 L1200 200 Z' fill='%23000' opacity='0.2'/%3E%3C/svg%3E") bottom/100% 200px no-repeat,
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 65%, var(--slate) 100%);
  color: var(--paper);
  padding: 5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Ccircle cx='70' cy='70' r='38' fill='none' stroke='%23b8863f' stroke-width='0.6' opacity='0.09'/%3E%3Cpath d='M70 40 L70 100 M50 60 L90 60 M55 95 Q70 108 85 95' fill='none' stroke='%23b8863f' stroke-width='0.6' opacity='0.09'/%3E%3C/svg%3E");
  background-size: 220px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; right: -100px; bottom: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle at center, rgba(184,134,63,0.14) 0%, transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 720px; color: var(--paper); }
.hero .lede { font-size: 1.2rem; max-width: 600px; color: rgba(255,255,255,0.86); margin-bottom: 2rem; }
.hero .section-eyebrow { color: var(--brass); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero.hero-light {
  background: linear-gradient(180deg, var(--chalk) 0%, var(--paper) 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 3.5rem 0 2.5rem;
}
.hero.hero-light::after { display: none; }
.hero.hero-light::before { opacity: 0.05; }
.hero.hero-light h1 { color: var(--navy-deep); }
.hero.hero-light .lede { color: var(--ink-soft); }
.hero.hero-light .section-eyebrow { color: var(--brick); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--brick); color: var(--paper); border-color: var(--brick); }
.btn-primary:hover { background: #863a22; border-color: #863a22; color: var(--paper); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--navy-deep); }
.hero-light .btn-ghost, section:not(.hero) .btn-ghost { color: var(--navy-deep); border-color: var(--navy-deep); }
.hero-light .btn-ghost:hover, section:not(.hero) .btn-ghost:hover { background: var(--navy-deep); color: var(--paper); }

/* Sections */
section { padding: 4rem 0; background: var(--paper); }
section.tight { padding: 2rem 0; }
section.alt { background: var(--chalk); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-eyebrow { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--brick); margin: 0 0 0.5em; }

/* Grids */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
  .grid-4 .card { padding: 1.4rem; }
}

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.8rem;
  border-radius: 3px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow);
}
section.alt .card { background: var(--paper); border-color: var(--rule-dark); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--navy-bright); }
.card h3 { margin-top: 0; }
.card a.card-link { color: var(--navy-deep); text-decoration: none; }
.card a.card-link:hover { color: var(--brick); }
.card .more { display: inline-block; margin-top: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--brick); text-decoration: none; }
.card .more::after { content: ' \2192'; }

/* Guarantees strip */
.guarantees {
  background: linear-gradient(180deg, var(--paper) 0%, var(--chalk) 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.guarantees .grid { gap: 1.4rem; }
.guarantees .promise {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 1.6rem; border-radius: 3px;
  border-left: 3px solid var(--brick);
  box-shadow: var(--shadow);
  position: relative;
}
.guarantees .promise h3 {
  margin: 0 0 0.5em; font-size: 1.15rem; color: var(--navy-deep);
  font-family: 'Fraunces', serif; font-weight: 600;
}
.guarantees .promise p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }
.guarantees .promise .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy-deep); color: var(--brass);
  font-family: 'Fraunces', serif; font-weight: 600;
  margin-bottom: 0.8rem; font-size: 1.15rem;
}
.guarantee-pill {
  display: inline-block; background: var(--navy-deep); color: var(--brass);
  padding: 0.35rem 0.85rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  margin: 0.5rem 0.5rem 0 0;
}

/* Featured panel */
.panel {
  background: var(--navy-deep);
  color: var(--paper);
  padding: 2.5rem;
  border-radius: 3px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.panel h2 { color: var(--paper); margin-top: 0; }
.panel .lede { color: rgba(255,255,255,0.86); }
.panel a { color: var(--brass); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-weight: 600; }
.panel a:hover { color: var(--paper); }

/* Footer */
footer.site {
  background: var(--navy-deep);
  color: var(--steel-light);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
footer.site h4 { color: var(--cream); font-size: 1rem; margin: 0 0 0.8em; font-family: 'Public Sans', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 0.4rem 0; }
footer.site a { color: var(--steel-light); text-decoration: none; font-size: 0.95rem; }
footer.site a:hover { color: var(--cream); }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.foot-bottom {
  border-top: 1px solid rgba(242, 237, 224, 0.2);
  margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem; color: var(--steel);
}

/* Article */
article.guide { padding: 3rem 0; }
article.guide .meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.1em; }
article.guide .meta a { color: var(--navy-bright); }
article.guide blockquote {
  border-left: 3px solid var(--brick);
  margin: 1.8em 0; padding: 0.5em 0 0.5em 1.5em;
  font-style: italic; color: var(--ink-soft);
  font-family: 'Fraunces', serif; font-size: 1.2rem; line-height: 1.5;
}
article.guide ul, article.guide ol { margin: 0 0 1.2em; padding-left: 1.5em; }
article.guide li { margin: 0.4em 0; }
article.guide .callout {
  background: var(--steel-light);
  border-left: 3px solid var(--brass);
  padding: 1.2rem 1.5rem;
  margin: 1.8em 0;
  border-radius: 0 2px 2px 0;
}
article.guide .callout h4 { margin-top: 0; color: var(--navy-deep); }

/* Timeline — chathamhedges' house structure for how-to content */
.timeline { border-left: 3px solid var(--brass); margin: 2em 0 2.2em; padding: 0; list-style: none; }
.timeline-block { position: relative; padding: 0 0 1.9em 1.9em; margin: 0; }
.timeline-block:last-child { padding-bottom: 0; }
.timeline-block::before {
  content: ''; position: absolute; left: -8px; top: 0.3em;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--brick);
}
.timeline-window {
  display: inline-block;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.1rem;
  color: var(--navy-deep);
  margin: 0 0 0.3em;
}
.timeline-block p { margin: 0 0 0.6em; }
.timeline-block p:last-child { margin-bottom: 0; }
.timeline-summary {
  background: var(--chalk);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.2rem 1.5rem;
  margin: 1.6em 0 2em;
}
.timeline-summary h4 { margin: 0 0 0.6em; color: var(--navy-deep); }
.timeline-summary ul { margin: 0; padding-left: 1.2em; }
.timeline-summary li { margin: 0.3em 0; }

/* Jobs-style callout removed on this site (no fabricated job log) */

/* Contact form */
.form-grid { display: grid; gap: 1.2rem; max-width: 560px; }
.form-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-bottom: 1.2rem; }
@media (min-width: 540px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { margin-bottom: 1.2rem; }
label, legend { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 0.4rem; color: var(--navy-deep); }
input, textarea, select {
  width: 100%; padding: 0.85rem 1rem;
  border: 1px solid var(--rule-dark); background: var(--paper);
  font-family: inherit; font-size: 1rem; color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.15s ease;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--navy-bright); outline-offset: -1px; border-color: var(--navy-bright); }
textarea { min-height: 140px; resize: vertical; }

.form-radio-group { display: flex; gap: 1.5rem; }
.form-radio { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.form-radio input { width: auto; padding: 0; }

.form-alert {
  padding: 0.9rem 1.1rem;
  border-radius: 3px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.form-alert--error { background: #fdeeea; border: 1px solid #edbba5; color: #7a3117; }
.form-alert--ok { background: #eaf1f4; border: 1px solid #b9cfd8; color: #163044; }

/* Utility */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.divider-rule { height: 1px; background: var(--rule); margin: 3rem 0; max-width: 80px; }
.divider-rule.center { margin-left: auto; margin-right: auto; }

@media (max-width: 700px) {
  nav.primary ul { gap: 1rem; font-size: 0.9rem; }
  header.site .container { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .panel { padding: 2rem 1.5rem; }
}

/* WhatsApp button + QR */
.wa-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25d366; color: #fff !important;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  font-weight: 600; font-size: 0.85rem; text-decoration: none !important;
  transition: background 0.15s ease;
}
.wa-btn:hover { background: #1ebe57; color: #fff !important; }
.wa-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn.wa-btn-lg { background: #25d366; border-color: #25d366; color: #fff; padding: 0.95rem 1.6rem; border-radius: 2px; display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1rem; }
.btn.wa-btn-lg:hover { background: #1ebe57; border-color: #1ebe57; color: #fff; }
.btn.wa-btn-lg svg { width: 20px; height: 20px; }
.topbar .wa-btn { padding: 0.25rem 0.7rem; font-size: 0.8rem; }
.topbar .wa-btn svg { width: 14px; height: 14px; }

.wa-qr-card {
  background: var(--cream); border: 1px solid var(--rule); padding: 1.5rem; border-radius: 2px;
  text-align: center; max-width: 280px;
}
.wa-qr-card img { width: 100%; max-width: 220px; height: auto; display: block; margin: 0 auto 0.8rem; }
.wa-qr-card p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.wa-qr-card .num { font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--navy-deep); display: block; margin-top: 0.4rem; }

@media (max-width: 700px) {
  .topbar .wa-btn { display: none; }
}
