/* broadstairsfencing.co.uk - fresh coastal. Playfair Display + Source Sans 3. Sea-blue + sand + coral. */
:root {
  --sea: #1f5a7a;
  --sea-deep: #143f57;
  --sea-mist: #3d7ea0;
  --sand: #f0e6d2;
  --sand-dim: #d8ccb2;
  --coral: #d9704a;
  --coral-deep: #b85a38;
  --ink: #1c2732;
  --ink-soft: #4c5a68;
  --rule: #d9d0ba;
  --rule-dark: #b6ac93;
  --surface: #ffffff;

  --shadow: 0 1px 3px rgba(20,30,45,0.06), 0 2px 8px rgba(20,30,45,0.04);
  --shadow-lg: 0 4px 16px rgba(20,30,45,0.09), 0 12px 32px rgba(20,30,45,0.07);
  --max: 1120px;
  --content: 68ch;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.18;
  color: var(--sea-deep);
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); margin: 0 0 0.5em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.3rem); margin: 1.8em 0 0.55em; }
h3 { font-size: 1.35rem; margin: 1.4em 0 0.4em; }
h4 { font-size: 1.05rem; margin: 1.2em 0 0.4em; }
p { margin: 0 0 1.1em; }

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

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.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(--sea-deep); color: var(--sand); font-size: 0.875rem; padding: 0.55rem 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.topbar a { color: var(--sand-dim); text-decoration: none; }
.topbar a:hover { color: var(--sand); }
.topbar span em { color: #f7d9a6; font-style: italic; font-family: 'Playfair Display', serif; font-size: 1.02rem; font-weight: 500; }
.pens-pill { display:inline-block; background: var(--coral); color:#fff; padding:.15rem .5rem; border-radius:.25rem; font-size:.82rem; font-weight:600; margin-right:.5rem; }

/* Header */
header.site {
  background: var(--sand);
  border-bottom: 1px solid var(--rule);
  padding: 1.05rem 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: 'Playfair Display', serif;
  font-size: 1.7rem; font-weight: 700;
  color: var(--sea-deep); text-decoration: none; line-height: 1;
}
.brand .ampersand { color: var(--coral); padding: 0 0.15em; font-weight: 500; }
.brand small { display: block; font-family: 'Source Sans 3', sans-serif; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.25rem; }
nav.primary ul { display: flex; gap: 1.7rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav.primary a { color: var(--sea-deep); text-decoration: none; font-weight: 500; font-size: 0.95rem; position: relative; padding: 0.25rem 0; }
nav.primary a:hover { color: var(--coral); }
nav.primary a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.4rem; height: 2px; background: var(--coral); }

/* Hero - coastal gradient with wave motif */
.hero {
  background:
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.18) 100%),
    linear-gradient(155deg, #143f57 0%, #1f5a7a 55%, #3d7ea0 100%);
  color: var(--sand);
  padding: 5rem 0 4.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='200' height='60' viewBox='0 0 200 60'%3E%3Cg fill='none' stroke='%23f0e6d2' stroke-width='1' opacity='0.11'%3E%3Cpath d='M0 30 Q25 12 50 30 T100 30 T150 30 T200 30'/%3E%3Cpath d='M0 45 Q25 27 50 45 T100 45 T150 45 T200 45'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; right: -140px; bottom: -140px;
  width: 460px; height: 460px;
  background: radial-gradient(circle at center, rgba(217,112,74,0.18) 0%, transparent 62%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 760px; color: var(--sand); }
.hero .lede { font-size: 1.2rem; max-width: 620px; color: rgba(240,230,210,0.9); margin-bottom: 2rem; }
.hero .section-eyebrow { color: #f7d9a6; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero.hero-light {
  background: linear-gradient(180deg, #e6dcc4 0%, var(--sand) 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(--sea-deep); }
.hero.hero-light .lede { color: var(--ink-soft); }
.hero.hero-light .section-eyebrow { color: var(--coral); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 1.7rem;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
}
.btn-primary { background: var(--coral); color: #fff; border-color: var(--coral); }
.btn-primary:hover { background: var(--coral-deep); border-color: var(--coral-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--sand); border-color: var(--sand); }
.btn-ghost:hover { background: var(--sand); color: var(--sea-deep); }
.hero-light .btn-ghost, section:not(.hero) .btn-ghost { color: var(--sea-deep); border-color: var(--sea-deep); }
.hero-light .btn-ghost:hover, section:not(.hero) .btn-ghost:hover { background: var(--sea-deep); color: var(--sand); }

/* Sections */
section { padding: 4rem 0; background: var(--sand); }
section.tight { padding: 2rem 0; }
section.alt { background: #e6dcc4; 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(--coral); margin: 0 0 0.5em; font-family: 'Source Sans 3', sans-serif; }

.wave-divider { display: block; width: 100%; max-width: 400px; margin: 2.5rem auto; color: var(--sea-mist); height: 30px; }

/* Grids */
.grid { display: grid; gap: 1.6rem; }
.grid-2, .grid-3, .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(--surface);
  border: 1px solid var(--rule);
  padding: 1.8rem;
  border-radius: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow);
}
section.alt .card { background: var(--surface); border-color: var(--rule-dark); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--coral); }
.card h3 { margin-top: 0; }
.card a.card-link { color: var(--sea-deep); text-decoration: none; }
.card a.card-link:hover { color: var(--coral); }
.card .more { display: inline-block; margin-top: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--coral); text-decoration: none; font-family: 'Source Sans 3', sans-serif; }
.card .more::after { content: ' →'; }

/* Promise strip */
.promise {
  background: var(--surface); border: 1px solid var(--rule);
  padding: 1.6rem; border-radius: 4px;
  border-left: 3px solid var(--coral);
  box-shadow: var(--shadow);
}
.promise h3 { margin: 0 0 0.5em; font-size: 1.15rem; color: var(--sea-deep); font-family: 'Playfair Display', serif; font-weight: 600; }
.promise p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }
.promise .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sea-deep); color: #f7d9a6;
  font-family: 'Playfair Display', serif; font-weight: 600;
  margin-bottom: 0.8rem; font-size: 1.15rem;
}
.guarantee-pill {
  display: inline-block; background: var(--sea-deep); color: #f7d9a6;
  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;
}

