/* ============================================================
   SR Contractor LLC — styles.css
   Palette pulled from the business card: royal-blue arc + slate
   roofs. Warm amber is added for high-contrast call-to-action
   buttons (drives quote requests). No external fonts/CSS — keeps
   the page fast (good for Core Web Vitals + SEO).
   ============================================================ */

:root {
  /* Brand */
  --blue:        #1f54a3;   /* card arc blue */
  --blue-dark:   #15396e;
  --blue-darker: #0f2b54;
  --slate:       #45526b;   /* card roof gray */
  --amber:       #f5921b;   /* CTA */
  --amber-dark:  #d97b06;

  /* Neutrals */
  --ink:    #16202f;
  --body:   #3c4658;
  --muted:  #6b7689;
  --line:   #e3e8f0;
  --bg:     #ffffff;
  --bg-alt: #f5f8fc;
  --bg-deep:#0f2b54;

  /* System font stack — fast, no network request */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --maxw: 1160px;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(15,43,84,.08), 0 1px 2px rgba(15,43,84,.06);
  --shadow:    0 10px 30px rgba(15,43,84,.10);
  --shadow-lg: 0 24px 60px rgba(15,43,84,.16);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .6rem;
}
.lead { font-size: 1.12rem; color: var(--body); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Skip link (accessibility) */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: #2a1a02; box-shadow: 0 8px 20px rgba(245,146,27,.35); }
.btn--primary:hover { background: var(--amber-dark); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { background: #fff; color: var(--blue-dark); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--outline:hover { border-color: var(--blue); }
.btn--lg { padding: 18px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(150%) blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__logo { width: 42px; height: 42px; flex: none; }
.brand__name { font-size: 1.06rem; line-height: 1.05; }
.brand__name span { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; color: var(--blue); text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; }
.nav__links a {
  color: var(--ink); font-weight: 600; font-size: .97rem; padding: 9px 13px; border-radius: 8px;
}
.nav__links a:hover { background: var(--bg-alt); text-decoration: none; color: var(--blue-dark); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--blue-dark); white-space: nowrap; }
.nav__phone:hover { text-decoration: none; color: var(--blue); }

/* Language toggle */
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .82rem;
}
.lang a { padding: 6px 11px; font-weight: 700; color: var(--muted); }
.lang a:hover { text-decoration: none; background: var(--bg-alt); }
.lang a[aria-current="true"] { background: var(--blue); color: #fff; }

/* Mobile nav toggle */
.nav__toggle {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--ink);
}
.nav__toggle svg { width: 28px; height: 28px; }

@media (max-width: 920px) {
  .nav__toggle { display: inline-flex; }
  .nav__links, .nav__actions { display: none; }
  .mobile-menu.is-open { display: block; }
}
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu ul { list-style: none; padding: 8px 0; }
.mobile-menu a { display: block; padding: 13px 22px; color: var(--ink); font-weight: 600; }
.mobile-menu a:hover { background: var(--bg-alt); text-decoration: none; }
.mobile-menu .mobile-cta { padding: 14px 22px 20px; display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,43,84,.78), rgba(15,43,84,.92)),
    url("../assets/hero.svg") center/cover no-repeat,
    linear-gradient(135deg, var(--blue-darker), var(--blue));
}
.hero__inner { padding: clamp(56px, 9vw, 104px) 0; max-width: 760px; }
.hero h1 { color: #fff; }
.hero p { color: #e7eef9; font-size: 1.2rem; max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.18); list-style: none; color: #dbe6f7; font-weight: 600; font-size: .96rem;
}
.hero__trust li { display: flex; align-items: center; gap: 9px; }
.hero__trust svg { width: 20px; height: 20px; color: var(--amber); flex: none; }

/* ---------- Services ---------- */
.grid { display: grid; gap: 20px; }
.services__grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 38px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f5; }
.service-card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #e9f1fc, #d6e6fa); color: var(--blue-dark); margin-bottom: 16px;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: .35rem; }
.service-card p { margin: 0; font-size: .96rem; color: var(--muted); }

/* ---------- Feature / why-us ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.feature-list { list-style: none; display: grid; gap: 18px; margin-top: 24px; }
.feature-list li { display: flex; gap: 14px; }
.feature-list .tick {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: #e7f6ec; color: #1d9d52;
  display: grid; place-items: center;
}
.feature-list .tick svg { width: 18px; height: 18px; }
.feature-list strong { display: block; color: var(--ink); }
.feature-list span { color: var(--muted); font-size: .97rem; }

.panel {
  background: linear-gradient(150deg, var(--blue-dark), var(--blue-darker));
  color: #fff; border-radius: 20px; padding: 38px 34px; box-shadow: var(--shadow-lg);
}
.panel h3 { color: #fff; font-size: 1.45rem; }
.panel p { color: #d7e3f6; }
.panel .owner { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.panel .owner__avatar {
  width: 60px; height: 60px; border-radius: 50%; background: var(--amber); color: #2a1a02;
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; flex: none;
}
.panel .owner__name { font-weight: 800; color: #fff; font-size: 1.1rem; }
.panel .owner__title { color: #bcd0ee; font-size: .9rem; }

/* ---------- Service area ---------- */
.area__cities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; }
.area__cities li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font-weight: 600; font-size: .94rem; color: var(--blue-dark); box-shadow: var(--shadow-sm);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.step__num {
  counter-increment: step; width: 40px; height: 40px; border-radius: 50%; background: var(--blue);
  color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px;
}
.step__num::before { content: counter(step); }

/* ---------- Reviews ---------- */
.reviews__grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 34px; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
}
.review__stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 10px; }
.review p { font-style: italic; color: var(--body); }
.review__by { font-weight: 700; color: var(--ink); font-style: normal; margin-top: 8px; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-top: 34px; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 22px 20px; color: var(--body); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
.contact-method { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-method__icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; background: #e9f1fc; color: var(--blue-dark);
  display: grid; place-items: center;
}
.contact-method__icon svg { width: 24px; height: 24px; }
.contact-method h3 { margin: 2px 0 3px; font-size: 1.08rem; }
.contact-method a { font-weight: 700; }
.contact-method .note { color: var(--muted); font-size: .92rem; }
.badge-es {
  display: inline-block; background: #e7f6ec; color: #1d7a44; font-weight: 700; font-size: .78rem;
  padding: 3px 10px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit;
  color: var(--ink); background: #fff; transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,84,163,.15);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: #1d9d52; }
.form-status.err { color: #cc3344; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; border-radius: 20px;
  padding: clamp(34px, 5vw, 56px); text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe6f7; max-width: 52ch; margin-inline: auto; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: #c4d2e8; padding: 56px 0 28px; }
.site-footer a { color: #c4d2e8; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }
.footer__brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 800; margin-bottom: 14px; }
.footer__brand .brand__logo { width: 40px; height: 40px; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .86rem; color: #8ea3c4;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
