/* ============================================================
   IDUN DESIGN — idun.css
   Shared styles across all pages.
   Typefaces: Cormorant Garamond (display) + Jost (body)
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --dark:        #141414;
  --light:       #F8F7F3;
  --accent:      #C4A46B;
  --accent-dk:   #A88850;
  --muted:       #888880;
  --muted-lt:    #B8B8B0;
  --divider:     #2E2E2E;
  --divider-lt:  #E0DED9;
  --max-w:       1100px;
  --font-disp:   'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --font-body:   'Jost', 'Helvetica Neue', Arial, sans-serif;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--light);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1 {
  font-family: var(--font-disp);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.5px;
}
h2 {
  font-family: var(--font-disp);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
}
h3 {
  font-family: var(--font-disp);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 400;
  line-height: 1.25;
}
h4 { font-family: var(--font-disp); font-size: 17px; font-weight: 400; }
p  { line-height: 1.75; }

/* ── UTILITIES ───────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.section { padding: 96px 0; }
.section--dark { background: var(--dark); color: var(--light); }
.section--tight { padding: 64px 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: block;
  font-weight: 400;
}

.divider-h { width: 100%; height: 1px; background: var(--divider-lt); margin: 64px 0; }
.divider-h--dark { background: var(--divider); }

a.text-link {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  cursor: pointer;
  font-weight: 400;
}
a.text-link:hover { border-color: var(--accent); }

/* ── IMAGE PLACEHOLDERS ──────────────────────────────────── */
.ph {
  background: #D4D2CE;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  color: #9A9890;
  text-align: center;
  padding: 24px;
  line-height: 1.6;
  border: 1px dashed #B8B6B2;
}
.ph::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 12px;
  opacity: 0.5;
}
.ph--dark { background: #252525; border-color: #3A3A3A; color: #4A4A44; }
.ph--hero    { height: 580px; }
.ph--project { height: 320px; }
.ph--tall    { height: 460px; }
.ph--portrait { height: 520px; }

/* Real images — swap .ph div for <img class="img-real"> */
.img-real { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-weight: 400;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary { background: var(--accent); color: var(--dark); }
.btn--primary:hover { background: var(--accent-dk); }
.btn--outline { background: transparent; color: var(--light); border: 1px solid rgba(196,164,107,0.5); }
.btn--outline:hover { border-color: var(--accent); }

/* ── GRIDS ───────────────────────────────────────────────── */
.grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3   { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.img-grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.img-grid-3   { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px; }
.img-grid-2-1 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3px; }
.img-grid-1-2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3px; }

/* ── TAGS ────────────────────────────────────────────────── */
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--divider-lt);
  padding: 4px 10px;
  font-weight: 400;
}

/* ── NAVIGATION ──────────────────────────────────────────── */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-disp);
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--light);
  text-transform: uppercase;
  font-weight: 300;
  text-decoration: none;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links li a {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-lt);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 400;
}
.nav-links li a:hover,
.nav-links li a[aria-current="page"] { color: var(--accent); }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header { background: var(--dark); padding: 88px 40px 80px; }
.page-header h1 { color: var(--light); margin-bottom: 16px; font-weight: 300; font-style: italic; }
.page-header .intro { font-size: 16px; color: var(--muted-lt); max-width: 560px; line-height: 1.75; font-weight: 300; }

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonial { padding-left: 20px; border-left: 1px solid var(--accent); }
.testimonial blockquote {
  font-family: var(--font-disp);
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 16px;
  font-weight: 300;
}
.testimonial cite {
  font-size: 11px;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 1px;
  line-height: 1.6;
  display: block;
  font-weight: 400;
  font-family: var(--font-body);
  text-transform: uppercase;
}
.section--dark .testimonial blockquote { color: var(--light); }
.section--dark .testimonial cite { color: var(--muted-lt); }

/* ── CTA BAND ────────────────────────────────────────────── */
.cta-band { text-align: center; padding: 112px 40px; background: var(--dark); }
.cta-band h2 { color: var(--light); margin-bottom: 20px; font-style: italic; font-weight: 300; }
.cta-band p { font-size: 16px; color: var(--muted-lt); max-width: 520px; margin: 0 auto 40px; line-height: 1.8; font-weight: 300; }
.cta-secondary { display: block; margin-top: 20px; font-size: 12px; color: var(--accent); text-decoration: none; font-family: var(--font-body); font-weight: 300; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer.site-footer {
  background: var(--dark);
  padding: 48px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--divider);
}
.footer-left { font-size: 12px; color: var(--muted); line-height: 1.7; font-weight: 300; }
.footer-left a { color: var(--accent); text-decoration: none; }
.footer-right { display: flex; gap: 28px; }
.footer-right a { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; font-weight: 400; }
.footer-right a:hover,
.footer-right a[aria-current="page"] { color: var(--accent); }

/* ── CASE STUDY SHARED ───────────────────────────────────── */
.cs-nav-strip {
  background: var(--dark);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--divider);
}
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  font-family: var(--font-body);
  font-weight: 400;
}
.cs-back:hover { color: var(--accent); }
.cs-nav-title { font-size: 11px; color: var(--muted); letter-spacing: 0.5px; font-family: var(--font-body); font-weight: 300; }

