/* ==========================================================
   Spokane Team Photos — site stylesheet
   ========================================================== */
:root {
  --navy: #0e1c2b;
  --navy-soft: #16293d;
  --ink: #1c2733;
  --body: #44525f;
  --line: #e3e8ed;
  --surface: #f4f6f8;
  --white: #ffffff;
  --accent: #e9a13b;
  --accent-dark: #c9821d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 28, 43, 0.10);
  --shadow-lg: 0 18px 50px rgba(14, 28, 43, 0.18);
  --font-head: "Sora", 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(--body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: #f2b357; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border: 2px solid rgba(255,255,255,0.85); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(14, 28, 43, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: #fff;
  letter-spacing: 0.01em;
}
.brand span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--accent); }
.nav-links .nav-cta {
  background: var(--accent);
  color: var(--navy);
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
}
.nav-links .nav-cta:hover { background: #f2b357; color: var(--navy); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px; height: 42px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14,28,43,0.92) 18%, rgba(14,28,43,0.55) 55%, rgba(14,28,43,0.25) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 9rem 0 5rem; }
.hero .kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  max-width: 14ch;
  margin-bottom: 1.2rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  max-width: 46ch;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Page hero (interior pages) */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 9.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 540px; height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,161,59,0.18), transparent 65%);
  top: -160px; right: -120px;
}
.page-hero .kicker {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.9rem;
}
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
.page-hero p { max-width: 62ch; color: rgba(255,255,255,0.82); font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .kicker {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 0.7rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 0.9rem; }
.section-head p { font-size: 1.02rem; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .card-img { aspect-ratio: 4 / 5; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.4rem 1.5rem 1.7rem; flex: 1; }
.card-body h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.card-body p { font-size: 0.95rem; }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split.reverse > .split-media { order: 2; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.split-body .kicker {
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-dark);
  display: block; margin-bottom: 0.7rem;
}
.split-body p { margin-bottom: 1.1rem; }
.split-body .btn { margin-top: 0.6rem; }

/* ---------- Check list ---------- */
.check-list { list-style: none; margin: 1.2rem 0 1.5rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.7rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.step .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--accent);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.step p { font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent-dark);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-body { padding: 0 1.4rem 1.3rem; font-size: 0.97rem; }

/* ---------- Gallery ---------- */
.masonry {
  columns: 3;
  column-gap: 1.2rem;
}
.masonry a {
  display: block;
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  break-inside: avoid;
  position: relative;
}
.masonry img { width: 100%; transition: transform 0.4s ease; }
.masonry a:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 18, 28, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s ease;
}
.lightbox button:hover { background: rgba(255,255,255,0.22); }
.lightbox .lb-close { top: 1.2rem; right: 1.2rem; }
.lightbox .lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--navy) 30%, #1d3a57 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,161,59,0.22), transparent 65%);
  bottom: -180px; left: -100px;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 0.9rem; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 52ch; margin: 0 auto 2rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem;
}
.contact-card h3 { font-size: 1.15rem; margin-bottom: 1.2rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--accent-dark);
}
.contact-item h4 { font-size: 0.92rem; margin-bottom: 0.1rem; }
.contact-item p, .contact-item a { font-size: 1rem; }
.contact-item a.big { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.contact-item a.big:hover { color: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 2rem;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 0.9rem; }
.site-footer a { color: rgba(255,255,255,0.75); transition: color 0.2s ease; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.social-row { display: flex; gap: 0.8rem; margin-top: 1rem; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: grid; place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.social-row a:hover { background: rgba(233,161,59,0.18); border-color: var(--accent); }
.social-row svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Staggered fade-up for gallery tiles */
.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-item.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-item { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse > .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    font-size: 1.2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }
  .hero { min-height: 88vh; }
  .hero-inner { padding: 8rem 0 4rem; }
  .section { padding: 3.8rem 0; }
  .masonry { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 1rem; }
  .lightbox .lb-prev { left: 0.5rem; }
  .lightbox .lb-next { right: 0.5rem; }
}

/* ==========================================================
   v2 — image stretch fix + 3D tilt gallery
   ========================================================== */

/* Fix: height attribute was stretching images under width:100% */
.masonry img { height: auto; }

/* 3D viewport around the gallery wall */
.g3d-viewport { perspective: 1400px; }
.g3d-viewport .masonry {
  transform-style: preserve-3d;
  will-change: transform;
  transform: rotateY(0deg) rotateX(0deg);
}

/* Smooth fading lightbox (replaces display:none toggle) */
.lightbox {
  display: flex;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Ghost image that flies from the grid to center screen */
.fly-img {
  position: fixed;
  z-index: 210;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  transition: left 0.45s cubic-bezier(0.22, 0.8, 0.26, 1),
              top 0.45s cubic-bezier(0.22, 0.8, 0.26, 1),
              width 0.45s cubic-bezier(0.22, 0.8, 0.26, 1),
              height 0.45s cubic-bezier(0.22, 0.8, 0.26, 1);
  pointer-events: none;
}

/* iOS motion-permission chip */
.motion-chip {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 150;
  display: none;
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.motion-chip:active { transform: scale(0.96); }

@media (prefers-reduced-motion: reduce) {
  .g3d-viewport .masonry { transform: none !important; }
  .fly-img { transition: none; }
}
