/* Ritter Grounds — main stylesheet
   Brand from the original site: olive #969E3B, charcoal #4C4544, PT Sans. */

:root {
	--olive: #969e3b;
	--olive-dark: #5f6524;   /* buttons + links: passes contrast on white */
	--olive-deep: #3f4318;
	--olive-tint: #f1f2e4;
	--charcoal: #4c4544;
	--ink: #2f2a29;
	--cream: #faf8f3;
	--white: #fff;
	--line: #e3e0d6;
	--radius: 6px;
	--shadow: 0 1px 2px rgba(47, 42, 41, .06), 0 6px 20px rgba(47, 42, 41, .08);
	--wrap: 1160px;
	--gutter: clamp(16px, 4vw, 32px);
	--font: "PT Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--charcoal);
	background: var(--cream) url("../img/rittergrounds-bg.jpg");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive-dark); text-underline-offset: 2px; }
a:hover { color: var(--olive-deep); }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--ink); color: var(--white); padding: .75em 1em;
}
.skip-link:focus { left: 8px; top: 8px; }

.eyebrow {
	font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--olive-dark); margin-bottom: .6em;
}

/* Buttons */
.btn {
	display: inline-block; padding: .8em 1.5em; border-radius: var(--radius);
	font-weight: 700; font-size: .95rem; letter-spacing: .03em; text-decoration: none;
	border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--olive-dark); color: var(--white); }
.btn--primary:hover { background: var(--olive-deep); color: var(--white); }
.btn--outline { border-color: var(--olive-dark); color: var(--olive-dark); background: transparent; }
.btn--outline:hover { background: var(--olive-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--olive-deep); }
.btn--light:hover { background: var(--cream); color: var(--ink); }
.btn--ghost { border-color: rgba(255, 255, 255, .8); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }

/* Top bar */
.topbar { background: var(--ink); color: #e9e6df; font-size: .875rem; }
.topbar__inner { display: flex; gap: 1.5em; justify-content: flex-end; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar__item:first-child { margin-right: auto; }
.topbar__phone { color: var(--white); font-weight: 700; text-decoration: none; }
.topbar__phone:hover { color: #d9dca8; }

/* Header + nav */
.site-header {
	background: var(--white); border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 50;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.site-logo img { width: 200px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav .menu a {
	display: block; padding: .5em .75em; text-decoration: none; color: var(--charcoal);
	font-weight: 700; font-size: .95rem; border-radius: var(--radius);
}
.site-nav .menu a:hover { color: var(--olive-dark); background: var(--olive-tint); }
.site-nav .current-menu-item > a { color: var(--olive-dark); box-shadow: inset 0 -3px 0 var(--olive); border-radius: 0; }

.nav-toggle {
	display: none; align-items: center; gap: .5em; background: none; border: 2px solid var(--line);
	border-radius: var(--radius); padding: .5em .75em; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.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; }

@media (max-width: 960px) {
	.site-header__inner { min-height: 72px; }
	.site-logo img { width: 160px; }
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.25rem;
	}
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu a { padding: .8em .25em; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav .current-menu-item > a { box-shadow: inset 4px 0 0 var(--olive); padding-left: .75em; }
	.site-nav__cta { text-align: center; }
	.topbar__hours { display: none; }
}
@media (max-width: 560px) {
	.topbar__item:first-child { display: none; }
	.topbar__inner { justify-content: center; }
}

/* Home hero */
.hero { position: relative; min-height: clamp(440px, 62vh, 620px); display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--ink); }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(30, 28, 20, .82) 0%, rgba(30, 28, 20, .55) 55%, rgba(30, 28, 20, .2) 100%);
}
.hero__content { position: relative; z-index: 1; padding-top: 3rem; padding-bottom: 3rem; width: 100%; }
.hero__content > * { max-width: 640px; }
.hero .eyebrow { color: #d9dca8; }
.hero__title { color: var(--white); }
.hero__lead { font-size: 1.15rem; color: #f1efe8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Inner-page hero */
.page-hero {
	position: relative; color: var(--white);
	background: var(--ink) var(--hero) center / cover no-repeat;
	padding: clamp(3rem, 8vw, 5.5rem) 0;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 28, 20, .85), rgba(63, 67, 24, .55)); }
.page-hero__inner { position: relative; }
.page-hero .eyebrow { color: #d9dca8; }
.page-hero__title { color: var(--white); margin: 0; max-width: 820px; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--tint { background: var(--olive-tint); }
.section__title { text-align: center; margin-bottom: 2rem; }

.prose h2 { margin-top: 1.5em; }
.prose h2:first-child, .prose .eyebrow + h2 { margin-top: 0; }
.prose h3 { margin-top: 1.25em; }
.prose > :last-child { margin-bottom: 0; }

.callout {
	border-left: 4px solid var(--olive); background: var(--white); padding: 1em 1.25em;
	border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow);
}

/* Cards (home) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
	background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 2rem 1.75rem; display: flex; flex-direction: column; border-top: 4px solid var(--olive);
}
.card__icon { width: 64px; height: 64px; margin-bottom: 1rem; }
.card__title { font-size: 1.35rem; }
.card p { flex: 1; }
.card__link { font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.card__link:hover { text-decoration: underline; }

/* Split layout */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--top { align-items: start; }
.split__media { display: grid; gap: 1.5rem; }
.photo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
@media (max-width: 820px) {
	.split { grid-template-columns: 1fr; }
	.split__media .photo { max-width: 420px; }
}

.info-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.info-box__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--olive-dark); margin-bottom: .25em; }
.info-box__badge { margin-top: .5rem; width: 160px; mix-blend-mode: multiply; }

/* About */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.feature { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.feature__title { font-size: 1.35rem; }
.feature > :last-child { margin-bottom: 0; }

.credentials { margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
.credentials__group { background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); }
.credentials dt { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .5em; }
.credentials dd { margin: 0 0 .4em; padding-left: 1.1em; position: relative; }
.credentials dd::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }

/* Lawn care services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.service { background: var(--white); border-radius: var(--radius); padding: 2rem 1.75rem; box-shadow: var(--shadow); }
.service__icon { width: 56px; height: 56px; margin-bottom: 1rem; }
.service__title { font-size: 1.35rem; }
.service__lead { font-weight: 700; color: var(--ink); }

/* Gallery strip */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); }
.gallery img { width: 100%; height: 260px; object-fit: cover; }
@media (max-width: 720px) {
	.gallery { grid-template-columns: 1fr; }
	.gallery img { height: 200px; }
}

