/*
Theme Name: OC Roofing and Solar
Theme URI: https://ocroofingandsolarinc.com
Author: OC Roofing and Solar Inc.
Author URI: https://ocroofingandsolarinc.com
Description: Custom theme for OC Roofing and Solar Inc. - Professional roofing and solar contractors serving Orange County, CA.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oc-roofing-solar
*/

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0c2e4e;
  --navy-dark: #071e33;
  --navy-mid: #164c78;
  --brand-orange: #e56717;
  --brand-orange-dark: #c84f08;
  --brand-orange-text: #a64000;
  --warm-white: #f4f7fa;
  --cool-gray: #64748b;
  --text: #334155;
  --border: #d8e0e8;
  --surface: #ffffff;
  --focus: #0b6ebd;
  --shadow-sm: 0 4px 18px rgba(7, 30, 51, 0.08);
  --shadow-md: 0 16px 45px rgba(7, 30, 51, 0.13);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { font-family: var(--font-body); color: var(--text); line-height: 1.7; background: var(--surface); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 180ms cubic-bezier(.23,1,.32,1), background-color 180ms cubic-bezier(.23,1,.32,1), border-color 180ms cubic-bezier(.23,1,.32,1), transform 180ms cubic-bezier(.23,1,.32,1); }
ul { list-style: none; }

.container { width: min(100% - 2rem, 1280px); max-width: 1280px; margin: 0 auto; padding: 0; }
@media (min-width: 640px) { .container { width: min(100% - 3rem, 1280px); } }
@media (min-width: 1024px) { .container { width: min(100% - 4rem, 1280px); } }

/* ===== UTILITY BAR ===== */
.utility-bar { background: var(--navy-dark); color: rgba(255,255,255,0.7); font-size: 12px; padding: 8px 0; }
.utility-bar a { color: rgba(255,255,255,0.7); }
.utility-bar a:hover { color: var(--brand-orange); }
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; }
.utility-left { display: flex; align-items: center; gap: 1.5rem; }
.utility-right { display: flex; align-items: center; gap: 1rem; }
.utility-divider { width: 1px; height: 12px; background: rgba(255,255,255,0.2); }

