/* ============================================================
   NEW ROADS PRO — Unified Stylesheet
   Themes: Teal (index), Green (handyman), Blue (insulation), Violet (playset)
   No color-mix() — fully compatible with all browsers
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@600;700;800&display=swap');

/* ---------- CSS Variables: Teal (default) ---------- */
:root {
    --primary:          #5B9B8A;
    --primary-dark:     #0F3D3E;
    --primary-dim:      #4A8A7A;   /* darker shade of primary for gradients */
    --primary-glow:     rgba(91,155,138,.12);
    --primary-focus:    rgba(91,155,138,.18);
    --commit-dark:      #0A2B2C;
    --accent:           #E07A2F;
    --accent-dark:      #C96925;
    --dark-red:         #6B2B2A;
    --off-white:        #F6F5F2;
    --text:             #1F2937;
    --white:            #ffffff;
    --shadow-sm:        0 4px 20px rgba(15,61,62,.08);
    --shadow-md:        0 8px 30px rgba(15,61,62,.14);
    --shadow-lg:        0 12px 45px rgba(15,61,62,.20);
    --radius-sm:        10px;
    --radius-md:        16px;
    --radius-lg:        20px;
    --radius-xl:        28px;
}

/* ---------- Green theme (Handyman) ---------- */
body.theme-handyman {
    --primary:          #3A7D44;
    --primary-dark:     #1C3D24;
    --primary-dim:      #2D6035;
    --primary-glow:     rgba(58,125,68,.12);
    --primary-focus:    rgba(58,125,68,.18);
    --commit-dark:      #122518;
    --accent:           #7FBA00;
    --accent-dark:      #5E8C00;
    --dark-red:         #2D5A27;
}

/* ---------- Blue theme (Insulation) ---------- */
body.theme-insulation {
    --primary:          #1B6CA8;
    --primary-dark:     #0D2E45;
    --primary-dim:      #155488;
    --primary-glow:     rgba(27,108,168,.12);
    --primary-focus:    rgba(27,108,168,.18);
    --commit-dark:      #081D2E;
    --accent:           #2ECC71;
    --accent-dark:      #27AE60;
    --dark-red:         #1B3A57;
}

/* ---------- Violet theme (Playset) ---------- */
body.theme-playset {
    --primary:          #7B3FA0;
    --primary-dark:     #3D1A5C;
    --primary-dim:      #62327F;
    --primary-glow:     rgba(123,63,160,.12);
    --primary-focus:    rgba(123,63,160,.18);
    --commit-dark:      #280F3D;
    --accent:           #E07A2F;
    --accent-dark:      #C96925;
    --dark-red:         #4A1A6E;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--off-white);
    line-height: 1.65;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- TRUST BAR ---------- */
.trust-bar {
    background: var(--primary-dark);
    padding: .45rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.trust-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    color: rgba(246,245,242,.85);
    font-size: .85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.trust-divider {
    color: rgba(246,245,242,.25);
    font-size: .85rem;
}

/* ---------- HEADER ---------- */
.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrap {
    height: 90px;
    display: flex;
    align-items: center;
    margin-left: -2rem;
    padding-left: 0;
    flex-shrink: 0;
}

.logo-wrap img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--off-white);
    letter-spacing: -0.5px;
}

.logo-text span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: rgba(246,245,242,.85);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    transition: color .25s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--off-white); }

.header-cta {
    background: var(--accent);
    color: white;
    padding: .75rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
    white-space: nowrap;
}

.header-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,.25);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: .5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--off-white);
    border-radius: 2px;
    transition: all .3s ease;
}

/* ---------- HERO ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
    padding: 5rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0,0,0,.08) 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg,   transparent, transparent 60px, rgba(255,255,255,.015) 60px, rgba(255,255,255,.015) 61px),
        repeating-linear-gradient(90deg,  transparent, transparent 60px, rgba(255,255,255,.015) 60px, rgba(255,255,255,.015) 61px);
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--off-white);
    margin-bottom: 1.5rem;
    line-height: 1.08;
    letter-spacing: -1.5px;
    animation: fadeUp .8s .1s both;
}

.hero h1 span {
    color: var(--accent);
    display: block;
    margin-top: .4rem;
}

.hero-lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--off-white);
    max-width: 680px;
    margin-bottom: 2.5rem;
    opacity: .92;
    animation: fadeUp .8s .2s both;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp .8s .3s both;
}

.badge {
    background: rgba(246,245,242,.18);
    backdrop-filter: blur(10px);
    padding: .7rem 1.4rem;
    border-radius: 50px;
    color: var(--off-white);
    font-weight: 600;
    font-size: .9rem;
    border: 1px solid rgba(246,245,242,.28);
}

.hero-expertise {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    animation: fadeUp .8s .4s both;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--off-white);
    font-weight: 500;
    font-size: .95rem;
}

.expertise-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2.5;
    flex-shrink: 0;
}

/* ---------- SECTION UTILITIES ---------- */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-red);
}

.section-title--light { color: var(--off-white); }

/* ---------- VALUES GRID ---------- */
.values { background: var(--off-white); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    transition: transform .3s ease, box-shadow .3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.value-card .icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.value-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    color: var(--dark-red);
    margin-bottom: .6rem;
    font-weight: 700;
}

.value-card p {
    color: var(--text);
    font-size: .97rem;
    line-height: 1.65;
}

