/*
Theme Name: Scatco Timber
Description: Custom block theme for Scatco Timber Resources, a timber buying and harvesting company serving East Texas. Every section can be edited in the WordPress Site Editor.
Author: The Jones Standard Marketing x Kaleigh Jones
Version: 1.6.1
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scatco-timber
*/

/* ---------------------------------------------------------
   Styles that WordPress' design settings can't express.
   Colors and fonts live in theme.json (Appearance → Editor → Styles).
   --------------------------------------------------------- */

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }

/* Sticky header */
header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
.site-header { border-bottom: 1px solid rgba(149,112,73,.35); }

/* Brand */
.brand-mark {
	font-family: var(--wp--preset--font-family--cinzel); font-weight: 700; font-size: 1.5rem; line-height: 1.3;
	color: var(--wp--preset--color--sand); border: 1px solid var(--wp--preset--color--copper); padding: 2px 10px; margin: 0;
}
.brand-name { font-family: var(--wp--preset--font-family--michroma); font-size: 1.05rem; letter-spacing: .14em; line-height: 1.1; margin: 0; }
.brand-name a { color: var(--wp--preset--color--sand); text-decoration: none; }
.brand-sub {
	font-family: var(--wp--preset--font-family--cinzel); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
	color: var(--wp--preset--color--copper); line-height: 1.1; margin: 0;
}

/* Navigation */
.site-header .wp-block-navigation a { text-decoration: none; }
.site-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--copper-light); }
.site-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--forest-deep) !important; color: var(--wp--preset--color--sand) !important;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.15rem; }
.nav-cta .wp-block-button__link { padding: 11px 18px; font-size: .62rem; }

/* Eyebrow label above headings */
.eyebrow {
	font-family: var(--wp--preset--font-family--michroma);
	font-size: .68rem !important; letter-spacing: .28em; text-transform: uppercase;
	color: var(--wp--preset--color--copper);
	display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; flex: none; }

/* Outline button */
.is-style-outline .wp-block-button__link, .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; border-color: rgba(231,217,194,.6); color: var(--wp--preset--color--sand);
}
.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--sand); color: var(--wp--preset--color--forest-deep); }

/* Hero */
.hero h1 { max-width: 14ch; }
.hero .hero-accent { color: var(--wp--preset--color--copper-light); }
.hero .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(19,27,22,.92) 0%, rgba(19,27,22,.7) 45%, rgba(19,27,22,.15) 100%) !important;
	opacity: 1 !important;
}

/* Value strip */
.value-strip { border-top: 3px solid var(--wp--preset--color--copper); }
.value-strip .wp-block-column { padding: 8px 20px; border-right: 1px solid rgba(231,217,194,.12); }
.value-strip .wp-block-column:last-child { border-right: 0; }

/* Services */
.service-num { font-family: var(--wp--preset--font-family--michroma); font-size: .8rem !important; letter-spacing: .2em; color: var(--wp--preset--color--copper); margin-bottom: 0; }
.service-row .wp-block-media-text__media img { border-radius: 4px; aspect-ratio: 4/3; object-fit: cover; }
.service-row .wp-block-media-text__content { padding: 0 0 0 56px; }
.service-row.has-media-on-the-right .wp-block-media-text__content { padding: 0 56px 0 0; }

.check-list { list-style: none; padding-left: 0; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.check-list li::before {
	content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px;
	border-left: 2px solid var(--wp--preset--color--copper); border-bottom: 2px solid var(--wp--preset--color--copper); transform: rotate(-45deg);
}

/* Process steps */
.steps > .wp-block-group { border-top: 1px solid rgba(149,112,73,.35); }
.step-num {
	display: inline-flex !important; align-items: center; justify-content: center;
	width: 46px; height: 46px; border: 1px solid var(--wp--preset--color--copper); border-radius: 50%;
	font-family: var(--wp--preset--font-family--cinzel); font-size: 1.2rem !important; color: var(--wp--preset--color--copper);
}

/* About */
.about-logo img { border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(42,33,26,.6); }
.stat-row { border-top: 1px solid rgba(149,112,73,.35); padding-top: 24px; }
.stat-num { font-family: var(--wp--preset--font-family--cinzel); font-size: 2rem !important; color: var(--wp--preset--color--copper); line-height: 1.1; margin-bottom: 0; }
.stat-label { font-size: .8rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--stone); margin-top: 4px !important; }

/* Photo band */
.photo-band.wp-block-gallery { gap: 0 !important; }
.photo-band.wp-block-gallery .wp-block-image { margin: 0 !important; aspect-ratio: 1; }
.photo-band.wp-block-gallery .wp-block-image img { height: 100% !important; object-fit: cover; }

