/* Elvaroms — Home Repair & Handyman Services */

:root {
  --navy: #1b263b;
  --navy-dark: #121a29;
  --navy-light: #2a3a57;
  --amber: #ed8b2e;
  --amber-dark: #c76d18;
  --amber-light: #ffb067;
  --ink: #1f2430;
  --gray-700: #4a5264;
  --gray-500: #6b7385;
  --gray-300: #d7dbe3;
  --gray-100: #f4f6f9;
  --white: #ffffff;
  --success: #1f8a4c;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(18, 26, 41, 0.10);
  --shadow-sm: 0 4px 14px rgba(18, 26, 41, 0.08);
  --font-head: 'Poppins', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--amber-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.22; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--gray-700); }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 0.97rem;
  border: 2px solid transparent; cursor: pointer; transition: all .18s ease;
  text-decoration: none;
}
.btn-primary { background: var(--amber); color: var(--white); }
.btn-primary:hover { background: var(--amber-dark); text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); text-decoration: none; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); text-decoration: none; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 500; background: var(--white); box-shadow: var(--shadow-sm); }
.topbar { background: var(--navy); color: #cdd5e3; font-size: 0.85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; flex-wrap: wrap; gap: 6px; }
.topbar-contact { display: flex; gap: 20px; }
.topbar-contact a { color: #e8ecf3; }
.topbar-contact a:hover { color: var(--amber-light); }
.topbar-meta { color: #a9b2c4; }

.navbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--navy); }
.brand-tag { font-size: 0.68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--amber-dark); font-weight: 700; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav > ul { display: flex; gap: 26px; align-items: center; }
.primary-nav > ul > li > a { color: var(--navy); font-weight: 600; font-size: 0.97rem; padding: 6px 2px; }
.primary-nav > ul > li > a:hover, .primary-nav > ul > li > a.active { color: var(--amber-dark); text-decoration: none; }
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: -16px; background: var(--white);
  box-shadow: var(--shadow); border-radius: var(--radius); padding: 10px; min-width: 240px; z-index: 50;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 0.93rem; }
