/* ==========================================================================
   Zoomax Studio — Design tokens
   ========================================================================== */
:root {
  --ink: #0d1117;
  --ink-2: #171b21;
  --ink-soft: #2a2f38;
  --sand: #f7f2e7;
  --sand-2: #efe6d3;
  --cream: #fbf8f2;
  --gold: #c8a24a;
  --gold-light: #e0c37f;
  --coral: #d97757;
  --text-dark: #1b1b18;
  --text-light: #f7f2e7;
  --muted: #6b6f76;
  --muted-light: rgba(247, 242, 231, 0.7);
  --border-soft: rgba(27, 27, 24, 0.08);
  --border-light: rgba(247, 242, 231, 0.14);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow-soft: 0 20px 60px -20px rgba(13, 17, 23, 0.25);

  --dur: 0.6s;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0 0 0.5em; }
p { line-height: 1.7; margin: 0 0 1em; color: var(--muted); }

@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;
    scroll-behavior: auto !important;
  }
}

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.center { text-align: center; }
.section-sub {
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(200, 162, 74, 0.55); }
.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(13, 17, 23, 0.92);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-light);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand-name em { font-style: normal; color: var(--gold-light); }

.main-nav ul { display: flex; gap: 2rem; }
.main-nav a {
  color: var(--muted-light);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--text-light); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.btn-nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-light);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--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); }

.mobile-nav {
  background: var(--ink);
  border-top: 1px solid var(--border-light);
}
.mobile-nav ul { padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.mobile-nav a { color: var(--text-light); font-size: 1.05rem; }
.mobile-nav .btn { margin-top: 0.5rem; width: fit-content; }

@media (max-width: 860px) {
  .main-nav, .btn-nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-light);
  padding: clamp(5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}
.hero-visual { position: absolute; inset: 0; z-index: 0; }
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.55;
}
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(200,162,74,0.18), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(217,119,87,0.16), transparent 70%),
    linear-gradient(100deg, #0d1117 20%, rgba(13,17,23,0.55) 60%, rgba(13,17,23,0.35) 100%);
}
.hero-waves { position: absolute; bottom: -1px; left: 0; width: 100%; height: auto; }
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--text-light);
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted-light);
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.5rem; }
.hero .btn-ghost { color: var(--text-light); }
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted-light);
}
.hero-rating.center { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--text-dark); }
.about-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.about-visual img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.pull-quote {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--sand);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-dark);
}
.pull-quote cite { display: block; margin-top: 0.5rem; font-family: var(--font-body); font-style: normal; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .about-visual img { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--sand); }
.services h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200,162,74,0.18), rgba(217,119,87,0.14));
  color: var(--coral);
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 1.05rem; color: var(--text-dark); }
.service-card p { font-size: 0.92rem; margin: 0; }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Work / Portfolio (masonry)
   ========================================================================== */
.work { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 1.25rem;
}
.masonry-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  grid-row: span 2;
}
.masonry-item.tall { grid-row: span 3; }
.masonry-item.span-2 { grid-column: span 2; }
.masonry-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.masonry-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  background: linear-gradient(0deg, rgba(13,17,23,0.72), transparent);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.masonry-item:hover figcaption,
.masonry-item:focus-within figcaption { transform: translateY(0); opacity: 1; }
.masonry-item:hover img { transform: scale(1.04); }

@media (max-width: 860px) {
  .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .masonry-item.span-2 { grid-column: span 2; }
}
@media (max-width: 480px) {
  .masonry { grid-template-columns: 1fr; }
  .masonry-item.span-2 { grid-column: span 1; }
}

/* ==========================================================================
   Why Zoomax
   ========================================================================== */
.why { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--ink); color: var(--text-light); }
.why h2 { color: var(--text-light); font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.why-card {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.why-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.why-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.75rem;
}
.why-card h3 { color: var(--text-light); font-size: 1.05rem; }
.why-card p { color: var(--muted-light); font-size: 0.92rem; margin: 0; }

@media (max-width: 1024px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Process
   ========================================================================== */
.process { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--sand); }
.process h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.process-list {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  counter-reset: step;
}
.process-list li { display: flex; flex-direction: column; gap: 0.9rem; }
.process-num {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border-soft);
  font-family: var(--font-display);
  color: var(--coral);
  font-weight: 600;
}
.process-list h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.process-list p { font-size: 0.92rem; margin: 0; }

@media (max-width: 1024px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.testimonials h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.testimonial-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 min(400px, 85vw);
  background: var(--sand);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 0;
}
.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.testimonial-card cite { font-style: normal; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.testimonial-controls { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.testimonial-controls button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--cream);
  transition: background 0.3s, transform 0.3s;
}
.testimonial-controls button:hover { background: var(--gold); transform: translateY(-2px); }

/* ==========================================================================
   CTA Band
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #21170f 100%);
  color: var(--text-light);
  padding: clamp(4rem, 9vw, 6rem) 0;
}
.cta-inner { text-align: center; max-width: 620px; margin-inline: auto; }
.cta-band h2 { color: var(--text-light); font-size: clamp(2rem, 4vw, 2.8rem); }
.cta-band p { color: var(--muted-light); margin-bottom: 2rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--sand); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.contact-list { margin: 2rem 0; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-list li { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--coral); font-weight: 600; }
.contact-list a { font-weight: 600; transition: color 0.25s; }
.contact-list a:hover { color: var(--coral); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

.contact-form {
  background: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}
.form-row { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--sand);
  color: var(--text-dark);
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,162,74,0.2);
}
.form-row input[aria-invalid="true"],
.form-row select[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] { border-color: #c0392b; }
.field-error { font-size: 0.78rem; color: #c0392b; min-height: 1em; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; text-align: center; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--muted-light); padding-top: clamp(3.5rem, 7vw, 5rem); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-light);
}
.footer-brand p { color: var(--muted-light); font-size: 0.9rem; margin-top: 1rem; max-width: 260px; }
.footer-col h3 { color: var(--text-light); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.92rem; }
.footer-col a { transition: color 0.25s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { padding: 1.75rem 0; text-align: center; font-size: 0.82rem; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
