/* ==========================================================================
   Final Pick Services — Design System
   Hand-coded, self-contained. No frameworks.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Brand */
  --brand: #1a2332;          /* deep navy-charcoal */
  --brand-700: #243044;
  --brand-600: #2f3d54;
  --accent: #f59e0b;         /* refined amber (heritage nod) */
  --accent-600: #d97706;     /* hover */
  --accent-soft: #fff4e0;    /* amber tint background */

  /* Neutrals */
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-dark: #141b27;
  --line: #e5e8ec;
  --line-dark: #2c3950;

  /* Text */
  --text: #1a2332;
  --text-soft: #5a6472;
  --text-invert: #ffffff;
  --text-invert-soft: #b9c2d0;

  /* Feedback */
  --success: #15803d;
  --danger: #b91c1c;

  /* Spacing scale (8px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Radius & elevation */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
  --shadow-md: 0 4px 12px rgba(16,24,40,.08), 0 2px 6px rgba(16,24,40,.06);
  --shadow-lg: 0 18px 40px rgba(16,24,40,.16);

  --container: 1200px;
  --header-h: 76px;
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: "Archivo", "Inter", sans-serif; line-height: 1.12; color: var(--brand); font-weight: 800; letter-spacing: -0.02em; }

/* ---- Accessibility helpers --------------------------------------------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-8); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--text-invert); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Typography helpers ------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-600);
}
.section--dark .eyebrow { color: var(--accent); }
.section-head { max-width: 680px; margin-bottom: var(--s-7); }
.section-head.center { margin-inline: auto; text-align: center; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-soft); }
.section--dark .lead { color: var(--text-invert-soft); }
.muted { color: var(--text-soft); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 12px 22px; border: 2px solid transparent;
  border-radius: var(--r-sm); font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: .98rem; letter-spacing: .01em; transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--brand); }
.btn--primary:hover { background: var(--accent-600); color: #fff; }
.btn--dark { background: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--brand-600); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); background: #fff; }
.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn--on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--lg { min-height: 54px; padding: 15px 30px; font-size: 1.05rem; }
.btn .ico { width: 19px; height: 19px; }

/* ---- Header / Nav ------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.32rem; color: var(--brand); letter-spacing: -.02em; }
.brand .mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px;
  background: var(--brand); color: var(--accent); flex: none;
}
.brand .mark svg { width: 22px; height: 22px; }
.brand b { color: var(--accent-600); }
.brand-logo { height: 52px; width: auto; display: block; }
.brand-fallback { display: flex; align-items: center; gap: 10px; }
@media (max-width: 420px) { .brand-logo { height: 42px; } }
.nav-links { display: none; align-items: center; gap: 4px; margin-left: var(--s-4); }
.nav-links a {
  font-weight: 600; font-size: .96rem; color: var(--brand-700); padding: 10px 14px; border-radius: var(--r-sm);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--brand); }
.nav-links a[aria-current="page"] { color: var(--accent-600); }
.nav-cta { display: none; align-items: center; gap: var(--s-3); margin-left: auto; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-family: "Archivo", sans-serif; font-weight: 700; color: var(--brand); }
.nav-phone .ico { width: 18px; height: 18px; color: var(--accent-600); }
.nav-toggle {
  margin-left: auto; display: inline-grid; place-items: center; width: 46px; height: 46px;
  background: var(--brand); color: #fff; border: 0; border-radius: var(--r-sm);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .bars { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: block; }

/* Mobile drawer */
.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: #fff;
  padding: var(--s-3) var(--s-5) var(--s-6);
}
.mobile-menu.open { display: block; animation: fade .2s ease; }
.mobile-menu a { display: block; padding: 14px 8px; font-weight: 600; border-bottom: 1px solid var(--line); color: var(--brand-700); }
.mobile-menu a[aria-current="page"] { color: var(--accent-600); }
.mobile-menu .btn { width: 100%; margin-top: var(--s-4); }