/* Team */
.person { border-top: 3px solid var(--wp--preset--color--copper); border-radius: 4px; }
.person-initials {
	width: 64px; height: 64px; border-radius: 50%; background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--sand); font-family: var(--wp--preset--font-family--cinzel); font-size: 1.3rem !important;
	display: flex !important; align-items: center; justify-content: center; margin: 0;
}
.person .role {
	font-family: var(--wp--preset--font-family--michroma); font-size: .62rem !important; letter-spacing: .18em; text-transform: uppercase;
	color: var(--wp--preset--color--copper); margin-top: 4px !important;
}
.person .person-note { color: var(--wp--preset--color--ink-soft); font-size: .95rem; flex-grow: 1; }
.person .contact-line { margin: 0 !important; font-weight: 600; font-size: .98rem; }
.person .contact-line a { text-decoration: none; }

/* FAQ */
.faq .wp-block-details { padding: 0; }
.faq .wp-block-details summary {
	list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
	font-family: var(--wp--preset--font-family--cinzel); font-size: 1.15rem; font-weight: 600; color: var(--wp--preset--color--bark);
}
.faq .wp-block-details summary::-webkit-details-marker { display: none; }
.faq .wp-block-details summary::after {
	content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	font-family: var(--wp--preset--font-family--source-sans); font-size: 1.6rem; color: var(--wp--preset--color--copper); transition: transform .2s;
}
.faq .wp-block-details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .wp-block-details > p { color: var(--wp--preset--color--ink-soft); padding-bottom: 24px; margin-top: 0; }

/* Contact */
.office-row { display: grid !important; grid-template-columns: 90px 1fr; gap: 0 !important; color: var(--wp--preset--color--sand); }
.office-row > p { margin: 0; }
.office-label {
	font-family: var(--wp--preset--font-family--michroma); font-size: .6rem !important; letter-spacing: .2em; text-transform: uppercase;
	color: var(--wp--preset--color--copper); padding-top: 6px;
}
.contact-section a { color: var(--wp--preset--color--copper-light); }
.contact-form {
	background: var(--wp--preset--color--paper); padding: 40px; border-radius: 4px; color: var(--wp--preset--color--ink);
	display: grid; gap: 18px;
}
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--wp--preset--color--bark); }
.contact-form input, .contact-form textarea {
	font: inherit; font-weight: 400; font-size: 1rem; color: var(--wp--preset--color--ink);
	padding: 12px 14px; border: 1px solid #cdbfa8; background: #fff; border-radius: 4px; width: 100%; box-sizing: border-box;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--wp--preset--color--copper); outline-offset: 1px; }
.contact-form button {
	justify-self: start; cursor: pointer; font-family: var(--wp--preset--font-family--michroma); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
	padding: 16px 28px; background: var(--wp--preset--color--copper); color: #fff; border: 1px solid var(--wp--preset--color--copper); border-radius: 4px;
}
.contact-form button:hover { background: var(--wp--preset--color--bark); border-color: var(--wp--preset--color--bark); }
.contact-form .form-note { font-size: .88rem; color: var(--wp--preset--color--ink-soft); margin: 0; }
.contact-form .form-note a { color: var(--wp--preset--color--copper); }

/* Footer */
.site-footer a { text-decoration: none; }
.site-footer .footer-links a { color: var(--wp--preset--color--sand); }
.site-footer .footer-links a:hover, .site-footer .credit a:hover { color: var(--wp--preset--color--copper); }
.site-footer .footer-bottom { border-top: 1px solid rgba(231,217,194,.1); }
.site-footer .wp-block-social-links .wp-social-link { color: var(--wp--preset--color--copper) !important; background: transparent !important; border: 1px solid rgba(149,112,73,.6); }
.credit .x { color: var(--wp--preset--color--copper); margin: 0 4px; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
	.value-strip .wp-block-columns { flex-wrap: wrap !important; }
	.value-strip .wp-block-column { flex-basis: calc(50% - 1rem) !important; border-right: 0; }
}

/* ---------- Phone ---------- */
@media (max-width: 781px) {
	.value-strip .wp-block-column { flex-basis: 100% !important; padding: 8px 0 20px; border-bottom: 1px solid rgba(231,217,194,.12); }
	.value-strip .wp-block-column:last-child { border-bottom: 0; }
	.service-row .wp-block-media-text__content,
	.service-row.has-media-on-the-right .wp-block-media-text__content { padding: 28px 0 0 !important; }
	.service-row.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__media { grid-row: 1 !important; }
	.service-row.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__content { grid-row: 2 !important; }
	.hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(19,27,22,.6) 0%, rgba(19,27,22,.88) 100%) !important; }
	.photo-band.wp-block-gallery .wp-block-image { width: 50% !important; }
}

