/* =============================================
   ANDREA JANKELOW — BOLD EDITORIAL STYLE
   =============================================
   PALETTE:
   - Background: off-white #f7f4ef
   - Text: near-black #0d0d0d
   - Nav: black #0a0a0a
   - Accent: warm terracotta #C4622D
   - Muted: #888
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --color-bg: #f7f4ef;
  --color-nav: #0a0a0a;
  --color-text: #0d0d0d;
  --color-accent: #C4622D;
  --color-muted: #888888;
  --color-white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ---- RESET & BASE ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ---- NAVIGATION ---- */
header {
  background: var(--color-nav);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--color-accent);
}

.navbar {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-brand span {
  color: var(--color-accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  color: #999;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

/* ---- HERO / INTRO STATEMENT ---- */
.hero-statement {
  max-width: 1300px;
  margin: 0 auto;
  padding: 48px 40px 40px;
  border-bottom: 1px solid #ddd;
}

.hero-statement h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.hero-statement h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-tagline {
  margin-top: 24px;
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 32px;
}

/* ---- WORK GRID ---- */
.work-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 40px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #ddd;
  border: 2px solid #ddd;
  align-items: start;
}

.project-card {
  background: var(--color-bg);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.project-card.featured-card {
  grid-column: span 2;
}

.project-card img {
  aspect-ratio: 16 / 10;
  background: #ddd8d0; /* placeholder color while images load */
  transition: transform 0.4s ease;
  min-height: 180px; /* keeps grid layout intact before images are added */
}

/* Makes broken/missing images still show a clean placeholder box */
.project-card img::after {
  content: '';
  display: block;
  background: #ddd8d0;
  position: absolute;
  inset: 0;
}


.featured-card img {
  aspect-ratio: 32 / 10;
  background: #1a1a1a;
  object-position: top;
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-info {
  padding: 16px 20px 20px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.project-tags {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

/* ---- STATS SECTION ---- */
.stats-section {
  background: var(--color-nav);
  color: var(--color-white);
  padding: 80px 40px;
}

.stats-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #222;
  border: 1px solid #222;
}

.stat-block {
  background: var(--color-nav);
  padding: 48px 40px;
  border-right: 1px solid #222;
}

.stat-block:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  transition: color 0.3s ease;
}

.stat-block:hover .stat-number {
  color: var(--color-white);
}

/* "Full" fades in when JS adds .stat-reveal */
.stat-number.stat-reveal {
  animation: fadeSlideUp 0.7s ease forwards;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stat-label {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 300;
  color: #aaa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 200px;
  line-height: 1.5;
}

/* ---- TESTIMONIALS SECTION ---- */
.testimonials-section {
  background: var(--color-bg);
  border-top: 1px solid #ddd;
  padding: 80px 40px;
}

.testimonials-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #ddd;
  border: 2px solid #ddd;
}

.testimonial-card {
  background: var(--color-bg);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.testimonial-featured {
  grid-column: span 2;
  background: var(--color-nav);
  padding: 56px 60px;
}

.testimonial-featured .testimonial-quote {
  font-size: 1.45rem;
  color: var(--color-white);
  max-width: 860px;
}

.testimonial-featured .testimonial-quote::before {
  color: var(--color-accent);
}

.testimonial-featured .testimonial-name {
  color: var(--color-white);
}

.testimonial-featured .testimonial-role {
  color: #666;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-text);
}

.testimonial-quote::before {
  content: '\201C';
  display: block;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.75;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.testimonial-attr {
  margin-top: auto;
  border-top: 1px solid #e8e4de;
  padding-top: 20px;
}

.testimonial-featured .testimonial-attr {
  border-top-color: #222;
}

.testimonial-name {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
}

.testimonial-role {
  display: block;
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- BIO SECTION ---- */
.bio-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.headshot {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(100%);
}

.bio-text .section-label {
  margin-bottom: 28px;
}

.bio-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 32px;
}

.bio-text p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

.cta-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 4px;
  transition: color 0.2s;
}

.cta-link:hover {
  color: var(--color-accent);
}

/* ---- FOOTER ---- */
footer {
  background: var(--color-nav);
  border-top: 2px solid var(--color-accent);
  color: #555;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer a {
  color: var(--color-accent);
}

footer a:hover {
  text-decoration: underline;
}

/* ---- ABOUT PAGE ---- */
.page-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%) brightness(0.45);
}

.page-hero-text {
  position: absolute;
  bottom: 60px;
  left: 40px;
  right: 40px;
  max-width: 900px;
  color: white;
}

.page-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.2;
  font-weight: 900;
}

.page-hero-text h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.about-body {
  max-width: 760px;
  margin: 80px auto;
  padding: 0 40px;
}

.about-body p {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.85;
  color: #333;
  margin-bottom: 24px;
}

.about-body a {
  color: var(--color-accent);
  font-weight: 500;
}

/* ---- CONTACT PAGE ---- */
.contact-section {
  max-width: 700px;
  margin: 80px auto;
  padding: 0 40px;
}

.contact-section h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 48px;
  line-height: 1;
}

.contact-section h2 em {
  font-style: italic;
  color: var(--color-accent);
}

.contact-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: 36px;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--color-accent);
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

