/* =========================================================
   Long Beach Concrete Leveling - Home Page Styles
   Built to match the approved design (desktop width 1280px)
   ========================================================= */
:root {
  --navy: #0e2a4d;
  --navy-dark: #071b36;
  --footer: #041c36;
  --orange: #f26b1d;
  --orange-dark: #db5a0f;
  --orange-soft: #fef3ea;
  --text: #2a323c;
  --muted: #4d5763;
  --line: #e1e5ea;
  --white: #ffffff;
  --font-head: "Poppins", "Arial Black", Arial, sans-serif;
  --font-body: "Poppins", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font-body); font-size: 13.5px; line-height: 1.5; color: var(--text); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); margin: 0; line-height: 1.15; }
p { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 25px; }

.ico { width: 20px; height: 20px; flex-shrink: 0; }
.ico-sm { width: 15px; height: 15px; }
.ico-xs { width: 12px; height: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; text-transform: uppercase;
  padding: 11px 22px; border-radius: 3px; border: 0; cursor: pointer;
  background: var(--orange); color: var(--white);
  transition: background .2s;
}
.btn:hover { background: var(--orange-dark); }
.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Eyebrows ---------- */
.eyebrow { font-family: var(--font-head); font-weight: 600; font-size: 12.5px; text-transform: uppercase; color: var(--navy); display: inline-flex; align-items: center; gap: 14px; }
.eyebrow-lines::before, .eyebrow-lines::after,
.eyebrow-after::after,
.eyebrow-both::before, .eyebrow-both::after { content: ""; width: 38px; height: 3px; background: var(--orange); }
.eyebrow-both::before { width: 12px; }

.title-line { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 700; white-space: nowrap; margin-bottom: 14px; }
.title-line::after { content: ""; width: 38px; height: 3px; background: var(--orange); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; height: 92px; padding-left: 40px; white-space: nowrap; }
.logo img { width: auto; height: 82px; }

.main-nav { margin-left: 44px; }
.main-nav > ul { display: flex; gap: 24px; }
.main-nav a { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--navy); padding: 34px 0; display: inline-flex; align-items: center; gap: 6px; position: relative; }
.main-nav > ul > li > a.active, .main-nav > ul > li > a:hover { color: var(--orange); }
.main-nav > ul > li > a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 28px; height: 2px; background: var(--orange); }

.has-dropdown { position: relative; }
.dropdown { position: absolute; top: 100%; left: -20px; min-width: 260px; background: var(--white); border-top: 3px solid var(--orange); box-shadow: 0 8px 20px rgba(0,0,0,.12); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { padding: 9px 20px; display: block; font-size: 13.5px; }
.dropdown a:hover { background: var(--orange-soft); }

.header-contact { display: flex; flex-direction: column; gap: 4px; margin-left: auto; }
.hc-row { display: flex; align-items: center; gap: 8px; }
.hc-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; }
.hc-icon .ico { width: 16px; height: 16px; }
.hc-row small { display: block; font-size: 11px; color: var(--navy); line-height: 1.1; }
.hc-phone { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--navy); line-height: 1.1; }
.hc-pin { width: 30px; display: grid; place-items: center; color: var(--orange); }
.hc-pin .ico { width: 24px; height: 24px; }
.hc-address address { font-size: 11.5px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.btn-header { margin-left: 18px; padding: 12px 14px; font-size: 13px; }

/* Phone number in header for tablet / mobile */
.header-phone-mobile { display: none; align-items: center; gap: 8px; color: var(--navy); margin-left: auto; }
.hpm-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; flex-shrink: 0; }
.hpm-icon .ico { width: 17px; height: 17px; }
.hpm-text { display: flex; flex-direction: column; font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.15; white-space: nowrap; }
.hpm-text small { font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--muted); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: var(--navy); border: 0; border-radius: 4px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 22px; height: 2.5px; background: var(--white); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; color: var(--white); overflow: hidden; min-height: 430px; display: flex; align-items: center; background: var(--navy-dark); }
.hero-bg { position: absolute; inset: 0; background: url("../images/hero.jpg") center right / cover no-repeat; }
.hero-bg::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,27,54,.92) 0%, rgba(7,27,54,.84) 32%, rgba(7,27,54,.55) 46%, rgba(7,27,54,0) 58%),
              linear-gradient(0deg, rgba(7,27,54,.35) 0%, rgba(7,27,54,0) 30%); }
