/* ============================================================
   SAHARA TECHNOLOGIES — Design tokens
   Display: Space Grotesk | Body: Inter | Data/labels: IBM Plex Mono
   Palette: deep purple + bright orange on near-black / off-white
   ============================================================ */

:root {
  --purple-950: #12071f;
  --purple-900: #200d3a;
  --purple: #3f1874;
  --purple-light: #7c3ed4;
  --orange: #fa6308;
  --orange-light: #ff9a4f;
  --ink: #0e0c14;
  --surface-dark: #17131f;
  --surface-dark-2: #1f1a2b;
  --line-dark: rgba(255,255,255,0.09);
  --text-dark-primary: #f4f2f8;
  --text-dark-muted: #a79fc0;

  --paper: #f7f5f9;
  --surface-light: #ffffff;
  --line-light: rgba(20,10,35,0.10);
  --text-light-primary: #17131f;
  --text-light-muted: #5c5470;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.16,.84,.32,1);
}

[data-theme="dark"] {
  --bg: var(--ink);
  --surface: var(--surface-dark);
  --surface-2: var(--surface-dark-2);
  --line: var(--line-dark);
  --text: var(--text-dark-primary);
  --muted: var(--text-dark-muted);
}

[data-theme="light"] {
  --bg: var(--paper);
  --surface: var(--surface-light);
  --surface-2: #efecf3;
  --line: var(--line-light);
  --text: var(--text-light-primary);
  --muted: var(--text-light-muted);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  transition: background .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.02em;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

section { position: relative; padding: 120px 0; }
@media (max-width: 768px) { section { padding: 80px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--orange);
}

.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; max-width: 520px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #ff8a4a);
  color: #150726;
}
.btn-primary:hover { box-shadow: 0 10px 30px -8px rgba(255,106,26,.55); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--purple-light); background: rgba(139,63,224,0.08); }

