/*
Theme Name: Glass Repair Calgary
Theme URI: https://glassrepaircalgary.ca/
Description: Custom theme for Glass Repair Calgary. On activation it creates the Home, About, FAQ, Contact and Blog pages, the first blog post and the main menu.
Version: 1.1.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: glass-repair-calgary
*/

:root {
	--grc-paper: #f6f1e8;
	--grc-paper-2: #efe6d8;
	--grc-card: #fffdf8;
	--grc-ink: #23302b;
	--grc-ink-2: #4b5a53;
	--grc-slate: #3d5a4f;
	--grc-slate-d: #2b4239;
	--grc-slate-l: #dfe7e1;
	--grc-clay: #b8622a;
	--grc-clay-d: #974d1e;
	--grc-line: #ddd2c0;
	--grc-max: 1120px;
	--grc-pad: max(20px, calc((100% - var(--grc-max)) / 2));
	--grc-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--grc-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
	--grc-r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--grc-paper);
	color: var(--grc-ink);
	font-family: var(--grc-sans);
	font-size: 18px;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--grc-slate); text-underline-offset: 3px; }
a:hover { color: var(--grc-clay-d); }
h1, h2, h3, h4 { font-family: var(--grc-serif); color: var(--grc-slate-d); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--grc-clay); outline-offset: 2px; }

.grc-skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.grc-skip:focus { left: 8px; }
.grc-in { padding-inline: var(--grc-pad); }

/* Top bar + header */
.grc-topbar { background: var(--grc-slate-d); color: #e9efe9; font-size: 15px; }
.grc-topbar .grc-in { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; flex-wrap: wrap; }
.grc-topbar a { color: #fff; }
.grc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7fd18f; margin-right: 8px; box-shadow: 0 0 0 3px rgba(127,209,143,.25); vertical-align: 1px; }
.grc-header { background: var(--grc-paper); border-bottom: 1px solid var(--grc-line); position: sticky; top: 0; z-index: 50; }
.grc-header .grc-in { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.grc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--grc-slate-d); }
.grc-mark { width: 38px; height: 38px; color: var(--grc-slate); flex: none; }
.grc-brand-t { font-family: var(--grc-serif); font-size: 1.35rem; font-weight: 600; line-height: 1; }
.grc-brand-t b { color: var(--grc-clay); font-weight: 700; }
.grc-nav { margin-left: auto; }
.grc-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.grc-menu a { text-decoration: none; color: var(--grc-ink); font-weight: 600; font-size: 17px; }
.grc-menu a:hover, .grc-menu .current-menu-item > a { color: var(--grc-clay-d); }
.grc-callbtn { display: inline-flex; align-items: center; gap: 8px; background: var(--grc-clay); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.grc-callbtn:hover { background: var(--grc-clay-d); color: #fff; }
.grc-callbtn svg, .grc-textbtn svg { width: 18px; height: 18px; }
.grc-textbtn { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--grc-slate-d); text-decoration: none; font-weight: 700; padding: 8px 16px; border: 2px solid var(--grc-slate); border-radius: 999px; white-space: nowrap; margin-left: -12px; }
.grc-textbtn:hover { background: var(--grc-slate); color: #fff; }
.grc-nav-t, .grc-burger { display: none; }

/* Sections (full width background, centred content) */
.grc-sec { padding: 64px var(--grc-pad); margin: 0; }
.grc-content > .grc-sec:nth-of-type(even) { background: var(--grc-card); }
.grc-hero { background: linear-gradient(180deg, var(--grc-paper) 0%, var(--grc-paper-2) 100%) !important; padding-top: 72px; padding-bottom: 64px; position: relative; overflow: hidden; }
.grc-hero::after { content: ""; position: absolute; right: -60px; top: 40px; width: 360px; height: 360px; border: 14px solid rgba(61,90,79,.10); border-radius: 18px; background: linear-gradient(rgba(61,90,79,.10), rgba(61,90,79,.10)) center/14px 100% no-repeat, linear-gradient(rgba(61,90,79,.10), rgba(61,90,79,.10)) center/100% 14px no-repeat; pointer-events: none; }
.grc-hero > * { position: relative; z-index: 1; max-width: 760px; }
.grc-hero-sm { padding-top: 56px; padding-bottom: 40px; }
.grc-eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 14px; font-weight: 700; color: var(--grc-clay-d); margin-bottom: .8em; }
.grc-eyebrow a { color: inherit; }
.grc-lead { font-size: 1.2rem; color: var(--grc-ink-2); }
.grc-sub { color: var(--grc-ink-2); margin-top: -.3em; }

.grc-hero .wp-block-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: none; }
.grc-hero .wp-block-list li { background: var(--grc-card); border: 1px solid var(--grc-line); border-radius: 999px; padding: 6px 14px; font-size: 15.5px; }
.grc-hero .wp-block-list li strong { color: var(--grc-slate-d); }

/* Buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.wp-block-button__link { display: inline-block; background: var(--grc-slate); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: 999px; border: 2px solid var(--grc-slate); font-size: 17px; }
.wp-block-button__link:hover { background: var(--grc-slate-d); border-color: var(--grc-slate-d); color: #fff; }
.grc-btn-call .wp-block-button__link { background: var(--grc-clay); border-color: var(--grc-clay); }
.grc-btn-call .wp-block-button__link:hover { background: var(--grc-clay-d); border-color: var(--grc-clay-d); }
.grc-btn-text .wp-block-button__link { background: var(--grc-slate); border-color: var(--grc-slate); }
.grc-cta .grc-btn-text .wp-block-button__link { background: transparent; border-color: #fff; color: #fff; }
.grc-cta .grc-btn-text .wp-block-button__link:hover { background: #fff; color: var(--grc-clay-d); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--grc-slate-d); }
.is-style-outline .wp-block-button__link:hover { background: var(--grc-slate-d); color: #fff; }

/* Columns */
.wp-block-columns { display: flex; gap: 32px; margin: 0; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.grc-cards { margin-top: 28px; }
.grc-cards > .wp-block-column { background: var(--grc-card); border: 1px solid var(--grc-line); border-top: 5px solid var(--grc-slate); border-radius: var(--grc-r); padding: 26px 24px 10px; }
.grc-cards > .wp-block-column:nth-child(2) { border-top-color: var(--grc-clay); }
.grc-services { background: var(--grc-paper) !important; }

/* Band */
.grc-band { background: var(--grc-slate-d) !important; color: #e8eee9; }
.grc-band h2, .grc-band h3 { color: #fff; }
.grc-band a { color: #ffd2ad; }
.grc-band .wp-block-list li { margin-bottom: .4em; }

/* Steps */
.grc-steps ol { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grc-steps li { counter-increment: s; background: var(--grc-paper); border: 1px solid var(--grc-line); border-radius: var(--grc-r); padding: 56px 20px 20px; position: relative; }
.grc-steps li::before { content: counter(s); position: absolute; left: 20px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--grc-slate); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.grc-steps li strong { display: block; color: var(--grc-slate-d); }

/* Price */
.grc-price .wp-block-column:first-child h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* FAQ */
.grc-faq .wp-block-details { background: var(--grc-card); border: 1px solid var(--grc-line); border-radius: var(--grc-r); padding: 0; margin: 0 0 12px; max-width: 860px; }
.grc-faq .wp-block-details summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 18px 52px 18px 22px; list-style: none; position: relative; color: var(--grc-slate-d); }
.grc-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.grc-faq .wp-block-details summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--grc-clay); font-weight: 400; }
.grc-faq .wp-block-details[open] summary::after { content: "\2212"; }
.grc-faq .wp-block-details > p { padding: 0 22px; }
.grc-faq .wp-block-details > p:last-child { padding-bottom: 6px; }

/* CTA */
.grc-cta { background: var(--grc-clay) !important; color: #fff; text-align: center; }
.grc-cta h2 { color: #fff; }
.grc-cta a { color: #fff; }
.grc-cta .wp-block-buttons { justify-content: center; }
.grc-cta .grc-btn-call .wp-block-button__link { background: #fff; color: var(--grc-clay-d); border-color: #fff; }

/* Contact */
.grc-big { font-family: var(--grc-serif); font-size: 2.2rem; font-weight: 700; text-decoration: none; color: var(--grc-clay-d); }
.grc-contact > .wp-block-column:last-child { background: var(--grc-card); border: 1px solid var(--grc-line); border-radius: var(--grc-r); padding: 28px; }
.grc-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.grc-form input, .grc-form select, .grc-form textarea { width: 100%; font: inherit; font-size: 17px; padding: 11px 12px; border: 1px solid #c9bda9; border-radius: 8px; background: #fff; color: var(--grc-ink); }
.grc-form .grc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grc-form .grc-hp { position: absolute; left: -9999px; }
.grc-submit { font: inherit; font-weight: 700; font-size: 17px; background: var(--grc-clay); color: #fff; border: 0; padding: 13px 26px; border-radius: 999px; cursor: pointer; }
.grc-submit:hover { background: var(--grc-clay-d); }
.grc-small { font-size: 15px; color: var(--grc-ink-2); }
.grc-notice { padding: 14px 16px; border-radius: 8px; margin-bottom: 16px; }
.grc-ok { background: #e3f1e6; border: 1px solid #9bcaa5; }
.grc-bad { background: #fbe9e1; border: 1px solid #e3a588; }

/* Blog */
.grc-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.grc-card { background: var(--grc-card); border: 1px solid var(--grc-line); border-radius: var(--grc-r); padding: 24px; }
.grc-card h2 { font-size: 1.35rem; }
.grc-card h2 a { text-decoration: none; color: var(--grc-slate-d); }
.grc-card-img img { border-radius: 8px; margin-bottom: 12px; display: block; }
.grc-meta { font-size: 15px; color: var(--grc-ink-2); margin-bottom: .4em; }
.grc-more { font-weight: 700; }
.grc-prose { max-width: calc(760px + 2 * var(--grc-pad)); padding-top: 24px; }
.grc-prose { padding-inline: max(20px, calc((100% - 760px) / 2)); max-width: none; background: var(--grc-card); }
.grc-prose h2 { margin-top: 1.4em; }
.grc-prose li { margin-bottom: .4em; }
.grc-feature { border-radius: var(--grc-r); margin-bottom: 24px; }
.grc-inline-cta { margin-top: 36px; background: var(--grc-slate-l); border-left: 5px solid var(--grc-slate); padding: 16px 20px; border-radius: 6px; }
.grc-inline-cta p { margin: 0; }
.grc-pager { margin-top: 30px; }

/* Footer */
.grc-footer { background: #1f2c27; color: #c9d4ce; font-size: 16px; padding-top: 48px; }
.grc-footer a { color: #fff; }
.grc-foot-grid { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr; gap: 32px; }
.grc-foot-brand { font-family: var(--grc-serif); font-size: 1.3rem; color: #fff; display: flex; align-items: center; gap: 10px; }
.grc-foot-brand .grc-mark { color: #b9cbc1; width: 32px; height: 32px; }
.grc-foot-h { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 700; color: #f0b78c; margin-bottom: .6em; }
.grc-foot-menu, .grc-footer .grc-menu { list-style: none; padding: 0; margin: 0; display: block; }
.grc-foot-menu li, .grc-footer .grc-menu li { margin-bottom: 4px; }
.grc-foot-menu a, .grc-footer .grc-menu a { color: #fff; text-decoration: none; font-weight: 400; font-size: 16px; }
.grc-foot-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-block: 18px 22px; font-size: 14px; color: #9fb0a7; }
.grc-mobile-bar { display: none; }

/* Responsive */
@media (max-width: 960px) {
	.grc-steps ol { grid-template-columns: 1fr 1fr; }
	.grc-foot-grid { grid-template-columns: 1fr 1fr; }
	.grc-hero::after { display: none; }
}
@media (max-width: 820px) {
	body { font-size: 17px; padding-bottom: 58px; }
	.grc-topbar-r { display: none; }
	.grc-header .grc-in { flex-wrap: wrap; gap: 12px; }
	.grc-burger { display: flex; flex-direction: column; gap: 5px; margin-left: auto; cursor: pointer; padding: 8px; }
	.grc-burger span { width: 24px; height: 3px; background: var(--grc-slate-d); border-radius: 2px; }
	.grc-callbtn, .grc-textbtn { display: none; }
	.grc-nav { display: none; width: 100%; margin: 0; }
	.grc-nav-t:checked ~ .grc-nav { display: block; }
	.grc-menu { flex-direction: column; gap: 0; }
	.grc-menu a { display: block; padding: 10px 0; border-top: 1px solid var(--grc-line); }
	.wp-block-columns { flex-direction: column; gap: 20px; }
	.grc-sec { padding-top: 44px; padding-bottom: 44px; }
	.grc-steps ol { grid-template-columns: 1fr; }
	.grc-form .grc-row { grid-template-columns: 1fr; gap: 0; }
	.grc-mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 14px rgba(0,0,0,.18); }
	.grc-mobile-bar a { flex: 1; color: #fff; text-align: center; font-weight: 700; padding: 15px 8px; text-decoration: none; font-size: 17px; }
	.grc-mb-call { background: var(--grc-clay); flex: 1.4 !important; }
	.grc-mb-text { background: var(--grc-slate-d); }
	.grc-mobile-bar a:hover { color: #fff; }
	.grc-foot-grid { grid-template-columns: 1fr; gap: 12px; }
}
