/* =============================================
   GLOBAL STYLES — Denise Ventura Portfolio
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@800&family=Space+Grotesk:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #F9F8F5;
  color: #0C1220;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* ---------- Typography Scale ---------- */
.font-space { font-family: 'Space Grotesk', sans-serif; }
.font-dm    { font-family: 'DM Sans', sans-serif; }
.font-inter { font-family: 'Inter', sans-serif; }

/* ---------- Colors ---------- */
:root {
  --navy:       #0C1220;
  --cream:      #F9F8F5;
  --white:      #FFFFFF;
  --red:        #E42313;
  --blue:       #1755F4;
  --gray-text:  #6B6968;
  --gray-meta:  #9D9B99;
  --border:     #E3E2DF;
  --green:      #00b47e;
}

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------- NAV ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 120px;
  background-color: #F9F8F5;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #0C1220;
}

.nav-center {
  display: flex;
  gap: 40px;
}

.nav-center a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #0C1220;
  transition: opacity 0.2s;
}

.nav-center a:hover { opacity: 0.6; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-hello {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
  background: #0C1220;
  padding: 10px 20px;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.btn-hello:hover { opacity: 0.8; }

/* Mobile nav */
.m-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
  background-color: #F9F8F5;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.m-nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #0C1220;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 0;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0C1220;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

/* ---- CSS-only hamburger toggle ---- */
.menu-toggle {
  display: none;
}

/* Mobile menu panel */
.m-menu {
  display: none;
}

/* Click-outside overlay */
.m-menu-overlay {
  display: none;
  cursor: default;
}

/* Mobile menu link styles */
.m-menu-link {
  display: block;
  padding: 16px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #0C1220;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.m-menu-link:hover { background: #F9F8F5; }

.m-menu-cta {
  padding: 16px 20px;
}

.m-menu-btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  background: #0C1220;
  padding: 10px 20px;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.m-menu-btn:hover { opacity: 0.8; }

/* ---------- FOOTER ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 48px;
  background-color: #0C1220;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-links a:hover { color: #FFFFFF; }

/* Mobile footer */
.m-footer {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 20px;
  background-color: #0C1220;
}

.m-footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.m-footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

/* ---------- CASE STUDY SHARED ---------- */

/* Hero */
.cs-hero {
  position: relative;
  width: 100%;
  min-height: 840px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,18,32,0.05) 0%,
    rgba(12,18,32,0.30) 33%,
    rgba(12,18,32,0.82) 63%,
    rgba(12,18,32,0.95) 100%
  );
}

.cs-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  padding: 0 48px 96px;
}

.cs-tag-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.cs-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 100px;
}

.cs-tag-blue   { background: #1755F4; }
.cs-tag-green  { background: #00b47e; border: 1px solid rgba(255,255,255,0.2); }
.cs-tag-gray   { background: rgba(193,193,193,0.6); border: 1px solid rgba(255,255,255,0.2); }

.cs-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 80px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -2.5px;
  line-height: 1.05;
  margin-bottom: 24px;
}

.cs-hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-width: 600px;
}

/* Meta Strip */
.meta-strip {
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.meta-strip-inner {
  width: 100%;
  max-width: 960px;
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #9D9B99;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.meta-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #111110;
}

/* Section */
.cs-sec {
  width: 100%;
  display: flex;
  justify-content: center;
}

.cs-sec-cream  { background: #F9F8F5; }
.cs-sec-white  { background: #FFFFFF; }
.cs-sec-dark   { background: #0C1220; }

.cs-cont {
  width: 100%;
  max-width: 960px;
  padding: 100px 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Vertical padding overrides for adjacent sections */
.cs-cont.cs-v-80      { padding-top: 80px; padding-bottom: 80px; }
.cs-cont.cs-v-56      { padding-top: 56px; padding-bottom: 56px; }
.cs-cont.cs-v-100-48  { padding-bottom: 48px; }
.cs-cont.cs-v-48-100  { padding-top: 48px; }
.cs-cont.cs-v-100-80  { padding-bottom: 80px; }

/* Section header */
.sec-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #1755F4;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.sec-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: #0C1220;
  letter-spacing: -1.3px;
  line-height: 1.1;
}

.sec-title-white { color: #FFFFFF; }

.sec-lead {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #6B6968;
  line-height: 1.7;
  max-width: 720px;
}

.sec-lead-white { color: rgba(255,255,255,0.45); }

.narrow {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Problem Cards */
.prob-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prob-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.prob-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-num {
  font-family: 'Bricolage Grotesque', 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(23,85,244,0.6);
  letter-spacing: 1px;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #0C1220;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.card-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6B6968;
  line-height: 1.65;
}

/* Solution Cards */
.sol-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
  row-gap: 48px;
}

.sol-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sol-card-icon {
  font-size: 28px;
  line-height: 1;
  color: #0C1220;
}
img.sol-card-icon { width: 28px; height: 28px; display: block; flex-shrink: 0; font-size: unset; }

.sol-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0C1220;
  letter-spacing: -0.2px;
}

.sol-card-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #6B6968;
  line-height: 1.6;
}

/* Reflection Cards */
.rf-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
  row-gap: 48px;
}

.rf-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rf-icon { font-size: 28px; line-height: 1; color: #0C1220; }
img.rf-icon { width: 28px; height: 28px; display: block; flex-shrink: 0; font-size: unset; }

.rf-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #0C1220;
  letter-spacing: -0.2px;
}

.rf-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6B6968;
  line-height: 1.7;
}

/* Method List */
.meth-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.meth-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.meth-badge {
  width: 32px;
  height: 32px;
  background: #EEF2FE;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1755F4;
}

.meth-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meth-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0C1220;
}