/* ---------- COMMITMENT BANNER ---------- */
.commitment {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--commit-dark) 100%);
    padding: 3.5rem 2rem;
    text-align: center;
}

.commitment h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: .8rem;
}

.commitment p {
    font-size: 1.2rem;
    color: var(--off-white);
    font-style: italic;
    opacity: .95;
}

/* ---------- SERVICES ---------- */
.services { background: var(--off-white); }

.service-category {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
    border-top: 5px solid var(--accent);
    transition: box-shadow .3s ease;
}

.service-category:hover { box-shadow: var(--shadow-md); }

.service-category h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.7rem;
    color: var(--dark-red);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.service-list { list-style: none; }

.service-list li {
    padding: .85rem 0 .85rem 1.75rem;
    border-bottom: 1px solid rgba(0,0,0,.05);
    font-size: 1.05rem;
    color: var(--text);
    position: relative;
}

.service-list li:last-child { border-bottom: none; }

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1rem;
}

/* ---------- CAPABILITIES ---------- */
.capabilities {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.cap-card {
    background: rgba(246,245,242,.95);
    padding: 2.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 25px rgba(0,0,0,.18);
}

.cap-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    color: var(--dark-red);
    margin-bottom: .85rem;
    font-weight: 700;
}

.cap-card p { color: var(--text); line-height: 1.7; font-size: 1rem; }

/* ---------- PILLARS ---------- */
.pillars { background: var(--off-white); }

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pillar-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-bottom: 4px solid var(--accent);
    transition: transform .3s ease, box-shadow .3s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.pillar-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pillar-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    color: var(--dark-red);
    font-weight: 700;
    margin-bottom: .5rem;
}

.pillar-card p { font-size: .9rem; color: var(--text); opacity: .85; }

/* ---------- HIGHLIGHT BOX (Insulation) ---------- */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--commit-dark) 100%);
    color: var(--off-white);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,.08);
    margin-bottom: 2rem;
}

.highlight-box h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 700;
}

.highlight-box p { font-size: 1.05rem; line-height: 1.7; opacity: .92; }

.equipment-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.equipment-badge {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    padding: .5rem 1.1rem;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 600;
}

/* ---------- CONTACT / CTA ---------- */
.cta-section {
    background: var(--dark-red);
    padding: 5rem 2rem;
}

.cta-inner { max-width: 820px; margin: 0 auto; }

.cta-inner h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--off-white);
    margin-bottom: .75rem;
    font-weight: 800;
    text-align: center;
}

.cta-sub {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.cta-desc {
    font-size: 1.05rem;
    color: var(--off-white);
    margin-bottom: .5rem;
    opacity: .9;
    text-align: center;
}

.cta-served {
    font-size: .95rem;
    color: var(--off-white);
    margin-bottom: 3rem;
    opacity: .8;
    text-align: center;
    font-style: italic;
}

.contact-form {
    background: rgba(246,245,242,.98);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 60px rgba(0,0,0,.35);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    margin-bottom: 1.4rem;
}

.form-group { display: flex; flex-direction: column; }
.form-group.full-width { margin-bottom: 1.4rem; }

.form-group label {
    font-weight: 600;
    color: var(--dark-red);
    margin-bottom: .45rem;
    font-size: .95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: .85rem 1.1rem;
    border: 2px solid rgba(0,0,0,.1);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: white;
    transition: border-color .25s, box-shadow .25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-focus);
}

.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { cursor: pointer; }

.submit-btn {
    display: block;
    width: 100%;
    padding: 1.1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    letter-spacing: .3px;
}

.submit-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

.submit-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

#formMessage {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: none;
    font-weight: 600;
    text-align: center;
}

.see-services-link {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: .95rem;
    transition: opacity .2s;
}

.see-services-link:hover { opacity: .75; }

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--primary-dark);
    color: var(--off-white);
    padding: 3.5rem 2rem 2rem;
    text-align: center;
}

.footer-inner { max-width: 1000px; margin: 0 auto; }

.footer-brand {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: .4rem;
}

.footer-tagline { font-size: 1rem; opacity: .85; margin-bottom: .3rem; }

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    list-style: none;
    margin: 1.75rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(246,245,242,.7);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s;
}

.footer-links a:hover { color: var(--off-white); }

.footer-divider {
    border: none;
    border-top: 1px solid rgba(246,245,242,.15);
    margin: 1.5rem 0;
}

.footer-copy { font-size: .85rem; opacity: .6; }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .values-grid,
    .pillars-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-mobile-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0; right: 0;
        background: var(--primary-dark);
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        z-index: 999;
    }
    .trust-bar-inner { gap: 1rem; }
}

@media (max-width: 640px) {
    .values-grid,
    .pillars-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 1.75rem 1.25rem; }
    .hero { padding: 3rem 1.25rem 4rem; }
    .section { padding: 3.5rem 1.25rem; }
    .hero-expertise { flex-direction: column; gap: 1rem; }
    .header-inner { padding: 0 1.25rem; }
    .trust-bar { padding: .5rem 1.25rem; }
    .trust-divider { display: none; }
}

@media (max-width: 480px) {
    .logo-wrap { height: 70px; }
    .hero-badges { gap: .6rem; }
    .badge { padding: .55rem 1rem; font-size: .82rem; }
}
