/* =========================================================
   Reade Plumbing & Heating Ltd
   Water + flame palette: navy / ocean / aqua with flame & amber
   ========================================================= */

:root {
  --navy: #082a3f;
  --navy-deep: #051c2b;
  --ocean: #0e6e8c;
  --ocean-dark: #0b5c75;
  --aqua: #22c3d6;
  --flame: #ff6a3d;
  --flame-dark: #e5522a;
  --amber: #ffb23e;
  --cream: #fff7ee;
  --mist: #e9f8fb;
  --ink: #0f2635;
  --muted: #587084;
  --line: #e2ebf0;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(8, 42, 63, .09);
  --shadow-lg: 0 24px 60px rgba(8, 42, 63, .2);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Fonts (self-hosted: nothing is loaded from Google) ---------- */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/inter-700.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/inter-800.woff") format("woff"); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--amber); color: var(--navy);
  padding: .6rem 1rem; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--flame);
  color: var(--navy-deep);
  font-weight: 700;
  font-family: var(--font-head);
  text-decoration: none;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  border: 2px solid var(--flame);
  cursor: pointer;
  font-size: .98rem;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--amber); border-color: var(--amber); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,106,61,.35); }
.btn-small { padding: .55rem 1.2rem; font-size: .9rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; box-shadow: none; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 42, 63, .93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }

.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; }
.logo-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px 14px 14px 4px;
  background: linear-gradient(135deg, var(--aqua), var(--flame));
}
.logo-mark svg { width: 24px; height: 24px; fill: #fff; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; line-height: 1.05; letter-spacing: -.01em; }
.logo-text small { font-family: var(--font-body); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }

.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a { color: rgba(255,255,255,.86); text-decoration: none; font-weight: 500; font-size: .98rem; transition: color .15s; }
.site-nav a:hover { color: var(--amber); }
.site-nav .btn, .site-nav .btn:hover { color: var(--navy-deep); }

/* Mobile menu (CSS only) */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .2s, opacity .2s;
}
.nav-burger span { top: 21px; }
.nav-burger span::before { top: -7px; left: 0; right: 0; }
.nav-burger span::after { top: 7px; left: 0; right: 0; }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--amber); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(800px 520px at 88% 8%, rgba(34,195,214,.35), transparent 60%),
    radial-gradient(700px 480px at 0% 105%, rgba(255,106,61,.30), transparent 60%),
    linear-gradient(155deg, var(--navy) 0%, var(--ocean-dark) 120%);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(7rem, 11vw, 10rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 75% 30%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 30%, #000 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 600; color: var(--amber); margin-bottom: 1.1rem; }
.eyebrow-dark { color: var(--flame-dark); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--aqua), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.18rem; color: rgba(255,255,255,.8); max-width: 38em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-media { margin: 0; position: relative; }
.hero-media .placeholder { box-shadow: var(--shadow-lg); }
.hero-chip {
  position: absolute; left: -1.2rem; bottom: 2rem;
  display: grid; gap: .1rem;
  background: #fff; color: var(--navy);
  padding: .9rem 1.2rem; border-radius: var(--radius);
  border-left: 5px solid var(--flame);
  box-shadow: var(--shadow-lg);
  font-size: .85rem;
}
.hero-chip strong { font-family: var(--font-head); font-size: 1rem; }
.hero-chip span { color: var(--muted); }

.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(50px, 7vw, 90px); fill: var(--cream); display: block; }

/* ---------- Trust strip ---------- */
.trust { background: var(--cream); padding: clamp(2.5rem, 5vw, 4rem) 0 1rem; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.trust-item {
  display: grid; align-content: center; gap: .35rem;
  min-height: 130px; padding: 1.7rem 1.4rem;
  color: #fff;
  background: var(--g);
  border-radius: 20px;
  box-shadow: 0 16px 34px -14px var(--s, rgba(8,42,63,.45));
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
/* soft glow in the corner of each tile */
.trust-item::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px;
  border-radius: 50%; background: rgba(255,255,255,.16); pointer-events: none;
}
.trust-item:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -14px var(--s, rgba(8,42,63,.5)); }
.trust-item strong { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.2; letter-spacing: -.01em; position: relative; }
.trust-item span { font-size: .93rem; font-weight: 500; opacity: .95; position: relative; }