.scope-band { background: var(--dark); padding: 40px; }
.scope-band-inner { max-width: var(--max-w); margin: 0 auto; }
.scope-band .label { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; display: block; font-family: var(--font-body); font-weight: 400; }
.scope-band .disciplines { font-family: var(--font-disp); font-size: 21px; font-style: italic; color: var(--accent); line-height: 1.6; font-weight: 300; }

.cs-body { padding: 88px 40px; max-width: var(--max-w); margin: 0 auto; }
.cs-row { display: grid; grid-template-columns: 200px 1fr; gap: 72px; align-items: start; margin-bottom: 72px; }
.cs-row-label { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); font-family: var(--font-body); font-weight: 400; padding-top: 6px; }
.cs-row-body p { font-size: 16px; color: var(--muted); line-height: 1.85; margin-bottom: 18px; font-weight: 300; }
.cs-row-lead { font-family: var(--font-disp) !important; font-size: 19px !important; color: #1A1A1A !important; line-height: 1.7 !important; font-weight: 300 !important; }

.cs-testimonial { border-left: 1px solid var(--accent); padding-left: 32px; }
.cs-testimonial blockquote { font-family: var(--font-disp); font-style: italic; font-size: clamp(18px, 2.5vw, 26px); color: #1A1A1A; line-height: 1.6; margin-bottom: 24px; font-weight: 300; }
.cs-testimonial cite { font-size: 11px; color: var(--muted); font-style: normal; font-family: var(--font-body); font-weight: 400; letter-spacing: 0.5px; line-height: 1.6; display: block; }
.cs-stat { font-family: var(--font-disp); font-size: clamp(72px, 10vw, 140px); line-height: 0.9; font-weight: 300; }

/* ── PROJECT TILES (Work index + Home) ───────────────────── */
.project-tile { position: relative; cursor: pointer; overflow: hidden; }
.project-tile:hover .project-overlay { opacity: 1; }
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,20,20,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}
.project-overlay span { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); font-family: var(--font-body); font-weight: 400; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.project-info { padding: 20px 0 8px; }
.project-info h3 { font-size: 19px; margin-bottom: 6px; font-weight: 400; }
.project-info .desc { font-size: 14px; color: var(--muted); line-height: 1.6; font-weight: 300; }

/* ── SERVICES ────────────────────────────────────────────── */
.service-item { padding: 28px 0; border-top: 1px solid var(--divider-lt); }
.service-item h3 { font-size: 19px; margin-bottom: 10px; }
.service-item p { font-size: 16px; color: var(--muted); line-height: 1.75; font-weight: 300; }

.service-block { padding: 40px 0; border-top: 1px solid var(--divider-lt); display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.service-block h3 { font-size: 21px; margin-top: 4px; }
.service-block p { font-size: 16px; color: var(--muted); line-height: 1.8; font-weight: 300; }
.process-note { background: #F2F1ED; border-left: 2px solid var(--accent); padding: 24px 28px; margin-top: 48px; font-family: var(--font-disp); font-size: 17px; color: var(--muted); line-height: 1.75; font-style: italic; font-weight: 300; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-intro p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; font-weight: 300; }
.form-group { margin-bottom: 28px; }
.form-group label { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-family: var(--font-body); font-weight: 400; }
.form-group input,
.form-group textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--divider-lt); padding: 10px 0; font-family: var(--font-body); font-size: 16px; color: var(--dark); outline: none; transition: border-color 0.2s; font-weight: 300; }
.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }
.direct-contact { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--divider-lt); }
.direct-contact p { font-size: 12px; color: var(--muted); margin-bottom: 8px; font-family: var(--font-body); letter-spacing: 0.5px; }
.direct-contact a { font-family: var(--font-disp); font-size: 18px; color: var(--accent); text-decoration: none; font-style: italic; }

