/*
Theme Name: Bray Brothers
Theme URI: https://braybrothersinc.com
Author: Bray Brothers, Inc.
Description: Custom theme for Bray Brothers, Inc., paving and utility contractor in Fallsington, PA.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: bray-brothers
*/

:root {
	--ink: #111315;
	--charcoal: #1C1F22;
	--paper: #F4F2EE;
	--sand: #E7E3DC;
	--yellow: #F2B705;
	--text: #1C1F22;
	--text-soft: #45413C;
	--muted: #5B5650;
	--on-dark: #D6D2CB;
	--line-dark: #3A3E44;
	--display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1; margin: 0; }
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 26px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; font-family: var(--body); cursor: pointer; }
.btn-yellow { background: var(--yellow); color: var(--charcoal); }
.btn-yellow:hover { background: #FFC81F; color: var(--charcoal); }
.btn-outline { border-color: #FFFFFF; color: #FFFFFF; }
.btn-outline:hover { background: #FFFFFF; color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: #FFFFFF; }
.btn-dark:hover { background: #000; color: #FFFFFF; }

/* Top bar + header */
.topbar { background: var(--ink); color: #E9E6E0; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.topbar a { color: #E9E6E0; text-decoration: none; }
.topbar strong { color: var(--yellow); }
.topbar-phones { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.site-header { background: var(--charcoal); border-bottom: 1px solid #33373C; }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 64px; width: auto; }
.brand-tag { font-size: 12px; color: #B9B5AE; letter-spacing: 1.5px; line-height: 1.4; border-left: 1px solid #4A4F55; padding-left: 14px; text-transform: uppercase; }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-weight: 600; font-size: 15px; }
.main-nav a { color: #FFFFFF; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--yellow); }
.main-nav .btn { padding: 12px 20px; min-height: 44px; }
.main-nav .btn:hover { color: var(--charcoal); }

/* Hero */
.hero { background-color: var(--charcoal); background-size: cover; background-position: center 55%; color: #FFFFFF; }
.hero .wrap { padding-top: 120px; padding-bottom: 110px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); line-height: 0.95; max-width: 920px; }
.hero p { margin: 0; font-size: 20px; line-height: 1.5; max-width: 660px; color: #E9E6E0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Trust strip */
.trust { background: var(--yellow); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.trust strong { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1.1; }
.trust span { font-size: 14px; font-weight: 600; }

/* Sections */
.section { padding: 100px 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(40px, 5vw, 56px); }

.paving-card { background: #FFFFFF; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.paving-card img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: 40% 60%; }
.paving-body { padding: 44px; display: flex; flex-direction: column; gap: 22px; }
.paving-body h3 { font-size: 36px; }
.cap-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; font-weight: 600; }
.cap-list li { border-top: 2px solid var(--yellow); padding-top: 10px; }
.paving-body p { margin: 0; color: var(--text-soft); line-height: 1.6; }

.also { margin-top: 40px; border: 1px solid #C9C3BA; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; }
.also strong { font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.also span { color: var(--text-soft); line-height: 1.6; flex: 1 1 420px; }

.clients { background: var(--sand); padding: 80px 0; }
.clients h2 { font-size: 44px; margin-bottom: 36px; }
.three-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.three-up h3 { font-size: 26px; margin-bottom: 10px; }
.three-up p { margin: 0; line-height: 1.6; color: var(--text-soft); }

.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.project { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.project img { width: 100%; height: 280px; object-fit: cover; }
.project .tag { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.project h3 { margin: 0; font-size: 20px; }

.about { background: var(--charcoal); color: #FFFFFF; }
.about .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; }
.about-text { display: flex; flex-direction: column; gap: 20px; }
.about .eyebrow { color: var(--yellow); }
.about h2 { font-size: clamp(40px, 5vw, 56px); }
.about p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--on-dark); }
.timeline { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 14px; }
.timeline li { display: flex; gap: 20px; color: var(--on-dark); line-height: 1.5; }
.timeline strong { font-family: var(--display); font-size: 24px; color: var(--yellow); min-width: 64px; line-height: 1.1; }
.about-photo { width: 100%; height: 480px; object-fit: cover; object-position: 55% 50%; }

.hiring { background: var(--yellow); padding: 72px 0; }
.hiring .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.hiring h2 { font-size: 52px; margin-bottom: 14px; }
.hiring p { margin: 0; font-size: 18px; max-width: 640px; }

/* Contact + forms */
.contact .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; }
.contact-text { display: flex; flex-direction: column; gap: 24px; }
.contact-text h2 { font-size: clamp(40px, 5vw, 56px); }
.contact-list { display: flex; flex-direction: column; gap: 16px; font-size: 17px; margin: 0; }
.contact-list dt { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.contact-list dd { margin: 0; }
.contact-list .big { font-weight: 700; font-size: 22px; text-decoration: none; }

.bray-form { background: #FFFFFF; padding: 36px; display: flex; flex-direction: column; gap: 18px; align-self: start; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.bray-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.bray-form input[type="text"], .bray-form input[type="tel"], .bray-form input[type="email"], .bray-form input[type="date"], .bray-form select { height: 48px; border: 1px solid #A8A39B; border-radius: 0; padding: 0 12px; font-size: 16px; font-family: inherit; background: #FFFFFF; color: var(--text); }
.bray-form textarea { border: 1px solid #A8A39B; border-radius: 0; padding: 12px; font-size: 16px; font-family: inherit; resize: vertical; }
.bray-form input[type="file"] { font-size: 15px; font-family: inherit; padding: 10px 0; }
.bray-form .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.bray-form button { height: 56px; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; font-weight: 600; line-height: 1.5; }
.notice-ok { background: #E3F1E0; color: #1E4620; border-left: 4px solid #2E7D32; }
.notice-err { background: #FBE5E1; color: #6B1D12; border-left: 4px solid #B3261E; }

/* Careers */
.careers-hero .wrap { padding-top: 96px; padding-bottom: 88px; gap: 22px; }
.careers-hero h1 { font-size: clamp(44px, 6vw, 80px); max-width: 820px; }
.jobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.job { background: #FFFFFF; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.job h3 { font-size: 32px; }
.job ul { margin: 0; padding-left: 20px; line-height: 1.7; color: var(--text-soft); }
.job a { font-weight: 700; margin-top: auto; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { background: var(--charcoal); color: #FFFFFF; font-size: 12px; font-weight: 700; padding: 6px 10px; letter-spacing: 1px; }
.req-note { margin-top: 24px; background: var(--sand); padding: 24px 28px; line-height: 1.6; color: #2E2A26; }

/* Generic pages */
.page-body { padding: 72px 0 100px; }
.page-body .wrap { max-width: 820px; }
.page-body h1 { font-size: clamp(40px, 5vw, 56px); margin-bottom: 28px; }
.entry { font-size: 18px; line-height: 1.7; color: var(--text-soft); }
.entry h2, .entry h3 { font-family: var(--display); text-transform: uppercase; color: var(--text); line-height: 1.1; }

/* Footer */
.site-footer { background: var(--ink); color: #B9B5AE; padding: 48px 0 32px; font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand img { width: 200px; margin-bottom: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: flex-start; }
.footer-nav a { color: #E9E6E0; text-decoration: none; }
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid #2E3236; margin-top: 28px; padding-top: 20px; }

@media (max-width: 600px) {
	.section { padding: 72px 0; }
	.hero .wrap { padding-top: 80px; padding-bottom: 72px; }
	.paving-body, .bray-form, .job { padding: 24px; }
	.paving-card img { min-height: 260px; }
	.about-photo { height: 320px; }
	.hiring h2 { font-size: 42px; }
	.brand img { height: 52px; }
	.topbar .wrap > span { display: none; }
	.trust .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.trust strong { font-size: 24px; }
}
