/* sandwichplumbers.co.uk - rounded, lighter cobalt-blue + warm brass. Playfair Display + Nunito Sans. */
:root {
  --blue: #2f6fed;
  --blue-deep: #1d47a8;
  --blue-ink: #16294d;
  --blue-pale: #eef4ff;
  --blue-mist: #cfe0fb;
  --sky: #f4f8ff;
  --brass: #d98f3f;
  --brass-deep: #b06f26;
  --brass-glow: #f0b87a;
  --ink: #1c2434;
  --ink-soft: #566179;
  --rule: #dce6f8;
  --rule-soft: #e9f0fc;
  --surface: #ffffff;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow: 0 1px 2px rgba(29,71,168,0.06), 0 4px 14px rgba(29,71,168,0.07);
  --shadow-lg: 0 6px 20px rgba(29,71,168,0.10), 0 18px 40px rgba(29,71,168,0.10);
  --max: 1120px;
  --content: 68ch;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sky);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue); color: #fff; }

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(--blue-ink);
}
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(--blue-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }

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

.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(--blue-ink); color: #fff; 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: rgba(255,255,255,0.82); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar span em { color: var(--brass-glow); font-style: italic; font-family: 'Playfair Display', serif; font-size: 1.02rem; font-weight: 500; }
.pens-pill { display:inline-block; background: var(--brass); color:#fff; padding:.15rem .65rem; border-radius: var(--radius-pill); font-size:.82rem; font-weight:600; margin-right:.5rem; }

/* Header */
header.site {
  background: rgba(244,248,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  padding: 1.05rem 0;
  position: sticky; top: 0; z-index: 50;
}
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem; font-weight: 700;
  color: var(--blue-ink); text-decoration: none; line-height: 1;
}
.brand .brand-mark { width: 34px; height: 34px; flex-shrink: 0; color: var(--blue); }
.brand .brand-text { white-space: nowrap; }
.brand .ampersand { color: var(--brass); padding: 0 0.15em; font-weight: 500; }
.brand small { display: block; font-family: 'Nunito Sans', sans-serif; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.3rem; }
nav.primary ul { display: flex; gap: 1.7rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav.primary a { color: var(--blue-ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; position: relative; padding: 0.25rem 0; }
nav.primary a:hover { color: var(--blue); }
nav.primary a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.4rem; height: 3px; border-radius: var(--radius-pill); background: var(--brass); }

/* Hero - lighter blue wash with pipe-and-droplet motif */
.hero {
  background:
    radial-gradient(720px 420px at 88% -10%, rgba(217,143,63,0.16) 0%, transparent 60%),
    linear-gradient(155deg, #2455c2 0%, #2f6fed 55%, #4f8bfb 100%);
  color: #fff;
  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='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' opacity='0.10'%3E%3Cpath d='M10 40 H70 A14 14 0 0 1 84 54 V130'/%3E%3Ccircle cx='84' cy='150' r='9'/%3E%3Cpath d='M110 20 V70 A14 14 0 0 0 124 84 H170'/%3E%3Ccircle cx='110' cy='14' r='6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; right: -120px; bottom: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.16) 0%, transparent 62%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 760px; color: #fff; animation: rise 0.7s cubic-bezier(0.16,1,0.3,1) both; }
.hero .lede { font-size: 1.2rem; max-width: 620px; color: rgba(255,255,255,0.92); margin-bottom: 2rem; animation: rise 0.7s cubic-bezier(0.16,1,0.3,1) 0.08s both; }
.hero .eyebrow-chip { animation: rise 0.7s cubic-bezier(0.16,1,0.3,1) both; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: rise 0.7s cubic-bezier(0.16,1,0.3,1) 0.16s both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.hero.hero-light {
  background: linear-gradient(180deg, var(--blue-pale) 0%, var(--sky) 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.35; filter: invert(1); }
.hero.hero-light h1 { color: var(--blue-ink); animation: none; }
.hero.hero-light .lede { color: var(--ink-soft); animation: none; }
.hero.hero-light .hero-actions { animation: none; }

/* Eyebrow -> rounded wayfinding chip, not a kicker line. Default = light-surface context. */
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #fff;
  color: var(--blue-deep);
  border: 1px solid var(--blue-mist);
  padding: 0.35rem 0.9rem 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 1.1em;
}
.eyebrow-chip svg { width: 14px; height: 14px; flex-shrink: 0; }
.hero:not(.hero-light) .eyebrow-chip {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  animation: rise 0.7s cubic-bezier(0.16,1,0.3,1) both;
}
section.alt .eyebrow-chip { background: var(--surface); }

/* Buttons - pill-shaped */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--brass); color: #fff; border-color: var(--brass); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brass-deep); border-color: var(--brass-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.hero-light .btn-ghost, section:not(.hero) .btn-ghost { color: var(--blue-deep); border-color: var(--blue-mist); }
.hero-light .btn-ghost:hover, section:not(.hero) .btn-ghost:hover { background: var(--blue-pale); border-color: var(--blue); }

/* Sections */
section { padding: 4rem 0; background: var(--sky); }
section.tight { padding: 2rem 0; }
section.alt { background: var(--blue-pale); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

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

/* 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 - rounded, no colored bars, depth does the work */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.9rem;
  border-radius: var(--radius);
  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); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue-mist); }
.card h3 { margin-top: 0; }
.card a.card-link { color: var(--blue-ink); text-decoration: none; }
.card a.card-link:hover { color: var(--blue); }
.card .more { display: inline-block; margin-top: 0.5rem; font-size: 0.9rem; font-weight: 700; color: var(--blue-deep); text-decoration: none; font-family: 'Nunito Sans', sans-serif; }
.card .more::after { content: ' \2192'; }

/* Promise strip - rounded card, drawn icon badge, no left bar */
.promise {
  background: var(--surface); border: 1px solid var(--rule);
  padding: 1.7rem; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.promise h3 { margin: 0 0 0.5em; font-size: 1.15rem; color: var(--blue-ink); 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: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--blue-pale); color: var(--blue-deep);
  margin-bottom: 0.9rem;
}
.promise .icon svg { width: 22px; height: 22px; }
.guarantee-pill {
  display: inline-block; background: var(--blue-ink); color: var(--brass-glow);
  padding: 0.35rem 0.9rem; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  margin: 0.5rem 0.5rem 0 0;
}

/* Panel */
.panel {
  background: var(--blue-ink);
  color: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel::after {
  content: '';
  position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle at center, rgba(217,143,63,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.panel h2, .panel h3 { color: #fff; margin-top: 0; }
.panel .lede { color: rgba(255,255,255,0.85); }
.panel a { color: var(--brass-glow); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-weight: 700; }
.panel a:hover { color: #fff; }

/* Footer */
footer.site { background: var(--blue-ink); color: rgba(255,255,255,0.72); padding: 3rem 0 2rem; margin-top: 4rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
footer.site h4 { color: #fff; font-size: 0.95rem; margin: 0 0 0.8em; font-family: 'Nunito Sans', sans-serif; font-weight: 700; 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: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.95rem; }
footer.site a:hover { color: #fff; }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.16);
  margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.62);
}

/* 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: 'Nunito Sans', sans-serif; }
article.guide .meta a { color: var(--blue-deep); }
article.guide blockquote {
  border-left: 1px solid var(--blue-mist);
  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(--blue-pale);
  padding: 1.3rem 1.6rem;
  margin: 1.8em 0;
  border-radius: var(--radius);
  box-shadow: none;
}
article.guide .callout h4 { margin-top: 0; color: var(--blue-ink); }

/* 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(--brass-deep); 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: 'Nunito Sans', 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(--blue-ink); font-weight: 600; white-space: nowrap; }

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

/* Droplet accent - single authored motion moment */
.drop-accent {
  position: absolute;
  width: 22px; height: 28px;
  color: var(--brass-glow);
  opacity: 0.85;
  animation: drip 3.6s ease-in-out infinite;
}
@keyframes drip {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(6px); opacity: 0.55; }
}

/* WhatsApp button */
.wa-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25d366; color: #fff !important;
  padding: 0.45rem 0.9rem; border-radius: var(--radius-pill);
  font-weight: 700; 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.6rem; border-radius: var(--radius-pill); 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.75rem; 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; }
}
