/*
Theme Name: Groundwater Monitoring
Description: Lightweight custom theme for groundwatermonitoring.co.uk (a trading name of PT (West Midlands) Ltd). Built-in SEO tags, schema, coming-soon mode, photo placeholders and quote form.
Version: 0.1.0
Author: PT (West Midlands) Ltd
Text Domain: gwm
*/

:root {
  --navy: #1A4F8A;
  --blue: #1576C4;
  --water: #29B6E8;
  --pale: #EAF6FD;
  --ink: #0F2340;
  --grey: #6B7A8F;
  --amber: #E8A317;
  --line: #D6E3EF;
  --white: #ffffff;
  --radius: 6px;
  --wrap: 1140px;
  --head: "Teko", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.05; color: var(--navy); margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin-top: 1.4em; }
h3 { font-size: 1.6rem; margin-top: 1.2em; }
p, ul, ol, table { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 99; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { width: 280px; }
.brand { flex-shrink: 0; }
.nav-toggle { display: none; }
.nav-btn { display: none; cursor: pointer; font-weight: 600; color: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav li { margin: 0; }
.main-nav a { display: block; white-space: nowrap; padding: 8px 9px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; border-radius: var(--radius); }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--blue); background: var(--pale); }
.main-nav .nav-cta a { background: var(--blue); color: #fff; padding: 9px 16px; margin-left: 6px; }
.main-nav .nav-cta a:hover { background: var(--navy); color: #fff; }

@media (max-width: 1200px) {
  .brand img { width: 230px; }
  .nav-btn { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 16px; }
  .main-nav .nav-cta a { margin: 8px 0 0; text-align: center; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--pale), #fff); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .sub { font-family: var(--head); font-size: 1.9rem; color: var(--blue); margin: 0 0 .5em; }
.hero p.lead { font-size: 1.12rem; }
@media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; } }

.page-head { background: var(--pale); border-bottom: 1px solid var(--line); padding: 44px 0 28px; }
.page-head p { font-size: 1.1rem; max-width: 760px; }

main .content { padding: 28px 0 56px; }

/* Buttons */
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: var(--radius); border: 2px solid var(--blue); margin: 0 8px 8px 0; }
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.alt { background: transparent; color: var(--blue); }
.btn.alt:hover { background: var(--pale); color: var(--navy); }

/* Cards, lists */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 18px 0 28px; }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--water); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { margin-top: 0; font-size: 1.5rem; }
.card p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin: 10px 0 24px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 3px solid var(--water); border-bottom: 3px solid var(--water); transform: rotate(-45deg); }
.steps { counter-reset: step; }

.note { background: var(--pale); border-left: 4px solid var(--blue); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 18px 0; }
.ph { background: #FFF4D6; color: #7A5600; border: 1px dashed var(--amber); padding: 0 4px; border-radius: 3px; font-weight: 600; font-size: .95em; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: #fff; font-weight: 600; }
tbody tr:nth-child(even) td { background: #F7FBFE; }
td.hi { color: var(--amber); font-weight: 700; }

/* Photo placeholders */
.photo-ph { background: repeating-linear-gradient(135deg, #EEF2F6, #EEF2F6 14px, #E5EBF1 14px, #E5EBF1 28px); border: 2px dashed #B8C6D4; border-radius: var(--radius); color: var(--grey); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 22px; margin: 8px 0 22px; aspect-ratio: 3 / 2; }
.photo-ph.wide { aspect-ratio: 21 / 9; }
.photo-ph.square { aspect-ratio: 1 / 1; }
.photo-ph .num { font-family: var(--head); font-size: 2.6rem; color: var(--navy); line-height: 1; }
.photo-ph .lbl { font-weight: 700; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; margin: 4px 0 8px; }
.photo-ph .desc { font-size: .92rem; max-width: 46ch; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair figcaption { text-align: center; font-weight: 600; color: var(--navy); margin-top: -12px; margin-bottom: 18px; }
figure { margin: 0; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 18px; color: var(--navy); list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 18px 8px; }

/* CTA */
.cta { background: var(--navy); color: #fff; padding: 40px 0; }
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: #DCE8F4; }
.cta .btn { background: var(--water); border-color: var(--water); color: var(--ink); }
.cta .btn:hover { background: #fff; border-color: #fff; }
.cta a.tel { color: #fff; font-weight: 600; }

/* Forms */
.gwm-form { display: grid; gap: 14px; max-width: 720px; }
.gwm-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .gwm-form .row2 { grid-template-columns: 1fr; } }
.gwm-form label { font-weight: 600; display: block; margin-bottom: 4px; }
.gwm-form .opt { font-weight: 400; color: var(--grey); }
.gwm-form input[type=text], .gwm-form input[type=email], .gwm-form input[type=tel], .gwm-form select, .gwm-form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #B8C6D4; border-radius: var(--radius); background: #fff; }
.gwm-form textarea { min-height: 120px; }
.gwm-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.gwm-form .consent input { margin-top: 6px; }
.gwm-form .hp { position: absolute; left: -9999px; }
.gwm-form button { font: inherit; cursor: pointer; justify-self: start; }
.msg-ok { background: #E7F6EC; border: 1px solid #9BD3AE; padding: 14px 18px; border-radius: var(--radius); }
.msg-err { background: #FDECEC; border: 1px solid #E9A3A3; padding: 14px 18px; border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--ink); color: #C9D6E4; padding: 44px 0 26px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer img { width: 260px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer h3 { color: #fff; font-size: 1.4rem; margin-top: 0; }
.legal { border-top: 1px solid #2A3F5E; margin-top: 26px; padding-top: 18px; font-size: .85rem; color: #9FB2C8; }

/* Coming soon */
.cs { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--pale), #fff 60%); }
.cs main { flex: 1; display: flex; align-items: center; }
.cs .box { max-width: 760px; padding: 60px 20px; }
.cs .logo { width: 340px; margin-bottom: 36px; }
.cs .sub { font-family: var(--head); font-size: 2rem; color: var(--blue); margin: 0 0 .6em; }
.cs .badge { display: inline-block; background: var(--navy); color: #fff; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin: 8px 0 20px; }
.cs footer { font-size: .82rem; color: var(--grey); padding: 20px; border-top: 1px solid var(--line); }

/* Readable measure inside full-width wrap */
.content p, .content ul, .content .note, .content .faq, .content .gwm-form, .content h2, .content h3 { max-width: 820px; }
.content .table-wrap, .content .pair, .content .photo-ph, .content .photo, .content .split { max-width: 820px; }
.content .cards { max-width: none; }
.hero .photo-ph { max-width: none; }
.content .split .photo-ph { max-width: none; }

/* Coming-soon team preview PIN */
.pin-form { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--grey); }
.pin-form label { font-weight: 600; }
.pin-form input { width: 110px; font: inherit; padding: 6px 10px; border: 1px solid #B8C6D4; border-radius: var(--radius); }
.pin-form button { font: inherit; padding: 6px 12px; border: 1px solid var(--navy); background: #fff; color: var(--navy); border-radius: var(--radius); cursor: pointer; }
.pin-form .pin-msg { width: 100%; color: #A33; }

/* Glossary */
.glossary { max-width: 820px; margin: 0 0 1.4em; }
.glossary dt { font-weight: 700; color: var(--navy); margin-top: 16px; }
.glossary dd { margin: 4px 0 0; padding-left: 14px; border-left: 3px solid var(--pale); }
