/* IDE WEBSITE - SHARED STYLES */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F7F4EF;
  --white: #FFFFFF;
  --accent: #C56A4A;
  --accent-hover: #D07856;
  --dark: #1C1916;
  --muted: #4A4540;
  --border: #E4DED7;
  --bg-alt: #F9F6F0;
}

body {
  background: var(--bg);
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo { height: 44px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links .nav-cta a {
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 3px;
  border: 1.5px solid var(--accent);
  transition: background 0.2s;
}
.nav-links .nav-cta a:hover { background: var(--accent-hover); color: #fff; }
.nav-links .nav-cta a { white-space: nowrap; }
@media (max-width: 1024px) and (min-width: 901px) {
  .nav { padding: 0 32px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.1em; }
  .nav-links .nav-cta a { padding: 10px 16px; }
}
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 5px 0; transition: 0.3s; }

/* FOOTER */
.ft {
  background: var(--dark);
  padding: 64px 48px 32px;
}
.ft-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2E2A27;
  margin-bottom: 32px;
}
.ft-logo { height: 40px; width: auto; display: block; margin-bottom: 16px; opacity: 0.7; }
.ft-tagline { font-family: 'Inter', sans-serif; font-size: 14px; color: #F7F4EF; opacity: 0.55; line-height: 1.65; }
.ft-col-title {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.ft-col-links { list-style: none; }
.ft-col-links li { margin-bottom: 10px; }
.ft-col-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #F7F4EF;
  opacity: 0.55;
  text-decoration: none;
  transition: opacity 0.2s;
}
.ft-col-links a:hover { opacity: 1; }
.ft-legal-row {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ft-legal {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #444;
}
.ft-brand {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: #F7F4EF;
  opacity: 0.25;
}

/* SHARED COMPONENTS */
.tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.tag::before, .tag::after { content: ''; display: block; width: 32px; height: 1px; background: var(--accent); }
.tag--left::after { display: none; }
.tag--center { justify-content: center; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 17px 44px;
  border-radius: 3px;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }

.page-hero {
  background: var(--bg);
  padding: 96px 48px 80px;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: 760px; margin: 0 auto; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 20px;
}
.page-hero p {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.section { padding: 88px 48px; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-inner--narrow { max-width: 760px; margin: 0 auto; }
.section-inner--mid { max-width: 900px; margin: 0 auto; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.stat-item {
  background: var(--white);
  padding: 40px 32px;
  text-align: center;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.placeholder-img {
  background: var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* LOGO CAROUSEL */
.lc-wrap { overflow: hidden; padding: 32px 0; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lc-track { display: flex; gap: 48px; width: max-content; animation: lc-scroll 40s linear infinite; align-items: center; }
.lc-track img { height: 32px; width: auto; object-fit: contain; filter: grayscale(1) opacity(0.5); flex-shrink: 0; }
.lc-track img:hover { filter: grayscale(0) opacity(1); transition: filter 0.3s; }
@keyframes lc-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* TESTIMONIAL CARD */
.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
}
.testi-quote {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.75;
  margin-bottom: 20px;
}
.testi-name {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.testi-role {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; gap: 16px; text-align: left;
}
.faq-q-text { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: var(--dark); line-height: 1.5; }
.faq-icon { flex-shrink: 0; font-family: 'Playfair Display', serif; font-size: 22px; color: var(--accent); line-height: 1; transition: transform 0.3s; width: 20px; text-align: center; }
.faq-a { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--muted); line-height: 1.85; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a-inner { padding-bottom: 22px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-a { max-height: 600px; }

/* MOBILE NAV */
@media (max-width: 900px) {
  .nav { padding: 0 32px; }
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta a { display: block; }
}
@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .ft-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .ft { padding: 48px 24px 24px; }
  .ft-legal-row { flex-direction: column; gap: 8px; text-align: center; }
  .page-hero { padding: 64px 24px 56px; }
  .page-hero h1 { font-size: 36px; }
  .section { padding: 56px 24px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ── PROJECT / ARTWORK DETAIL PAGES ── */

/* ── HERO ── */
.proj-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
  background: var(--dark);
}
.proj-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.proj-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,25,22,0.72) 0%, rgba(28,25,22,0.18) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 56px;
}
.proj-hero-breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.65);
  margin-bottom: 16px;
}
.proj-hero-breadcrumb a { color: rgba(247,244,239,0.65); text-decoration: none; transition: color 0.2s; }
.proj-hero-breadcrumb a:hover { color: #fff; }
.proj-hero-breadcrumb span { margin: 0 8px; }
.proj-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0;
  max-width: 900px;
}

/* ── OVERVIEW ROW: 50/50 meta + carousel ── */
.proj-overview {
  background: var(--white);
  padding: 72px 56px 56px;
}
.proj-overview-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ── LEFT: META ── */
.proj-meta-col {}
.proj-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 4px 10px;
  margin-bottom: 28px;
}
.proj-meta-table { border-top: 1px solid var(--border); }
.proj-meta-row {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.proj-meta-key {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100px;
  flex-shrink: 0;
  padding-top: 2px;
}
.proj-meta-val {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--dark);
  line-height: 1.6;
}

/* ── RIGHT: CAROUSEL ── */
.proj-carousel-col {}
.carousel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.carousel-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.carousel-counter {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--muted);
}
.carousel-wrap { position: relative; }
.carousel-viewport {
  overflow: hidden;
  border-radius: 4px;
  background: var(--dark);
  width: 100%;
}
.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  /* height set to fit images naturally - use contain so nothing is cropped */
  height: 420px;
}
.carousel-track img {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  height: 100%;
  object-fit: contain;   /* full image always visible, no cropping */
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(28,25,22,0.55);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.carousel-btn:hover { background: rgba(28,25,22,0.85); }
.carousel-btn--prev { left: 12px; }
.carousel-btn--next { right: 12px; }
.carousel-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active { background: var(--accent); transform: scale(1.3); }

/* ── DESCRIPTION: full width below overview ── */
.proj-description {
  background: var(--white);
  padding: 0 56px 80px;
  border-top: 1px solid var(--border);
}
.proj-description-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 56px;
}
.proj-body-text p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 16px;
  max-width: 780px;
}

/* ── PROJECT NAV ── */
.proj-nav-section { padding: 0 56px 64px; background: var(--white); border-top: 1px solid var(--border); }
.proj-nav {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 32px 0 0;
}
.proj-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.proj-nav a:hover { opacity: 0.7; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .proj-overview { padding: 56px 32px 48px; }
  .proj-overview-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* on mobile: carousel comes AFTER meta - reorder via order */
  .proj-meta-col  { order: 1; }
  .proj-carousel-col { order: 2; }
  .proj-description { padding: 0 32px 64px; }
  .proj-hero-overlay { padding: 32px; }
  .proj-nav-section { padding: 0 32px 48px; }
}
@media (max-width: 600px) {
  /* Tighter hero on mobile */
  .proj-hero { height: 42vh; min-height: 240px; }
  .proj-hero-overlay { padding: 24px 20px; }
  .proj-overview { padding: 36px 20px 32px; }
  .proj-description { padding: 0 20px 48px; }
  .proj-description-inner { padding-top: 36px; }
  .carousel-track { height: 280px; }
  .proj-nav-section { padding: 0 20px 40px; }
}
