/* The Local Carpet Man – styles */
:root {
  --blue: #1a2f8d;
  --blue-deep: #111f63;
  --blue-soft: #e8ebf7;
  --cream: #f8f4ed;
  --oat: #efe7da;
  --wool: #c39a5c;
  --ink: #181b2c;
  --muted: #5b5f72;
  --line: #e4ddd0;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(17, 31, 99, .28);
  --head: "League Spartan", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; margin: 0; letter-spacing: -.01em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 16px; padding: 15px 24px; border-radius: 999px; transition: transform .2s, background .2s, box-shadow .2s; border: 0; cursor: pointer; font-family: var(--body); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 22px -10px rgba(26, 47, 141, .7); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn-ghost { background: var(--white); color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .35); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 50px; height: 50px; background: var(--blue); color: var(--white); display: grid; place-content: center; font-family: var(--head); font-weight: 800; font-size: 19px; line-height: .95; letter-spacing: .14em; text-align: center; padding-left: .14em; border-radius: 4px; }
.brand-mark span { display: block; }
.brand-word { font-family: var(--head); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); line-height: 1.1; display: flex; flex-direction: column; }
.brand-word b { font-size: 21px; font-weight: 800; color: var(--blue); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-weight: 600; font-size: 15.5px; }
.nav a { position: relative; color: var(--ink); }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--blue); transition: right .25s; }
.nav a:not(.nav-cta):hover::after, .nav a.active::after { right: 0; }
.nav-cta { display: none; }
.header-call { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 20px; color: var(--blue); }
.hc-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; }
.hc-icon svg { width: 18px; height: 18px; }
.hc-text { display: flex; flex-direction: column; line-height: 1.05; }
.hc-text small { font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.menu-btn { display: none; background: none; border: 0; color: var(--blue); padding: 6px; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: #f4f2ee url(../images/hero.jpg) center right / cover no-repeat; padding: 96px 0 110px; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 34%, rgba(255,255,255,.35) 58%, rgba(255,255,255,0) 75%); pointer-events: none; }
.hero-grid { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero-copy { max-width: 600px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--blue); background: var(--white); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; margin: 0 0 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wool); box-shadow: 0 0 0 4px rgba(195, 154, 92, .2); }
.hero h1 { font-size: clamp(40px, 5vw, 62px); font-weight: 800; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--blue); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; background: var(--wool); opacity: .45; z-index: -1; border-radius: 4px; }
.lead { font-size: 19px; color: var(--muted); margin: 22px 0 30px; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 28px; font-weight: 600; font-size: 15.5px; }
.hero-ticks li { display: flex; align-items: center; gap: 9px; }
.hero-ticks svg { width: 20px; height: 20px; padding: 3px; color: var(--white); background: var(--blue); border-radius: 50%; }

.hv-review { flex: 0 0 320px; margin: 0 0 6px; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-radius: 16px; padding: 16px 18px; box-shadow: 0 22px 44px -16px rgba(17, 31, 99, .4); border-left: 4px solid var(--wool); }
.hv-review p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; font-weight: 500; }
.stars { display: inline-flex; gap: 2px; color: #e6a817; }
.stars svg { width: 16px; height: 16px; }

/* Trust */
.trust { background: var(--blue); color: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 24px 20px; }
.trust-item + .trust-item { border-left: 1px solid rgba(255, 255, 255, .16); }
.trust-item p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .78); line-height: 1.35; }
.trust-item b { display: block; color: var(--white); font-size: 16.5px; font-family: var(--head); font-weight: 700; letter-spacing: .01em; margin-bottom: 2px; }
.ti-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.ti-icon svg { width: 22px; height: 22px; }
.ti-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #fff; }

