/* ==========================================================================
   WeDry Restoration — custom theme stylesheet
   Mobile-first. Single file, no framework. System fonts only (zero added
   network requests — the previous theme loaded 32 stylesheets + 25 scripts).
   ========================================================================== */

:root {
	--navy: #0b2d4d;
	--navy-dark: #071b30;
	--cyan: #0f96b8;
	--cyan-dark: #0c7690;
	--cyan-tint: #e6f5f9;
	--ink: #16232d;
	--ink-soft: #4a5a66;
	--paper: #f7fafc;
	--paper-alt: #eef4f8;
	--white: #ffffff;
	--border: #dde6ec;
	--radius: 10px;
	--radius-pill: 999px;
	--shadow: 0 4px 20px rgba(11, 45, 77, 0.08);
	--shadow-lg: 0 12px 40px rgba(11, 45, 77, 0.14);
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--container: 1180px;
}

@font-face {
	font-family: "Outfit";
	src: url("../fonts/outfit-variable.woff2") format("woff2");
	font-weight: 500 800;
	font-style: normal;
	font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--paper);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0 0 0.5em; line-height: 1.15; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link {
	position: absolute; top: -100px; left: 0; background: var(--navy); color: var(--white);
	padding: 12px 20px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

.icon { width: 1em; height: 1em; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
	padding: 14px 26px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.95rem;
	border: 2px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--cyan); color: var(--white); }
.btn-primary:hover { background: var(--cyan-dark); box-shadow: var(--shadow); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: var(--white);
	border-bottom: 1px solid var(--border);
}
.site-header-inner {
	display: flex; align-items: center; justify-content: space-between;
	height: 72px;
}
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.site-logo img { height: 52px; width: auto; }
.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: 28px; align-items: center; }
.primary-nav a { font-weight: 600; color: var(--ink); padding: 8px 0; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.primary-nav a:hover, .primary-nav a.current { color: var(--cyan-dark); border-color: var(--cyan); }
.header-cta { display: none; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.header-phone .icon { color: var(--cyan); width: 20px; height: 20px; }
.nav-toggle {
	background: none; border: none; color: var(--navy); display: flex; padding: 8px;
}
.nav-toggle .icon { width: 26px; height: 26px; }

.mobile-nav {
	display: none; position: fixed; inset: 72px 0 0 0; background: var(--white);
	z-index: 99; padding: 24px 20px; overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 14px 4px; font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid var(--border); color: var(--navy); }
.mobile-nav .header-cta { display: flex; flex-direction: column; align-items: stretch; margin-top: 20px; gap: 12px; }
.mobile-nav .header-phone { justify-content: center; padding: 14px; background: var(--paper-alt); border-radius: var(--radius); }

@media (min-width: 900px) {
	.primary-nav { display: block; }
	.header-cta { display: flex; }
	.nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
	color: var(--white);
	padding: 48px 0 56px;
	position: relative;
	overflow: hidden;
}
.hero-grid {
	display: grid; gap: 32px; align-items: center;
}
.hero-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--cyan); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
	margin-bottom: 14px;
}
.hero h1 {
	font-size: clamp(1.9rem, 5vw, 3rem);
	max-width: 14ch;
	margin-bottom: 18px;
}
.hero p {
	color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 46ch; margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; padding: 0 14px 14px 0; }
.hero-media img { border-radius: 6px; position: relative; z-index: 1; }
.hero-media::after {
	content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: 0;
	background: var(--cyan); border-radius: 6px;
}

@media (min-width: 900px) {
	.hero { padding: 76px 0 88px; }
	.hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
}

/* ---------- Trust strip (under hero, not inside it) ---------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--border); }
.trust-strip .container {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
	padding-top: 28px; padding-bottom: 28px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .icon { width: 28px; height: 28px; color: var(--cyan); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 0.95rem; color: var(--navy); }
.trust-item span { font-size: 0.85rem; color: var(--ink-soft); }

@media (min-width: 700px) {
	.trust-strip .container { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Section scaffolding ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 620px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); color: var(--navy); }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }
.section-head.centered { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

@media (min-width: 900px) {
	.section { padding: 84px 0; }
}

/* ---------- Services grid ---------- */
.services-grid {
	display: grid; grid-template-columns: 1fr; gap: 20px;
}
.service-card {
	background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 28px 24px; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
	border-top: 3px solid transparent;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-top-color: var(--cyan); }
.service-icon {
	width: 52px; height: 52px; border-radius: var(--radius); background: var(--cyan-tint);
	display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.service-icon .icon { width: 26px; height: 26px; color: var(--cyan-dark); }
.service-card h3 { font-size: 1.15rem; color: var(--navy); }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 14px; }
.service-card .card-link { font-weight: 700; color: var(--cyan-dark); display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.service-card .card-link .icon { width: 16px; height: 16px; transition: transform 0.15s; }
.service-card:hover .card-link .icon { transform: translateX(3px); }

/* Photo-forward variant, used for the 6 core services (real photos, not icons) */
.service-card-photo {
	background: var(--white); border-radius: var(--radius); overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	box-shadow: 0 1px 3px rgba(11, 45, 77, 0.08);
}
.service-card-photo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-photo-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.service-card-photo-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.service-card-photo:hover .service-card-photo-media img { transform: scale(1.06); }
.service-card-photo-body { padding: 22px 22px 24px; }
.service-card-photo-body h3 { font-size: 1.1rem; color: var(--navy); }
.service-card-photo-body p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 12px; }
.service-card-photo-body .card-link { font-weight: 700; color: var(--cyan-dark); display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; }
.service-card-photo-body .card-link .icon { width: 15px; height: 15px; transition: transform 0.15s; }
.service-card-photo:hover .card-link .icon { transform: translateX(3px); }