.t-aqua  { --g: linear-gradient(135deg, #0a4f6b 0%, #14a3c0 100%); --s: rgba(10,79,107,.55); }
.t-flame { --g: linear-gradient(135deg, #ff6a3d 0%, #ffb23e 100%); --s: rgba(255,106,61,.55); color: var(--navy-deep); }
.t-amber { --g: linear-gradient(135deg, #082a3f 0%, #e5522a 100%); --s: rgba(229,82,42,.5); }
.t-ocean { --g: linear-gradient(135deg, #115e59 0%, #0d9488 100%); --s: rgba(13,148,136,.5); }

/* ---------- Placeholders (swap for real images) ---------- */
.placeholder {
  display: grid; place-items: center; text-align: center;
  width: 100%;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px),
    linear-gradient(140deg, var(--ocean), var(--navy));
  border: 2px dashed rgba(255,255,255,.4);
  color: rgba(255,255,255,.9);
  font-family: var(--font-head); font-weight: 700; line-height: 1.4;
}
.placeholder small { font-weight: 500; opacity: .75; font-family: var(--font-body); }
.placeholder-warm { background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 14px, transparent 14px 28px), linear-gradient(140deg, var(--flame), #b8392a); }
.placeholder-flame { background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 14px, transparent 14px 28px), linear-gradient(140deg, var(--flame), var(--amber)); color: var(--navy-deep); border-color: rgba(8,42,63,.35); }
.placeholder-tall { aspect-ratio: 9 / 11; }
.placeholder-wide { aspect-ratio: 4 / 3; }
/* Real <img> tags get the same rounded look: */
.hero-media img, .about-media img, .approach-media img { border-radius: var(--radius-lg); width: 100%; height: auto; object-fit: cover; box-shadow: var(--shadow-lg); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-cream { background: var(--cream); }
.section-mist { background: var(--mist); }
.section-ocean { background: linear-gradient(160deg, var(--ocean) 0%, var(--navy) 130%); color: #fff; }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-intro { color: var(--muted); font-size: 1.12rem; }

/* About */
.section#about { background: var(--cream); padding-top: clamp(3rem, 6vw, 5rem); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-media { margin: 0; position: relative; }
.about-media::after {
  content: ""; position: absolute; z-index: 0; inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(34,195,214,.35), rgba(255,178,62,.35));
}
.about-media .placeholder, .about-media img { position: relative; z-index: 1; }
.about-copy p { color: var(--muted); }
.about-copy strong { color: var(--ink); }
.values { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.values li { display: grid; gap: .2rem; padding: 1.1rem 1.1rem 1.2rem; background: #fff; border-radius: var(--radius); border-top: 4px solid var(--c); box-shadow: var(--shadow); }
.values strong { font-family: var(--font-head); }
.values span { font-size: .92rem; color: var(--muted); line-height: 1.45; }
.v-aqua { --c: var(--aqua); } .v-flame { --c: var(--flame); } .v-amber { --c: var(--amber); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.8rem; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card-icon {
  width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 1.3rem;
  border-radius: 16px; flex: none;
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-heat { border-bottom: 5px solid var(--flame); }
.card-heat .card-icon { background: linear-gradient(135deg, var(--flame), var(--amber)); }
.card-water { border-bottom: 5px solid var(--aqua); }
.card-water .card-icon { background: linear-gradient(135deg, var(--ocean), var(--aqua)); }
.card-emergency {
  grid-column: span 2; display: flex; gap: 1.5rem; align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ocean-dark) 100%);
  border: 0; color: #fff;
}
.card-emergency h3 { font-size: 1.4rem; }
.card-emergency p { color: rgba(255,255,255,.82); margin-bottom: 1.2rem; }
.card-emergency .card-icon { background: linear-gradient(135deg, var(--flame), var(--amber)); width: 70px; height: 70px; margin: 0; }
.card-emergency .card-icon svg { width: 32px; height: 32px; }
.card-emergency .btn, .card-emergency .btn:hover { color: var(--navy-deep); }

/* Approach */
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.approach-lead h2 { margin-bottom: 1.5rem; max-width: 14em; }
.approach-media { margin: 0; }
.approach-media .placeholder { box-shadow: var(--shadow-lg); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; padding: 1.5rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-left: 5px solid var(--c); border-radius: var(--radius); }
.steps li > span {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--c); color: var(--navy-deep); font-family: var(--font-head); font-weight: 800; font-size: 1.25rem;
}
.steps h3 { margin-bottom: .25em; color: #fff; }
.steps p { margin: 0; color: rgba(255,255,255,.82); }
.s-aqua { --c: var(--aqua); } .s-amber { --c: var(--amber); } .s-flame { --c: var(--flame); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-info p { color: var(--muted); }
.contact-list { margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact-list div { padding-left: 1.2rem; border-left: 4px solid var(--c); }
.contact-list dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.contact-list dd { margin: .15rem 0 0; font-weight: 600; font-family: var(--font-head); font-size: 1.08rem; line-height: 1.4; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--flame-dark); }
.c-flame { --c: var(--flame); } .c-aqua { --c: var(--aqua); } .c-amber { --c: var(--amber); } .c-ocean { --c: var(--ocean); }

.contact-form { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--aqua); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.2rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font: inherit; color: var(--ink);
  padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--mist);
  transition: border-color .15s, background .15s, box-shadow .15s; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--aqua); background: #fff; box-shadow: 0 0 0 4px rgba(34,195,214,.22); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { justify-self: start; }

/* Consent tick box */
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--flame); cursor: pointer; }
.consent label { cursor: pointer; }
.consent a { color: var(--ocean); font-weight: 600; text-underline-offset: 2px; }
.consent a:hover { color: var(--flame-dark); }

/* Form status messages: shown when send-mail.php redirects to #sent or #error */
.form-note { display: none; margin: 0; padding: .9rem 1.1rem; border-radius: 10px; font-weight: 500; font-size: .98rem; }
.form-note-ok { background: #e3f7ee; color: #0d5c3d; border: 1px solid #b2e5cd; }
.form-note-err { background: #fdecec; color: #8a1f1f; border: 1px solid #f4c3c3; }
.form-note:target { display: block; }

/* Honeypot field */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 3rem 0; font-size: .92rem; border-top: 4px solid; border-image: linear-gradient(90deg, var(--aqua), var(--amber), var(--flame)) 1; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-legal { max-width: 34rem; }
.footer-legal p { margin: 0 0 .25em; text-align: right; }
.footer-legal p:first-child { color: #fff; font-weight: 600; }
.footer-legal a { color: var(--amber); text-underline-offset: 3px; }
.footer-legal a:hover { color: #fff; }

/* ---------- Privacy / legal page ---------- */
.page-hero {
  color: #fff; padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(34,195,214,.3), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(255,106,61,.25), transparent 60%),
    linear-gradient(155deg, var(--navy) 0%, var(--ocean-dark) 120%);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.78); margin: 0; }
.legal { background: var(--cream); padding: clamp(3rem, 6vw, 5rem) 0; }
.legal-body { width: min(780px, 100% - 2.5rem); margin-inline: auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border-top: 6px solid var(--aqua); padding: clamp(1.5rem, 4vw, 3rem); }
.legal-body h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; padding-left: .8rem; border-left: 4px solid var(--flame); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal-body li { margin-bottom: .35em; }
.legal-body a { color: var(--ocean); font-weight: 600; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--flame-dark); }
.legal-body strong { color: var(--ink); }
.legal-meta { font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .about-grid, .approach-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; }
  .hero-chip { left: .8rem; }
  .about-media { max-width: 560px; }
  .about-media::after { inset: 1rem -.75rem -1rem .75rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-emergency { grid-column: span 2; }
}

@media (max-width: 760px) {
  .nav-burger { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav .btn { margin-top: 1rem; text-align: center; border-bottom: 2px solid var(--flame); }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked + .nav-burger span { background: transparent; }
  .nav-toggle:checked + .nav-burger span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span::after { transform: translateY(-7px) rotate(-45deg); }

  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { min-height: 0; }
  .cards { grid-template-columns: 1fr; }
  .card-emergency { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .values { grid-template-columns: 1fr; }
  .footer-legal p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