@media (min-width: 1000px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--brand) url("images/hero.jpg") center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(16,21,33,.92) 0%, rgba(16,21,33,.74) 48%, rgba(16,21,33,.34) 100%);
}
.hero-inner { padding-block: clamp(64px, 12vw, 132px); max-width: 720px; }
.hero h1 { color: #fff; }
.hero .lead { color: #e7ebf1; margin-top: var(--s-4); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-7); margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,.16); }
.hero-trust .stat b { display: block; font-family: "Archivo", sans-serif; font-size: 1.9rem; color: var(--accent); line-height: 1; }
.hero-trust .stat span { font-size: .9rem; color: var(--text-invert-soft); }
.badge-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: .82rem; font-weight: 600;
}
.badge .ico { width: 15px; height: 15px; color: var(--accent); }

/* ---- Service cards ------------------------------------------------------ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-6); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7dce3; }
.card .ico-box {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent-600); margin-bottom: var(--s-4);
}
.card .ico-box svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--text-soft); font-size: .96rem; }
.card .more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-4);
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: .9rem; color: var(--accent-600);
}
.card .more svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card:hover .more svg { transform: translateX(3px); }

/* Service detail (services page) */
.svc-detail { display: grid; gap: var(--s-5); align-items: start; }
.svc-detail .ico-box { margin-bottom: var(--s-3); }
.svc-detail h3 { font-size: 1.45rem; }
.svc-detail ul.checks { margin-top: var(--s-4); display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); }
.checks li svg { width: 20px; height: 20px; color: var(--success); flex: none; margin-top: 2px; }

/* ---- Projects / gallery ------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filter {
  padding: 9px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff;
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: .9rem; color: var(--brand-700);
  transition: all .15s ease;
}
.filter:hover { border-color: var(--brand); }
.filter[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.gallery { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 620px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--bg-alt);
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); cursor: pointer;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.05); }
.tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: var(--s-5) var(--s-4) var(--s-4);
  background: linear-gradient(to top, rgba(16,21,33,.86), transparent);
  color: #fff;
}
.tile figcaption b { font-family: "Archivo", sans-serif; font-size: 1.05rem; }
.tile figcaption span { display: block; font-size: .8rem; color: #d8dde6; text-transform: uppercase; letter-spacing: .08em; }
.tile.is-hidden { display: none; }
.tile .expand-hint {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: rgba(16,21,33,.55); color: #fff; opacity: 0; transition: opacity .15s ease;
}
.tile .expand-hint svg { width: 18px; height: 18px; }
.tile:hover .expand-hint, .tile:focus-visible .expand-hint { opacity: 1; }

/* ---- Lightbox ----------------------------------------------------------- */
body.no-scroll { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: clamp(16px, 4vw, 40px);
  background: rgba(16,21,33,.93); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; animation: fade .2s ease; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.lightbox img {
  max-width: min(1100px, 92vw); max-height: 80vh; width: auto; height: auto; object-fit: contain;
  border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.5); background: #0d121c;
}
.lightbox-cap { margin-top: var(--s-4); color: #fff; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.05rem; text-align: center; }
.lightbox-cap span { display: block; font-family: "Inter", sans-serif; font-weight: 500; font-size: .78rem; color: #c2cad6; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.lightbox-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; transition: background .15s ease;
}
.lightbox-btn:hover { background: rgba(255,255,255,.26); }
.lightbox-btn svg { width: 24px; height: 24px; }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
  .lightbox-btn { width: 44px; height: 44px; }
}

/* ---- Feature / why-choose ---------------------------------------------- */
.feature-row { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) { .feature-row { grid-template-columns: 1fr 1fr; } .feature-row.rev > .feature-media { order: -1; } }
.feature-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 5/4; object-fit: cover; background: var(--bg-alt); }
.why-list { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.why-item { display: flex; gap: var(--s-4); }
.why-item .ico-box { flex: none; width: 48px; height: 48px; }
.why-item .ico-box svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 1.08rem; margin-bottom: 4px; }
.why-item p { color: var(--text-soft); font-size: .95rem; }
.section--dark .why-item p { color: var(--text-invert-soft); }

