/* ============================================================
   site.css — shared site chrome for index.html and gallery.html.
   What belongs here: the pieces that must look identical on every
   page — the universal reset, :root design tokens, the fixed nav,
   the mobile menu, and the footer, plus their shared mobile rules
   and the reduced-motion accessibility fallback.
   What does NOT belong here: page-specific layout (hero, sections,
   gallery masonry, forms, project nav) — those stay inline in each
   page's own <style> block. Loaded before lightbox.css on both pages.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: #1a2a32;
  background: #faf9f5;
  line-height: 1.6;
}

:root {
  --teal: #3a9fbf;
  --teal-dark: #0e7f92;
  --teal-deep: #0a5e6e;
  --neon: #d7ff3a;
  --cream: #faf9f5;
  --warm-white: #f3f0e8;
  --sand: #e4ddd0;
  --text: #1a2a32;
  --text-light: #5a6a72;
  --nav-h: 80px;
}

/* --- NAV --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  overflow: visible;
}
.nav-bg {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250,249,245,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: var(--nav-h); gap: 32px;
  position: relative; z-index: 1;
}
.nav-logo-link {
  text-decoration: none;
  display: flex; align-items: flex-end;
}
.nav-logo {
  height: 100px; width: auto;
  display: block;
  margin-bottom: -55px;
}
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a {
  text-decoration: none; color: var(--teal-dark);
  font-weight: 700; font-size: 13px; letter-spacing: .5px; text-transform: uppercase;
}
.nav-links a:hover { color: var(--teal-deep); }
.nav-links a.is-current { color: var(--teal-deep); position: relative; }
.nav-links a.is-current::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--teal-deep);
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-phone { font-weight: 700; font-size: 14px; color: var(--text); }
.nav-cta {
  background: var(--teal-dark); color: var(--neon);
  padding: 10px 22px; border-radius: 8px; text-decoration: none;
  font-weight: 800; font-size: 13px; letter-spacing: .3px;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,127,146,.3); }

/* --- MOBILE MENU --- */
.menu-btn {
  display: none; border: 0;
  background: rgba(0,0,0,.06); border-radius: 8px;
  width: 44px; height: 38px; font-size: 20px;
  cursor: pointer; color: var(--text);
}
.mobile-menu {
  display: none; flex-direction: column;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: rgba(250,249,245,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 16px 24px 20px; gap: 14px;
  z-index: 100;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--teal-dark);
  font-weight: 700; font-size: 15px;
  padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.06);
}
.mobile-menu a:last-child { border-bottom: none; }

/* --- FOOTER --- */
.footer {
  background: var(--teal-deep); padding: 24px;
  text-align: center; color: rgba(255,255,255,.6); font-size: 13px;
}
.footer a { color: rgba(255,255,255,.8); text-decoration: none; font-weight: 700; }
.footer a:hover { text-decoration: underline; }

/* --- RESPONSIVE (shared chrome) --- */
@media (max-width: 768px) {
  .nav-links, .nav-phone { display: none; }
  .menu-btn { display: inline-block; }
  .nav-logo { height: 60px; margin-bottom: -30px; }
  .nav-inner { gap: 12px; }
  .nav-cta { padding: 8px 16px; font-size: 12px; }
  .footer { padding: 20px 16px; }
}

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