/* =====================================================================
   Cannes Bodia — landing page
   Built from "Cannes-Bodia website.psd" (Home artboard, 2576px wide)
   Palette + type extracted from the PSD. See README for font notes.
   ===================================================================== */

:root {
  /* palette (sampled from the PSD) */
  --white:        #ffffff;
  --ink:          #1a1a1a;   /* near-black text / dark sections */
  --charcoal:     #292929;   /* dark pills & buttons */
  --cream:        #f2f0ec;   /* partner strip background */
  --footer-dark:  #292d29;   /* footer logo band */
  --footer-olive: #71776f;   /* footer bottom band ("bag" strip) */
  --muted:        #555555;   /* secondary text on light */
  --muted-light:  #cfcfcf;   /* secondary text on dark */
  --hairline:     rgba(255,255,255,.22);

  /* type — originals are Coolvetica (display) + Riviera Nights (serif).
     Substituted with free Google Fonts; system Arial matches the UI text. */
  --font-display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-serif:   "Playfair Display", Georgia, "Times New Roman", serif;
  --font-serif-body: "Lora", Georgia, "Times New Roman", serif;
  --font-impact:  Impact, "Anton", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --font-ui:      Arial, "Helvetica Neue", Helvetica, sans-serif;

  --maxw: 1240px;
  --nav-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: .95rem;
  letter-spacing: .01em;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--pill-dark { background: var(--charcoal); color: var(--white); }
.btn--pill-dark:hover { background: #000; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { box-shadow: 0 8px 26px rgba(0,0,0,.25); transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,.10); color: var(--white); border: 1px solid rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.20); }

/* ============================ NAV ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #ececec;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
}
.nav__logo img { height: 38px; width: auto; }
.nav__links {
  margin-left: auto;
  display: flex;
  gap: 34px;
  font-size: .95rem;
}
.nav__links a { color: var(--ink); position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--ink); transition: width .2s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 4px; }

.nav__toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: .25s; }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  background: #2a2a2a url("../assets/img/hero.png") center right / cover no-repeat;
  z-index: -2;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,15,15,.86) 0%, rgba(20,20,20,.72) 42%, rgba(20,20,20,.55) 100%);
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  min-height: clamp(560px, 78vh, 820px);
  padding-block: 84px;
}
.hero__content { max-width: 720px; }
.hero__headline { margin: 0 0 22px; font-weight: 400; }
.hero__headline-1,
.hero__headline-2 { display: block; font-family: var(--font-display); line-height: 1.04; white-space: nowrap; }
.hero__headline-1 {
  font-style: italic;
  font-weight: 300;
  letter-spacing: .005em;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}
.hero__headline-2 {
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  margin-top: .05em;
}
.hero__sub { margin: 0; font-size: clamp(1rem, 1.4vw, 1.22rem); color: #eaeaea; }
.hero__sub--date { margin-top: 6px; color: #d2d2d2; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* feature list (right column) */
.features {
  background: rgba(0,0,0,.12);
  backdrop-filter: blur(2px);
  border-radius: 6px;
  padding: 6px 4px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--hairline);
  transition: background .2s ease, padding-left .2s ease;
}
.feature:last-child { border-bottom: none; }
.feature:hover { background: rgba(255,255,255,.06); padding-left: 24px; }
.feature__icon { width: 46px; height: 46px; object-fit: contain; flex: none; }
.feature__text { display: flex; flex-direction: column; }
.feature__title { font-size: 1.18rem; font-weight: 400; color: var(--white); }
.feature__sub { font-size: .92rem; color: var(--muted-light); margin-top: 3px; }

/* ============================ PARTNERS ============================ */
.partners { background: var(--cream); }
.partners__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  padding-block: 30px;
}
.partners__label {
  font-size: .95rem;
  color: var(--muted);
  flex: none;
}
.partners__list {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
}
.partners__list img { height: 32px; width: auto; object-fit: contain; opacity: .95; transition: .2s; }
.partners__list img.partners__metama { height: 22px; } /* 30% smaller than the others */
.partners__list li:hover img { opacity: 1; transform: scale(1.04); }
.partners__wordmark { font-weight: 700; font-size: 1.05rem; color: #333; letter-spacing: .01em; }

/* ============================ ABOUT ============================ */
.about { background: var(--white); }
.about__inner { padding-block: clamp(56px, 8vw, 96px); max-width: 980px; }
.about__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin: 0 0 28px;
  color: var(--ink);
}
.about__body p {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.75;
  color: #2c2c2c;
  margin: 0 0 22px;
  max-width: 70ch;
}
.about__body p:last-child { margin-bottom: 0; }