@media (max-width: 600px) {
	html { scroll-padding-top: 76px; }
	.brand-mark { display: none; }
	.nav-cta { display: none; }
	.hero .wp-block-buttons, .hero .wp-block-button { width: 100%; }
	.hero .wp-block-button__link { width: 100%; text-align: center; }
	.stat-row { flex-wrap: wrap !important; }

	.steps > .wp-block-group { display: grid !important; grid-template-columns: 52px 1fr; column-gap: 12px; row-gap: 4px !important; }
	.steps .step-num { width: 40px; height: 40px; font-size: 1.05rem !important; grid-row: span 2; }
	.steps h3 { align-self: center; margin: 0 !important; }
	.steps > .wp-block-group > p:last-child { grid-column: 2; margin: 0 !important; }

	.person { display: grid !important; grid-template-columns: 52px 1fr; column-gap: 16px; row-gap: 2px !important; }
	.person-initials { width: 52px; height: 52px; font-size: 1.05rem !important; grid-row: span 3; }
	.person > h3, .person > .role, .person > .person-note { grid-column: 2; margin-top: 0 !important; }
	.person .person-note { margin-bottom: 10px !important; }
	.person .contact-line { grid-column: 1 / -1; margin-top: 8px !important; }
	.person .contact-line a {
		display: flex; align-items: center; justify-content: center; min-height: 46px;
		border: 1px solid rgba(149,112,73,.5); border-radius: 4px;
	}

	.faq .wp-block-details summary { font-size: 1.02rem; padding: 20px 36px 20px 0; }
	.office-row { grid-template-columns: 76px 1fr; }
	.contact-form { padding: 28px 20px; }
	.contact-form .field-row { grid-template-columns: 1fr; }
	.contact-form button { justify-self: stretch; }
}

/* Dark sections: headings white, body text sand */
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-intro, .section-dark .steps p:not(.step-num) { color: var(--wp--preset--color--stone); }
.section-intro { font-size: 1.1rem; color: var(--wp--preset--color--ink-soft); }

/* Template spacing: no gaps between header, page, and footer */
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
main.wp-block-group > * + * { margin-block-start: 0; }
.brand-sub { white-space: nowrap; }
.site-footer .wp-block-social-links { font-size: .95rem; }
.site-footer .wp-social-link .wp-block-social-link-label { color: var(--wp--preset--color--sand); }
.site-footer .wp-block-social-links .wp-social-link { border: 0 !important; padding: 0 !important; }
@media (max-width: 600px) {
	.site-header .nav-cta { display: none !important; }
	.site-footer .footer-bottom { flex-direction: column; align-items: flex-start !important; gap: 6px !important; }
}
.site-footer .wp-block-social-links .wp-block-social-link-label { font-size: 15px !important; margin-left: 4px; }
.site-footer .wp-block-social-links .wp-social-link svg { width: 22px; height: 22px; }

/* =========================================================
   Live-site safeguards (v1.0.1)
   Hosting plugins and form plugins can load their own CSS on the
   published site. These rules make sure the team initials and the
   contact form boxes always look the same as in the editor.
   ========================================================= */
body .wp-block-group.person > p.person-initials,
body .person .person-initials {
	color: #e7d9c2 !important;
	background-color: #1e2b22 !important;
}

body .contact-section .contact-form input,
body .contact-section .contact-form textarea,
body .contact-section .contact-form select,
body .contact-section .wpforms-container input[type="text"],
body .contact-section .wpforms-container input[type="email"],
body .contact-section .wpforms-container input[type="tel"],
body .contact-section .wpforms-container input[type="number"],
body .contact-section .wpforms-container textarea,
body .contact-section .wpforms-container select {
	border: 1px solid #b59a78 !important;
	border-radius: 4px !important;
	background-color: #ffffff !important;
	color: #2a211a !important;
	box-shadow: none !important;
}
body .contact-section .contact-form input:focus,
body .contact-section .contact-form textarea:focus,
body .contact-section .wpforms-container input:focus,
body .contact-section .wpforms-container textarea:focus {
	border-color: #957049 !important;
	outline: 2px solid #957049 !important;
	outline-offset: 1px;
}