.meth-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #6B6968;
  line-height: 1.6;
}

/* Outcomes metrics */
.met-row {
  display: flex;
  width: 100%;
}

.met-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.met-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -2.5px;
  line-height: 1;
  text-align: center;
}

.met-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-align: center;
  line-height: 1.4;
  max-width: 120px;
}

/* Image section */
.cs-img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  object-fit: cover;
}

.cs-img-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Next Case Study */
.np-sec {
  width: 100%;
  background: #0C1220;
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.np-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.np-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -1.2px;
  line-height: 1;
}

.np-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}

.np-btn:hover { background: rgba(255,255,255,0.08); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  /* Nav swap */
  .nav { display: none; }
  .m-nav { display: flex; }

  /* Mobile menu panel */
  .m-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(12,18,32,0.08);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
    pointer-events: none;
  }

  /* Click-outside overlay */
  .m-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 98;
    pointer-events: none;
  }

  /* Hamburger → X animation when menu open */
  .menu-toggle:checked ~ .m-nav .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle:checked ~ .m-nav .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .menu-toggle:checked ~ .m-nav .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Enable overlay clicks when menu is open */
  .menu-toggle:checked ~ .m-menu-overlay {
    pointer-events: auto;
  }

  /* Show menu when checked */
  .menu-toggle:checked ~ .m-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
  }

  /* Footer swap */
  .footer { display: none; }
  .m-footer { display: flex; }

  /* Case study adjustments */
  .cs-hero { min-height: 363px; }

  .cs-hero-title {
    font-size: 36px;
    letter-spacing: -1.5px;
  }

  .cs-hero-sub { font-size: 15px; }

  .cs-hero-content {
    padding: 0 20px 40px;
    max-width: 100%;
  }

  .meta-strip-inner {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .meta-item {
    width: 50%;
    padding: 20px 16px;
    gap: 6px;
  }

  .meta-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .meta-item:nth-child(1),
  .meta-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .cs-cont {
    padding: 64px 20px;
    gap: 32px;
  }

  .cs-cont.cs-v-80,
  .cs-cont.cs-v-56,
  .cs-cont.cs-v-100-48,
  .cs-cont.cs-v-48-100 {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .sec-title { font-size: 32px; letter-spacing: -1px; }
  .sec-lead  { font-size: 15px; }

  .prob-row { grid-template-columns: 1fr; }
  .sol-row  { grid-template-columns: 1fr; row-gap: 16px; }
  .rf-row   { grid-template-columns: 1fr; row-gap: 24px; }

  .cs-img { border-radius: 12px; }

  .met-row {
    flex-direction: column;
    gap: 32px;
  }

  .met-item {
    align-items: center;
    flex-direction: row;
    gap: 20px;
    padding: 0 0 32px 0;
    border-bottom: 1px solid rgba(255,255,255,0.078);
    width: 100%;
  }

  .met-val {
    font-size: 52px;
    letter-spacing: -2px;
    text-align: left;
    min-width: 130px;
    width: 130px;
    flex-shrink: 0;
  }

  .met-lbl {
    font-size: 14px;
    text-align: left;
    max-width: none;
  }

  .cs-img-row { grid-template-columns: 1fr; }

  /* Method list: tighter gap on mobile, badges top-aligned with multi-line text */
  .meth-list { gap: 20px; }
  .meth-item { align-items: flex-start; }

  /* Reflection cards: smaller radius/padding/gap on mobile */
  .rf-card {
    border-radius: 12px;
    padding: 24px;
    gap: 10px;
  }

  .np-sec { padding: 64px 20px; }
  .np-title { font-size: 36px; letter-spacing: -1px; }
  .np-btn { font-size: 14px; padding: 12px 24px; }

  .inner { padding: 0 20px; }
}
