/* THE WATTS CO. — site styles. Mobile-first, no frameworks, no web fonts (system font stack). */
:root {
  --blue: #1238c9;          /* corporate blue, taken from the logo's royal blue (contrast 8.0:1 on white) */
  --blue-dark: #0b2590;
  --blue-deep: #0a1f6e;
  --blue-tint: #eaf0fd;
  --charcoal: #22262e;      /* body text (15.6:1 on white) */
  --slate: #4a5160;         /* secondary text (8.0:1 on white) */
  --line: #dde2ea;
  --gray-50: #f6f8fb;
  --gray-100: #eef1f6;
  --white: #fff;
  --danger: #b42318;
  --success: #067647;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 8px 24px rgb(16 24 40 / 6%);
  --shadow-lg: 0 2px 4px rgb(16 24 40 / 6%), 0 18px 40px rgb(16 24 40 / 10%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--charcoal); background: var(--white); text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; color: #111827; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--blue-dark); color: #fff; border-radius: var(--radius-sm); font-weight: 600; transition: top .15s; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .65em 1.2em; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-lg { padding: .8em 1.5em; font-size: 1.05rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgb(18 56 201 / 22%); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--blue-tint); color: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--charcoal); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-light { background: #fff; color: var(--blue-deep); }
.btn-light:hover { background: var(--blue-tint); color: var(--blue-deep); }
.btn-on-dark { color: #fff; border-color: rgb(255 255 255 / 55%); }
.btn-on-dark:hover { border-color: #fff; color: #fff; background: rgb(255 255 255 / 10%); }
.text-link { display: inline-flex; align-items: center; gap: .35em; font-weight: 650; text-decoration: none; }
.text-link .icon { width: 1em; height: 1em; transition: transform .18s; }
.text-link:hover .icon { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; padding: 6px 0; }
.brand img { width: 64px; height: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--charcoal); font: inherit; font-weight: 600; cursor: pointer; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 8px var(--gutter) 20px; display: none; }
.site-nav.is-open { display: block; animation: drop .18s ease-out; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--gray-100); color: var(--charcoal); font-weight: 600; text-decoration: none; }
.site-nav li a[aria-current="page"] { color: var(--blue); }
.header-call { width: 100%; }
.no-js .site-nav { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 12px; }
.no-js .nav-toggle { display: none; }
.no-js .header-inner { flex-wrap: wrap; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (min-width: 960px) {
  .brand img { width: 72px; }
  .header-inner { min-height: 88px; }
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav { position: static; display: flex; align-items: center; gap: 20px; padding: 0; border: 0; box-shadow: none; background: transparent; animation: none; }
  .site-nav ul { display: flex; gap: 4px; margin: 0; }
  .site-nav li a { padding: 10px 14px; border: 0; border-radius: 999px; position: relative; }
  .site-nav li a:hover { background: var(--gray-50); color: var(--blue-dark); }
  .site-nav li a[aria-current="page"] { background: var(--blue-tint); }
  .header-call { width: auto; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--gray-50); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-more { margin: 36px 0 0; }
.eyebrow { display: inline-block; margin: 0 0 .75em; font-size: .8rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.lead { font-size: clamp(1.1rem, 2.1vw, 1.3rem); color: var(--slate); max-width: 62ch; }
.prose p { color: var(--slate); }
.split { display: grid; gap: 24px; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }

/* Hero */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1200px 500px at 85% -10%, rgb(18 56 201 / 12%), transparent 60%),
  linear-gradient(180deg, #f7f9fd 0%, #fff 100%); border-bottom: 1px solid var(--gray-100); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgb(18 56 201 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(18 56 201 / 5%) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 36px; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 112px); }
.hero h1 { max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 28px; display: grid; justify-items: center; gap: 20px; }
.hero-card img { width: 192px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; width: 100%; }
.hero-facts li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--gray-50); font-weight: 600; font-size: .98rem; }
.hero-facts .icon { color: var(--blue); margin-top: 2px; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 7fr 5fr; align-items: center; gap: 56px; } }

.page-hero { background: linear-gradient(180deg, #f5f7fc 0%, #fff 100%); border-bottom: 1px solid var(--gray-100); padding: clamp(44px, 7vw, 88px) 0 clamp(36px, 5vw, 64px); }
.page-hero .hero-actions { margin-top: 20px; }
.breadcrumb { font-size: .95rem; color: var(--slate); }

/* Cards */
.card-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c9d3ea; }
.card p { color: var(--slate); margin: 0; }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); }
.card-icon .icon { width: 26px; height: 26px; }

.service-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .service-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1100px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-body { padding: 28px; }
.service-card h2 { font-size: 1.3rem; }
.service-summary { font-weight: 600; color: var(--charcoal) !important; margin-bottom: .6em !important; }

