/* ============================================================
   Davis Mechanical Services — Stylesheet
   Brand: #CF545B (warm red) | #1A1E21 (dark) | #E07335 (accent)
   Fonts: Anton (headings) + Karla (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Karla:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* Variables & Reset */
:root {
  --dark:       #1A1E21;
  --mid:        #252C31;
  --primary:    #CF545B;
  --primary-dk: #B04349;
  --accent:     #E07335;
  --light:      #F9F5F4;
  --white:      #FFFFFF;
  --text:       #1A1E21;
  --muted:      #6B7275;
  --border:     #E2E6E8;
  --shadow:     0 4px 24px rgba(0,0,0,.1);
  --radius:     6px;
  --max-w:      1160px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Karla', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* Typography */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Anton', sans-serif;
  line-height: 1.1;
  letter-spacing: .025em;
  font-weight: 400;
}
.section-label {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .75rem;
  display: block;
}
.section-title { font-size: clamp(1.85rem,3.5vw,2.75rem); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.05rem; color: var(--muted); max-width: 600px; line-height: 1.75; }

/* Skip / Focus */
#skip-link {
  position: absolute; top: -50px; left: 0;
  background: var(--primary); color: white;
  padding: .5rem 1rem; z-index: 9999;
  border-radius: 0 0 4px 0; transition: top .2s;
}
#skip-link:focus { top: 0; }
*:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 2px; }

/* ── Header ── */
.site-header {
  background: var(--dark);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 3px solid var(--primary);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: .75rem; }
.logo img { height: 44px; width: auto; }
.logo-fallback { font-family: 'Anton',sans-serif; font-size: 1.2rem; color: var(--white); letter-spacing: .05em; line-height: 1.2; }
.logo-fallback span { display: block; font-family: 'Karla',sans-serif; font-size: .65rem; font-weight: 600; color: var(--primary); letter-spacing: .14em; text-transform: uppercase; }

.main-nav ul { display: flex; align-items: center; gap: .25rem; }
.main-nav a { color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 500; padding: .5rem .875rem; border-radius: var(--radius); transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.08); }
.nav-cta { background: var(--primary) !important; color: var(--white) !important; font-weight: 700 !important; padding: .5rem 1.125rem !important; }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--primary-dk) !important; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; color: white; padding: .5rem; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: .3s; }

/* ── Hero ── */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center; overflow: hidden; background: var(--dark); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; opacity: .32; transform: scale(1.06); animation: heroZoom 20s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1.0); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,30,33,.9) 0%, rgba(207,84,91,.2) 100%); }
.hero-content { position: relative; z-index: 2; padding: 5rem 0; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(207,84,91,.15); border: 1px solid rgba(207,84,91,.4); color: #f0b4b7; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .375rem 1rem; border-radius: 2rem; margin-bottom: 1.5rem; animation: fadeUp .5s ease forwards; }
.hero h1 { font-size: clamp(2.4rem,6vw,5rem); color: var(--white); max-width: 680px; margin-bottom: 1.25rem; animation: fadeUp .6s .1s ease both; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 520px; margin-bottom: 2.5rem; line-height: 1.75; animation: fadeUp .6s .2s ease both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; animation: fadeUp .6s .3s ease both; }
.hero-trust { display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); animation: fadeUp .6s .45s ease both; }
.hero-trust-item strong { display: block; font-family: 'Anton',sans-serif; font-size: 1.75rem; color: var(--primary); line-height: 1; }
.hero-trust-item span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .875rem 2rem; border-radius: var(--radius); font-weight: 700; font-size: .95rem; border: 2px solid transparent; transition: all .2s; cursor: pointer; letter-spacing: .02em; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--primary-dk); border-color: var(--primary-dk); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(207,84,91,.4); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-dark:hover, .btn-dark:focus-visible { background: var(--mid); transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-white:hover, .btn-white:focus-visible { background: rgba(255,255,255,.9); transform: translateY(-1px); }

/* ── Trust Bar ── */
.trust-bar { background: var(--primary); padding: .875rem 0; }
.trust-bar-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem 2.5rem; }
.trust-item { display: flex; align-items: center; gap: .5rem; color: white; font-size: .83rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ── Stats ── */
.stats-band { background: var(--dark); padding: 4.5rem 0; }
.stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 5rem; }
.stat-item { text-align: center; }
.stat-number { font-family: 'Anton',sans-serif; font-size: 3.5rem; color: var(--primary); line-height: 1; display: block; }
.stat-label { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: rgba(255,255,255,.55); margin-top: .4rem; display: block; }

