/*
Theme Name: Red Cliffs Stucco
Theme URI: https://stuccostgeorge.com
Author: Red Cliffs Stucco Co.
Description: Clean Sage theme for stuccostgeorge.com. Lead generation layout with a phone and estimate form setting, a homepage hero, service and town pages, and a blog.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: redcliffs
*/

:root {
	--ink: #1F2A30;
	--muted: #44525A;
	--accent: #3F6B57;
	--accent-dark: #2F5A47;
	--accent-text: #2F5A47;
	--tint: #EEF3EF;
	--line: #D6DED9;
	--white: #FFFFFF;
	--radius: 16px;
	--wrap: 1160px;
	--font-head: "Manrope", system-ui, sans-serif;
	--font-body: "Public Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
a:hover { color: #1E3D30; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: 21px; font-weight: 700; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1.1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--white); padding: 10px 14px; border-radius: 8px; clip: auto; width: auto; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* Buttons */
.button, .wp-block-button__link, .rcs-btn, input[type="submit"], button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 50px; padding: 12px 26px;
	background: var(--accent); color: var(--white) !important;
	border: 0; border-radius: 999px;
	font-family: var(--font-body); font-weight: 600; font-size: 17px;
	text-decoration: none; cursor: pointer; line-height: 1.2;
}
.button:hover, .wp-block-button__link:hover, .rcs-btn:hover, input[type="submit"]:hover, button[type="submit"]:hover { background: var(--accent-dark); color: var(--white); }
.rcs-btn--light { background: var(--white); color: var(--ink) !important; }
.rcs-btn--light:hover { background: var(--tint); color: var(--ink) !important; }
.rcs-btn--ghost { background: transparent; color: var(--accent-text) !important; border: 2px solid var(--accent); }
.rcs-btn--ghost:hover { background: var(--tint); }

/* Top bar */
.topbar { background: var(--ink); color: #E6ECE8; font-size: 15px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: var(--white); font-weight: 600; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.05; }
.brand:hover { color: var(--ink); }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 23px; }
.brand__sub { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-text); font-weight: 600; margin-top: 3px; }
.custom-logo { max-height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.nav li { position: relative; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 0; display: inline-block; }
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: var(--accent-text); }
.nav a.rcs-btn { padding: 10px 22px; min-height: 46px; white-space: nowrap; flex: none; color: var(--white); }
.nav .sub-menu { display: none; position: absolute; top: 100%; left: -14px; z-index: 20; min-width: 240px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; flex-direction: column; gap: 0; box-shadow: 0 12px 30px rgba(31,42,48,.08); }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
.nav-toggle { display: none; }
.nav-toggle summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.nav-toggle summary::-webkit-details-marker { display: none; }
@media (max-width: 900px) {
	.nav { display: none; }
	.nav-toggle { display: block; }
	.nav-toggle[open] .nav { display: flex; flex-direction: column; align-items: flex-start; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 24px 20px; z-index: 30; }
	.nav-toggle[open] .nav ul { flex-direction: column; gap: 0; }
	.nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
	.site-header { position: relative; }
}

/* Hero (front page) */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 64px; }
.hero__copy { flex: 1 1 500px; min-width: 0; }
.hero__copy p.lead { font-size: 21px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks svg { flex: none; }
.estimate-card { flex: 1 1 360px; min-width: 0; background: var(--tint); border-radius: 20px; padding: 32px; }
.estimate-card h2 { font-size: 26px; margin-top: 0; }
.estimate-card .small { font-size: 15px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.hero-photo img { width: 100%; height: clamp(240px, 36vw, 440px); object-fit: cover; border-radius: 20px; }

/* Fallback form (when no form shortcode is set) */
.rcs-form { display: flex; flex-direction: column; gap: 14px; }
.rcs-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.rcs-form input, .rcs-form select, .rcs-form textarea, .wpforms-field input, .wpforms-field select, .wpforms-field textarea {
	min-height: 48px; border: 1px solid #B9C7BF; border-radius: 10px; padding: 10px 14px; font-size: 17px; background: var(--white); font-family: inherit; color: var(--ink);
}

/* Page header band */
.page-band { background: var(--tint); }
.page-band .wrap { padding-top: 48px; padding-bottom: 40px; }
.page-band .eyebrow { margin: 0 0 8px; font-weight: 600; color: var(--accent-text); text-transform: uppercase; letter-spacing: 2px; font-size: 14px; }
.page-band .eyebrow a { text-decoration: none; }
.page-band h1 { margin: 0; }

/* Content */
.content { padding-top: 48px; padding-bottom: 64px; }
.entry > *:first-child { margin-top: 0; }
.entry h2 { padding-top: 6px; }
.entry ul li, .entry ol li { margin-bottom: .4em; }
.entry figure { margin: 28px 0; }
.entry figure img { width: 100%; border-radius: var(--radius); }
.entry table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; }
.entry th, .entry td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.entry th { font-family: var(--font-head); }
.entry em:only-child { color: var(--muted); }
.entry blockquote { margin: 0 0 1.2em; padding: 16px 20px; background: var(--tint); border-radius: 12px; }

/* Front page body sections */
.front-body .entry h2 { margin-top: 1.8em; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { color: var(--white); margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); }
.cta-band p { margin: 0; color: #E6F0EA; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; padding-top: 48px; padding-bottom: 64px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.card__body h2 { font-size: 21px; margin: 0; }
.card__body h2 a { color: var(--ink); text-decoration: none; }
.card__body p { margin: 0; color: var(--muted); font-size: 16px; }
.post-meta { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.single-photo img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius); margin-bottom: 32px; }
.pagination { padding-bottom: 48px; display: flex; gap: 12px; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D3CC; font-size: 15px; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.site-footer h3 { color: var(--white); font-size: 16px; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: #E6ECE8; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand { font-family: var(--font-head); font-weight: 800; color: var(--white); font-size: 20px; margin: 0 0 8px; }
.disclosure { font-style: italic; }
.footer-bottom { border-top: 1px solid #34434B; margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* Mobile sticky text button */
.mobile-cta { display: none; }
@media (max-width: 700px) {
	body { font-size: 17px; }
	.mobile-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; box-shadow: 0 8px 24px rgba(31,42,48,.25); }
	.site-footer { padding-bottom: 72px; }
	.estimate-card { padding: 24px; }
}

/* WordPress core classes */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 14px; color: var(--muted); }
