/*
Theme Name: Surfwood
Theme URI: https://surfwoodsolutions.com
Author: Surfwood Solutions LLC
Description: Homepage and site theme for Surfwood Solutions: navy and white, serif headlines, estimate form that emails requests. Edit photos, reviews and contact details in Appearance > Customize.
Version: 1.8.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: surfwood
*/

:root {
	--navy: #13233f;
	--navy-deep: #0d1a30;
	--ink: #18263d;
	--body: #3f4c5f;
	--muted: #5d6878;
	--paper: #ffffff;
	--mist: #eef1f5;
	--sand: #f4f0ea;
	--card: #f5f5f2;
	--line: #d3d9e1;
	--ph: #dde3ea;
	--ph-ink: #4a5668;
	--on-navy: #ffffff;
	--on-navy-soft: #d5dcea;
	--serif: "Lora", Georgia, "Times New Roman", serif;
	--sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--wordmark: "Archivo Black", "Arial Black", sans-serif;
	--accent: "Julius Sans One", "Montserrat", sans-serif;
	--r: 4px;
	--shadow: 0 10px 30px rgba(19, 35, 63, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h, 96px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--body); font-family: var(--sans); font-size: 15px; line-height: 1.65; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.site-footer :focus-visible, .trust :focus-visible { outline-color: var(--on-navy); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--on-navy); padding: 10px 14px; border-radius: var(--r); }