.hero-content { position: relative; z-index: 2; padding: 40px 25px 44px 59px; }
.hero-eyebrow { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; text-transform: uppercase; margin-bottom: 4px; }
.hero h1 { color: var(--white); font-weight: 800; font-size: 62px; line-height: 1; letter-spacing: -.5px; }
.hero h1 span { display: block; }
.hero h1 .h1-bottom { color: var(--orange); font-size: 50px; margin-top: 2px; }
.hero-sub { font-family: var(--font-head); font-weight: 600; font-size: 21.5px; margin: 10px 0 8px; }
.hero-text { font-size: 15.5px; line-height: 1.32; max-width: 540px; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 14px 0 10px; }
.section-head { text-align: center; margin-bottom: 14px; }
.section-head h2 { font-size: 34px; font-weight: 800; margin: 10px 0 8px; letter-spacing: -.3px; }
.section-head p { font-size: 15px; color: var(--text); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px 15px; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; box-shadow: 0 1px 5px rgba(13,39,71,.08); }
.service-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 60%; }
.service-card { display: flex; flex-direction: column; }
.sc-body { display: grid; grid-template-columns: 36px 1fr 24px; grid-template-rows: auto 1fr; align-items: center; column-gap: 11px; row-gap: 7px; padding: 10px 12px 14px; flex: 1; }
.sc-icon { width: 36px; height: 36px; color: var(--navy); grid-column: 1; grid-row: 1; }
.sc-text { display: contents; }
.sc-text h3 { grid-column: 2; grid-row: 1; font-size: 15px; font-weight: 600; line-height: 1.2; }
.sc-text p { grid-column: 1 / -1; grid-row: 2; align-self: start; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.sc-arrow { grid-column: 3; grid-row: 1; }
.sc-text h3 a:hover { color: var(--orange); }
.sc-arrow { width: 24px; height: 24px; border: 2px solid var(--orange); border-radius: 50%; color: var(--orange); display: grid; place-items: center; flex-shrink: 0; transition: .2s; }
.sc-arrow .ico { width: 12px; height: 12px; }
.sc-arrow:hover { background: var(--orange); color: var(--white); }

/* =========================================================
   WHY CHOOSE
   ========================================================= */
.why { display: grid; grid-template-columns: 318px 1fr; align-items: center; margin-top: 10px; }
.why-title { background: var(--navy); padding: 12px 20px 16px 40px; height: 122px; clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%); display: flex; align-items: center; }
.why-title h2 { color: var(--white); font-size: 26px; font-weight: 700; line-height: 1.12; }
.why-title h2 span { display: block; }
.why-title h2::after { content: ""; display: block; width: 40px; height: 3px; background: var(--orange); margin-top: 8px; }
.why-list { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; padding: 0 20px 0 10px; max-width: 962px; }
.why-list li { text-align: center; }
.why-icon { width: 40px; height: 40px; color: var(--navy); margin: 0 auto 6px; display: block; }
.why-list h3 { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--navy); line-height: 1.22; }

/* =========================================================
   ABOUT + ESTIMATE + BEFORE/AFTER
   ========================================================= */
.about-estimate { padding: 12px 0 30px; }
.ae-grid { display: grid; grid-template-columns: 406px 1fr 326px; grid-template-rows: auto auto; column-gap: 24px; padding-left: 0; }
.about-img { grid-row: 1; margin-top: 4px; align-self: stretch; }
.about-img img { width: 100%; height: 100%; min-height: 238px; object-fit: cover; object-position: 35% center; }
.about-text { padding-top: 6px; }
.about-text h2 { font-size: 22px; font-weight: 700; line-height: 1.15; margin: 0 0 10px; }
.about-text p { font-size: 13px; line-height: 1.55; color: var(--text); margin-bottom: 10px; }
.about-text .btn { margin-top: 4px; }
.about-text .btn { font-size: 14px; padding: 8px 32px; }

