/* ==========================================================================
   LL Carpentry & Trim modern rebuild (navy + wood palette from the
   original site, refreshed)
   ========================================================================== */
:root {
  --navy-950: #0d1728;
  --navy-900: #142440;
  --navy-800: #1c3157;
  --navy-700: #2c497d;   /* original brand blue */
  --navy-600: #3c5c96;
  --navy-100: #dbe4f2;
  --wood-500: #c78c4a;
  --wood-600: #b0763a;
  --wood-100: #f3e7d8;
  --ink: #22293a;
  --muted: #5c6779;
  --paper: #f7f6f2;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(13, 23, 40, .08);
  --shadow-md: 0 10px 30px rgba(13, 23, 40, .14);
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.icn { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ------------------------------- buttons ------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--wood-500); color: #fff; }
.btn-accent:hover { background: var(--wood-600); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline { background: transparent; color: var(--navy-700); border-color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ------------------------------- header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13, 23, 40, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  width: min(1240px, 94%); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .55rem 0;
}
.brand-logo { height: 62px; width: auto; }
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a {
  color: #dfe6f2; font-weight: 600; font-size: .95rem;
  padding: .35rem 0; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--wood-500); transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.lang-toggle {
  color: #dfe6f2; font-weight: 700; font-size: .85rem;
  border: 1.5px solid rgba(255,255,255,.35); border-radius: 8px;
  padding: .3rem .6rem; transition: background .18s;
}
.lang-toggle:hover { background: rgba(255,255,255,.15); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-burger span { display: block; width: 24px; height: 2.5px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .25s; }

/* -------------------------------- hero --------------------------------- */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: grid; place-items: center; overflow: hidden;
  color: #fff; text-align: center;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04);
}
.hero-slide.is-active { opacity: 1; animation: heroZoom 7s ease forwards; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1.0); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,23,40,.55) 0%, rgba(13,23,40,.35) 45%, rgba(13,23,40,.78) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 7rem 1rem 5rem; max-width: 860px; }
.kicker {
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--wood-500);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1.05;
  text-shadow: 0 4px 30px rgba(0,0,0,.45);
}
.hero h1 span { color: var(--wood-500); }
.hero-sub {
  margin: 1.4rem auto 2.2rem; max-width: 620px;
  font-size: clamp(1rem, 2vw, 1.2rem); color: #e8edf6;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-dots { display: flex; gap: .6rem; justify-content: center; margin-top: 3rem; }
.hero-dots button {
  width: 34px; height: 4px; border-radius: 4px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.35); transition: background .25s;
}
.hero-dots button.is-active { background: var(--wood-500); }

/* ----------------------------- trust strip ----------------------------- */
.trust-strip {
  background: var(--navy-900); color: #fff;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; border-top: 1px solid rgba(255,255,255,.06);
}
.trust-item {
  background: var(--navy-900); padding: 1.5rem 1rem; text-align: center;
  display: grid; gap: .15rem; outline: 1px solid rgba(255,255,255,.06);
}
.trust-item strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .02em; }
.trust-item span { color: #9fb0cc; font-size: .85rem; }

/* ------------------------------ sections ------------------------------- */
.section { padding: 5.5rem 0; }
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--navy-900);
  line-height: 1.12; margin-bottom: 1.2rem;
}
.section-title span { color: var(--wood-500); }
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 1.4rem; }
.center { text-align: center; margin-inline: auto; }