/* CTA band */
.cta-band { background: var(--olive-deep); color: #eef0dc; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band__title { color: var(--white); font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.cta-band p { margin: 0; }
.cta-band a:not(.btn) { color: var(--white); font-weight: 700; }
.cta-band .btn { flex-shrink: 0; }
@media (max-width: 720px) { .cta-band__inner { flex-direction: column; align-items: flex-start; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.contact-list__label { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--olive-dark); padding-top: .2em; }
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.5rem); border-top: 4px solid var(--olive); }
.panel__title { font-size: 1.5rem; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Forms */
.rg-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.rg-field--wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .rg-form__grid { grid-template-columns: 1fr; } }
.rg-field label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: .3em; }
.rg-field .req { color: #a33a2a; }
.rg-field input, .rg-field select, .rg-field textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
	padding: .7em .8em; border: 1px solid #cfcabd; border-radius: var(--radius); background: var(--white);
}
.rg-field input:focus, .rg-field select:focus, .rg-field textarea:focus { border-color: var(--olive-dark); outline: 2px solid var(--olive); outline-offset: 0; }
.rg-field__help { font-size: .875rem; margin: .4em 0 0; color: #6b6463; }
.rg-form__note { font-size: .85rem; color: #6b6463; margin: 1rem 0; }
.rg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 1em 1.25em; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 700; }
.form-notice--ok { background: var(--olive-tint); border-left: 4px solid var(--olive-dark); color: var(--olive-deep); }
.form-notice--error { background: #fbeceb; border-left: 4px solid #a33a2a; color: #7a2a1e; }
.form-aside { margin-top: 1.5rem; }

/* Footer */
.site-footer { background: var(--ink); color: #d6d2c9; font-size: .95rem; }
.site-footer a { color: #e8e9c6; }
.site-footer a:hover { color: var(--white); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 3rem; }
@media (max-width: 880px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__logo img { width: 180px; background: var(--white); padding: 10px 12px; border-radius: var(--radius); margin-bottom: 1rem; }
.site-footer__title { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1em; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer__links { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.1rem 0; font-size: .85rem; color: #a9a49b; }

/* Block editor content on generic pages */
.prose .wp-block-image img, .prose figure img { border-radius: var(--radius); }
.prose .alignleft { float: left; margin: 0 1.5em 1em 0; }
.prose .alignright { float: right; margin: 0 0 1em 1.5em; }