.skip-link:focus { top: 12px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.wrap.narrow { max-width: 760px; }
.serif { font-family: var(--serif); color: var(--ink); font-weight: 400; text-wrap: balance; }
h2.serif { font-size: clamp(26px, 3vw, 32px); line-height: 1.2; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 15px 22px; border-radius: var(--r); border: 1px solid var(--navy); background: var(--navy); color: var(--on-navy); cursor: pointer; }
.btn:hover { background: var(--navy-deep); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.ghost:hover { background: var(--mist); }
.btn.block { width: 100%; }

/* Photo slots: an image from Customize, or a labeled placeholder */
.photo { position: relative; overflow: hidden; background: var(--ph); background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .45) 14px 15px); max-width: 100%; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-label { position: absolute; left: 12px; bottom: 10px; right: 12px; color: var(--ph-ink); font: 500 11px/1.3 var(--sans); letter-spacing: .04em; }
.ratio-5-6 { aspect-ratio: 5 / 6; }
.ratio-5-3 { aspect-ratio: 5 / 3; width: 100%; }
.ratio-4-3 { aspect-ratio: 4 / 3; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(19, 35, 63, .1); }
.site-header .wrap, .lockup img, .wm b { transition: padding .2s, width .2s, font-size .2s; }
@media (min-width: 1181px) {
	.site-header.is-scrolled .wrap { padding-block: 8px; }
	.site-header.is-scrolled .lockup img { width: 54px; }
	.site-header.is-scrolled .wm b { font-size: 22px; }
}
/* Menu button (tablets and phones) */
.nav-toggle { display: none; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); font: 600 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .site-header, .site-header .wrap, .lockup img, .wm b, .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { transition: none; } }
/* Page content gets its own layer, so nothing in old page text can sit on top of the header */
main { position: relative; z-index: 1; isolation: isolate; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-block: 16px; }
.lockup { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.lockup img { width: 72px; height: auto; display: block; }
.wm { display: grid; justify-items: center; gap: 3px; }
.wm b { font: 400 26px/1 var(--wordmark); letter-spacing: .2em; margin-right: -.2em; color: #000; }
.wm i { font: 400 12px/1 var(--accent); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: #000; }
.wm em { font: 700 9px/1 var(--sans); font-style: normal; letter-spacing: .24em; text-transform: uppercase; color: #000; }
.site-nav { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; }
.site-nav .menu { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.site-nav .menu a { font: 600 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink); display: inline-block; padding-block: 8px; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { text-decoration: underline; text-underline-offset: 5px; }
/* Services dropdown */
.site-nav .menu > li { position: relative; display: flex; align-items: center; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 28px; margin-left: 2px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .15s; }
.site-nav .sub-menu { position: absolute; top: 100%; left: -16px; z-index: 1001; min-width: 250px; display: none; flex-direction: column; padding: 10px 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.site-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.site-nav .sub-menu a { display: block; padding: 10px 18px; text-transform: none; letter-spacing: .01em; font-size: 14px; font-weight: 500; white-space: nowrap; }
.site-nav .sub-menu a:hover { background: var(--mist); text-decoration: none; }
.site-nav .sub-menu-info { min-width: 190px; }
.site-nav .sub-toggle.menu-label { width: auto; margin-left: 0; gap: 6px; font: 600 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: default; }
.site-nav .sub-label { display: block; padding: 10px 18px; text-transform: none; letter-spacing: .01em; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink); cursor: default; }
.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu,
.site-nav .menu-item-has-children.is-open > .sub-menu { display: flex; }
.site-nav .menu-item-has-children:hover .sub-toggle svg,
.site-nav .menu-item-has-children.is-open .sub-toggle svg { transform: rotate(180deg); }
@media (hover: none) { .site-nav .menu-item-has-children:hover > .sub-menu { display: none; } .site-nav .menu-item-has-children.is-open > .sub-menu { display: flex; } }

/* Hero */
.hero { position: relative; background: var(--mist); }
.hero .hero-photo { position: absolute; inset: 0; }
.hero .hero-photo .photo-label { left: auto; right: 16px; top: 12px; bottom: auto; text-align: right; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper) 0%, rgba(255, 255, 255, .92) 38%, rgba(255, 255, 255, 0) 68%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 340px); gap: 40px; align-items: center; padding-block: 28px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 50px); line-height: 1.12; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; }
.hero-copy { display: grid; gap: 22px; max-width: 540px; }
.hero-copy p { color: var(--ink); font-weight: 500; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Estimate form */
.lead-form { background: var(--paper); border-radius: 8px; box-shadow: var(--shadow); padding: 28px 26px 22px; display: grid; gap: 12px; scroll-margin-top: 24px; }
.lead-form h2 { font-size: 25px; line-height: 1.15; }
.lead-form > p { font-size: 12.5px; line-height: 1.55; color: var(--ink); font-weight: 500; }
.field { display: grid; gap: 5px; }
.field label { font: 500 12px/1.3 var(--sans); color: var(--ink); }
.field.icon { position: relative; }
.field.icon label, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.field.icon svg { position: absolute; left: 11px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 400 13px/1.3 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 12px; }
.field.icon input { padding-left: 36px; }
.field textarea { min-height: 74px; resize: vertical; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.lead-form .form-note { text-align: center; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.form-status { font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--mist); border-left: 0; border-radius: var(--r); padding: 10px 12px; }
.form-status.is-sent { background: #e6f1ea; color: #1d4a2c; }
.form-status.is-missing, .form-status.is-error { background: #fbeaea; color: #7a1f1f; }

/* Trust bar */
.trust { background: var(--navy); color: var(--on-navy); }
.trust ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 20px; padding-block: 18px; }
.trust li { white-space: nowrap; }
.trust li { display: flex; align-items: center; gap: 10px; font: 600 12.5px/1.3 var(--sans); }

/* Sections */
.section { padding-block: 56px; }
.section > .wrap { display: grid; gap: 28px; }
.center { text-align: center; justify-items: center; }
.about, #projects { padding-top: 8px; }

/* Services */
.services { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.service { background: var(--card); display: grid; grid-template-rows: auto 1fr; text-align: center; }
.service-body { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 18px 14px 16px; justify-items: center; }
.service h3 { font: 600 14px/1.35 var(--sans); color: var(--ink); min-height: 2.7em; display: flex; align-items: center; justify-content: center; }
.service .more { align-self: end; }
.service p { font-size: 12.5px; line-height: 1.6; }
.more { display: inline-flex; align-items: center; gap: 8px; font: 700 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding-block: 6px; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.more svg { width: 14px; height: 14px; }

/* About */
.about .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.about-copy { display: grid; gap: 22px; }
.about-copy h2 { font-size: clamp(28px, 3.2vw, 36px); }
.about-copy > p { color: var(--ink); font-weight: 500; max-width: 40ch; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 22px 18px; }
.features li { display: grid; gap: 6px; align-content: start; font-size: 11.5px; line-height: 1.6; }
.features svg { color: var(--ink); width: 26px; height: 26px; }
.features b { font: 700 11.5px/1.3 var(--sans); color: var(--ink); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; width: 100%; }
.project { display: grid; gap: 10px; text-align: center; text-decoration: none; color: var(--ink); }
.project .photo img { transition: transform .3s; }
.project:hover .photo img { transform: scale(1.04); }
.project-label { font: 600 12px/1.3 var(--sans); color: var(--ink); text-underline-offset: 4px; }
.project:hover .project-label, .project:focus-visible .project-label { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .project .photo img { transition: none; } .project:hover .photo img { transform: none; } }

/* Service area + reviews */
.area { background: var(--mist); }
.area .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 2.6fr); gap: 32px; align-items: stretch; }
.area.no-reviews .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.area .area-photo { min-height: 200px; margin-left: -24px; }
.area-copy, .reviews { display: grid; gap: 14px; align-content: start; padding-block: 32px; }
.area h2 { font-size: 22px; }
.area-copy > p { font-weight: 500; color: var(--ink); font-size: 13px; }
.towns { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 14px; font-size: 12.5px; color: var(--ink); }
.towns li { display: flex; align-items: flex-start; gap: 8px; }
.towns li:last-child { grid-column: 1 / -1; }
.towns svg { width: 16px; height: 16px; margin-top: 2px; }
.review-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.review { background: var(--paper); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; font-size: 12px; line-height: 1.6; align-content: space-between; }
.review footer { font-weight: 700; color: var(--ink); }

/* Closing call to action */
.cta { background: var(--sand); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: 32px; }
.cta-copy { display: grid; gap: 6px; flex: 1 1 380px; min-width: 0; }
.cta h2 { font-size: 24px; }
.cta-copy p { font-size: 13px; font-weight: 500; color: var(--ink); max-width: 60ch; }
.cta-actions { display: grid; gap: 14px; }
.contact-line { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.contact-line a { display: flex; align-items: center; gap: 8px; font: 600 13px/1.3 var(--sans); color: var(--ink); text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-soft); font-size: 12.5px; }
.site-footer > .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.4fr); gap: 32px; padding-block: 40px 28px; }
.foot-brand { display: grid; gap: 16px; align-content: start; max-width: 330px; }
.foot-brand .lockup { color: var(--on-navy); }
.foot-brand .lockup img { filter: invert(1); mix-blend-mode: screen; }
.foot-brand .wm b, .foot-brand .wm i, .foot-brand .wm em { color: var(--on-navy); }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col h2 { font: 700 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy); margin-bottom: 6px; }
.foot-col ul { display: grid; gap: 8px; }
.foot-col li { display: flex; gap: 9px; align-items: flex-start; min-width: 0; overflow-wrap: break-word; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.foot-col svg { width: 16px; height: 16px; margin-top: 2px; }
.legal { border-top: 1px solid rgba(255, 255, 255, .14); text-align: center; font-size: 11.5px; padding-block: 16px; }

/* Inner pages */
.page-hero { background: var(--mist); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 48px; }
.page-hero.has-photo .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.page-hero-copy { display: grid; gap: 18px; max-width: 640px; }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.12; text-transform: none; }
.page-hero h1::first-letter { text-transform: uppercase; }
.page-hero-photo { aspect-ratio: 4 / 3; border-radius: var(--r); }
.eyebrow { font: 600 11.5px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: 17px; line-height: 1.6; color: var(--ink); font-weight: 500; max-width: 52ch; }
.page-body { padding-block: 48px; }
.page-body > .wrap + .wrap { margin-top: 32px; }
.entry-content { font-size: 16px; line-height: 1.75; color: var(--body); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.25; margin-top: 1.6em; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content strong, .entry-content b { font-weight: 600; color: var(--ink); }
.entry-content ul { list-style: disc; padding-left: 1.3em; }
.entry-content ol { padding-left: 1.3em; }
.entry-content img { border-radius: var(--r); }
/* Text pasted from other pages or documents brings its own fonts and sizes: make it match the site */
.entry-content p, .entry-content li, .entry-content span, .entry-content div, .entry-content em, .entry-content a { font-family: var(--sans) !important; font-size: 16px !important; line-height: 1.75 !important; color: var(--body); letter-spacing: normal !important; }
.entry-content strong, .entry-content b { font-family: var(--sans) !important; font-size: inherit !important; font-weight: 600 !important; color: var(--ink) !important; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 { font-family: var(--serif) !important; font-weight: 400 !important; color: var(--ink) !important; line-height: 1.25 !important; letter-spacing: normal !important; text-transform: none !important; }
.entry-content h1, .entry-content h2 { font-size: clamp(26px, 3vw, 32px) !important; }
.entry-content h3 { font-size: 22px !important; }
.entry-content h4, .entry-content h5, .entry-content h6 { font-size: 19px !important; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p:empty { display: none; }
.entry-content .wp-block-gallery { gap: 12px; }
.entry-content figure { margin: 0; }
.entry-content figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.page-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.page-cta { background: var(--sand); }
.page-cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 48px; align-items: center; padding-block: 56px; }
.page-cta-copy { display: grid; gap: 18px; }
.page-cta-copy h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.2; }
.page-cta-copy > p { color: var(--ink); font-weight: 500; max-width: 46ch; }
.page-cta-list { display: grid; gap: 10px; }
.page-cta-list li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; font-size: 14px; }
.about-page { padding-top: 56px; }
.service-list { background: var(--mist); }
.service-list .wrap { display: grid; gap: 28px; padding-block: 56px; }
.service-list h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.2; }
.service-list-groups { display: grid; gap: 32px; }
.service-list-groups.is-grouped { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.service-list-group { display: grid; gap: 14px; align-content: start; }
.service-list-group h3 { font: 700 12px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 28px; }
.is-grouped .checklist { grid-template-columns: minmax(0, 1fr); }
.checklist li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 15px; line-height: 1.45; }
.checklist svg { width: 20px; height: 20px; margin-top: 1px; color: var(--navy); }
.recent-work { padding-block: 56px; }
.page-intro { padding-block: 56px; }
.page-intro + .service-list + .page-body { padding-top: 56px; }
.page-intro .wrap.narrow { display: grid; gap: 20px; }
.page-intro h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
.page-hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-photo .page-hero-video { aspect-ratio: 16 / 10; }
.roofing-intro .wrap.has-photo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.roofing-copy { display: grid; gap: 20px; }
.roofing-copy h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
.roofing-photo { aspect-ratio: 4 / 3; border-radius: 6px; }
.photo-row { display: grid; gap: 16px; margin-top: 36px; }
.photo-row.count-1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
.photo-row.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-row.count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-row .photo { aspect-ratio: 4 / 3; border-radius: 6px; }
.google-reviews { background: var(--paper); }
.google-reviews .wrap { display: grid; gap: 24px; }
.google-reviews h2 { text-align: center; }
/* Videos added with the WordPress Video or YouTube blocks */
.entry-content video, .entry-content iframe { display: block; width: 100%; max-width: 100%; height: auto; border-radius: var(--r); }
.entry-content iframe { aspect-ratio: 16 / 9; }
.entry-content .wp-block-video, .entry-content .wp-block-embed { margin-inline: 0; }
.coastal { background: var(--navy); color: var(--on-navy-soft); }
.coastal .wrap { display: grid; gap: 40px; padding-block: 72px; }
.coastal-head { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 820px; margin-inline: auto; }
.coastal .eyebrow { color: var(--on-navy-soft); }
.coastal-head h2 { color: var(--on-navy); font-size: clamp(28px, 3.4vw, 38px); line-height: 1.18; }
.coastal-lede { font-size: 16px; line-height: 1.75; }
.coastal-styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.coastal-card { background: var(--paper); color: var(--body); border-radius: 6px; padding: 32px; display: grid; gap: 14px; align-content: start; font-size: 15px; line-height: 1.75; }
.coastal-card h3 { font-size: 26px; line-height: 1.2; color: var(--ink); }
.swatches { display: flex; gap: 8px; margin-top: 6px; }
.swatches li { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); }
.coastal-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.coastal-photos .photo { aspect-ratio: 1 / 1; border-radius: 6px; }
.coastal-close { text-align: center; font-style: italic; font-size: clamp(20px, 2.2vw, 24px); color: var(--on-navy); }
.recent-work .page-gallery { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.about-page .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-title { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; margin-bottom: 20px; }
.entry { display: grid; gap: 12px; margin-bottom: 32px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content a { color: var(--navy); }

/* Tablets and phones: slim pinned bar with a Menu button */
@media (max-width: 1180px) {
	.site-header .wrap { flex-wrap: wrap; padding-block: 10px; }
	.lockup img { width: 56px; }
	.wm b { font-size: 21px; }
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 14px; max-height: calc(100vh - 90px); overflow-y: auto; }
	.nav-open .site-nav { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu > li { flex-wrap: wrap; border-top: 1px solid var(--line); }
	.site-nav .menu a, .site-nav .menu > li > .menu-label { padding-block: 14px; font-size: 12.5px; }
	.site-nav .menu > li > a { flex: 1; }
	.sub-toggle { width: 44px; height: 44px; }
	.sub-toggle.menu-label { flex: 1; justify-content: flex-start; height: auto; }
	.site-nav .sub-menu { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 8px; border: 0; box-shadow: none; background: none; }
	.site-nav .sub-menu::before { display: none; }
	.site-nav .sub-menu a, .site-nav .sub-label { padding: 10px 16px; font-size: 14px; }
	.site-nav .menu-item-has-children:hover > .sub-menu { display: none; }
	.site-nav .menu-item-has-children.is-open > .sub-menu, .site-nav .menu-item-has-children:focus-within > .sub-menu { display: flex; }
	.site-nav > .btn { margin-top: 12px; }
}
@media (max-width: 1100px) {
	.services, .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-footer > .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.trust ul { justify-content: flex-start; gap: 14px 32px; }
}
@media (max-width: 900px) {
	.roofing-intro .wrap.has-photo { grid-template-columns: minmax(0, 1fr); }
	.service-list-groups.is-grouped { grid-template-columns: minmax(0, 1fr); }
	.recent-work .page-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.page-hero.has-photo .wrap, .page-cta .wrap { grid-template-columns: minmax(0, 1fr); }
	.page-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero .wrap, .about .wrap { grid-template-columns: minmax(0, 1fr); }
	.hero::after { background: rgba(255, 255, 255, .88); }
	.area .wrap, .area.no-reviews .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 24px; }
	.area .area-photo { margin-inline: -24px; }
	.area-copy, .reviews { padding-block: 24px 8px; }
}
@media (max-width: 640px) {
	.photo-row.count-2, .photo-row.count-3 { grid-template-columns: minmax(0, 1fr); }
	.coastal-photos, .coastal-styles { grid-template-columns: minmax(0, 1fr); }
	.coastal-card { padding: 24px; }
	.services, .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer > .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
	.wrap { padding-inline: 16px; }
	.area .area-photo { margin-inline: -16px; }
	.site-header .wrap { gap: 12px; padding-block: 8px; }
	.lockup { gap: 10px; }
	.lockup img { width: 44px; }
	.wm b { font-size: 18px; }
	.wm i { font-size: 10px; }
	.wm em { font-size: 7.5px; letter-spacing: .2em; }
	.nav-toggle { padding: 9px 11px; gap: 8px; }
	.section { padding-block: 40px; }
}

/* Projects */
.projects-more { margin-top: 28px; }
.project-lede { font-size: 16px; }
.page-hero .eyebrow a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.project-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.project-filter a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font: 600 11.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: var(--paper); }
.project-filter a:hover { background: var(--mist); }
.project-filter a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.project-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: left; }
.project-card { background: var(--card); border-radius: var(--r); overflow: hidden; }
.project-card > a { display: grid; grid-template-rows: auto 1fr; height: 100%; text-decoration: none; color: inherit; }
.project-card .photo img { transition: transform .3s; }
.project-card > a:hover .photo img { transform: scale(1.03); }
.project-card-body { display: grid; gap: 8px; align-content: start; padding: 18px 18px 20px; }
.project-card h3 { font-size: 20px; line-height: 1.25; color: var(--ink); }
.project-card .more { margin-top: 4px; }
.more-projects { background: var(--mist); }
.more-projects .wrap { display: grid; gap: 28px; justify-items: center; }
.projects-list .nav-links { display: flex; justify-content: center; gap: 16px; margin-top: 32px; }
.projects-list .nav-links a, .projects-list .nav-links span { font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .project-card .photo img { transition: none; } .project-card > a:hover .photo img { transform: none; } }
@media (max-width: 900px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .project-grid { grid-template-columns: minmax(0, 1fr); } }