/* ── Services Split ── */
.services-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); }
.service-half { background: var(--white); padding: 3rem; }
.service-half.dark { background: var(--dark); color: var(--white); }
.service-half-hdr { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 3px solid var(--primary); }
.service-half-icon { width: 56px; height: 56px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; }
.service-half-title { font-family: 'Anton',sans-serif; font-size: 1.5rem; letter-spacing: .04em; }
.service-list { display: flex; flex-direction: column; gap: .6rem; }
.service-list li { display: flex; align-items: flex-start; gap: .625rem; font-size: .95rem; line-height: 1.5; }
.service-list li::before { content: ''; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; flex-shrink: 0; margin-top: .55em; }
.service-list.accent li::before { background: var(--accent); }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; height: 440px; object-fit: cover; border-radius: 8px; }
.about-badge { position: absolute; bottom: -1.5rem; right: -1.5rem; background: var(--primary); color: white; padding: 1.25rem 1.5rem; border-radius: var(--radius); text-align: center; box-shadow: 0 8px 32px rgba(207,84,91,.4); }
.about-badge strong { font-family: 'Anton',sans-serif; font-size: 2.2rem; display: block; line-height: 1; }
.about-badge span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.credential-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.credential-item { display: flex; align-items: center; gap: .75rem; font-size: .95rem; font-weight: 500; }
.credential-item svg { color: var(--primary); flex-shrink: 0; }

/* ── Discount ── */
.discount-section { background: var(--dark); color: white; padding: 4.5rem 0; text-align: center; position: relative; overflow: hidden; }
.discount-section::before { content: '10%'; position: absolute; font-family: 'Anton',sans-serif; font-size: 22rem; opacity: .03; top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; color: var(--primary); line-height: 1; }
.discount-icons { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem 3rem; margin-top: 2rem; }
.discount-icon-item { display: flex; flex-direction: column; align-items: center; gap: .5rem; color: rgba(255,255,255,.75); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.discount-icon-item svg { width: 38px; height: 38px; color: var(--primary); }

/* ── Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: .75rem; }
.gallery-img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); cursor: pointer; transition: transform .3s, opacity .3s; }
.gallery-img:hover { transform: scale(1.03); }

/* ── Before/After ── */
.ba-slider { position: relative; overflow: hidden; max-width: 720px; margin: 2rem auto 0; border-radius: 10px; aspect-ratio: 16/9; user-select: none; box-shadow: var(--shadow); }
.ba-before { position: absolute; top: 0; left: 0; width: 50%; height: 100%; overflow: hidden; }
.ba-before img { position: absolute; top: 0; left: 0; height: 100%; object-fit: cover; }
.ba-handle { position: absolute; top: 0; left: 50%; width: 4px; height: 100%; background: white; cursor: ew-resize; transform: translateX(-50%); z-index: 2; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.ba-handle-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 42px; height: 42px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.25); font-size: 1.1rem; color: var(--primary); font-weight: 700; }
.ba-label { position: absolute; top: 1rem; padding: .25rem .75rem; background: rgba(0,0,0,.6); color: white; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; border-radius: 2rem; }
.ba-label.before { left: .75rem; }
.ba-label.after  { right: .75rem; }

/* ── Map ── */
.map-section { background: var(--light); }
.map-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.service-cities { columns: 2; column-gap: 1.5rem; margin-top: 1rem; }
.service-cities li { break-inside: avoid; display: flex; align-items: center; gap: .5rem; padding: .375rem 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: .9rem; }
.service-cities li::before { content: ''; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; flex-shrink: 0; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 2.5rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; gap: 1rem; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }
.faq-chevron { flex-shrink: 0; transition: transform .3s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item[open] summary { color: var(--primary); }
.faq-answer { padding: 0 0 1.25rem; line-height: 1.75; color: var(--muted); font-size: .95rem; }

/* ── Lightbox ── */
#lightbox { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); align-items: center; justify-content: center; cursor: zoom-out; }
#lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: white; font-size: 2.5rem; cursor: pointer; line-height: 1; padding: .5rem; transition: color .2s; }
.lightbox-close:hover { color: var(--primary); }

/* ── Page Hero (inner pages) ── */
.page-hero { background: var(--dark); padding: 4rem 0; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(207,84,91,.12) 0%, transparent 60%); }
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem,4vw,3.5rem); color: var(--white); margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 520px; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.45); font-size: .85rem; margin-bottom: 1.25rem; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .4; }
.breadcrumb .current { color: var(--primary); }