/* Keep text colors from being overridden by plugin/host CSS */
body .wp-site-blocks .section-dark p,
body .wp-site-blocks .value-strip p,
body .wp-site-blocks .hero p,
body .wp-site-blocks .site-header p,
body .wp-site-blocks .site-footer p,
body .wp-site-blocks .office-row p { color: inherit !important; }
body .wp-site-blocks .section-dark .section-intro,
body .wp-site-blocks .section-dark .steps p:not(.step-num) { color: #9d917f !important; }

body .wp-site-blocks p.eyebrow,
body .wp-site-blocks p.service-num,
body .wp-site-blocks p.stat-num,
body .wp-site-blocks p.step-num,
body .wp-site-blocks p.office-label,
body .wp-site-blocks p.brand-sub,
body .wp-site-blocks .person p.role { color: #957049 !important; }
body .wp-site-blocks p.brand-mark,
body .wp-site-blocks .wp-block-group.person > p.person-initials { color: #e7d9c2 !important; }
body .wp-site-blocks p.stat-label { color: #9d917f !important; }
body .wp-site-blocks .person p.person-note,
body .wp-site-blocks .faq .wp-block-details > p { color: #5e5245 !important; }
body .wp-site-blocks .section-intro { color: #5e5245 !important; }
body .wp-site-blocks .contact-form .form-note { color: #5e5245 !important; }
body .wp-site-blocks .section-dark p.section-intro { color: #9d917f !important; }

/* Logo placements */
.about-logo img { box-shadow: none !important; border-radius: 0 !important; max-width: 560px; width: 100%; margin: 0 auto; display: block; }
.site-footer .footer-mark { margin: 0 0 14px !important; }
.site-footer .footer-mark img { width: 170px; height: auto; display: block; }
@media (max-width: 781px) { .about-logo img { max-width: 420px; } }

/* Credentials badges (About section) */
.credentials { list-style: none !important; padding: 0 !important; margin: 28px 0 0 !important; display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; gap: 10px !important; }
.credentials li {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 !important;
	padding: 10px 16px 10px 14px; border: 1px solid rgba(149,112,73,.55); border-radius: 4px; background: #fff;
	font-family: Michroma, "Arial Black", sans-serif; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #48301e;
}
.credentials li::before {
	content: ""; width: 12px; height: 7px; flex: none; margin-top: -3px;
	border-left: 2px solid #957049; border-bottom: 2px solid #957049; transform: rotate(-45deg);
}
@media (max-width: 600px) { .credentials li { width: 100%; } }

/* Fit the longer menu between phone and desktop widths */
@media (min-width: 600px) and (max-width: 1180px) {
	.site-header .nav-cta { display: none !important; }
	.site-header .wp-block-navigation { gap: 18px !important; font-size: .88rem; }
}
@media (max-width: 600px) {
}

/* In-house REALTOR® mention (kept low-key) */
body .wp-site-blocks p.realtor-note { font-size: .98rem; font-style: italic; color: #5e5245 !important; }
body .wp-site-blocks .person p.license {
	align-self: flex-start; margin: 0 !important; padding: 3px 9px;
	border: 1px solid rgba(149,112,73,.6); border-radius: 3px; background: #fff;
	font-family: var(--wp--preset--font-family--michroma); font-size: .54rem !important; letter-spacing: .16em; text-transform: uppercase; color: #48301e !important;
}
body .wp-site-blocks .person p.brokerage { margin: 0 !important; font-size: .88rem; color: #5e5245 !important; }
body .wp-site-blocks .site-footer p.trec { flex-basis: 100%; order: 3; font-size: .82rem; margin: 0; }
body .wp-site-blocks .site-footer p.trec a { color: var(--wp--preset--color--sand); text-decoration: underline; }
@media (max-width: 600px) {
	body .wp-site-blocks .person p.license { grid-column: 2; justify-self: start; margin: 2px 0 2px !important; }
	body .wp-site-blocks .person p.brokerage { grid-column: 2; margin: 0 0 6px !important; }
}

/* "Now buying" announcement in the hero */
body .wp-site-blocks .hero p.now-buying {
	display: inline-flex; align-items: center; gap: 12px; width: fit-content; margin-bottom: 20px !important;
	padding: 10px 18px; border: 1px solid #957049; border-radius: 4px; background: rgba(149,112,73,.22);
	font-family: var(--wp--preset--font-family--michroma); font-size: .7rem !important; letter-spacing: .18em; text-transform: uppercase; color: #fff !important;
}
body .wp-site-blocks .hero p.now-buying::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c9a175; box-shadow: 0 0 0 4px rgba(201,161,117,.25); flex: none;
}
@media (max-width: 600px) { body .wp-site-blocks .hero p.now-buying { font-size: .6rem !important; letter-spacing: .14em; padding: 9px 14px; } }