@media (min-width: 700px) {
	.services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Split (image + text), used once per page ---------- */
.split { display: grid; gap: 32px; align-items: center; }
.split img { border-radius: 16px; }
.split-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.split-feature { display: flex; gap: 12px; }
.split-feature .icon { width: 22px; height: 22px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.split-feature strong { display: block; color: var(--navy); font-size: 0.98rem; }
.split-feature span { font-size: 0.88rem; color: var(--ink-soft); }

@media (min-width: 900px) {
	.split { grid-template-columns: 1fr 1fr; gap: 56px; }
	.split.reverse .split-media { order: 2; }
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; text-align: center; }
.stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--cyan); font-weight: 800; }
.stat span { color: rgba(255,255,255,0.72); font-size: 0.9rem; }

@media (min-width: 700px) {
	.stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Process timeline ---------- */
.process-list { display: grid; gap: 24px; counter-reset: step; }
.process-step { display: flex; gap: 18px; }
.process-num {
	flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--cyan-tint);
	color: var(--cyan-dark); font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.process-step h4 { font-size: 1.02rem; color: var(--navy); margin-bottom: 4px; }
.process-step p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

@media (min-width: 900px) {
	.process-list { grid-template-columns: repeat(4, 1fr); gap: 20px; }
	.process-step { flex-direction: column; }
	.process-step::before { content: ""; }
}

/* ---------- Gallery (masonry via CSS columns, no JS) ---------- */
.gallery-masonry { columns: 1; column-gap: 16px; }
.gallery-item {
	position: relative; break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius);
	overflow: hidden; box-shadow: 0 1px 3px rgba(11, 45, 77, 0.08);
}
.gallery-item img { width: 100%; display: block; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-label {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px;
	background: linear-gradient(to top, rgba(7,27,48,0.85), transparent);
	color: var(--white); font-weight: 700; font-size: 0.9rem;
}

@media (min-width: 640px) {
	.gallery-masonry { columns: 2; }
}
@media (min-width: 1024px) {
	.gallery-masonry { columns: 3; }
}

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.testimonial {
	background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 26px 24px;
}
.testimonial blockquote { margin: 0 0 16px; color: var(--ink); font-size: 1rem; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--navy); font-size: 0.9rem; }

@media (min-width: 700px) {
	.testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- FAQ accordion (native details/summary, zero JS) ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 4px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 20px; height: 20px; color: var(--cyan); flex-shrink: 0; transition: transform 0.2s; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { padding: 0 4px 18px; color: var(--ink-soft); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
	color: var(--white); border-radius: 20px; padding: 40px 28px; text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 46ch; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); }
.footer-grid { display: grid; gap: 32px; padding: 48px 0 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; margin-bottom: 16px; }
.footer-brand-chip { background: var(--white); border-radius: 8px; padding: 8px 12px; display: inline-flex; }
.footer-brand-chip img { height: 44px; width: auto; display: block; }
.footer-col h5 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a:hover { color: var(--cyan); }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; font-size: 0.85rem;
	display: flex; flex-direction: column; gap: 10px; text-align: center;
}

@media (min-width: 700px) {
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 1024px) {
	.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

/* ---------- Page header (non-home pages) ---------- */
.page-header { background: var(--navy); color: var(--white); padding: 40px 0; text-align: center; }
.page-header h1 { color: var(--white); margin-bottom: 6px; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.page-header .breadcrumb { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.page-header .breadcrumb a:hover { color: var(--cyan); }

/* ---------- Generic content (privacy/terms pages) ---------- */
.content-page { max-width: 780px; margin: 0 auto; padding: 48px 20px; }
.content-page h2 { color: var(--navy); font-size: 1.3rem; margin-top: 1.6em; }
.content-page h3 { color: var(--navy); font-size: 1.1rem; margin-top: 1.4em; }
.content-page ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.content-page li { margin-bottom: 0.4em; }
.content-page p, .content-page li { color: var(--ink-soft); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 32px; }
.contact-info-card {
	background: var(--navy); color: var(--white); border-radius: 16px; padding: 32px 26px;
}
.contact-info-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 18px; }
.contact-info-list { display: grid; gap: 16px; }
.contact-info-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-info-list .icon { width: 20px; height: 20px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.contact-info-list a:hover { color: var(--cyan); }
.contact-map { border-radius: 16px; overflow: hidden; margin-top: 20px; border: 1px solid rgba(255,255,255,0.15); }
.contact-map iframe { width: 100%; height: 220px; border: 0; display: block; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; color: var(--navy); font-size: 0.9rem; margin-bottom: 6px; }
.form-field input, .form-field textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
	font: inherit; color: var(--ink); background: var(--white);
}
.form-field input:focus, .form-field textarea:focus {
	outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: -6px; }

@media (min-width: 900px) {
	.contact-grid { grid-template-columns: 0.85fr 1.15fr; }
}

/* ---------- Scroll to top ---------- */
.scroll-top {
	position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
	background: var(--cyan); color: var(--white); display: flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow); border: none; opacity: 0; pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease; z-index: 90;
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); }

/* ---------- Motion ----------
   Content is always fully visible on load, regardless of JS/crawlers/
   screenshot tools (a scroll-triggered fade was tried and dropped: it left
   below-the-fold sections blank whenever an IntersectionObserver callback
   didn't fire before render/capture, e.g. automated full-page screenshots).
   Hover/press states below are pure CSS and carry no such risk. */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.service-card, .scroll-top, .btn { transition: none; }
}
