/* julia-case.css */
/*
  Case Study — Julia Avramidis (DashDev Studio)
  Cinematic / Editorial / Minimal
*/

/* =========================================================
  1) TOKENS (Julia-inspired)
========================================================= */
:root {
  --c-header-bg: #1f1f1f;
  --c-bg: #fcfbfa;
  --c-surface: #f7f2ec;
  --c-text: #2e2e2e;
  --c-accent: #7a0000;
  --c-accent-text: #faf8f6;
  --c-border: rgba(46,46,46,0.12);

  --ff-display: "Playfair Display SC", serif;
  --ff-sub: "Cormorant Garamond", serif;
  --ff-ui: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --gutter: 20px;
  --container-max: 1200px;

  scroll-padding-top: 92px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(var(--container-max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.narrow { max-width: 820px; }
.section { padding-block: clamp(48px, 6vw, 96px); }
.section--surface { background: var(--c-surface); }

a { color: inherit; }

/* =========================================================
  2) TOPBAR
========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-header-bg);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 12px;
}

.topbar__brand {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.92;
}

.topbar__links {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* =========================================================
  3) BUTTONS (Julia buttons)
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  border: 1px solid transparent;
  cursor: pointer;

  font-family: var(--ff-ui);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px;
}

.btn--primary {
  font-size: 16px;
  line-height: 1.2;
  padding: 14px 22px;
  min-width: 210px;

  background: var(--c-accent);
  color: var(--c-accent-text);
}

.btn--outline {
  font-size: 16px;
  line-height: 1.2;
  padding: 14px 22px;
  min-width: 210px;

  background: transparent;
  color: var(--c-text);
  border-color: var(--c-accent);
  border-width: 2px;
}

.btn--outline:hover,
.btn--outline:focus-visible { background: rgba(0,0,0,0.04); }

.btn--sm {
  min-width: unset;
  padding: 10px 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  border-radius: 10px;
  white-space: nowrap;
}

.topbar .btn--outline { color: #fff; border-color: rgba(255,255,255,0.65); }
.topbar .btn--outline:hover { background: rgba(255,255,255,0.08); }
.topbar .btn--primary { min-width: unset; }

/* =========================================================
  4) HERO
========================================================= */
.hero { padding-block: clamp(40px, 6vw, 84px); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.hero__title {
  margin: 0 0 14px;
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.05;
  font-size: clamp(38px, 5vw, 76px);
}

.hero__subtitle {
  margin: 0 0 24px;
  font-family: var(--ff-sub);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--c-text);
  max-width: 44ch;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 26px;
}

.pill {
  border: 1px solid var(--c-border);
  background: rgba(255,255,255,0.55);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero__media { justify-self: end; max-width: 420px; width: 100%; }

.device-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(122,0,0,0.35);
  background: #000;
  box-shadow: 0 18px 60px rgba(0,0,0,0.12);
}

.device-video {
  width: 100%;
  display: block;
aspect-ratio: 9 / 19.5; /* iPhone XR+ feel */

  object-fit: cover;
}

.media-caption {
  margin: 12px 0 0;
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.4;
}

/* =========================================================
  5) TYPOGRAPHY
========================================================= */
.section-title {
  margin: 0 0 14px;
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
}

.lead {
  font-family: var(--ff-sub);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.6;
  margin: 0 0 14px;
}

.subhead {
  margin: 22px 0 10px;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

p { margin: 0 0 14px; font-size: 16px; line-height: 1.75; }

.styled-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.styled-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.styled-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-accent);
  font-weight: 700;
}

.styled-ol {
  margin: 16px 0 0;
  padding-left: 20px;
}

.styled-ol li { margin-bottom: 10px; }
.styled-ol li::marker { color: var(--c-accent); font-weight: 700; }

/* =========================================================
  6) LAYOUT BLOCKS
========================================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 4vw, 64px);
  align-items: start;
}

.two-col--flip { grid-template-columns: 1fr 1fr; }
.two-col--flip > div { order: 2; }
.two-col--flip > figure { order: 1; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 28px);
  margin-top: 18px;
}

.card {
  border: 1px solid var(--c-border);
  background: rgba(255,255,255,0.65);
  border-radius: 18px;
  padding: 20px 18px;
}

.card__title {
  margin: 0 0 10px;
  font-family: var(--ff-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 18px;
  color: var(--c-accent);
}

.card__note {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.6;
}

.callout {
  margin-top: 18px;
  border-left: 3px solid var(--c-accent);
  padding: 14px 16px;
  background: rgba(122,0,0,0.04);
  border-radius: 14px;
}

.callout__title {
  margin: 0 0 6px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.callout__text { margin: 0; font-size: 15px; line-height: 1.7; }

.case-media {
  margin: 0;
}

.case-media img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 14px 50px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.case-media figcaption {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.45;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 28px);
  margin-top: 22px;
}

.center-cta {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

/* =========================================================
  7) DIVIDER (Julia style)
========================================================= */
.section-divider--bg {
  position: relative;
  overflow: hidden;
  background-color: #1f1f1f;
}

.section-divider--bg .divider-inner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(160px, 22vw, 260px);
}

.section-divider--bg .divider-text {
  position: relative;
  z-index: 3;
  padding-inline: 24px;
  text-align: center;
  color: #ffffff;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(22px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-divider--bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
  pointer-events: none;
}

/* =========================================================
  8) FOOTER (Julia-inspired) + Chair decor
========================================================= */
.site-footer {
  position: relative;
  overflow: hidden;

  background: linear-gradient(90deg, #000 0%, #7a0000 100%);
  color: #ffffff;
  padding: clamp(56px, 6vw, 96px) var(--gutter);
}

.footer-inner {
  max-width: 1200px;
  margin-inline: auto;

  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: start;
  gap: clamp(32px, 6vw, 64px);
  position: relative;
  z-index: 2;
}

.footer-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-desc {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.9;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.92;
}

.footer-nav a:hover { opacity: 1; }

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.footer-social {
  width: 220px;
  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid #ffffff;
  box-sizing: border-box;

  color: #ffffff;
  text-decoration: none;

  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;

  transition: background 0.2s ease, opacity 0.2s ease;
}

.footer-social:hover { background: rgba(255, 255, 255, 0.08); }

.footer-bottom {
  margin-top: clamp(40px, 6vw, 64px);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
  position: relative;
  z-index: 2;
}

/* Chair decor */
.footer-chair {
  position: absolute;
  right: clamp(24px, 6vw, 120px);
  bottom: clamp(220px, 32vw, 420px); /* 👈 pulls it UP above footer */

  width: min(420px, 55vw);
  opacity: 0.22;

  z-index: 10; /* above footer */
  pointer-events: none;

  transform: rotate(-6deg);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}


/* =========================================================
  9) RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero__media {
    order: -1;
    justify-self: center;
    max-width: 360px;
  }

  .hero__title {
    font-size: 36px;
    text-wrap: balance;
  }

  .hero__subtitle { font-size: 20px; }

  .hero__cta .btn {
    width: 100%;
    max-width: 360px;
  }

  .two-col,
  .two-col--flip {
    grid-template-columns: 1fr;
  }

  .two-col--flip > div,
  .two-col--flip > figure {
    order: initial;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .topbar__links {
    gap: 8px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-socials { align-items: center; }
  .footer-nav ul { align-items: center; }
  .footer-social { width: 200px; }
.footer-chair {
    right: 50%;
    transform: translateX(50%) rotate(-4deg);

    bottom: 260px; /* sits nicely above footer on mobile */
    width: 72vw;
    opacity: 0.18;
  }
}

@media (max-width: 420px) {
  .btn--primary,
  .btn--outline {
    min-width: unset;
    width: 100%;
  }

  .pill { width: 100%; border-radius: 14px; }
}