.dropdown li a:hover { background: var(--gray-100); color: var(--amber-dark); text-decoration: none; }
.nav-cta { white-space: nowrap; padding: 11px 22px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* Hero */
.hero { position: relative; color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,26,41,0.92) 30%, rgba(18,26,41,0.55) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 100px 0 90px; max-width: 680px; }
.hero .eyebrow { color: var(--amber-light); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 14px; display: block; }
.hero h1 { color: var(--white); }
.hero p.lead { color: #dde3ee; font-size: 1.12rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust div { font-size: 0.85rem; color: #c6cedd; }
.hero-trust strong { display: block; color: var(--white); font-size: 1.5rem; font-family: var(--font-head); }

/* Page header (interior pages) */
.page-hero { background: var(--navy); color: var(--white); padding: 64px 0 54px; text-align: center; }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: #c6cedd; max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: var(--amber-light); margin-bottom: 14px; }
.breadcrumb a { color: #c6cedd; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--gray-100); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { color: var(--amber-dark); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; font-size: 0.82rem; }

/* Grids */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 30px; border: 1px solid var(--gray-300);
}
.service-card { display: flex; flex-direction: column; gap: 12px; transition: transform .18s ease, box-shadow .18s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .icon-badge { width: 54px; height: 54px; border-radius: 14px; background: #fdeee0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.service-card h3 a { color: var(--navy); }
.service-card h3 a:hover { color: var(--amber-dark); text-decoration: none; }
.service-card .more { font-weight: 700; font-size: 0.9rem; margin-top: auto; }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon-badge { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.feature h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature p { margin: 0; font-size: 0.95rem; }

.step { text-align: center; }
.step .step-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--amber); color: #fff; font-family: var(--font-head);
  font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}

/* Image + text split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split .eyebrow { color: var(--amber-dark); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; font-size: 0.82rem; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--gray-700); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 800; background: #e4f5ea; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }

/* Stats bar */
.stats-bar { background: var(--navy); color: var(--white); padding: 44px 0; }
.stats-bar .grid-4 { text-align: center; }
.stats-bar strong { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--amber-light); }
.stats-bar span { font-size: 0.88rem; color: #c6cedd; }

/* Testimonial-free trust block */
.trust-badges { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.trust-badge { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--gray-300); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--navy); }

/* CTA band */
.cta-band { position: relative; color: var(--white); text-align: center; overflow: hidden; }
.cta-band-bg { position: absolute; inset: 0; }
.cta-band-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band-bg::after { content: ""; position: absolute; inset: 0; background: rgba(18,26,41,0.88); }
.cta-band-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #dde3ee; }
.cta-band .btn-group { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--gray-300); }
.faq-item:first-child { border-top: 1px solid var(--gray-300); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 4px; font-weight: 700; font-size: 1.02rem; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-body); }
.faq-q .plus { font-size: 1.4rem; color: var(--amber); flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] .faq-q .plus { transform: rotate(45deg); }
.faq-a { padding: 0 4px 20px; color: var(--gray-700); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
input, select, textarea {
  padding: 13px 14px; border: 1.5px solid var(--gray-300); border-radius: 8px; font-family: var(--font-body);
  font-size: 0.97rem; color: var(--ink); background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); }
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--gray-500); }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 600; }
.alert-success { background: #e4f5ea; color: #1b6b3c; border: 1px solid #b7e3c7; }
.alert-error { background: #fdecec; color: #b3261e; border: 1px solid #f6c4c1; }

/* Contact info cards */
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.contact-info-card { text-align: center; padding: 28px 20px; }
.contact-info-card .icon-badge { margin: 0 auto 14px; }

/* Service area list */
.areas-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.areas-list li { background: var(--white); border: 1px solid var(--gray-300); border-radius: 8px; padding: 12px 16px; font-weight: 600; color: var(--navy); text-align: center; }

/* Legal pages */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { margin-top: 2em; }
.legal-content h3 { margin-top: 1.4em; }
.legal-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.legal-content ul li { margin-bottom: 0.5em; color: var(--gray-700); }
.legal-updated { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 2em; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.legal-content table th, .legal-content table td { border: 1px solid var(--gray-300); padding: 10px 14px; text-align: left; font-size: 0.92rem; }
.legal-content table th { background: var(--gray-100); }

/* 404 */
.error-page { text-align: center; padding: 120px 0; }
.error-page .code { font-family: var(--font-head); font-size: 6rem; font-weight: 800; color: var(--amber); line-height: 1; }

/* Sitemap page */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.sitemap-grid h3 { border-bottom: 2px solid var(--gray-300); padding-bottom: 10px; }
.sitemap-grid li { padding: 6px 0; }

footer.site-footer { background: var(--navy-dark); color: #aab3c4; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 36px; padding: 64px 24px 40px; }
.footer-col h3 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #aab3c4; }
.footer-col a:hover { color: var(--amber-light); }
.footer-brand p { color: #8f9ab0; font-size: 0.9rem; }
.footer-legal-name { font-size: 0.82rem; color: #717c92; }
.footer-bottom { border-top: 1px solid #263349; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: #717c92; }
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal-links a { font-size: 0.82rem; }

/* Responsive */
@media (max-width: 980px) {
  .primary-nav {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 90px 28px 28px; box-shadow: var(--shadow);
    transition: right .25s ease; overflow-y: auto;
  }
  .primary-nav.open { right: 0; }
  .primary-nav > ul { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .primary-nav > ul > li { width: 100%; }
  .dropdown { position: static; box-shadow: none; display: none; padding-left: 10px; }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-cta { margin-top: 14px; width: 100%; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .areas-list { grid-template-columns: repeat(2, 1fr); }
  .sitemap-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-inner { padding: 70px 0 60px; }
  .topbar-inner { justify-content: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; padding: 48px 24px 30px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
