/* =========================================================================
   Tri-State Hardwood Flooring - Public styles
   Palette: #171c09 (dark), #95b53d (primary), #71892e (primary-dark),
            #48571d (accent), #ffffff (light)
   CSS-first: no JS required for menu, accordion, sliders, sticky header.
   ========================================================================= */

:root {
    --dark: #171c09;
    --primary: #95b53d;
    --primary-dark: #71892e;
    --accent: #48571d;
    --light: #ffffff;
    --ink: #23281a;
    --muted: #5f6553;
    --bg-soft: #f6f7f1;
    --border: #e4e7db;
    --shadow: 0 10px 30px rgba(23, 28, 9, 0.08);
    --shadow-lg: 0 20px 50px rgba(23, 28, 9, 0.15);
    --radius: 14px;
    --radius-sm: 9px;
    --container: 1180px;
    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Poppins', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.65;
    background: var(--light);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--dark); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: #e9ecdf; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--primary-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-family: var(--font-head); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 700; font-size: 1rem;
    padding: 14px 26px; border-radius: 50px; border: 2px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--dark); box-shadow: 0 8px 20px rgba(149, 181, 61, .35); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: currentColor; color: var(--dark); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--dark); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }

/* --- Header ------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 14px rgba(23,28,9,.07); }
.topbar { background: var(--dark); color: #cdd4b6; font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; padding: 8px 0; }
.topbar-item { color: #cdd4b6; }
.topbar a.topbar-item:hover { color: #fff; }
.topbar-sep { opacity: .4; }
.topbar-contact { display: flex; align-items: center; gap: 12px; }
.topbar-phone { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 800; color: #fff; }
.topbar-phone svg { color: var(--primary); }
.topbar a.topbar-phone:hover { color: var(--primary); }

.header-main { padding: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; }
.brand-logo { max-height: 58px; width: auto; }

.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.main-nav a { font-family: var(--font-head); font-weight: 600; color: var(--dark); padding: 10px 14px; border-radius: 8px; font-size: .95rem; display: block; }
.main-nav a:hover { background: var(--bg-soft); color: var(--primary-dark); }
.main-nav .has-sub { position: relative; }
.submenu { position: absolute; top: 100%; left: 0; background: #fff; min-width: 230px; box-shadow: var(--shadow); border-radius: 10px; padding: 8px; display: none; }
.main-nav .has-sub:hover .submenu, .main-nav .has-sub:focus-within .submenu { display: block; }
.submenu a { padding: 9px 12px; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; color: var(--dark); font-size: 1.05rem; }
.header-phone svg { color: var(--primary-dark); }

.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
.nav-burger span { width: 26px; height: 3px; background: var(--dark); border-radius: 3px; transition: .2s; }

/* --- Hero --------------------------------------------------------------- */
.hero {
    position: relative; color: #fff;
    background: linear-gradient(115deg, rgba(20,25,8,.94) 0%, rgba(23,28,9,.80) 42%, rgba(72,87,29,.55) 100%),
                url('../images/hero-wood.svg') center/cover no-repeat, #1c2410;
    padding: 104px 0;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-content h1 { color: #fff; margin-bottom: .4em; }
.hero-content .lead { font-size: 1.18rem; color: #e7ecd6; max-width: 560px; }
.hero-badges { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.hero-badges li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.hero-badges svg { color: var(--primary); flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 22px; font-size: .92rem; color: #c8d0af; }

.hero-form { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px; }

/* --- Trust strip -------------------------------------------------------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--border); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 20px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item svg { color: var(--primary-dark); flex: none; }
.trust-item strong { display: block; font-family: var(--font-head); color: var(--dark); font-size: 1rem; }
.trust-item span { font-size: .85rem; color: var(--muted); }

/* --- Services grid ------------------------------------------------------ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon { width: 62px; height: 62px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 18px; }
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 { margin-bottom: .3em; }
.service-card .service-tagline { color: var(--primary-dark); font-weight: 600; font-size: .9rem; font-family: var(--font-head); margin-bottom: .6em; }
.service-card p { color: var(--muted); }
.service-card .service-features { list-style: none; padding: 0; margin: 0 0 18px; }
.service-card .service-features li { position: relative; padding-left: 24px; margin-bottom: 6px; font-size: .93rem; }
.service-card .service-features li::before { content: ''; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); }
.service-card .service-link { margin-top: auto; font-family: var(--font-head); font-weight: 700; color: var(--primary-dark); }

/* --- Why choose us ------------------------------------------------------ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.why-card .why-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--bg-soft); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.why-card h3 { font-size: 1.15rem; }
.why-card p { color: var(--muted); margin: 0; }

/* --- Process ------------------------------------------------------------ */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.process-step { text-align: center; padding: 10px; }
.process-num { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: var(--primary); color: var(--dark); font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; }
.process-step h3 { font-size: 1.05rem; }
.process-step p { color: var(--muted); font-size: .92rem; }

/* --- Reviews (CSS scroll-snap slider) ----------------------------------- */
.reviews-slider { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; -webkit-overflow-scrolling: touch; }
.reviews-slider::-webkit-scrollbar { height: 8px; }
.reviews-slider::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 8px; }
.review-card { scroll-snap-align: start; flex: 0 0 min(360px, 85%); background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.review-stars { color: #f5a623; margin-bottom: 10px; letter-spacing: 2px; }
.review-quote { color: var(--ink); font-style: italic; }
.review-author { font-family: var(--font-head); font-weight: 700; color: var(--dark); margin-top: 12px; }
.review-city { color: var(--muted); font-size: .88rem; }
.slider-hint { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 6px; }

/* --- Portfolio ---------------------------------------------------------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portfolio-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.portfolio-thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, #e9e4d5, #cbbb95); display: flex; align-items: center; justify-content: center; color: #8a6238; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-body { padding: 18px 20px; }
.portfolio-body h3 { font-size: 1.05rem; margin-bottom: .2em; }
.portfolio-body .p-city { color: var(--primary-dark); font-weight: 600; font-size: .85rem; }

/* --- Areas -------------------------------------------------------------- */
.areas-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.area-chip { background: #fff; border: 1px solid var(--border); border-radius: 50px; padding: 9px 18px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--dark); transition: .15s; }
.area-chip:hover { background: var(--primary); color: var(--dark); border-color: var(--primary); }

/* --- FAQ (native details) ---------------------------------------------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-family: var(--font-head); font-weight: 700; color: var(--dark); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--primary-dark); flex: none; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-answer { padding: 0 22px 20px; color: var(--muted); }

/* --- Blog --------------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.blog-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--accent), var(--primary-dark)); display: flex; align-items: center; justify-content: center; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { color: rgba(255,255,255,.55); display: inline-flex; }
.blog-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-cat { color: var(--primary-dark); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-head); }
.blog-body h3 { font-size: 1.18rem; margin: 8px 0; }
.blog-body p { color: var(--muted); font-size: .95rem; }
.blog-body .blog-link { margin-top: auto; font-family: var(--font-head); font-weight: 700; }
.blog-date { color: var(--muted); font-size: .82rem; margin-top: 6px; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band { background: linear-gradient(135deg, var(--accent), var(--primary-dark)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #eef2e0; max-width: 600px; margin: 0 auto 24px; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Forms -------------------------------------------------------------- */
.estimate-form-title { margin-bottom: .2em; }
.estimate-form-intro { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; color: var(--ink); font-family: var(--font-head); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(149,181,61,.2); }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .93rem; }
.form-alert-error { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; }
.form-alert-success { background: #edf7e6; color: #3d6b18; border: 1px solid #c9e3b0; }

/* --- Floating call ------------------------------------------------------ */
.floating-call { position: fixed; bottom: 20px; right: 20px; z-index: 200; background: var(--primary); color: var(--dark); display: none; align-items: center; gap: 8px; padding: 14px 20px; border-radius: 50px; font-family: var(--font-head); font-weight: 800; box-shadow: var(--shadow-lg); }
.floating-call:hover { background: var(--primary-dark); color: #fff; }

/* --- Page hero (inner pages) ------------------------------------------- */
.page-hero { background: linear-gradient(rgba(23,28,9,.8), rgba(23,28,9,.82)), url('../images/hero-wood.svg') center/cover no-repeat, var(--dark); color: #fff; padding: 70px 0; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #dbe1c8; max-width: 640px; margin: 0 auto; }
.breadcrumbs { font-size: .85rem; color: #c2cba3; margin-bottom: 10px; }
.breadcrumbs a { color: #dbe1c8; }

/* --- Content prose ------------------------------------------------------ */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: 1.2em 0; }
.service-hero-img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); margin: 0 0 1.4em; box-shadow: var(--shadow); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* --- Split layout (service pages) -------------------------------------- */
.split { display: grid; grid-template-columns: 1.4fr .9fr; gap: 42px; align-items: start; }
.sidebar-card { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; position: sticky; top: 110px; }

.feature-list { list-style: none; padding: 0; margin: 0 0 20px; }
.feature-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.feature-list li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: #fff; background: var(--primary); width: 20px; height: 20px; border-radius: 50%; font-size: .75rem; display: flex; align-items: center; justify-content: center; }

/* --- Map ---------------------------------------------------------------- */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--dark); color: #b9c19f; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 62px 20px 44px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin: 0 0 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--primary); border-radius: 3px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col a { color: #b9c19f; transition: color .15s; }
.footer-col a:hover { color: var(--primary); }
.footer-about p { color: #a7b088; font-size: .93rem; line-height: 1.7; margin: 0 0 18px; }
.footer-logo { max-height: 96px; width: auto; margin-bottom: 18px; background: rgba(255,255,255,.06); padding: 12px 16px; border-radius: 10px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.footer-social a:hover { background: var(--primary); color: var(--dark); }
.footer-contact li { color: #b9c19f; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; font-size: .85rem; flex-wrap: wrap; gap: 8px; }
.footer-bottom-inner p { margin: 0; color: #8b936f; }
.footer-bottom-inner a { color: #b9c19f; }

/* --- Utilities ---------------------------------------------------------- */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
    .hero-grid, .split, .grid-2 { grid-template-columns: 1fr; }
    .services-grid, .why-grid, .blog-grid, .portfolio-grid { grid-template-columns: 1fr 1fr; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .trust-inner { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .sidebar-card { position: static; }

    .nav-burger { display: flex; }
    .header-cta .header-phone span { display: none; }
    .main-nav {
        position: fixed; top: 0; right: -100%; width: 82%; max-width: 340px; height: 100vh;
        background: #fff; box-shadow: var(--shadow-lg); padding: 80px 24px 24px; transition: right .25s ease; overflow-y: auto; z-index: 150;
    }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav a { padding: 12px 10px; border-bottom: 1px solid var(--border); border-radius: 0; }
    .submenu { position: static; display: block; box-shadow: none; padding: 0 0 0 14px; }
    .nav-toggle:checked ~ .header-main .main-nav { right: 0; }
    .floating-call { display: inline-flex; }
}

@media (max-width: 700px) {
    .topbar-inner { justify-content: center; }
    .topbar-area { display: none; }
}

@media (max-width: 560px) {
    .services-grid, .why-grid, .blog-grid, .portfolio-grid, .process-grid, .trust-inner, .form-row, .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
    .hero { padding: 60px 0; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
    .topbar-contact .topbar-sep, .topbar-contact a:not(.topbar-phone) { display: none; }
}