/* ---- Stat band ---------------------------------------------------------- */
.stat-band { display: grid; gap: var(--s-5); text-align: center; grid-template-columns: repeat(2,1fr); }
@media (min-width: 760px) { .stat-band { grid-template-columns: repeat(4,1fr); } }
.stat-band .stat b { font-family: "Archivo", sans-serif; font-size: clamp(2rem,5vw,2.8rem); color: var(--accent); display: block; line-height: 1; }
.stat-band .stat span { color: var(--text-invert-soft); font-size: .92rem; }

/* ---- Testimonials ------------------------------------------------------- */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-6); box-shadow: var(--shadow-sm); }
.quote-card .stars { display: flex; gap: 2px; color: var(--accent); margin-bottom: var(--s-3); }
.quote-card .stars svg { width: 18px; height: 18px; }
.quote-card blockquote { font-size: 1.02rem; color: var(--text); }
.quote-card .by { display: flex; align-items: center; gap: 12px; margin-top: var(--s-5); }
.quote-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--accent); display: grid; place-items: center; font-family: "Archivo", sans-serif; font-weight: 800; }
.quote-card .by b { font-family: "Archivo", sans-serif; }
.quote-card .by span { display: block; font-size: .85rem; color: var(--text-soft); }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-700) 100%); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 6vw, 64px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: var(--text-invert-soft); margin: var(--s-3) auto var(--s-6); max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }

/* ---- Forms -------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--brand); }
.field .req { color: var(--danger); }
.field .hint { font-size: .82rem; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); font: inherit; color: var(--text); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,158,11,.18);
}
.field-row { display: grid; gap: var(--s-5); }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .85rem; color: var(--text-soft); }
.form-aside { background: var(--bg-alt); border-radius: var(--r-md); padding: var(--s-6); }
.contact-line { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .ico-box { width: 44px; height: 44px; flex: none; margin: 0; }
.contact-line .ico-box svg { width: 22px; height: 22px; }
.contact-line b { font-family: "Archivo", sans-serif; display: block; }
.contact-line a, .contact-line span { color: var(--text-soft); }
.contact-line a:hover { color: var(--accent-600); }

/* ---- Footer ------------------------------------------------------------- */
.footer { background: var(--bg-dark); color: var(--text-invert-soft); padding-block: var(--s-8) var(--s-6); }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: var(--s-4); font-family: "Archivo", sans-serif; }
.footer .brand { color: #fff; margin-bottom: var(--s-4); }
.footer-grid { display: grid; gap: var(--s-7); grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer a { color: var(--text-invert-soft); }
.footer a:hover { color: var(--accent); }
.footer ul { display: grid; gap: 10px; }
.footer .f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer .f-contact svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.footer-bottom {
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; font-size: .85rem;
}
.footer-bottom .socials { display: flex; gap: var(--s-3); }
.footer-bottom .socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); background: rgba(255,255,255,.06); }
.footer-bottom .socials svg { width: 18px; height: 18px; }

/* ---- Floating mobile call bar ------------------------------------------ */
.call-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  display: flex; gap: 10px; box-shadow: var(--shadow-lg); border-radius: var(--r-md); overflow: hidden;
}
.call-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; font-family: "Archivo", sans-serif; font-weight: 700; }
.call-bar .call { background: var(--brand); color: #fff; }
.call-bar .quote { background: var(--accent); color: var(--brand); }
.call-bar svg { width: 19px; height: 19px; }
@media (min-width: 1000px) { .call-bar { display: none; } }

/* ---- Misc --------------------------------------------------------------- */
.placeholder-img {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, #eef1f5, #eef1f5 12px, #e7ebf1 12px, #e7ebf1 24px);
  color: #8a93a3; font-size: .82rem; font-weight: 600; padding: var(--s-4);
}
.note-flag {
  background: var(--accent-soft); border: 1px dashed var(--accent-600); color: #8a5a06;
  border-radius: var(--r-sm); padding: 4px 10px; font-size: .78rem; font-weight: 600; display: inline-block;
}

@keyframes fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .tile:hover img, .card:hover { transform: none !important; }
}