/* Sections */
.section { padding: 100px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-head.split > p { max-width: 320px; margin: 0; }
.section-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--wool) !important; margin: 0 0 14px !important; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.kicker.light { color: #e4c48f !important; }
h2 { font-size: clamp(34px, 4vw, 50px); font-weight: 800; }
h2 span { color: var(--blue); }

/* Services */
.services { background: var(--white); }
.svc-feature { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-img { aspect-ratio: 4 / 3; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .svc-img img { transform: scale(1.04); }
.svc-body { padding: 20px 22px 24px; }
.svc-body h3 { font-size: 22px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.svc-body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.svc-list { margin-top: 26px; background: var(--cream); border-radius: var(--radius); padding: 34px 36px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px 48px; align-items: start; }
.svc-list h3 { grid-column: 1 / -1; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.svc-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.svc-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.svc-list li::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); flex-shrink: 0; }
.svc-split { display: grid; gap: 14px; }
.svc-split p { margin: 0; display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: 14px; padding: 16px 18px; font-size: 15px; color: var(--muted); line-height: 1.4; }
.svc-split svg { width: 26px; height: 26px; color: var(--blue); margin-top: 2px; }
.svc-split b { display: block; color: var(--ink); font-size: 16.5px; }

/* Gallery */
.work { background: var(--cream); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 16px; }
.g { padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--oat); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g:hover img { transform: scale(1.05); }
.g1 { grid-column: span 2; grid-row: span 2; }
.g5, .g6, .g8, .g9 { grid-column: span 2; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1000px, 94vw); }
.lightbox::backdrop { background: rgba(10, 14, 40, .85); }
.lightbox img { border-radius: 12px; max-height: 86vh; width: auto; }
.lb-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }

/* About */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about-photo::before { content: ""; position: absolute; inset: 28px -22px -22px 28px; border-radius: 24px; background: var(--blue); z-index: -1; }
.about-tag { position: absolute; top: 26px; left: -18px; background: var(--white); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; line-height: 1.25; box-shadow: var(--shadow); }
.about-tag svg { width: 30px; height: 30px; color: var(--wool); }
.about-copy > p:not(.kicker) { color: var(--muted); margin: 18px 0 0; }
.about-copy h2 { margin-bottom: 4px; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.steps li { display: flex; gap: 14px; background: var(--cream); border-radius: 14px; padding: 16px 18px; font-size: 15px; color: var(--muted); line-height: 1.4; }
.steps li > span { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--white); font-family: var(--head); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; padding-top: 2px; }
.steps b { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 2px; }

/* Reviews */
.reviews { background: linear-gradient(180deg, #fff 0%, var(--blue-soft) 100%); }
.review-grid { columns: 3 320px; column-gap: 24px; }
.review { break-inside: avoid; margin: 0 0 24px; background: var(--white); border-radius: var(--radius); padding: 30px 28px 24px; position: relative; border: 1px solid #dfe3f2; }
.rq { display: block; width: 30px; height: 30px; color: var(--wool); opacity: .55; margin-bottom: 10px; }
.review blockquote { margin: 0; font-size: 16.5px; line-height: 1.6; }
.review figcaption { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--muted); }

/* Areas */
.areas-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.areas-grid > div > p { color: var(--muted); font-size: 18px; margin: 16px 0 28px; }
.area-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.area-chips li { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; }
.area-chips li:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Contact */
.contact { background: var(--blue); color: var(--white); padding: 96px 0; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,47,141,.97) 0%, rgba(26,47,141,.92) 50%, rgba(26,47,141,.78) 100%), url(../images/cta-bg.jpg) center right / cover; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; }
.contact h2 { color: var(--white); }
.contact-copy > p { color: rgba(255, 255, 255, .8); font-size: 18px; margin: 16px 0 32px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { width: 46px; height: 46px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .12); }
.contact-list small { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #e4c48f; font-weight: 700; }
.contact-list a, .contact-list span { display: block; font-family: var(--head); font-weight: 700; font-size: 21px; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

.quote-form { background: var(--white); color: var(--ink); border-radius: 22px; padding: 34px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45); }
.quote-form h3 { font-size: 27px; font-weight: 800; color: var(--blue); margin-bottom: 18px; }
.f { margin-bottom: 14px; }
.f label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.f input, .f select, .f textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fcfbf8; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.f.invalid input, .f.invalid textarea { border-color: #c0392b; }
.form-note { margin: 12px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.form-status { margin: 8px 0 0; font-size: 14px; font-weight: 600; text-align: center; color: var(--blue); }
.form-status:empty { display: none; }
.form-status.error { color: #c0392b; }

/* Footer */
.footer { background: var(--cream); padding: 40px 0 28px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 600; font-size: 15px; }
.footer-nav a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; font-size: 14px; color: var(--muted); }
.footer-bottom p { margin: 0; }

.mobile-bar { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1080px) {
  .header-call .hc-text small { display: none; }
  .nav { gap: 20px; }
  .hero-grid { flex-direction: column; align-items: flex-start; }
  .hv-review { flex: none; max-width: 440px; }
  .svc-feature { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .areas-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { max-width: 620px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .header-call { margin-left: auto; }
  .nav { position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
  .nav-cta { display: block; margin-top: 14px; text-align: center; background: var(--blue); color: var(--white) !important; border-radius: 999px; border: 0 !important; }
  .svc-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g1 { grid-row: span 1; }
  .section-head.split { display: block; }
  .section-head.split > p { margin-top: 14px; max-width: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { height: 68px; gap: 12px; }
  .nav { inset: 68px 0 auto 0; }
  html { scroll-padding-top: 72px; }
  .brand-mark { width: 42px; height: 42px; font-size: 16px; }
  .brand-word { font-size: 11px; }
  .brand-word b { font-size: 17px; }
  .header-call .hc-text { display: none; }
  .hc-icon { width: 40px; height: 40px; }
  .hero { padding: 36px 0 0; background-image: none; }
  .hero::before { display: none; }
  .hero::after { content: ""; display: block; height: 280px; background: url(../images/hero.jpg) 72% center / cover; }
  .hero-grid { gap: 24px; z-index: 1; }
  .lead { font-size: 17px; }
  .eyebrow { font-size: 12.5px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-ticks { grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 14px; }
  .hv-review { width: 100%; max-width: none; position: relative; z-index: 2; margin-bottom: -56px; }

  .trust-item { padding: 18px 10px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .trust-item b { font-size: 15px; }
  .trust-item p { font-size: 13px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 16.5px; }
  .svc-feature { grid-template-columns: 1fr; gap: 18px; }
  .svc-img { aspect-ratio: 16 / 10; }
  .svc-list { padding: 26px 22px; }
  .svc-list ul { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 140px; gap: 10px; }
  .steps { grid-template-columns: 1fr; }
  .about-photo::before { inset: 18px -10px -14px 18px; }
  .about-tag { left: 10px; top: 14px; }
  .quote-form { padding: 24px 20px; }
  .contact { padding: 68px 0; }
  .contact-list a, .contact-list span { font-size: 18px; }
  .footer-bottom { flex-direction: column; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -12px rgba(0, 0, 0, .25); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 999px; font-weight: 700; }
  .mobile-bar svg { width: 18px; height: 18px; }
  .mb-call { background: var(--blue); color: var(--white); }
  .mb-quote { background: var(--cream); color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
}