/* ===== HEADER ===== */
.site-header { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.site-logo img { width: 112px; height: auto; object-fit: contain; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav > li { position: relative; }
.main-nav > li > a, .main-nav > li > button {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 0.5rem 1rem;
  color: #4b5563; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 4px; transition: color 0.2s;
}
.main-nav > li > a:hover, .main-nav > li > button:hover { color: var(--navy); }
.main-nav > li.current > a { color: var(--navy); }

/* Dropdown */
.nav-dropdown { position: absolute; top: 100%; left: 0; width: 260px; background: #fff; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); border: 1px solid #f1f5f9; padding: 0.5rem 0; opacity: 0; visibility: hidden; transform: translateY(-4px) scaleY(0.97); transition: all 0.2s ease; transform-origin: top; z-index: 100; }
.nav-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0) scaleY(1); }
.nav-dropdown a { display: block; padding: 0.5rem 1.25rem; font-family: var(--font-display); font-size: 13px; font-weight: 500; color: #4b5563; transition: all 0.15s; }
.nav-dropdown a:hover { color: var(--navy); background: #f8fafc; }
.nav-dropdown .view-all { color: var(--brand-orange); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 0.05em; border-bottom: 1px solid #f1f5f9; margin-bottom: 0.25rem; padding-bottom: 0.75rem; }

/* Header CTA */
.header-cta { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--navy); }
.header-phone .icon-circle { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-orange); display: flex; align-items: center; justify-content: center; }
.header-phone .icon-circle svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; }
.btn-quote { background: var(--brand-orange); color: var(--navy-dark); font-family: var(--font-display); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.625rem 1.5rem; border-radius: 6px; transition: background 0.2s; }
.btn-quote:hover { background: #f07b2a; color: var(--navy-dark); }

/* Mobile menu */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-toggle svg { width: 24px; height: 24px; stroke: #374151; }
.mobile-menu { display: none; background: #fff; border-top: 1px solid #f1f5f9; padding: 1.5rem 1rem; }
.mobile-menu.active { display: block; }
.mobile-menu a { display: block; padding: 0.75rem 1rem; font-family: var(--font-display); font-size: 16px; font-weight: 600; text-transform: uppercase; color: #374151; border-radius: 8px; }
.mobile-menu a:hover { background: #f8fafc; }

@media (max-width: 1023px) {
  .main-nav, .header-cta { display: none; }
  .mobile-toggle { display: block; }
  .utility-bar { display: none; }
}

/* ===== HERO ===== */
.hero { position: relative; padding: 160px 0 120px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3), rgba(0,0,0,0.6)); }
.hero .container { position: relative; z-index: 2; }
.hero-label { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.hero-label .bar { width: 40px; height: 2px; background: var(--brand-orange); }
.hero-label span { color: var(--brand-orange); font-family: var(--font-display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; text-transform: uppercase; color: #fff; line-height: 1.1; margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--brand-orange); }
.hero p { color: rgba(255,255,255,0.7); font-size: 1.125rem; max-width: 600px; margin-bottom: 2rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.btn-hero { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; font-family: var(--font-display); font-size: 14px; font-weight: 700; text-transform: uppercase; border-radius: 4px; transition: all 0.2s; }
.btn-hero-primary { background: var(--brand-orange); color: var(--navy-dark); }
.btn-hero-primary:hover { background: #f07b2a; color: var(--navy-dark); }
.btn-hero-outline { border: 2px solid rgba(255,255,255,0.4); color: #fff; }
.btn-hero-outline:hover { border-color: #fff; color: #fff; }
.hero-badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 0.5rem; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); padding: 0.75rem 1.25rem; border-radius: 4px; }
.hero-badge .badge-icon { width: 20px; height: 20px; color: var(--brand-orange); }
.hero-badge strong { color: #fff; font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.hero-badge span { color: rgba(255,255,255,0.6); font-size: 11px; display: block; }

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-label { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.section-label .bar { width: 40px; height: 2px; background: var(--brand-orange); }
.section-label span { color: var(--brand-orange-text); font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; }
.section-dark .section-label span, .page-hero .section-label span, .contact-details .local-card-eyebrow, .quote-expectations .local-card-eyebrow, .service-sidebar .local-card-eyebrow, .local-card .local-card-eyebrow { color: #ff9a52; }
.section-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 900; text-transform: uppercase; color: var(--navy); line-height: 1.2; margin-bottom: 1rem; }
.section-dark .section-title { color: #fff; }
.section-desc { color: var(--cool-gray); font-size: 1rem; max-width: 600px; margin-bottom: 2.5rem; }
.section-dark .section-desc { color: rgba(255,255,255,0.6); }

/* ===== SERVICE CARDS ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.service-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; transition: all 0.3s; position: relative; }
.service-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 40px; height: 2px; background: var(--brand-orange); }
.service-card::after { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 40px; background: var(--brand-orange); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-card-body { padding: 1.5rem; }
.service-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 800; text-transform: uppercase; color: var(--navy); margin-bottom: 0.5rem; }
.service-card p { color: var(--cool-gray); font-size: 0.875rem; margin-bottom: 1rem; }
.service-card .learn-more { color: var(--brand-orange-text); font-family: var(--font-display); font-size: 12px; font-weight: 700; text-transform: uppercase; display: flex; align-items: center; gap: 0.25rem; }
.service-card .learn-more:hover { color: var(--brand-orange-dark); }

/* ===== CTA BAND ===== */
.cta-band { background: var(--navy); padding: 4rem 0; text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 900; text-transform: uppercase; color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-band .btn-quote { font-size: 14px; padding: 0.875rem 2rem; }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; margin-bottom: 3rem; }
.footer-col h3 { font-family: var(--font-display); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 14px; padding: 0.25rem 0; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col a:hover { color: var(--brand-orange); }
.footer-logo img { height: 72px; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; font-size: 12px; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.footer-social a:hover { background: var(--brand-orange); }
.footer-social a svg { width: 16px; height: 16px; fill: #fff; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); margin-bottom: 0.375rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--warm-white); border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 0.75rem 1rem; font-size: 14px; color: #1e293b; transition: all 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}
.form-group textarea { resize: none; min-height: 120px; }
.btn-submit { width: 100%; background: var(--brand-orange); color: var(--navy-dark); font-family: var(--font-display); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 1rem; border: none; border-radius: 8px; cursor: pointer; transition: background 0.2s; }
.btn-submit:hover { background: #f07b2a; color: var(--navy-dark); }

/* ===== PAGE HERO ===== */
.page-hero { position: relative; padding: 140px 0 80px; background: var(--navy); overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; opacity: 0.3; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; text-transform: uppercase; color: #fff; margin-bottom: 0.5rem; }
.page-hero h1 .accent { color: var(--brand-orange); }
.page-hero p { color: rgba(255,255,255,0.6); font-size: 1.125rem; max-width: 600px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 120px 0 80px; }
  .hero-badges { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================
   MOBILE IMPROVEMENTS & TOUCH TARGET FIXES
   ============================================ */

/* Touch Target Fixes - Ensure minimum 44px tap targets */
.footer-col a {
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* 480px Breakpoint - Small phones */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .section-title h2 {
        font-size: 1.5rem;
    }
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .service-card-body {
        padding: 1rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .cta-section h2 {
        font-size: 1.5rem;
    }
    .cta-section .btn {
        width: 100%;
        text-align: center;
    }
}

/* Tablet improvements (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
}

/* Improved mobile nav tap targets */
@media (max-width: 1023px) {
    .mobile-menu a {
        padding: 0.875rem 1rem;
        font-size: 15px;
        border-bottom: 1px solid #f1f5f9;
    }
.mobile-menu a:last-child {
        border-bottom: none;
    }
}

/* ===== PREMIUM GLOBAL SYSTEM ===== */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 99999; padding: .75rem 1rem;
  color: #fff; background: var(--navy-dark); border-radius: var(--radius-sm);
  transform: translateY(-160%); transition: transform 160ms cubic-bezier(.23,1,.32,1);
}
.skip-link:focus { transform: translateY(0); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 5px #fff;
}
button, input, select, textarea { font: inherit; }
button, .btn-quote, .btn-hero, .btn-submit { min-height: 48px; }
button:active, .btn-quote:active, .btn-hero:active, .btn-submit:active { transform: scale(.97); }

.utility-bar { background: var(--navy-dark); color: #d7e2eb; padding: 9px 0; }
.utility-bar a { color: #fff; }
.utility-bar a:hover, .utility-bar a:focus-visible { color: #ffb178; }
.site-header { top: 0; border-bottom: 1px solid rgba(12,46,78,.1); box-shadow: 0 8px 28px rgba(7,30,51,.07); }
.header-inner { height: 86px; gap: 1.25rem; }
.site-logo { flex: 0 0 auto; display: inline-flex; align-items: center; border-radius: var(--radius-sm); }
.site-logo img { width: 112px; height: auto; object-fit: contain; }
.primary-navigation { margin-left: auto; }
.main-nav { gap: 0; }
.main-nav > li > a, .main-nav > li > button {
  min-height: 48px; padding: .75rem .72rem; color: #334155; border-radius: var(--radius-sm);
  position: relative; white-space: nowrap;
}
.main-nav > li > a::after, .main-nav > li > button::after {
  content: ''; position: absolute; left: .72rem; right: .72rem; bottom: .35rem; height: 2px;
  background: var(--brand-orange); transform: scaleX(0); transform-origin: left;
  transition: transform 180ms cubic-bezier(.23,1,.32,1);
}
.main-nav > li > a:hover::after, .main-nav > li > a:focus-visible::after,
.main-nav > li > button:hover::after, .main-nav > li > button:focus-visible::after,
.main-nav > li.current > a::after { transform: scaleX(1); }
.main-nav > li > a:hover, .main-nav > li > button:hover { color: var(--navy); background: #f6f8fb; }
.nav-dropdown {
  width: 290px; max-height: min(72vh, 620px); overflow-y: auto; padding: .7rem;
  border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  transform: translateY(-8px) scale(.98); transition: opacity 180ms cubic-bezier(.23,1,.32,1), transform 180ms cubic-bezier(.23,1,.32,1), visibility 180ms;
}
.nav-dropdown.active { transform: translateY(0) scale(1); }
.nav-dropdown a { min-height: 44px; display: flex; align-items: center; padding: .68rem .85rem; border-radius: 8px; color: #334155; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: #eef4f8; color: var(--navy); }
.header-cta { gap: .8rem; }
.header-phone { min-height: 48px; padding: .35rem .5rem; border-radius: var(--radius-sm); white-space: nowrap; }
.header-phone:hover { background: #f3f7fa; color: var(--navy-mid); }
.header-phone .icon-circle { width: 36px; height: 36px; }
.btn-quote, .btn-submit, .btn-hero-primary {
  display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgba(229,103,23,.22); transition: transform 180ms cubic-bezier(.23,1,.32,1), background 180ms cubic-bezier(.23,1,.32,1), box-shadow 180ms cubic-bezier(.23,1,.32,1);
}
.btn-quote:hover, .btn-submit:hover, .btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(200,79,8,.28); }
.mobile-toggle { min-width: 48px; min-height: 48px; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.mobile-toggle:hover { background: #eef4f8; }
.mobile-menu { border-top-color: var(--border); padding: .75rem 1rem 1.25rem; box-shadow: 0 20px 30px rgba(7,30,51,.12); max-height: calc(100vh - 86px); overflow-y: auto; }
.mobile-menu[hidden] { display: none !important; }
.mobile-menu a { min-height: 48px; border-radius: var(--radius-sm); text-transform: none; letter-spacing: .01em; }
.mobile-menu .mobile-services { margin: .4rem 0 .8rem; padding: .65rem; background: #f4f7fa; border-radius: var(--radius); }
.mobile-menu .mobile-services a { min-height: 44px; padding: .6rem .75rem; font-size: 14px; font-weight: 600; }
.mobile-menu .mobile-quote { margin-top: .75rem; color: #fff; background: var(--brand-orange); border: 0; justify-content: center; text-transform: uppercase; }
body.nav-open { overflow: hidden; }

.section { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.section-title { letter-spacing: -.025em; max-width: 880px; }
.section-desc { font-size: 1.05rem; line-height: 1.75; }
.service-card { border-color: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); border-color: rgba(229,103,23,.4); }
.service-card h3 { font-size: 1.05rem; line-height: 1.35; }
.service-card p { color: #526276; line-height: 1.65; }
.service-card .learn-more { min-height: 44px; }
.cta-band { position: relative; overflow: hidden; padding: clamp(4rem, 7vw, 5.5rem) 0; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 10%, rgba(229,103,23,.2), transparent 34%), linear-gradient(135deg, transparent 52%, rgba(255,255,255,.035) 52%); pointer-events: none; }
.cta-band .container { position: relative; }
.cta-band p { color: #d7e2eb; font-size: 1.05rem; }

.site-footer { padding-top: clamp(4rem, 7vw, 5.5rem); color: #d7e2eb; }
.footer-grid { grid-template-columns: 1.35fr repeat(3, minmax(150px, .75fr)); gap: clamp(2rem, 5vw, 4.5rem); }
.footer-col p { color: #c3d0db; }
.footer-col a { color: #d7e2eb; border-radius: 6px; }
.footer-col a:hover, .footer-col a:focus-visible { color: #ffb178; transform: translateX(3px); }
.footer-contact-link { display: inline-flex !important; align-items: center; min-height: 44px !important; padding: .25rem 0 !important; }
.footer-logo img { width: 150px; height: auto; object-fit: contain; }
.footer-social a { width: 44px; height: 44px; }
.footer-social a:hover, .footer-social a:focus-visible { background: var(--brand-orange); transform: translateY(-3px); }
.footer-bottom { color: #b9c7d3; }

.form-group label { color: var(--navy); font-size: .75rem; font-weight: 700; }
.form-group input, .form-group select, .form-group textarea {
  min-height: 50px; background: #fff; border-color: #b8c5d1; border-radius: var(--radius-sm); font-size: 1rem;
}
.form-group textarea { min-height: 150px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 4px rgba(11,110,189,.14); }
.form-help { margin-top: .4rem; color: #64748b; font-size: .82rem; }
.required-mark { color: #b73d00; }

.page-hero { padding: clamp(7rem, 12vw, 10rem) 0 clamp(4rem, 7vw, 6rem); background: linear-gradient(135deg, var(--navy-dark), var(--navy)); }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(229,103,23,.18), transparent 34%); pointer-events: none; }
.page-hero h1 { letter-spacing: -.035em; max-width: 980px; }
.page-hero p { color: #d7e2eb; line-height: 1.7; }
.content-shell { max-width: 860px; margin: 0 auto; }
.content-shell > * + * { margin-top: 1.25rem; }
.content-shell h2, .content-shell h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.25; }
.content-shell h2 { margin-top: 2.5rem; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.content-shell h3 { margin-top: 2rem; font-size: 1.25rem; }
.content-shell p, .content-shell li { font-size: 1.04rem; line-height: 1.8; }
.content-shell ul { list-style: disc; padding-left: 1.25rem; }

@media (max-width: 1180px) {
  .main-nav > li > a, .main-nav > li > button { padding-left: .48rem; padding-right: .48rem; font-size: 12px; }
  .main-nav > li > a::after, .main-nav > li > button::after { left: .48rem; right: .48rem; }
  .header-phone { font-size: 13px; }
  .btn-quote { padding-left: 1rem; padding-right: 1rem; }
}
@media (max-width: 1023px) {
  .mobile-toggle { display: inline-flex; }
  .header-inner { height: 80px; }
  .site-logo img { width: 108px; height: auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 84px; }
  .hero { padding: 6.5rem 0 4.5rem; min-height: auto; }
  .hero p { color: #f1f5f9; }
  .hero-badges { gap: .75rem; }
  .hero-badge { width: 100%; padding: .85rem 1rem; }
  .page-hero { padding: 6rem 0 3.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-col a { min-height: 44px; }
  .footer-bottom { align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2rem, 11vw, 2.75rem); }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn-hero { width: 100%; justify-content: center; }
  .section { padding: 3.75rem 0; }
  .page-hero h1 { font-size: clamp(2rem, 10vw, 2.75rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ===== PREMIUM HOMEPAGE ===== */
.hero { min-height: min(820px, calc(100vh - 118px)); display: flex; align-items: center; padding: clamp(7rem, 12vw, 10rem) 0 clamp(5rem, 9vw, 7rem); }
.hero-overlay { background: linear-gradient(90deg, rgba(3,16,28,.88) 0%, rgba(3,16,28,.65) 43%, rgba(3,16,28,.18) 78%), linear-gradient(0deg, rgba(3,16,28,.55), transparent 50%); }
.hero-content { max-width: 780px; }
.hero h1 { font-size: clamp(3rem, 6.2vw, 5.45rem); letter-spacing: -.045em; }
.hero p { max-width: 690px; color: #eef4f8; line-height: 1.72; }
.hero-badges { max-width: 900px; }
.hero-badge { min-width: 210px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-sm); }
.hero-badge .badge-mark { color: #ff9a52; font-family: var(--font-display); font-weight: 800; font-size: .75rem; letter-spacing: .08em; }
.home-contact-strip { background: var(--brand-orange); color: var(--navy-dark); }
.home-contact-strip-inner { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.home-contact-strip p { margin: 0; color: var(--navy-dark); }
.contact-strip-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.contact-strip-actions a { min-height: 44px; display: inline-flex; align-items: center; padding: .55rem .85rem; color: var(--navy-dark); border: 1px solid rgba(7,30,51,.65); border-radius: var(--radius-sm); font-weight: 700; }
.contact-strip-actions a:hover { background: rgba(255,255,255,.25); color: var(--navy-dark); border-color: var(--navy-dark); }
.section-heading-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; margin-bottom: 2.75rem; }
.section-heading-row .section-desc { margin: 0; }
.services-grid-premium { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.premium-service-card { min-height: 290px; }
.premium-service-card > a { height: 100%; display: flex; flex-direction: column; color: inherit; }
.premium-service-card .service-card-body { display: flex; flex-direction: column; flex: 1; }
.premium-service-card .learn-more { margin-top: auto; }
.service-number { padding: 1.25rem 1.5rem 0; color: var(--brand-orange-text); font-family: var(--font-display); font-weight: 800; font-size: .78rem; letter-spacing: .12em; }
.section-action { display: flex; justify-content: center; margin-top: 2.5rem; }
.btn-secondary { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.2rem; border: 1px solid var(--navy); border-radius: var(--radius-sm); color: var(--navy); font-family: var(--font-display); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.btn-secondary:hover { color: #fff; background: var(--navy); transform: translateY(-2px); }
.home-value-section { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); }
.value-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.value-intro { position: sticky; top: 130px; }
.text-link-light { min-height: 44px; display: inline-flex; align-items: center; color: #fff; font-weight: 700; border-bottom: 2px solid var(--brand-orange); }
.value-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.value-grid article { min-height: 235px; padding: 1.75rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.value-grid article > span, .process-grid article > span { color: #ff9a52; font-family: var(--font-display); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.process-grid article > span { color: var(--brand-orange-text); }
.value-grid h3 { margin: 2rem 0 .65rem; color: #fff; font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; }
.value-grid p { color: #d7e2eb; line-height: 1.72; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process-grid article { position: relative; padding: 2rem 1.5rem; border-right: 1px solid var(--border); }
.process-grid article:last-child { border-right: 0; }
.process-grid h3 { margin: 2rem 0 .6rem; color: var(--navy); font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; }
.process-grid p { color: #526276; font-size: .94rem; line-height: 1.7; }
.home-local { background: var(--warm-white); }
.home-local .section-desc { color: #526276; }
.local-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.local-card { padding: clamp(2rem, 4vw, 3rem); color: #fff; background: var(--navy); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.local-card-eyebrow { color: #ff9a52; font-family: var(--font-display); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.local-card h3 { margin: 1rem 0; color: #fff; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; }
.local-card p { color: #d7e2eb; }
.local-card .btn-quote { width: 100%; margin: 1.25rem 0 .75rem; }
.local-phone { min-height: 44px; display: flex; justify-content: center; align-items: center; color: #fff; font-weight: 800; }

@media (max-width: 1100px) {
  .services-grid-premium { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-grid article:nth-child(2) { border-right: 0; }
  .process-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 767px) {
  .hero { min-height: auto; }
  .hero-overlay { background: linear-gradient(90deg, rgba(3,16,28,.88), rgba(3,16,28,.58)); }
  .home-contact-strip-inner, .section-heading-row, .value-layout, .local-layout { grid-template-columns: 1fr; display: grid; }
  .home-contact-strip-inner { padding: 1rem 0; }
  .contact-strip-actions a { flex: 1 1 180px; justify-content: center; }
  .value-intro { position: static; }
}
@media (max-width: 560px) {
  .services-grid-premium, .value-grid, .process-grid { grid-template-columns: 1fr; }
  .process-grid article { border-right: 0; border-bottom: 1px solid var(--border); }
  .process-grid article:last-child { border-bottom: 0; }
  .premium-service-card { min-height: 250px; }
}

/* ===== INTERIOR PAGES & LEAD FORMS ===== */
.breadcrumbs { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; color: #d7e2eb; font-size: .82rem; }
.breadcrumbs a { min-height: 44px; display: inline-flex; align-items: center; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.page-hero-premium .section-label { margin-bottom: .7rem; }
.page-content-section { background: #fff; }
.service-page-layout, .company-page-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.content-shell { max-width: none; }
.entry-content .page-lead { color: var(--navy); font-size: clamp(1.18rem, 2vw, 1.35rem); line-height: 1.7; font-weight: 600; }
.entry-content a { color: var(--navy-mid); text-decoration: underline; text-underline-offset: 4px; }
.entry-content a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; padding-block: .35rem; }
#main-content:focus { outline: none; }
.entry-content strong { color: var(--navy); }
.entry-content .project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }
.project-grid article { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.service-sidebar, .company-sidebar { position: sticky; top: 126px; padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.service-sidebar { color: #fff; background: var(--navy); }
.service-sidebar h2 { margin: 1rem 0; color: #fff; font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; }
.service-sidebar p { color: #d7e2eb; }
.service-sidebar .btn-quote { width: 100%; margin: 1.1rem 0 .65rem; }
.sidebar-phone { min-height: 48px; display: flex; justify-content: center; align-items: center; color: #fff; font-weight: 800; }
.sidebar-links { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.16); }
.sidebar-links a { min-height: 44px; display: flex; align-items: center; color: #fff; font-size: .9rem; }
.company-sidebar { background: var(--warm-white); border: 1px solid var(--border); }
.company-sidebar h2 { margin-bottom: 1rem; color: var(--navy); font-family: var(--font-display); font-size: 1.35rem; }
.company-sidebar a { min-height: 48px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); color: var(--navy); font-weight: 700; }
.contact-section, .quote-section { background: var(--warm-white); }
.contact-layout, .quote-layout { display: grid; grid-template-columns: minmax(280px,.75fr) minmax(0,1.25fr); gap: clamp(2rem,6vw,5rem); align-items: start; }
.contact-details, .quote-expectations { padding: clamp(2rem,4vw,3rem); color: #fff; background: var(--navy); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.contact-details h2, .quote-expectations h2 { margin: 1rem 0; color: #fff; font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2.2rem); line-height: 1.2; }
.contact-details > p, .quote-expectations > p { color: #d7e2eb; }
.contact-list { margin-top: 2rem; }
.contact-list > div { padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.16); }
.contact-list dt { color: #a8bdd0; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-list dd { margin: .3rem 0 0; color: #fff; }
.contact-list a, .review-link { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.review-link { min-height: 48px; display: inline-flex; align-items: center; margin-top: 1rem; }
.form-card { padding: clamp(1.5rem,4vw,3rem); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-card > h2 { color: var(--navy); font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2rem); }
.form-card > p { margin: .4rem 0 1.75rem; color: #526276; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.form-privacy { margin: .85rem 0 0 !important; text-align: center; color: #64748b !important; font-size: .82rem; }
.form-error { margin-bottom: 1.25rem; padding: 1rem; color: #7f1d1d; background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-sm); }
.form-trap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px,1px,1px,1px) !important; white-space: nowrap !important; }
.form-status { padding: clamp(2rem,6vw,4rem) 1rem; text-align: center; }
.form-status > span { width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #247348; border-radius: 50%; font-size: 1.5rem; }
.form-status h2 { margin: 1.25rem 0 .65rem; color: var(--navy); font-family: var(--font-display); }
.form-status a { min-height: 44px; display: inline-flex; align-items: center; margin-top: 1rem; color: var(--navy-mid); text-decoration: underline; }
.quote-layout { grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); }
.quote-expectations { position: sticky; top: 126px; }
.quote-expectations ol { margin-top: 1.5rem; }
.quote-expectations li { display: flex; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.16); }
.quote-expectations li > span { color: #ff9a52; font-family: var(--font-display); font-size: .72rem; font-weight: 800; }
.quote-expectations h3 { color: #fff; font-family: var(--font-display); font-size: .95rem; text-transform: uppercase; }
.quote-expectations li p { margin-top: .3rem; color: #d7e2eb; font-size: .9rem; line-height: 1.65; }
.quote-callout { margin-top: 1rem; padding: 1.25rem; background: rgba(255,255,255,.07); border-radius: var(--radius); }
.quote-callout p { color: #d7e2eb; }
.quote-callout a { min-height: 44px; display: inline-flex; align-items: center; color: #fff; font-weight: 800; }
.sticky-quote { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 45; min-height: 52px; display: inline-flex; align-items: center; gap: .75rem; padding: .8rem 1.1rem; color: var(--navy-dark); background: var(--brand-orange); border: 2px solid #fff; border-radius: 999px; box-shadow: 0 14px 34px rgba(7,30,51,.28); font-family: var(--font-display); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.sticky-quote:hover, .sticky-quote:focus-visible { color: var(--navy-dark); background: #f07b2a; transform: translateY(-3px); }
.sticky-quote-short { display: none; }

@media (max-width: 900px) {
  .service-page-layout, .company-page-layout, .contact-layout, .quote-layout { grid-template-columns: 1fr; }
  .service-sidebar, .company-sidebar, .quote-expectations { position: static; }
  .entry-content .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card, .contact-details, .quote-expectations, .service-sidebar, .company-sidebar { padding: 1.4rem; border-radius: var(--radius); }
  .sticky-quote { left: auto; right: .75rem; bottom: .75rem; max-width: calc(100vw - 1.5rem); min-height: 48px; padding: .7rem .95rem; justify-content: center; white-space: nowrap; }
  .sticky-quote-full { display: none; }
  .sticky-quote-short { display: inline; }
  .site-footer { padding-bottom: 5.5rem; }
}