.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: background .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
  background: color-mix(in srgb, var(--bg) 46%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border-color: var(--line);
  padding: 12px 0;
  box-shadow: 0 8px 30px -20px rgba(0,0,0,.4);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk'; font-weight: 700; font-size: 18px; }
.brand-logo { height: 46px; width: auto; display: none; filter: drop-shadow(0 2px 10px rgba(250,99,8,0.25)); transition: transform .3s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.03); }
[data-theme="light"] .brand-logo-light { display: block; }
[data-theme="dark"] .brand-logo-dark { display: block; filter: drop-shadow(0 0 16px rgba(250,99,8,0.35)) drop-shadow(0 0 30px rgba(124,62,212,0.25)); }
@media (max-width: 640px) { .brand-logo { height: 36px; } }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  position: relative; transition: color .25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px; background: var(--orange);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: var(--surface-2);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.theme-toggle:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 8px 20px -6px rgba(250,99,8,0.45); }
.theme-toggle svg { width: 18px; height: 18px; transition: color .3s; }
[data-theme="dark"] .theme-toggle svg { color: var(--orange); filter: drop-shadow(0 0 6px rgba(250,99,8,0.55)); }
[data-theme="light"] .theme-toggle svg { color: var(--purple); }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 68px; left: 16px; right: 16px; background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-md); flex-direction: column; padding: 20px; gap: 16px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .3s var(--ease); box-shadow: 0 30px 60px -25px rgba(0,0,0,.5); }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; width: 22px; cursor: pointer; }
  .nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 180px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10%;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--purple-light) 35%, transparent), transparent 55%),
    radial-gradient(circle at 82% 65%, color-mix(in srgb, var(--orange) 22%, transparent), transparent 50%);
  filter: blur(60px);
  z-index: 0;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(3%, -2%) scale(1.06); }
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(34px, 5vw, 62px); margin-bottom: 22px; }
.hero h1 .accent { background: linear-gradient(100deg, var(--orange), var(--purple-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 480px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 34px; margin-top: 52px; }
.hero-stats div span { display: block; font-family: 'Space Grotesk'; font-size: 26px; font-weight: 700; }
.hero-stats div small { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 640px) {
  .hero-stats {
    background: color-mix(in srgb, var(--surface) 55%, transparent);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    box-shadow: 0 20px 50px -25px rgba(61,21,96,.4), inset 0 1px 0 rgba(255,255,255,0.08);
    gap: 20px;
  }
}

/* ---- Terminal signature element ---- */
.terminal {
  background: linear-gradient(165deg, rgba(63,24,116,0.42), rgba(18,7,31,0.65));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -30px rgba(61,21,96,.55), inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.r { background: #ff5f57; }
.terminal-dot.y { background: #febc2e; }
.terminal-dot.g { background: #28c840; }
.terminal-title { margin-left: 8px; font-family: 'IBM Plex Mono'; font-size: 12px; color: #857e9c; }
.terminal-body { padding: 26px 24px 30px; font-family: 'IBM Plex Mono'; font-size: 13.5px; min-height: 300px; color: #cfc7e8; transition: opacity .4s var(--ease); }
.terminal-body.fade-out { opacity: 0; }
.terminal-body .line { margin-bottom: 10px; opacity: 0; animation: typeIn .4s forwards; }
.terminal-body .prompt { color: var(--orange); }
.terminal-body .ok { color: #59e3a4; }
.terminal-body .kw { color: var(--orange-light); font-weight: 600; }
.terminal-body .fn { color: #c9b8ff; }
.terminal-body .str { color: #7fe6b8; }
.terminal-body .cm { color: #6f6785; font-style: italic; }
.terminal-body .num { color: #ffb37a; }
.terminal-body .punc { color: #857e9c; }
.terminal-body .indent { padding-left: 22px; display: block; }
.terminal-cursor { display: inline-block; width: 7px; height: 15px; background: var(--orange); vertical-align: -2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes typeIn { to { opacity: 1; } }

/* ---------- Services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--orange) 45%, var(--line));
  box-shadow: 0 20px 50px -25px rgba(61,21,96,.4);
}
.card .num { font-family: 'IBM Plex Mono'; font-size: 12px; color: var(--orange); margin-bottom: 18px; display:block; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }

.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, color-mix(in srgb, var(--purple-light) 30%, transparent), color-mix(in srgb, var(--orange) 20%, transparent));
  margin-bottom: 18px;
}
.card-icon svg { width: 20px; height: 20px; stroke: var(--text); }

/* ---------- Product cards + modal ---------- */
.product-card { display: flex; flex-direction: column; }
.product-thumb {
  width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-sm);
  background-size: cover; background-position: center; margin-bottom: 18px;
  border: 1px solid var(--line);
}
.product-card .stack { margin-top: 4px; }
.product-open { margin-top: auto; align-self: flex-start; margin-top: 14px; }

.product-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease);
}
.product-modal.open { opacity: 1; visibility: visible; }
.product-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,6,18,0.72);
  backdrop-filter: blur(6px);
}
.product-modal-panel {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 640px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  transform: translateY(16px) scale(.98);
  transition: transform .3s var(--ease);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.6);
}
.product-modal.open .product-modal-panel { transform: translateY(0) scale(1); }
.product-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.45); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.product-modal-close svg { width: 16px; height: 16px; }
.product-modal-image {
  width: 100%; aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  background-color: var(--surface-2);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.product-modal-thumbs { display: flex; gap: 8px; padding: 12px 24px 0; overflow-x: auto; }
.product-modal-thumbs img { width: 64px; height: 46px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; }
.product-modal-thumbs img.active { border-color: var(--orange); }
.product-modal-body { padding: 22px 26px 28px; }
.product-modal-body h3 { font-size: 22px; margin: 8px 0 12px; }
.product-modal-body p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin-bottom: 16px; }
.product-modal-links { display: flex; gap: 10px; margin-top: 6px; }

/* ---------- Industries ---------- */
.industry-pill {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 500;
  background: var(--surface);
  transition: .3s var(--ease);
}
.industry-pill:hover { border-color: var(--purple-light); transform: translateY(-3px); }
.industry-pill svg { width: 18px; height: 18px; stroke: var(--orange); flex-shrink: 0; }
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .industry-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 620px) { .industry-grid { grid-template-columns: repeat(2,1fr); } }

/* ---------- Portfolio ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 18px; border-radius: 100px; font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
  transition: .25s;
}
.filter-btn.active, .filter-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 860px) { .portfolio-grid { grid-template-columns: 1fr; } }

.browser-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  transform-style: preserve-3d;
}
.browser-card:hover { transform: translateY(-8px); box-shadow: 0 30px 70px -30px rgba(61,21,96,.45); }
.browser-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.browser-chrome .dot { width: 8px; height: 8px; border-radius: 50%; }
.browser-url {
  flex: 1; margin-left: 8px;
  background: var(--bg);
  border-radius: 100px;
  padding: 5px 12px;
  font-family: 'IBM Plex Mono'; font-size: 11px; color: var(--muted);
}
.browser-screen {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--purple-900), var(--purple) 55%, var(--surface-2));
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.browser-screen span.tag {
  font-family: 'Space Grotesk'; font-weight: 700; font-size: 15px; color: rgba(255,255,255,0.85);
  letter-spacing: -.01em;
}
.browser-screen::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  transform: translateX(-100%);
}
.browser-card:hover .browser-screen::after { animation: sheen 1.1s ease forwards; }
@keyframes sheen { to { transform: translateX(100%); } }

.project-info { padding: 22px 24px 26px; }
.project-info .cat { font-family: 'IBM Plex Mono'; font-size: 11px; color: var(--orange); text-transform: uppercase; letter-spacing: .08em; }
.project-info h3 { font-size: 19px; margin: 8px 0 8px; }
.project-info p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.stack { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.stack span { font-family: 'IBM Plex Mono'; font-size: 10.5px; padding: 4px 9px; border-radius: 5px; background: var(--surface-2); color: var(--muted); }

/* ---------- Process timeline ---------- */
.timeline { display: flex; flex-direction: column; border-left: 1px solid var(--line); margin-left: 6px; }
.tl-item { position: relative; padding: 0 0 44px 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -6px; top: 2px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--orange);
}
.tl-item .tl-label { font-family: 'IBM Plex Mono'; font-size: 12px; color: var(--muted); }
.tl-item h4 { font-size: 18px; margin: 6px 0 6px; }
.tl-item p { color: var(--muted); font-size: 14.5px; max-width: 560px; }

/* ---------- Tech logo gallery ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; }
@media (max-width: 900px) { .tech-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
.tech-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s;
}
.tech-tile:hover { transform: translateY(-4px); border-color: var(--orange); }
.tech-tile img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.tech-tile span { font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: center; }

/* ---------- Stats ---------- */
.stats-strip { background: linear-gradient(120deg, var(--purple-900), var(--purple)); border-radius: var(--radius-lg); padding: 60px 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
.stat-num { font-family: 'Space Grotesk'; font-size: clamp(32px,4vw,48px); font-weight: 700; color: #fff; }
.stat-label { color: rgba(255,255,255,0.65); font-size: 13px; margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Testimonials ---------- */
.testi-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.testi-track::-webkit-scrollbar { height: 6px; }
.testi-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
.testi-card {
  scroll-snap-align: start; flex: 0 0 min(400px, 85vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 28px;
}
.stars { color: var(--orange); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testi-card p.quote { font-size: 15px; margin-bottom: 22px; color: var(--text); }
.testi-person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(140deg, var(--purple-light), var(--orange)); flex-shrink: 0; }
.testi-person strong { font-size: 14px; display: block; }
.testi-person span { font-size: 12.5px; color: var(--muted); }

/* ---------- Blog ---------- */
.blog-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: .35s var(--ease); }
.blog-card:hover { transform: translateY(-5px); }
.blog-thumb { aspect-ratio: 16/9; background: linear-gradient(140deg, var(--surface-2), var(--purple-900)); }
.blog-card .body { padding: 22px 22px 26px; }
.blog-card .date { font-family: 'IBM Plex Mono'; font-size: 11.5px; color: var(--muted); }
.blog-card h3 { font-size: 17px; margin: 10px 0 8px; }
.blog-card p { color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info-item svg { width: 20px; height: 20px; stroke: var(--orange); flex-shrink: 0; margin-top: 2px; }
.contact-info-item strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.contact-info-item span, .contact-info-item a { color: var(--muted); font-size: 14px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; margin-bottom: 8px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font-family: inherit; font-size: 14.5px;
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); }
.field textarea { min-height: 110px; resize: vertical; }
.form-msg { font-size: 13.5px; margin-top: 12px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { color: #59e3a4; }
.form-msg.err { color: #ff6b6b; }

.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); margin-top: 24px; height: 220px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05); }

/* ---------- Footer ---------- */
footer { padding: 70px 0 30px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
.footer-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 14px; color: var(--muted); transition: color .25s; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.social-row svg { width: 15px; height: 15px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Command palette (Ctrl+K style quick search feel) ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange); color:#150726; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