/* Why choose */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-item { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.why-item h3 { margin-bottom: .3em; }
.why-item p { margin: 0; color: var(--slate); }
.why-check { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; }
.why-check .icon { width: 20px; height: 20px; }

.sector-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .sector-grid { grid-template-columns: repeat(4, 1fr); } }
.sector { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 14px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; }
.sector .icon { width: 36px; height: 36px; color: var(--blue); }

/* About */
.about-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .about-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.about-block { padding: 28px; border-left: 4px solid var(--blue); background: var(--gray-50); border-radius: 0 var(--radius) var(--radius) 0; }
.about-block p { color: var(--slate); }
.about-block p:last-child { margin-bottom: 0; }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--blue-deep), var(--blue) 70%); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / 88%); margin: 0; font-size: 1.1rem; }
.cta-inner { display: grid; gap: 24px; align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } }

/* Projects */
.project-card { padding: 0; overflow: hidden; height: 100%; }
.project-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.project-thumb { aspect-ratio: 3 / 2; background: var(--gray-100); overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.project-card:hover .project-thumb img { transform: scale(1.04); }
.project-thumb-empty { display: grid; place-items: center; height: 100%; color: #9aa4b5; }
.project-thumb-empty .icon { width: 48px; height: 48px; }
.project-card-body { padding: 22px 24px 26px; }
.project-card h3 { margin-bottom: .25em; }
.tag { display: inline-block; margin: 0 0 10px !important; padding: 3px 10px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-dark) !important; font-size: .8rem; font-weight: 700; }
.meta { font-size: .92rem; margin-bottom: .6em !important; }
.project-cell[hidden] { display: none; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; color: var(--charcoal); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.project-layout { display: grid; gap: 28px; }
@media (min-width: 900px) { .project-layout { grid-template-columns: 2fr 1fr; gap: 56px; } }
.fact-list { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--gray-50); border: 1px solid var(--line); display: grid; gap: 14px; align-self: start; }
.fact-list dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--slate); }
.fact-list dd { margin: 0; font-weight: 600; }
.gallery-title { margin-top: 48px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--gray-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.lightbox { width: min(1100px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 12px; background: #0b0f19; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgb(5 8 15 / 86%); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 12px 12px 0 0; }
.lightbox figcaption { padding: 12px 18px 16px; font-size: .95rem; color: #e5e9f2; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 92%); color: #111; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 10px; top: 10px; }

.empty-state { max-width: 640px; margin: 0 auto; text-align: center; padding: 48px 24px; border: 2px dashed var(--line); border-radius: 20px; background: var(--gray-50); }
.empty-state .card-icon { margin-inline: auto; }
.empty-state p { color: var(--slate); }

/* Contact */
.contact-layout { display: grid; gap: 32px; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; } }
.contact-info { padding: 28px; border-radius: var(--radius); background: var(--gray-50); border: 1px solid var(--line); }
.contact-info h2 { font-size: 1.35rem; }
.contact-info dl { margin: 0; display: grid; gap: 18px; }
.contact-info dt { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.contact-info dt .icon { color: var(--blue); width: 18px; height: 18px; }
.contact-info dd { margin: 4px 0 0; font-weight: 600; font-size: 1.05rem; }
.contact-form-wrap h2 { font-size: 1.5rem; }
.form-grid { display: grid; gap: 18px; margin-bottom: 22px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 6px; font-weight: 650; }
.req { color: var(--danger); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid #b9c1cf; border-radius: var(--radius-sm); background: #fff; font: inherit; color: var(--charcoal); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(18 56 201 / 18%); }
.has-error input, .has-error textarea { border-color: var(--danger); }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: .93rem; font-weight: 600; }
.form-note { font-size: .93rem; color: var(--slate); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; }
.alert-error { background: #fef3f2; border: 1px solid #fecdca; color: #912018; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: 18px; }

/* Footer */
.site-footer { background: #111827; color: #cdd3de; padding: 56px 0 24px; font-size: .98rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1.4fr 1fr; gap: 48px; } }
.footer-brand img { width: 72px; border-radius: 8px; background: #fff; padding: 4px; margin-bottom: 14px; }
.footer-brand strong { color: #fff; }
.footer-heading { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-list, .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .icon { width: 18px; height: 18px; margin-top: 4px; color: #8fa7ff; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 12%); font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* Subtle entrance animation (only when JS is running and the visitor allows motion) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
main { transition: opacity .16s ease; }
main.is-leaving { opacity: .35; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .hero-actions { display: none !important; }
  body { font-size: 12pt; }
  .js .reveal { opacity: 1; transform: none; }
}
