/* ============================================
   ACN Agency — SCROLL UNFOLD Design #046
   Colors: Deep Burgundy #1a0a0a | Gold #c9a962 | Cream #faf9f7
   Font: Cormorant Garamond (headings) | DM Sans (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

:root {
  --burgundy: #1a0a0a;
  --burgundy-light: #2d1212;
  --burgundy-dark: #0d0505;
  --gold: #c9a962;
  --gold-light: #d4b97a;
  --gold-dark: #b8923f;
  --cream: #faf9f7;
  --cream-dark: #f0ede8;
  --cream-muted: rgba(250, 249, 247, 0.7);
  --white: #ffffff;
  --text-primary: #faf9f7;
  --text-secondary: rgba(250, 249, 247, 0.65);
  --text-dark: #1a0a0a;
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--burgundy);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.8rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.8rem); }

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-secondary);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--gold-light); }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(26,10,10,0.95) 0%, rgba(26,10,10,0) 100%);
  transition: background 0.4s ease;
}
.nav.scrolled {
  background: rgba(26,10,10,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,169,98,0.1);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-muted);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(-50%);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* ---- Unfold Text Animation ---- */
.unfold-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.unfold-text {
  display: block;
  transform: scaleX(0);
  transform-origin: center;
  will-change: transform;
}
.unfold-text.revealed {
  transform: scaleX(1);
}

/* Layered curtain effect */
.curtain-layer {
  display: block;
  position: relative;
  overflow: hidden;
}
.curtain-layer .curtain-inner {
  display: block;
  transform: translateY(100%);
  will-change: transform;
}
.curtain-layer.revealed .curtain-inner {
  transform: translateY(0);
}

/* Clip-path unfold */
.clip-unfold {
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}
.clip-unfold.revealed {
  clip-path: inset(0 0% 0 0);
}

/* ---- Sections ---- */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 4rem;
  position: relative;
}

.section--dark {
  background-color: var(--burgundy-dark);
}

.section--mid {
  background-color: var(--burgundy);
}

.section--light {
  background-color: var(--burgundy-light);
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

/* ---- Gold Divider ---- */
.gold-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

.gold-line--center {
  margin: 1.5rem auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold);
  color: var(--burgundy-dark);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,169,98,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--burgundy-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(250,249,247,0.3);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: var(--burgundy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(201,169,98,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,169,98,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(201,169,98,0.03) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
}

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

.hero h1 {
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Feature Cards ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  background: rgba(250,249,247,0.03);
  border: 1px solid rgba(201,169,98,0.12);
  padding: 3rem 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  background: rgba(201,169,98,0.06);
  border-color: rgba(201,169,98,0.25);
  transform: translateY(-4px);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 1rem;
}

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

/* ---- Split Section ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.split-text h2 {
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.split-text p {
  margin-bottom: 1.5rem;
}

.split-visual {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-frame {
  width: 100%;
  height: 500px;
  border: 1px solid rgba(201,169,98,0.15);
  position: relative;
  overflow: hidden;
}

.visual-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201,169,98,0.08);
}

/* ---- Gallery Grid ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--burgundy-light);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,10,10,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h4 {
  color: var(--cream);
  font-size: 1.2rem;
}

.gallery-overlay p {
  font-size: 0.85rem;
  color: var(--gold);
  margin-top: 0.25rem;
}

/* ---- Contact Form ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  margin-top: 4rem;
}

.contact-info h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-detail strong {
  color: var(--gold);
  font-weight: 500;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(250,249,247,0.04);
  border: 1px solid rgba(201,169,98,0.2);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: rgba(201,169,98,0.05);
}

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

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

/* ---- Footer ---- */
.footer {
  background: var(--burgundy-dark);
  padding: 5rem 4rem 2rem;
  border-top: 1px solid rgba(201,169,98,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,169,98,0.08);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ---- Stats Bar ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 4rem;
  background: var(--burgundy-dark);
  border-top: 1px solid rgba(201,169,98,0.1);
  border-bottom: 1px solid rgba(201,169,98,0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---- Unfold Animation Specifics ---- */
.unfold-line {
  overflow: hidden;
  display: block;
}

.unfold-line-inner {
  display: block;
  transform: translateY(110%);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .nav { padding: 1.25rem 2rem; }
  .nav-links { gap: 1.5rem; }
  .section { padding: 6rem 2rem; }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 3rem 1.5rem; }
  h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
}