/* -------------------------------- about -------------------------------- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; }
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
}
.about-badge {
  position: absolute; left: -1rem; bottom: 1.6rem;
  background: var(--navy-900); color: #fff;
  border-left: 4px solid var(--wood-500);
  padding: .9rem 1.3rem; border-radius: 10px; box-shadow: var(--shadow-md);
  display: grid; gap: .1rem;
}
.about-badge strong { font-family: var(--font-display); font-size: 1.05rem; }
.about-badge span { font-size: .8rem; color: #b9c6dd; }
.about-copy > p { color: var(--muted); }
.about-cards { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.about-card {
  background: var(--paper); border: 1px solid #e8e5dd; border-radius: var(--radius);
  padding: 1.3rem 1.4rem; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.about-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.about-card-icon {
  grid-row: span 2; width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy-700); display: grid; place-items: center;
}
.about-card-icon svg { width: 24px; height: 24px; fill: var(--wood-500); }
.about-card h3 { font-family: var(--font-display); color: var(--navy-900); font-size: 1.1rem; }
.about-card p { color: var(--muted); font-size: .93rem; }

/* ------------------------------ services ------------------------------- */
.services { background: var(--paper); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem;
}
.service-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3.1; display: flex; align-items: flex-end;
  background-image: linear-gradient(180deg, rgba(13,23,40,0) 30%, rgba(13,23,40,.88) 100%), var(--img);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-body { padding: 1.4rem; color: #fff; }
.service-body h3 {
  font-family: var(--font-display); font-size: 1.25rem; margin-bottom: .25rem;
}
.service-body h3::after {
  content: ""; display: block; width: 34px; height: 3px; margin-top: .4rem;
  background: var(--wood-500); border-radius: 3px; transition: width .25s ease;
}
.service-card:hover .service-body h3::after { width: 60px; }
.service-body p { font-size: .88rem; color: #d6ddea; }

/* -------------------------- karino closets banner ----------------------- */
.karino { background: var(--paper); padding: 0 0 5.5rem; }
.karino-banner {
  background: linear-gradient(115deg, var(--navy-950), var(--navy-700));
  color: #fff; border-radius: var(--radius);
  border-left: 5px solid var(--wood-500); box-shadow: var(--shadow-md);
  padding: 2.4rem 2.8rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.karino-banner h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem;
}
.karino-banner p { color: #c9d4e6; max-width: 560px; }
.karino-banner .kicker { margin-bottom: .4rem; }
.karino-banner .btn { flex: none; }

/* ----------------------------- service area ---------------------------- */
.area { background: var(--white); }
.area-layout {
  display: grid; grid-template-columns: 8fr 4fr; gap: 2rem; margin-top: 2.6rem;
  align-items: stretch;
}
.map-wrap {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid #e3e0d8; background: #fff; display: flex; flex-direction: column;
}
#serviceMap { width: 100%; flex: 1; min-height: 520px; z-index: 1; }
.map-legend {
  display: flex; gap: 1.4rem; flex-wrap: wrap; padding: .8rem 1.2rem;
  background: #fff; border-top: 1px solid #eee9df; font-size: .85rem; color: var(--muted);
}
.legend-item { display: inline-flex; align-items: center; gap: .5rem; }
.legend-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend-swatch.county { background: rgba(44, 73, 125, .25); border: 1.5px solid var(--navy-700); }
.legend-swatch.pin { background: var(--navy-700); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.legend-swatch.office { background: var(--wood-500); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.area-side { display: flex; flex-direction: column; gap: 1.4rem; }
.area-side h3 { font-family: var(--font-display); color: var(--navy-900); font-size: 1.2rem; }
.county-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.county-chips li {
  background: var(--navy-100); color: var(--navy-800);
  font-weight: 600; font-size: .88rem; padding: .42rem .9rem; border-radius: 999px;
  border: 1px solid #c8d5ea; transition: background .2s, color .2s; cursor: default;
}
.county-chips li:hover { background: var(--navy-700); color: #fff; }
.office-card {
  background: var(--navy-900); color: #fff; border-radius: var(--radius);
  padding: 1.5rem; display: grid; gap: .7rem; margin-top: auto;
  border-left: 4px solid var(--wood-500);
}
.office-card h4 { font-family: var(--font-display); font-size: 1.05rem; }
.office-card p { color: #b9c6dd; font-size: .95rem; }
.office-card .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); justify-self: start; }
.office-card .btn-outline:hover { background: var(--wood-500); border-color: var(--wood-500); }

/* Leaflet popup tweaks */
.leaflet-popup-content-wrapper { border-radius: 10px; font-family: var(--font-body); }
.leaflet-popup-content { margin: .7rem 1rem; }
.leaflet-popup-content strong { font-family: var(--font-display); color: var(--navy-900); }
.leaflet-popup-content small { color: var(--muted); }
.pin-marker { filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.county-label {
  background: transparent; border: 0; box-shadow: none;
  font-family: var(--font-display); font-weight: 800; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--navy-800);
  text-shadow:
    0 1px 4px rgba(255,255,255,.95), 0 -1px 4px rgba(255,255,255,.95),
    1px 0 4px rgba(255,255,255,.95), -1px 0 4px rgba(255,255,255,.95);
  transition: color .2s ease, transform .2s ease;
  pointer-events: none;
}
.county-label.is-hot { color: var(--wood-600); transform: scale(1.12); }
.county-label::before { display: none; }

/* ------------------------------- allies -------------------------------- */
.allies { background: var(--paper); padding-bottom: 6rem; }
.marquee {
  margin-top: 2.6rem; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 1.6rem; width: max-content;
  animation: marquee 38s linear infinite;
  padding-block: .6rem;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - .8rem)); } }
.ally {
  width: 170px; height: 100px; background: #fff; border-radius: 12px;
  border: 1px solid #e8e5dd; box-shadow: var(--shadow-sm);
  display: grid; place-items: center; padding: .9rem; flex: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ally:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ally img { width: 100%; height: 100%; object-fit: contain; }

/* ------------------------------- contact ------------------------------- */
.contact { background: var(--navy-950); color: #fff; }
.contact .section-title { color: #fff; }
.contact .section-sub { color: #9fb0cc; }
.contact-grid { display: grid; grid-template-columns: 6fr 6fr; gap: 3.5rem; align-items: start; }
.contact-list { display: grid; gap: 1.2rem; margin: 1.8rem 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--navy-800); display: grid; place-items: center;
}
.ci-icon svg { width: 22px; height: 22px; fill: var(--wood-500); }
.contact-list strong { display: block; font-family: var(--font-display); font-size: .95rem; }
.contact-list a, .contact-list span { color: #b9c6dd; font-size: .95rem; }
.contact-list a:hover { color: var(--wood-500); }
.socials { display: flex; gap: .8rem; margin-bottom: 2rem; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-800); display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--wood-500); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.join-team {
  display: flex; gap: 1.2rem; align-items: center;
  background: var(--navy-900); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; max-width: 430px;
}
.join-team img { width: 96px; height: 96px; border-radius: 10px; background: #fff; padding: 6px; }
.join-team h4 { font-family: var(--font-display); margin-bottom: .2rem; }
.join-team p { color: #9fb0cc; font-size: .88rem; }

.contact-form {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow-md); display: grid; gap: 1.1rem;
}
.contact-form h3 { font-family: var(--font-display); color: var(--navy-900); font-size: 1.4rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .88rem; color: var(--navy-900); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; padding: .75rem .9rem; border-radius: 10px;
  border: 1.5px solid #dcd8cf; background: var(--paper); color: var(--ink);
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--navy-700);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; font-weight: 400; }
.form-note a { color: var(--navy-700); font-weight: 600; }
.hp { display: none; }

/* -------------------------------- footer ------------------------------- */
.site-footer { background: var(--navy-950); color: #8fa0bd; border-top: 1px solid rgba(255,255,255,.07); }
.footer-inner { padding: 2.6rem 0; display: grid; gap: 1.2rem; justify-items: center; text-align: center; }
.footer-logo { height: 74px; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: .9rem; font-weight: 600; color: #b9c6dd; }
.footer-nav a:hover { color: var(--wood-500); }
.footer-copy { font-size: .82rem; line-height: 1.8; }

/* ------------------------------- reveals ------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .hero-slide.is-active { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------ responsive ----------------------------- */
@media (max-width: 1020px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media img { aspect-ratio: 16 / 10; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .area-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-950); flex-direction: column; gap: 0;
    padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .8rem 5%; }
  .nav-burger { display: block; }
  .header-cta { display: none; }
  .brand-logo { height: 52px; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  #serviceMap { min-height: 420px; }
  .section { padding: 4rem 0; }
  .about-badge { left: .8rem; }
}