/* ============================ FOOTER ============================ */
.footer { background: var(--footer-dark); }
.footer__brand {
  display: flex;
  justify-content: center;
  padding: 40px 28px 34px;
}
.footer__logo { height: 64px; width: auto; }
.footer__bag {
  background: var(--footer-olive);
  background-image: url("../assets/img/footer-bag.png");
  background-size: cover;
  background-position: center;
}
.footer__bag-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-block: 30px;
}
.footer__disclaimer { margin: 0; color: #f3f3f3; font-size: .95rem; }
.footer__social { display: flex; align-items: center; gap: 20px; }
.footer__follow { color: #f3f3f3; font-size: .95rem; }
.social { display: flex; gap: 12px; }
.social a { display: block; transition: transform .15s ease, opacity .2s ease; opacity: .92; }
.social a:hover { transform: translateY(-2px); opacity: 1; }
.social img { width: 30px; height: 30px; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; padding-block: 64px; }
  .features { max-width: 520px; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid #ececec;
    padding: 8px 28px 18px;
  }
  .nav.is-open .nav__links a { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
  .nav.is-open .nav__cta {
    display: inline-flex;
    position: absolute;
    top: calc(var(--nav-h) + 140px);
    left: 28px;
  }

  .partners__inner { gap: 22px; }
  .footer__bag-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero__headline-1, .hero__headline-2 { white-space: normal; }
}

/* =====================================================================
   SUB-PAGE COMPONENTS  (The Work, Case study, Contact)
   ===================================================================== */

/* ---------- shared sub-page hero ---------- */
.subhero { position: relative; color: var(--white); overflow: hidden; isolation: isolate; }
.subhero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.subhero__overlay { position: absolute; inset: 0; z-index: -1; }
.subhero--work .subhero__bg    { background-image: url("../assets/img/hero.png"); background-color: #2a2a2a; }
.subhero--work .subhero__overlay { background: linear-gradient(100deg, rgba(15,15,15,.85), rgba(20,20,20,.55)); }
.subhero--contact .subhero__bg { background-image: url("../assets/img/contact-hero.png"); background-position: center right; background-color: #2b2b2b; }
.subhero--contact .subhero__overlay { background: linear-gradient(95deg, rgba(10,10,10,.72) 0%, rgba(10,10,10,.30) 55%, rgba(10,10,10,.10) 100%); }
/* no campaign photo yet — solid dark subhero */
.subhero--plain .subhero__bg { background-color: #232323; }
.subhero--plain .subhero__overlay { background: linear-gradient(100deg, rgba(15,15,15,.92) 0%, rgba(25,25,25,.66) 100%); }
/* campaign thumbnail behind the case-study header */
.subhero--photo .subhero__bg { background-color: #232323; background-size: cover; background-position: center; }
.subhero--photo .subhero__overlay { background: linear-gradient(100deg, rgba(12,12,12,.86) 0%, rgba(18,18,18,.62) 55%, rgba(18,18,18,.42) 100%); }

.subhero__inner { display: flex; align-items: center; gap: 48px; min-height: clamp(380px, 52vh, 560px); padding-block: 72px; }
.subhero__content { max-width: 760px; }
.subhero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.04;
  margin: 0;
  overflow-wrap: break-word;
}
.subhero__title .pipe { font-weight: 400; opacity: .9; }
.subhero__sub { font-size: clamp(1rem, 1.5vw, 1.3rem); color: #e8e8e8; margin: 18px 0 0; max-width: 56ch; }
.subhero__media {
  flex: none;
  width: clamp(220px, 30vw, 380px);
  aspect-ratio: 5 / 3;
  background: rgba(255,255,255,.92);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

/* ---------- The Work — card grid ---------- */
.work { background: var(--white); }
.work__inner { padding-block: clamp(56px, 8vw, 92px); }
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 36px; }
.card { display: block; color: inherit; }
.card__thumb {
  aspect-ratio: 639 / 309;
  background: #ebebeb;
  border-radius: 4px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__thumb .card__ph { color: #b9b9b9; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.card:hover .card__thumb { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.14); }
.card__title { font-family: var(--font-serif); font-weight: 700; font-size: 1.5rem; color: var(--ink); margin: 20px 0 8px; }
.card__award { font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: #787878; }

/* ---------- Case study ---------- */
.case { background: var(--white); }
.case__inner {
  padding-block: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.case__rule { background: #e2e2e2; align-self: stretch; }
.case__label {
  font-family: var(--font-impact);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--ink);
}
.case__block + .case__block { margin-top: 44px; }
.case__body { font-family: var(--font-serif-body); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; color: #1f1f1f; margin: 0; max-width: 46ch; }
.case__body + .case__body { margin-top: 18px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 38px 30px; }
.stat__num { font-family: var(--font-impact); font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1; color: var(--ink); letter-spacing: .01em; }
.stat__label { font-size: .85rem; color: #444; margin-top: 8px; }

/* ---------- Contact form ---------- */
.contact { background: var(--white); }
.contact__inner { padding-block: clamp(48px, 7vw, 88px); max-width: 760px; margin-inline: 0; }
.contact__title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 0 0 22px; color: var(--ink); }
.contact__intro { font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.7; color: #2c2c2c; margin: 0 0 40px; }
.contact__intro a { text-decoration: underline; }
.form__group { margin-bottom: 26px; }
.form__group label { display: block; font-size: 1.12rem; color: var(--ink); margin-bottom: 10px; }
.form__group input,
.form__group textarea {
  width: 100%;
  background: #e0e0e0;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 15px 16px;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.form__group input:focus,
.form__group textarea:focus { outline: none; background: #eaeaea; border-color: var(--charcoal); }
.form__group textarea { min-height: 140px; resize: vertical; }
.btn--submit { background: var(--ink); color: var(--white); padding: 15px 44px; font-size: 1rem; border: none; margin-top: 6px; }
.btn--submit:hover { background: #000; transform: translateY(-1px); }
.form__status { margin: 16px 0 0; color: var(--muted); font-size: .95rem; min-height: 1.2em; }

/* ---------- sub-page responsive ---------- */
@media (max-width: 900px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .subhero__media { display: none; }
  .case__inner { grid-template-columns: 1fr; gap: 44px; }
  .case__rule { display: none; }
}
@media (max-width: 560px) {
  .work__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