/* Panel */
.panel {
  background: var(--sea-deep);
  color: var(--sand);
  padding: 2.5rem;
  border-radius: 4px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.panel h2, .panel h3 { color: var(--sand); margin-top: 0; }
.panel .lede { color: rgba(240,230,210,0.85); }
.panel a { color: #f7d9a6; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-weight: 600; }
.panel a:hover { color: var(--sand); }
.panel .section-eyebrow { color: #f7d9a6; }

/* Footer */
footer.site { background: var(--sea-deep); color: var(--sand-dim); padding: 3rem 0 2rem; margin-top: 4rem; }
footer.site h4 { color: var(--sand); font-size: 0.95rem; margin: 0 0 0.8em; font-family: 'Source Sans 3', 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(--sand-dim); text-decoration: none; font-size: 0.95rem; }
footer.site a:hover { color: var(--sand); }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-bottom {
  border-top: 1px solid rgba(216, 204, 178, 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(--sand-dim);
}

/* 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; font-family: 'Source Sans 3', sans-serif; }
article.guide .meta a { color: var(--coral); }
article.guide blockquote {
  border-left: 3px solid var(--coral);
  margin: 1.8em 0; padding: 0.5em 0 0.5em 1.5em;
  font-style: italic; color: var(--ink-soft);
  font-family: 'Playfair Display', serif; font-size: 1.25rem; 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(--surface);
  border-left: 3px solid var(--coral);
  padding: 1.2rem 1.5rem;
  margin: 1.8em 0;
  border-radius: 0 3px 3px 0;
  box-shadow: var(--shadow);
}
article.guide .callout h4 { margin-top: 0; color: var(--sea-deep); }

/* Jobs feed */
.job {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: start;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule);
}
.job:last-child { border-bottom: none; }
.job-date { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--coral); font-weight: 600; min-width: 95px; }
.job-where { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 0.3rem; font-family: 'Source Sans 3', sans-serif; }
.job h3 { margin: 0 0 0.4em; font-size: 1.15rem; }
.job p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.job .price { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--sea-deep); font-weight: 600; white-space: nowrap; }

/* Forms */
form.quote { display: grid; gap: 1rem; max-width: 640px; }
form.quote label { display: block; font-weight: 600; font-size: 0.95rem; color: var(--sea-deep); margin-bottom: 0.3rem; }
form.quote input, form.quote textarea, form.quote select {
  width: 100%; padding: 0.7rem 0.9rem; font-family: inherit; font-size: 1rem;
  border: 1px solid var(--rule-dark); border-radius: 3px; background: #fff; color: var(--ink);
}
form.quote textarea { min-height: 140px; resize: vertical; }
form.quote input:focus, form.quote textarea:focus, form.quote select:focus { border-color: var(--sea); outline: 2px solid var(--coral); outline-offset: 1px; }

/* 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; }

/* WhatsApp button */
.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.9rem 1.5rem; border-radius: 3px; display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.98rem; }
.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; }

@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; }
  .job { grid-template-columns: 1fr; gap: 0.4rem; }
  .job-date { font-size: 0.95rem; }
  .topbar .wa-btn { display: none; }
}
