/* ============================================
   Alex Macro Studio
   Deep Charcoal + Gold
   ============================================ */

:root {
  --charcoal: #141414;
  --charcoal-light: #1c1c1c;
  --charcoal-mid: #252525;
  --gold: #c4a35a;
  --gold-light: #d4b76a;
  --gold-dim: rgba(196, 163, 90, 0.15);
  --text: #f0ece4;
  --text-muted: #a39e94;
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--charcoal);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3vw;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.9rem 3vw;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  color: var(--gold) !important;
  border: 1px solid var(--gold);
  padding: 0.55rem 1.2rem;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--charcoal) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: 0.3s;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--gold);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-video,
.hero-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slideshow {
  z-index: 1;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}

.hero-slideshow .slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 20, 0.55) 0%,
    rgba(20, 20, 20, 0.35) 40%,
    rgba(20, 20, 20, 0.75) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.35s var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ========== SECTIONS ========== */
.section {
  padding: 7rem 0;
}

.section-header {
  margin-bottom: 4rem;
  max-width: 720px;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 400;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.25;
  color: var(--white);
}

/* ========== APPROACH ========== */
.approach {
  background: var(--charcoal-light);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.approach-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  background: var(--charcoal);
  transition: border-color 0.4s, transform 0.4s var(--ease);
}

.approach-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.approach-number {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.approach-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--white);
}

.approach-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== WORK / PORTFOLIO ========== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--charcoal);
  background: var(--gold);
  border-color: var(--gold);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--charcoal-mid);
}

.portfolio-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease);
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.06);
}

.portfolio-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.9) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  opacity: 0;
  transition: opacity 0.4s;
}

.portfolio-item:hover .portfolio-info {
  opacity: 1;
}

.portfolio-info span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.portfolio-info h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--white);
}

/* ========== CASE STUDIES ========== */
.cases {
  background: var(--charcoal-light);
}

.cases-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.case {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.4s var(--ease);
}

.case:first-child {
  border-top: 1px solid var(--border);
}

.case:hover {
  padding-left: 1rem;
}

.case-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.case-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.case-year {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.case h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.case-excerpt {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.case-link {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  transition: color 0.3s;
}

.case-link:hover {
  color: var(--gold-light);
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial {
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  background: var(--charcoal-light);
}

.testimonial p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 1.75rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
}

.about-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.about-note a {
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.about-note a:hover {
  border-color: var(--gold);
}

.about-image {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--charcoal-mid);
}

/* ========== CONTACT ========== */
.contact {
  background: var(--charcoal-light);
}

.contact-intro {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 1.05rem;
}

.contact-form {
  max-width: 640px;
  margin-top: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 2px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-direct {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-direct p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-direct a {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.contact-direct a:hover {
  color: var(--gold-light);
}

/* ========== FOOTER ========== */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  display: block;
  margin-bottom: 0.35rem;
}

.footer-left p,
.footer-right p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .approach-grid,
  .portfolio-grid,
  .testimonials {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual {
    order: -1;
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .approach-grid,
  .portfolio-grid,
  .testimonials,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 5rem 0;
  }

  .hero-title {
    font-size: 2.4rem;
  }
}

/* Utility for missing images */
.portfolio-img,
.about-image,
.hero-slideshow .slide {
  background-color: #2a2a2a;
}