/* ── ABOUT ───────────────────────────────────────────────── */
.bio-section { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.bio-text .title-line { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 40px; display: block; font-family: var(--font-body); font-weight: 400; }
.bio-text p { font-size: 16px; line-height: 1.85; color: #2A2A2A; margin-bottom: 20px; font-weight: 300; }
.credentials-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.cred-col h4 { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; font-family: var(--font-body); font-weight: 400; }
.cred-col ul { list-style: none; }
.cred-col li { font-size: 14px; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--divider-lt); line-height: 1.55; font-weight: 300; }
.philosophy-quote { max-width: 720px; margin: 0 auto; text-align: center; }
.philosophy-quote p { font-family: var(--font-disp); font-style: italic; font-size: clamp(20px, 2.5vw, 26px); line-height: 1.65; color: var(--light); font-weight: 300; }

/* ── RECOGNITION PAGE ────────────────────────────────────── */
.recog-header { background: var(--dark); padding: 88px 40px 80px; }
.recog-header h1 { color: var(--light); font-style: italic; font-weight: 300; margin-bottom: 16px; }
.recog-header .intro { font-size: 16px; color: var(--muted-lt); max-width: 600px; line-height: 1.75; font-weight: 300; }

/* Publication sections */
.pub-section { padding: 88px 40px; }
.pub-section--alt { background: var(--dark); }
.pub-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.pub-tag { display: block; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; font-family: var(--font-body); font-weight: 400; }
.pub-section h2 { font-weight: 300; font-style: italic; margin-bottom: 28px; line-height: 1.15; }
.pub-section--alt h2 { color: var(--light); }
.pub-body { font-size: 16px; color: var(--muted); line-height: 1.85; margin-bottom: 16px; font-weight: 300; }
.pub-section--alt .pub-body { color: var(--muted-lt); }
.pub-publisher { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-top: 28px; font-family: var(--font-body); font-weight: 400; }

/* Awards tile grid */
.awards-section { padding: 88px 40px; background: #F2F1ED; }
.awards-inner { max-width: var(--max-w); margin: 0 auto; }
.awards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 48px; }
.award-tile {
  background: var(--light);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.award-tile:hover { border-bottom-color: var(--accent); }
.award-badge { width: 128px; height: 128px; display: flex; align-items: center; justify-content: center; }
.award-badge .ph { width: 128px; height: 128px; border-radius: 0; font-size: 9px; }
.award-badge img { width: 128px; height: 128px; object-fit: contain; }
.award-title { font-family: var(--font-disp); font-size: 19px; font-weight: 400; color: var(--dark); line-height: 1.3; }
.award-body { font-size: 14px; color: var(--muted); line-height: 1.65; font-weight: 300; }
.award-year { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-family: var(--font-body); font-weight: 400; margin-top: auto; }

/* Testimonials carousel */
.testimonials-section { padding: 88px 40px; background: var(--dark); }
.testimonials-inner { max-width: var(--max-w); margin: 0 auto; }
.carousel-wrap { position: relative; overflow: hidden; margin-top: 48px; }
.carousel-track { display: flex; transition: transform 0.55s cubic-bezier(0.4,0,0.2,1); }
.carousel-slide { min-width: 100%; padding: 0 4px; }
.carousel-quote {
  border-left: 1px solid var(--accent);
  padding-left: 40px;
  max-width: 780px;
}
.carousel-quote blockquote { font-family: var(--font-disp); font-style: italic; font-size: clamp(20px, 2.8vw, 30px); color: var(--light); line-height: 1.55; margin-bottom: 32px; font-weight: 300; }
.carousel-quote cite { font-size: 11px; color: var(--muted-lt); font-style: normal; font-family: var(--font-body); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; line-height: 1.8; display: block; }
.carousel-controls { display: flex; align-items: center; gap: 16px; margin-top: 48px; }
.carousel-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--divider);
  background: transparent;
  color: var(--muted-lt);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: border-color 0.2s, color 0.2s;
  font-family: var(--font-body);
}
.carousel-btn:hover { border-color: var(--accent); color: var(--accent); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 24px; height: 1px; background: var(--divider); cursor: pointer; transition: background 0.2s; }
.carousel-dot.active { background: var(--accent); }

/* ── CLIENT STRIP ────────────────────────────────────────── */
.client-strip { border-top: 1px solid var(--divider-lt); border-bottom: 1px solid var(--divider-lt); padding: 48px 0; }
.client-list { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.client-name { font-family: var(--font-disp); font-size: 14px; color: var(--muted); letter-spacing: 0.3px; }

/* ── NAV LOGO IMAGE ──────────────────────────────────────── */
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img {
  height: 18px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.nav-logo:hover .nav-logo-img { opacity: 1; }

/* ── SERVICE BLOCK (services.html) ───────────────────────── */
.service-block h2 { font-size: clamp(19px, 2vw, 22px); margin-top: 4px; font-weight: 400; }
.service-block--featured {
  border-top: 1px solid var(--accent);
  background: #FAF9F5;
  padding: 40px 32px;
  margin-bottom: 8px;
}
.service-block--featured h2 { color: var(--dark); }
.service-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 10px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 400;
}

/* ── FAQ SECTION ─────────────────────────────────────────── */
.faq-section { padding: 88px 0; background: #F2F1ED; }
.faq-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.faq-list { margin-top: 48px; }
.faq-item {
  border-top: 1px solid var(--divider-lt);
  padding: 28px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--divider-lt); }
.faq-question {
  margin: 0;
  font-family: var(--font-disp);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.35;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
  font-family: var(--font-body);
  font-weight: 300;
}
.faq-answer {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  margin-top: 16px;
  max-width: 720px;
}

/* ── CONTACT MAP ─────────────────────────────────────────── */
.contact-map { width: 100%; height: 360px; border: none; display: block; filter: grayscale(1) contrast(1.1); }
.contact-address {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--divider-lt);
}
.contact-address p { font-size: 14px; color: var(--muted); line-height: 1.7; font-weight: 300; }
.contact-address a { color: var(--accent); text-decoration: none; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeUp 0.7s ease both; }
.animate-in--delay-1 { animation-delay: 0.15s; }
.animate-in--delay-2 { animation-delay: 0.3s; }
.animate-in--delay-3 { animation-delay: 0.45s; }