.estimate-card { position: sticky; top: 110px; grid-row: 1; grid-column: 3; background: var(--orange-soft); border-radius: 6px; padding: 12px 14px 12px; box-shadow: 0 2px 12px rgba(0,0,0,.08); align-self: start; }
.estimate-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.ec-sub { font-size: 11px; color: var(--muted); margin: 0 0 8px; }
.field { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 0 12px; margin-bottom: 5px; position: relative; color: var(--navy); }
.field .ico { width: 13px; height: 13px; }
.field input, .field select, .field textarea { flex: 1; border: 0; outline: 0; background: transparent; padding: 4px 0; font-size: 11.5px; color: var(--text); min-width: 0; }
.field ::placeholder { color: #707a86; }
.field:focus-within { border-color: var(--orange); }
.field.invalid { border-color: #d63b3b; }
.field-select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 20px; }
.field-select select:invalid { color: #707a86; }
.select-chev { position: absolute; right: 12px; pointer-events: none; }
.field-textarea { align-items: flex-start; }
.field-textarea .ico { margin-top: 8px; }
.field textarea { resize: vertical; min-height: 34px; }
.estimate-card .btn { margin-top: 8px; padding: 10px; font-size: 14px; }
.form-status { font-size: 12.5px; margin-top: 6px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: #1c7c3c; }
.form-status.err { color: #c62f2f; }

.ba-head { grid-column: 1 / 3; padding: 8px 0 0 37px; align-self: end; }
.ba-head h2 { font-size: 22px; font-weight: 700; }

.before-after { padding: 34px 0 30px; }
.ba-title { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 18px; }
.ba-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ba-item { margin: 0; position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.ba-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.tag { position: absolute; bottom: 10px; font-family: var(--font-head); font-weight: 700; font-size: 11.5px; text-transform: uppercase; color: var(--white); padding: 1px 10px; border-radius: 2px; }
.tag-before { left: 10px; background: #111a26; }
.tag-after { right: 10px; background: var(--orange); }


/* =========================================================
   PRICE ESTIMATES
   ========================================================= */
.pricing { background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%); padding: 36px 0 10px; border-top: 1px solid var(--line); }
.pricing .section-head p { max-width: 760px; margin: 0 auto; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 20px; }
.price-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 6px; padding: 16px 16px 18px; box-shadow: 0 2px 8px rgba(13,39,71,.06); }
.pc-icon { width: 32px; height: 32px; color: var(--navy); display: block; margin-bottom: 8px; }
.price-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.pc-price { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--orange); line-height: 1.2; margin-bottom: 6px; }
.pc-note { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.calc { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: center; background: var(--navy); color: var(--white); border-radius: 8px; padding: 22px 26px; margin-top: 22px; }
.calc-intro h3 { color: var(--white); font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.calc-intro p { font-size: 13px; color: #c9d5e4; }
.calc-form { display: grid; grid-template-columns: 1.1fr .8fr 1fr 1.2fr auto; gap: 14px; align-items: end; }
.calc-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: #c9d5e4; }
.calc-field select, .calc-field input { height: 42px; border: 0; border-radius: 4px; padding: 0 12px; font-size: 14px; color: var(--navy); background: var(--white); width: 100%; }
.calc-field select:focus, .calc-field input:focus { outline: 3px solid var(--orange); outline-offset: 0; }
.calc-result { display: flex; flex-direction: column; gap: 2px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 4px; padding: 6px 12px; min-height: 42px; justify-content: center; }
.cr-label { font-size: 11px; color: #c9d5e4; }
.cr-value { font-family: var(--font-head); font-size: 19px; font-weight: 800; color: var(--white); white-space: nowrap; }
.calc-btn { height: 42px; white-space: nowrap; }
.price-disclaimer { font-size: 12px; color: var(--muted); text-align: center; max-width: 900px; margin: 12px auto 0; }

/* =========================================================
   FAQ + REVIEWS
   ========================================================= */
.faq-reviews { padding: 0 0 40px; }
.fr-grid { display: grid; grid-template-columns: 410px 1fr; gap: 22px; padding-left: 35px; }
.faq-item { border: 1px solid var(--line); border-radius: 2px; margin-bottom: 3px; background: var(--white); }
.faq-item h3 { font-family: var(--font-body); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 12px; padding: 2px 8px; background: none; border: 0; cursor: pointer; font-size: 11.5px; font-weight: 400; color: var(--navy); text-align: left; }
.faq-q .chev { margin-left: auto; width: 10px; height: 10px; transition: transform .2s; }
.faq-q .plus { width: 11px; height: 11px; transition: transform .2s; }
.faq-q[aria-expanded="true"] { color: var(--orange); font-weight: 600; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { font-size: 12px; color: var(--muted); padding: 2px 12px 8px 31px; }

.reviews .title-line { margin-bottom: 10px; }
.review-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.review-card { margin: 0; border: 1px solid var(--line); border-radius: 4px; padding: 12px 8px 12px 10px; background: var(--white); display: flex; flex-direction: column; min-height: 150px; }
.rc-top { display: flex; align-items: center; margin-bottom: 10px; }
.stars { display: flex; gap: 1px; color: #f6a21a; align-self: flex-start; }
.stars svg { width: 16px; height: 16px; }
.review-card p { font-size: 11.5px; color: var(--text); line-height: 1.35; margin-bottom: 10px; flex: 1; }
.review-card h3 { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; color: var(--text); }
.review-card footer span { font-size: 11px; white-space: nowrap; color: var(--text); }


/* =========================================================
   SERVICE AREA
   ========================================================= */
.service-area { background: #f4f7fb; padding: 34px 0 38px; margin-bottom: 26px; }
.service-area .section-head p { max-width: 820px; margin: 0 auto; }
.sa-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; align-items: start; margin-top: 18px; }
.sa-map { height: 650px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #dfe7f0; box-shadow: 0 2px 10px rgba(13,39,71,.08); position: relative; z-index: 0; isolation: isolate; }
.sa-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.sa-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.sa-list h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.city-list { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 6px; margin-bottom: 18px; }
.city-list li { display: flex; }
.city { width: 100%; display: flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; font-size: 12.5px; color: var(--navy); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.city .ico { width: 13px; height: 13px; color: var(--orange); }
.city-name { flex: 1; font-weight: 500; line-height: 1.2; }
.city-mi { font-size: 11px; color: var(--muted); white-space: nowrap; }
.city:hover, .city.active { border-color: var(--orange); background: var(--orange-soft); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--footer); color: #e3e9f1; padding: 12px 0 10px; position: relative; }
.site-footer::before { content: ""; position: absolute; right: 0; bottom: 100%; width: 260px; height: 46px; background: url("../images/footer-palms.png") right bottom / contain no-repeat; pointer-events: none; }
.f-col + .f-col { border-left: 1px solid rgba(255,255,255,.15); padding-left: 18px; }
.f-logo { padding-top: 6px; }
.footer-grid { display: grid; grid-template-columns: 215px 112px 410px 285px 1fr; gap: 0; padding: 0 25px 6px 35px; align-items: start; }
.f-logo img { width: 200px; height: auto; }
.f-col { padding-top: 6px; }
.f-col h3 { color: var(--white); font-family: var(--font-body); font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.f-col li { line-height: 1.32; }
.f-col a, .f-col p { font-size: 12px; }
.f-col a:hover { color: var(--orange); }
.f-services ul { columns: 2; column-gap: 16px; }
.f-services li { white-space: nowrap; }
.f-phone { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 19px !important; color: var(--white); margin-bottom: 4px; }
.f-phone .ico { width: 24px; height: 24px; }
.f-line { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 4px; padding-left: 2px; }
.f-line .ico { width: 18px; height: 18px; margin-top: 2px; }
.socials { display: flex; gap: 7px; margin-bottom: 20px; }
.socials a { width: 28px; height: 28px; border-radius: 5px; display: grid; place-items: center; color: var(--white); }
.socials svg { width: 19px; height: 19px; }
.s-fb { background: #1877f2; }
.s-ig { background: linear-gradient(45deg, #f9a12e, #e1306c 50%, #833ab4); }
.s-yelp { background: #d32323; }
.s-g { background: var(--white); }
.f-follow .btn { padding: 11px 14px; font-size: 13px; white-space: nowrap; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 10px 0; font-size: 12px; text-align: center; color: #9fb0c6; }

.mobile-call { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1240px) {
  .header-inner { padding-left: 25px; }
  .logo img { height: 74px; }
  .main-nav { margin-left: 28px; }
  .main-nav > ul { gap: 22px; }
  .hero-content { padding-left: 35px; }
  .fr-grid, .footer-grid { padding-left: 25px; }
  .ae-grid { grid-template-columns: 340px 1fr 310px; }
  .footer-grid { grid-template-columns: 200px 120px 1.4fr 1.3fr 1fr; gap: 16px; }
}

@media (max-width: 1100px) {
  .header-contact { display: none; }
  .header-phone-mobile { display: flex; order: 2; }
  .main-nav { order: 1; margin-left: 22px; }
  .main-nav > ul { gap: 16px; }
  .btn-header { order: 3; margin-left: 16px; padding: 12px 12px; }
  .nav-toggle { order: 4; }
  .logo img { height: 66px; }
  .why { grid-template-columns: 1fr; }
  .why-title { clip-path: none; height: auto; justify-content: center; text-align: center; padding: 20px; }
  .why-title h2 span { display: inline; }
  .why-title h2::after { margin: 8px auto 0; }
  .why-list { grid-template-columns: repeat(4, 1fr); padding: 22px 20px; gap: 20px; max-width: none; }
  .ae-grid { grid-template-columns: 1fr 1fr; padding-left: 25px; row-gap: 20px; }
  .about-img img { border-radius: 4px; max-height: 420px; }
  .estimate-card { position: static; grid-column: 1 / -1; grid-row: auto; max-width: 640px; width: 100%; justify-self: center; }
  .fr-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .sa-grid { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc-form { grid-template-columns: repeat(3, 1fr); }
  .calc-result { grid-column: 1 / 3; }
  .sa-map { height: 400px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .f-services li { white-space: normal; }
  .f-col + .f-col { border-left: 0; padding-left: 0; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; margin-left: 14px; }
  .btn-header { display: none; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--white); box-shadow: 0 10px 20px rgba(0,0,0,.1); max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .main-nav > ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a.active::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 0 14px; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .hero-bg::before { background: linear-gradient(90deg, rgba(7,27,54,.92) 0%, rgba(7,27,54,.75) 60%, rgba(7,27,54,.45) 100%); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { padding-bottom: 54px; }
  .container, .header-inner { padding-left: 16px; padding-right: 16px; }
  .logo img { height: 52px; }
  .hpm-text { font-size: 15px; }
  .hpm-text small { font-size: 10px; }
  .hpm-icon { width: 30px; height: 30px; }
  .nav-toggle { margin-left: 10px; width: 40px; height: 40px; }
  .header-inner { height: 68px; }
  .hero-content { padding: 32px 16px 36px; }
  .hero h1 { font-size: 42px; }
  .hero h1 .h1-bottom { font-size: 34px; }
  .hero-sub { font-size: 18px; }
  .hero-text { font-size: 15px; }
  .section-head h2 { font-size: 26px; }
  .service-grid, .ae-grid { grid-template-columns: 1fr; }
  .ae-grid { padding-left: 16px; }
  .why-list { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .fr-grid, .footer-grid { padding-left: 16px; padding-right: 16px; }
  .title-line { white-space: normal; }
  .faq-q { font-size: 13px; padding: 6px 8px; }
  .review-grid { grid-template-columns: 1fr; }
  .city-list { grid-template-columns: repeat(2, 1fr); }
  .calc { padding: 20px 16px; }
  .calc-form { grid-template-columns: 1fr 1fr; }
  .calc-form .calc-field:first-child, .calc-result, .calc-btn { grid-column: 1 / -1; }
  .pc-price { font-size: 20px; }
  .sa-map { height: 320px; }
  .review-card { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-logo, .f-services, .f-contact { grid-column: 1 / -1; }
  .f-col + .f-col { border-left: 0; padding-left: 0; }
  .site-footer::before { display: none; }
  .mobile-call { display: flex; align-items: center; justify-content: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--orange); color: var(--white); font-family: var(--font-head); font-weight: 700; padding: 15px; }
}

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

/* ---------- Footer legal bar ---------- */
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 6px; padding: 12px 0; font-size: 12.5px; color: #9fb0c6; }
.footer-legal .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-left: 35px; }
.footer-legal nav { display: flex; gap: 20px; }
.footer-legal a { color: #c9d5e4; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--orange); }
.form-legal { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.form-legal a { color: var(--navy); text-decoration: underline; }
@media (max-width: 640px) { .footer-legal .container { flex-direction: column; padding-left: 16px; } }
