/* ===== WILCOX & SONS HVAC — MASTER STYLESHEET ===== */
:root {
  --navy:   #0d2137;
  --blue:   #1a3a5c;
  --orange: #e85d04;
  --orange2:#f77f00;
  --white:  #ffffff;
  --light:  #f4f7fb;
  --gray:   #6c757d;
  --dark:   #111827;
  --border: #dde3ec;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(13,33,55,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: var(--dark); background: #fff; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange2); }
ul { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── TOPBAR ─────────────────────────── */
.topbar { background: var(--navy); color: #adc4e3; font-size: 13px; padding: 8px 0; }
.topbar-inner { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }

/* ── NAV ────────────────────────────── */
.main-nav { background: var(--blue); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; }
.nav-logo img { height: 64px; width: auto; }
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: #cdd8e8; padding: 8px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 600; font-family: 'Oswald', sans-serif; letter-spacing: .5px; transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.1); color: #fff; }
.btn-nav { background: var(--orange) !important; color: #fff !important; padding: 9px 20px !important; border-radius: var(--radius) !important; }
.btn-nav:hover { background: var(--orange2) !important; }
.nav-toggle { display: none; background: none; border: 2px solid #aaa; color: #fff; font-size: 20px; padding: 4px 10px; border-radius: 4px; cursor: pointer; }

/* ── BUTTONS ────────────────────────── */
.btn { display: inline-block; background: var(--orange); color: #fff; padding: 13px 32px; border-radius: var(--radius); font-weight: 700; font-family: 'Oswald', sans-serif; letter-spacing: .5px; font-size: 16px; border: none; cursor: pointer; transition: background .2s, transform .1s; }
.btn:hover { background: var(--orange2); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: var(--blue); }

/* ── HERO ───────────────────────────── */
.hero { position: relative; min-height: 580px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('../images/5407.jpg') center/cover no-repeat; filter: brightness(.35); z-index: 0; }
.hero-content { position: relative; z-index: 1; padding: 80px 24px; max-width: 1160px; margin: 0 auto; width: 100%; }
.hero-badge { display: inline-block; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px; border-radius: 30px; margin-bottom: 18px; font-family: 'Oswald', sans-serif; }
.hero h1 { font-family: 'Oswald', sans-serif; font-size: clamp(36px, 5vw, 62px); color: #fff; line-height: 1.1; margin-bottom: 20px; max-width: 700px; }
.hero h1 span { color: var(--orange); }
.hero p { color: #c9d8ec; font-size: 18px; max-width: 580px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; flex-wrap: wrap; }
.hero-stat h3 { font-family: 'Oswald', sans-serif; font-size: 36px; color: var(--orange); }
.hero-stat p { color: #9db5cc; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* ── SECTION SHARED ─────────────────── */
.section { padding: 80px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--navy); color: #fff; }
.section-title { font-family: 'Oswald', sans-serif; font-size: clamp(26px, 3.5vw, 38px); color: var(--navy); margin-bottom: 10px; }
.section-dark .section-title { color: #fff; }
.section-sub { color: var(--gray); font-size: 16px; margin-bottom: 48px; }
.section-dark .section-sub { color: #9db5cc; }
.text-center { text-align: center; }
.accent-line { width: 56px; height: 4px; background: var(--orange); border-radius: 2px; margin: 12px auto 0; }

/* ── SERVICE CARDS ──────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.service-card { background: #fff; border-radius: 10px; padding: 34px 26px; box-shadow: var(--shadow); border-top: 4px solid var(--orange); transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(13,33,55,.18); }
.service-icon { font-size: 44px; margin-bottom: 16px; }
.service-card h3 { font-family: 'Oswald', sans-serif; font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--gray); }

/* ── BRANDS ─────────────────────────── */
.brands-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 40px; }
.brand-pill { background: #fff; border: 2px solid var(--border); border-radius: 40px; padding: 12px 28px; font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--navy); font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: border-color .2s, color .2s; }
.brand-pill:hover { border-color: var(--orange); color: var(--orange); }

/* ── WHY US ─────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.why-item { text-align: center; padding: 30px 20px; }
.why-item .wi { font-size: 48px; margin-bottom: 14px; }
.why-item h4 { font-family: 'Oswald', sans-serif; font-size: 18px; color: #fff; margin-bottom: 8px; }
.why-item p { font-size: 14px; color: #9db5cc; }

/* ── GALLERY ────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 4/3; background: #1a3a5c; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(13,33,55,.85)); color: #fff; padding: 24px 14px 14px; font-size: 13px; font-weight: 600; transform: translateY(100%); transition: transform .3s; }
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ── FORMS ──────────────────────────── */
.form-section { max-width: 760px; margin: 0 auto; }
.form-card { background: #fff; border-radius: 12px; padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 15px; font-family: 'Open Sans', sans-serif; color: var(--dark); background: #fafbfc; transition: border-color .2s, box-shadow .2s; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,93,4,.12); background: #fff; }
.form-group textarea { height: 120px; resize: vertical; }
.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 22px; font-weight: 600; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── CAPABILITY ─────────────────────── */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.cap-card { background: #fff; border-radius: 8px; padding: 24px; border-left: 5px solid var(--orange); box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.cap-card h4 { font-family: 'Oswald', sans-serif; font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.cap-card p { font-size: 14px; color: var(--gray); }
.naics-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.naics-table th { background: var(--navy); color: #fff; padding: 12px 16px; text-align: left; font-family: 'Oswald', sans-serif; letter-spacing: .5px; }
.naics-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.naics-table tr:nth-child(even) td { background: var(--light); }

/* ── PAYMENT ────────────────────────── */
.pay-tabs { display: flex; gap: 0; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.pay-tab-btn { flex: 1; padding: 14px; background: #e8eef5; color: var(--navy); font-weight: 700; font-family: 'Oswald', sans-serif; font-size: 16px; border: none; cursor: pointer; transition: background .2s; }
.pay-tab-btn.active { background: var(--navy); color: #fff; }
.pay-panel { display: none; }
.pay-panel.active { display: block; }
.flexpay-plans { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.fp-plan { border: 2px solid var(--border); border-radius: 8px; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: border-color .2s; }
.fp-plan:hover, .fp-plan.selected { border-color: var(--orange); background: #fff8f3; }
.fp-plan .plan-left h5 { font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--navy); }
.fp-plan .plan-left p { font-size: 13px; color: var(--gray); }
.fp-plan .plan-price { font-size: 22px; font-weight: 700; color: var(--orange); font-family: 'Oswald', sans-serif; }

/* ── CTA STRIP ──────────────────────── */
.cta-strip { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); padding: 60px 0; text-align: center; }
.cta-strip h2 { font-family: 'Oswald', sans-serif; font-size: 34px; color: #fff; margin-bottom: 12px; }
.cta-strip p { color: #9db5cc; margin-bottom: 28px; font-size: 16px; }
.cta-strip .btn { margin: 6px; }

/* ── PAGE HERO ──────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); padding: 60px 0; color: #fff; }
.page-hero h1 { font-family: 'Oswald', sans-serif; font-size: clamp(28px, 4vw, 48px); margin-bottom: 10px; }
.page-hero p { color: #9db5cc; font-size: 16px; }
.breadcrumb { font-size: 13px; color: #6a8fb5; margin-bottom: 12px; }
.breadcrumb a { color: var(--orange); }

/* ── ADMIN ──────────────────────────── */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--navy); padding: 24px 0; flex-shrink: 0; }
.admin-sidebar .logo-wrap { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar .logo-wrap img { max-width: 140px; }
.admin-sidebar ul { padding: 16px 0; }
.admin-sidebar li a { display: block; padding: 12px 24px; color: #9db5cc; font-size: 14px; font-weight: 600; transition: background .15s, color .15s; }
.admin-sidebar li a:hover, .admin-sidebar li a.active { background: rgba(255,255,255,.08); color: #fff; border-left: 3px solid var(--orange); }
.admin-main { flex: 1; background: #f1f5fb; padding: 32px; overflow-y: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-header h1 { font-family: 'Oswald', sans-serif; color: var(--navy); font-size: 26px; }
.admin-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.07); padding: 28px; margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { background: var(--light); padding: 11px 14px; text-align: left; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--border); }
.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table tr:hover td { background: #f9fbfe; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-replied  { background: #d1fae5; color: #065f46; }
.badge-confirmed{ background: #dbeafe; color: #1e40af; }
.badge-completed{ background: #d1fae5; color: #065f46; }
.badge-cancelled{ background: #fee2e2; color: #991b1b; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: 10px; padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.07); border-top: 4px solid var(--orange); text-align: center; }
.stat-card .stat-num { font-family: 'Oswald', sans-serif; font-size: 38px; color: var(--navy); }
.stat-card .stat-label { font-size: 13px; color: var(--gray); margin-top: 4px; }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; align-items: center; justify-content: center; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 10px; padding: 32px; max-width: 560px; width: 95%; max-height: 90vh; overflow-y: auto; }
.modal-box h3 { font-family: 'Oswald', sans-serif; color: var(--navy); margin-bottom: 18px; font-size: 22px; }
.modal-close { float: right; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--gray); }

/* ── TESTIMONIAL ────────────────────── */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.testimonial { background: rgba(255,255,255,.06); border-radius: 10px; padding: 28px; border: 1px solid rgba(255,255,255,.1); }
.testimonial .stars { color: var(--orange); font-size: 18px; margin-bottom: 12px; }
.testimonial p { color: #c9d8ec; font-size: 15px; font-style: italic; margin-bottom: 16px; }
.testimonial .author { color: #fff; font-weight: 700; font-size: 14px; }

/* ── RESPONSIVE ─────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; width: 100%; padding: 12px 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 20px; }
  .hero { min-height: 460px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-sidebar { width: 200px; }
  .admin-main { padding: 20px 16px; }
  .topbar-inner { gap: 10px; font-size: 12px; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .pay-tabs { flex-direction: column; }
}

/* ── FOOTER ─────────────────────────── */
.site-footer { background: var(--navy); color: #9db5cc; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-col h4 { font-family: 'Oswald', sans-serif; color: #fff; font-size: 16px; margin-bottom: 14px; letter-spacing: .5px; }
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-col ul li { margin-bottom: 8px; font-size: 14px; }
.footer-col ul a { color: #9db5cc; }
.footer-col ul a:hover { color: var(--orange); }
.footer-bottom { margin-top: 40px; border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; text-align: center; font-size: 13px; }
