/* case-study-acura.css - styles unique to case-study-acura.html. Loaded after base.css. */

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

/* ---------- Header ---------- */

header {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-name {
    font-family: 'Newsreader', serif;
    font-size: 20px;
    font-weight: 500;
}

nav { display: flex; gap: 36px;
}

nav a {
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

nav a:hover { color: var(--text-primary);
}

/* ---------- Section rhythm ---------- */

section { padding: 96px 0;
}

section.band { background: var(--surface);
}

section.tight { padding: 64px 0;
}

.eyebrow {
    width: 24px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 20px;
}

h2 {
    font-family: 'Newsreader', serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.3;
}

/* ---------- Case study hero ----------
     Acura's hero is a single full-bleed interior photo rather than the
     phone-mockup grid used on the other case studies (there's no app UI
     to show at this stage) - same card treatment (surface/border/radius),
     just one image at a photographic 16:9 ratio. */

.cs-hero-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 64px;
}

.cs-title .client {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.cs-title h1 {
    font-family: 'Newsreader', serif;
    font-weight: 400;
    font-size: 44px;
    line-height: 1.2;
    max-width: 780px;
}

/* ---------- Intro cards ---------- */

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 56px;
}

.intro-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

.intro-card .icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.intro-card .icon.negative {
    background: var(--negative-soft);
    color: var(--negative);
}

/* ---------- Icon sizing baseline ----------
     Two sizes cover every icon on this page:
     .icon-svg     — 20px — icons paired with text (intro cards)
     .icon-svg-lg  — 36px — standalone feature icons (role & impact grid)
     All icons use fill="currentColor" so color is set by the parent wrapper. */

.icon-svg {
    width: var(--icon-inline);
    height: var(--icon-inline);
}

.icon-svg-lg {
    width: var(--icon-feature);
    height: var(--icon-feature);
    margin-bottom: 28px;
    color: var(--accent);
}

.intro-card h3 {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 10px;
}

.intro-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ---------- Impact grid ---------- */

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.impact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.impact-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Project-scope card in the Role & impact grid: two stacked stat pairs
     instead of an icon, so it reads as data rather than a responsibility. */

.impact-card.scope {
    gap: 18px;
}

.impact-card.scope .scope-item + .scope-item {
    margin-top: 18px;
}

.impact-card.scope .scope-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.impact-card.scope .scope-value {
    font-family: 'Newsreader', serif;
    font-size: 24px;
    color: var(--text-primary);
}

/* ---------- Results ---------- */

.results-lead {
    background: var(--accent-deep);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 44px 40px;
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 32px;
}

.results-lead .results-value {
    font-family: 'Newsreader', serif;
    font-size: 76px;
    line-height: 1;
    color: #F4F2EA;
}

.results-lead .results-desc {
    font-size: 16px;
    color: rgba(244,242,234,0.82);
    max-width: 420px;
}

.results-support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.results-stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.results-stat-card .results-stat-value {
    font-family: 'Newsreader', serif;
    font-size: 40px;
    line-height: 1;
    color: var(--text-primary);
}

.results-stat-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

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

.press-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.press-card p {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-size: 19px;
    line-height: 1.45;
    color: var(--text-primary);
}

.press-card img {
    height: 20px;
    width: auto;
    align-self: flex-start;
    opacity: 0.72;
}

[data-theme="light"] .press-card img {
    filter: brightness(0);
}

/* Explanatory caption under a section heading or gallery. */
.cs-caption {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 16px;
    max-width: 640px;
}

/* ---------- Process groups (shipped interface / UI specifications) ---------- */

.process-group { margin-top: 64px;
}

.process-group:first-child { margin-top: 48px;
}

.process-group h3 {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

/* ---------- Image galleries (conceptualization / refinement) ---------- */

.gallery { margin-top: 48px; display: flex; flex-direction: column; gap: 20px;
}

.gallery-figure { margin: 0;
}

.gallery-featured {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: zoom-in;
}

.gallery-caption {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
}

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

.gallery-shot {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: zoom-in;
}

.gallery-shot.center { object-position: center;
}

.gallery-grid .gallery-caption {
    font-size: 13px;
    margin-top: 10px;
}

/* ---------- Shipped interface: two frames at their native ratios ---------- */

.frame-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.frame-shot {
    width: 100%;
    object-fit: contain;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: zoom-in;
}

.frame-landing { aspect-ratio: 1920 / 1090;
}

.frame-contact { aspect-ratio: 1920 / 1081;
}

/* ---------- UI specifications: dimmed until hovered ---------- */

.spec-shot {
    opacity: 0.82;
    transition: opacity 0.3s ease;
}

.spec-shot:hover { opacity: 1;
}

/* ---------- Release slideshow ---------- */

.slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    cursor: zoom-in;
}

.slideshow-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.9s ease;
    opacity: 0;
}