.contact-form button {
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 16px 48px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: #a84a1e;
}

/* ---- HAMBURGER BUTTON ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 300;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .navbar { position: relative; padding: 18px 24px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #0a0a0a;
    padding: 8px 24px 24px;
    gap: 0;
    border-top: 1px solid #1a1a1a;
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid #1a1a1a; }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 14px 0; color: #999; font-size: 0.8rem; }
  .nav-has-dropdown:hover .nav-dropdown { display: none; }
  .nav-has-dropdown.dropdown-open .nav-dropdown {
    display: block;
    position: static;
    border: none;
    padding: 0 0 8px 16px;
    background: transparent;
    min-width: unset;
  }
  .nav-brand { display: block; font-size: 0.78rem; }
  .nav-tagline { display: none; }

  /* Homepage stats: force single row */
  .stats-inner { grid-template-columns: repeat(3, 1fr) !important; }
  .stat-block { padding: 20px 12px; border-right: 1px solid #222 !important; border-bottom: none !important; }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: 0.6rem; max-width: 100%; }

  /* Case study stat strip: horizontal, numbers only */
  .stat-strip { padding: 0 16px; }
  .stat-strip-inner { flex-direction: row; justify-content: space-between; }
  .stat-strip-item { flex: 1; padding: 16px 8px; margin-right: 0; padding-right: 0; border-right: 1px solid rgba(255,255,255,0.2) !important; text-align: center; }
  .stat-strip-item:last-child { border-right: none !important; }
  .stat-strip-number { font-size: 1.3rem; }
  .stat-strip-label { display: none; }

  /* Case study page layout */
  .cs-hero { padding: 40px 24px 48px !important; }
  .cs-body { padding: 40px 24px !important; }
  .cs-hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem) !important; }
  .cs-results { padding: 40px 24px !important; }
  .cs-results-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cs-result-block { padding: 24px 16px !important; }
  .cs-result-block:nth-child(3) { display: none !important; }
  .cs-next { flex-direction: column; gap: 16px; text-align: center; padding: 40px 24px; }

  /* Case study image grids */
  .cs-image-grid,
  .vsl-grid,
  .ads-grid { grid-template-columns: 1fr !important; }
  .campaign-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .emails-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .campaign-section, .vsl-section, .emails-section, .ads-section { padding: 40px 24px !important; }

  /* Work hero on work.html */
  .work-hero { padding: 48px 24px 32px !important; }
}

@media (max-width: 1000px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-card.featured-card {
    grid-column: span 2;
  }
  .bio-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .headshot {
    max-width: 360px;
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-block {
    border-right: 1px solid #222;
    border-bottom: 1px solid #222;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-featured {
    grid-column: span 1;
    padding: 44px 40px;
  }
  .testimonial-featured .testimonial-quote {
    font-size: 1.2rem;
  }
}

@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    text-align: center;
  }
  .nav-links {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-statement,
  .work-section,
  .bio-section,
  .about-body,
  .contact-section {
    padding-left: 24px;
    padding-right: 24px;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .project-card.featured-card {
    grid-column: span 1;
  }
  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 24px;
  }
}

/* ---- NAV DROPDOWN ---- */
.nav-brand { white-space: nowrap; }
.nav-has-dropdown { position: relative; }
.nav-dropdown { display: none; position: absolute; top: 100%; right: 0; background: #0a0a0a; border: 1px solid #2a2a2a; border-top: none; list-style: none; min-width: 240px; z-index: 1000; padding: 6px 0 10px; }
.nav-has-dropdown::after { content: ''; position: absolute; bottom: -12px; left: 0; width: 100%; height: 12px; }
.nav-has-dropdown:hover .nav-dropdown { display: block; }
.nav-dropdown li a { display: block; padding: 13px 24px; color: #999; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; text-decoration: none; transition: color 0.2s, background 0.2s; }
.nav-dropdown li a:hover { color: #C4622D; background: #1a1a1a; }
.dropdown-divider { border-top: 1px solid #2a2a2a; margin-top: 6px; padding-top: 6px; }

/* ---- STAT STRIP (case study pages) ---- */
.stat-strip { background: #C4622D; padding: 0 40px; }
.stat-strip-inner { max-width: 1000px; margin: 0 auto; display: flex; gap: 0; }
.stat-strip-item { flex: 1; padding: 22px 0; border-right: 1px solid rgba(0,0,0,0.15); padding-right: 48px; margin-right: 48px; }
.stat-strip-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.stat-strip-number { display: block; font-family: var(--font-display); font-size: 2.8rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 6px; }
.stat-strip-label { display: block; font-size: 0.78rem; font-weight: 500; color: rgba(0,0,0,0.65); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5; }