/* ── Contact Page ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.contact-card { background: var(--dark); color: white; border-radius: 8px; padding: 2rem; }
.contact-card h2 { font-size: 1.75rem; margin-bottom: 1.5rem; color: white; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.contact-detail:last-child { border-bottom: none; }
.contact-detail-icon { width: 40px; height: 40px; background: rgba(207,84,91,.2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.contact-detail-text strong { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; opacity: .5; margin-bottom: .25rem; }
.contact-detail-text a { color: white; transition: color .2s; font-size: 1rem; }
.contact-detail-text a:hover { color: var(--primary); }
.contact-detail-text p { font-size: .95rem; opacity: .8; }
.contact-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 2rem; box-shadow: var(--shadow); }
.contact-form-wrap h2 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .5rem; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .95rem; color: var(--text); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(207,84,91,.12); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; padding: 1rem 1.25rem; border-radius: var(--radius); display: none; align-items: center; gap: .75rem; margin-top: 1rem; font-weight: 600; }
.form-error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; padding: 1rem 1.25rem; border-radius: var(--radius); display: none; align-items: center; gap: .75rem; margin-top: 1rem; }

/* ── Payment ── */
.payment-section { background: var(--light); padding: 3rem 0; text-align: center; }
.payment-icons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.payment-badge { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: .75rem 1.75rem; font-weight: 700; font-size: .9rem; color: var(--text); }

/* ── Floating CTA ── */
.floating-cta { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50; background: var(--primary); color: white; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(207,84,91,.45); transition: transform .2s, box-shadow .2s; text-decoration: none; }
.floating-cta:hover, .floating-cta:focus-visible { transform: scale(1.1); box-shadow: 0 6px 26px rgba(207,84,91,.55); }

/* ── CTA Band ── */
.cta-band { background: var(--primary); padding: 4rem 0; text-align: center; }
.cta-band h2 { color: white; font-size: clamp(1.75rem,3.5vw,2.75rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 500px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* ── Services page cards ── */
.services-section { padding: 4rem 0; }
.services-section + .services-section { border-top: 1px solid var(--border); }
.services-category-hdr { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.services-category-icon { width: 52px; height: 52px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.services-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 1.25rem; }
.service-card { background: var(--light); border: 1.5px solid var(--border); border-radius: 8px; padding: 1.5rem; transition: box-shadow .25s, transform .25s, border-color .25s; }
.service-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-3px); border-color: var(--primary); }
.service-card-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; margin-bottom: .875rem; }
.service-card-title { font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.service-card-desc { font-size: .875rem; color: var(--muted); line-height: 1.6; }

/* ── Footer ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.65); padding: 4rem 0 2rem; border-top: 3px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; line-height: 1.75; max-width: 280px; }
.footer-col h3 { font-family: 'Anton',sans-serif; font-size: .95rem; color: var(--white); letter-spacing: .08em; margin-bottom: 1.25rem; }
.footer-col a { display: block; padding: .3rem 0; color: rgba(255,255,255,.55); font-size: .875rem; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-contact-item { display: flex; align-items: flex-start; gap: .625rem; font-size: .875rem; margin-bottom: .75rem; color: rgba(255,255,255,.65); }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; flex-wrap: wrap; gap: .75rem; }
.footer-social { display: flex; gap: .625rem; }
.footer-social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); transition: all .2s; }
.footer-social a:hover { border-color: var(--primary); color: white; background: var(--primary); }
.license-tag { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.45); font-size: .72rem; padding: .3rem .75rem; border-radius: 2rem; margin-top: .625rem; }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }
.reveal:nth-child(5) { transition-delay: .4s; }
.reveal:nth-child(6) { transition-delay: .5s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--dark); border-top: 1px solid rgba(255,255,255,.08); padding: 1rem 0; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 0 1.5rem; gap: .25rem; }
  .main-nav a { display: block; padding: .75rem 1rem; }
  .hero-trust { flex-wrap: wrap; gap: 1.5rem; }
  .about-grid,
  .contact-grid,
  .map-grid { grid-template-columns: 1fr; }
  .about-badge { bottom: -.75rem; right: .5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .service-half { padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .hero-trust { gap: 1rem; }
  .stats-grid { gap: 1.5rem 2rem; }
  .stat-number { font-size: 2.75rem; }
}