.slideshow-slide.is-active { opacity: 1;
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.slideshow-dot {
    width: 40px;
    height: 4px;
    border: 0;
    padding: 0;
    border-radius: 2px;
    cursor: pointer;
    background: var(--border);
    transition: background 0.3s ease;
}

.slideshow-dot.is-active { background: var(--accent);
}

/* ---------- Lightbox ---------- */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(10,10,10,0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.lightbox-overlay.is-open { opacity: 1; visibility: visible;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 28px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Final words ---------- */

.final-words p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-top: 24px;
}

.back-to-top {
    display: inline-block;
    margin-top: 40px;
    font-size: 14px;
    color: var(--accent);
    border-bottom: 1px solid var(--accent-deep);
    padding-bottom: 2px;
}

/* ---------- More projects ---------- */

.more-projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 640px;
    margin-top: 32px;
}

.more-projects-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
}

.more-project-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    transition: border-color 0.2s ease;
}

.more-project-card:hover .more-project-thumb {
    border-color: var(--accent-deep);
}

.more-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.more-project-card:hover .more-project-thumb img {
    transform: scale(1.03);
}

.more-project-client {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.more-project-title {
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.more-project-title .arrow {
    color: var(--accent);
    width: 14px;
    height: 14px;
    margin-top: 5px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.more-project-card:hover .more-project-title .arrow {
    transform: translateX(4px);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .wrap { padding: 0 24px; }
    .cs-hero-photo { margin-bottom: 40px; }
    .cs-title h1 { font-size: 32px; }
    .intro-grid { grid-template-columns: 1fr; }
    .impact-grid { grid-template-columns: 1fr; gap: 12px; }
    .impact-card:not(.scope) {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        min-height: 0;
        padding: 20px;
        gap: 16px;
    }
    .impact-card:not(.scope) .icon-svg-lg {
        width: 28px;
        height: 28px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .results-lead .results-value { font-size: 56px; }
    .results-support-grid { grid-template-columns: 1fr; }
    .press-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .frame-pair { grid-template-columns: 1fr; }
    .more-projects-grid, .more-projects-grid.cols-3 { grid-template-columns: 1fr 1fr; gap: 16px; max-width: 100%; }
    section { padding: 64px 0; }
    .lightbox-overlay { padding: 24px; }
}

/* ---------- Motion: hover lift for cards ---------- */

.intro-card, .impact-card, .results-stat-card, .press-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.intro-card:hover, .impact-card:hover, .results-stat-card:hover, .press-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-deep);
    box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

/* ---------- Motion: image hover scale ---------- */

.cs-hero-photo, .gallery-featured, .gallery-shot, .frame-shot {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-hero-photo:hover, .gallery-featured:hover, .gallery-shot:hover, .frame-shot:hover {
    transform: scale(1.01);
}

@media (prefers-reduced-motion: reduce) {
    body { opacity: 1; transition: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .intro-card, .impact-card, .results-stat-card, .press-card,
    .cs-hero-photo, .gallery-featured, .gallery-shot, .frame-shot,
    .more-project-thumb img, .slideshow-slide, .lightbox-overlay {
      transition: none;
    }
    .intro-card:hover, .impact-card:hover, .results-stat-card:hover, .press-card:hover {
      transform: none;
    }
    .cs-hero-photo:hover, .gallery-featured:hover, .gallery-shot:hover, .frame-shot:hover,
    .more-project-card:hover .more-project-thumb img {
      transform: none;
    }
}

/* ---------- Theme toggle ---------- */

.header-actions {
    display: flex;
    align-items: center;
    gap: 36px; /* matches nav's gap, so Contact-to-toggle spacing matches Contact-to-Resume */
}

/* ---------- Mobile nav ---------- */

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-primary);
    position: relative;
    z-index: 60;
}
