/* ============================================================
   SERIOUS ROCKS — Design System
   Ultra-premium luxury ice brand CSS
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,200;0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */

:root {
    /* Typography */
    --font-serif:    'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-sans:     'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    /* Tracking */
    --tracking-tight:    -0.02em;
    --tracking-normal:   0em;
    --tracking-wide:     0.06em;
    --tracking-wider:    0.12em;
    --tracking-widest:   0.18em;
    --tracking-editorial:0.08em;
    --tracking-ultra:    0.20em;

    /* Radius */
    --radius-sm:  2px;
    --radius-md:  4px;
    --radius-lg:  8px;

    /* Max widths */
    --container:       1800px;
    --content-narrow:  840px;
    --content-medium:  1200px;

    /* Transitions */
    --ease-premium: cubic-bezier(0.17, 0.55, 0.55, 1);
    --ease-out:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration-fast:  200ms;
    --duration-mid:   400ms;
    --duration-slow:  700ms;
    --duration-xslow: 1100ms;

    /* Z-index layers */
    --z-below:   -1;
    --z-base:     0;
    --z-float:    10;
    --z-overlay:  40;
    --z-nav:      50;
    --z-modal:    100;
}

/* ============================================================
   Dark Mode (Default)
   ============================================================ */
html, html[data-theme="dark"] {
    --bg:              #080808;
    --bg-muted:        #111111;
    --bg-card:         #141414;
    --bg-elevated:     #1a1a1a;
    --bg-overlay:      rgba(8, 8, 8, 0.92);

    --fg:              #f5f5f0;
    --fg-muted:        #888882;
    --fg-subtle:       #444440;
    --fg-faint:        #222220;

    --border:          rgba(255,255,255,0.07);
    --border-strong:   rgba(255,255,255,0.14);

    --accent:          #f5f5f0;
    --accent-muted:    rgba(245,245,240,0.08);

    /* Ice glow effect */
    --ice-glow:        rgba(180,220,255,0.06);
    --ice-glow-strong: rgba(180,220,255,0.12);

    color-scheme: dark;
}

/* ============================================================
   Light Mode
   ============================================================ */
html[data-theme="light"] {
    --bg:              #fafaf8;
    --bg-muted:        #f2f2ef;
    --bg-card:         #ffffff;
    --bg-elevated:     #ececea;
    --bg-overlay:      rgba(250, 250, 248, 0.94);

    --fg:              #0c0c0a;
    --fg-muted:        #777772;
    --fg-subtle:       #c4c4bf;
    --fg-faint:        #e8e8e4;

    --border:          rgba(0,0,0,0.07);
    --border-strong:   rgba(0,0,0,0.14);

    --accent:          #0c0c0a;
    --accent-muted:    rgba(12,12,10,0.06);

    --ice-glow:        rgba(140,200,255,0.05);
    --ice-glow-strong: rgba(140,200,255,0.10);

    color-scheme: light;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--fg);
    background-color: var(--bg);
    transition: background-color 0.4s var(--ease-premium),
                color 0.4s var(--ease-premium);
    overflow-x: hidden;
}

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

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

button {
    font-family: var(--font-sans);
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol { list-style: none; }

/* ============================================================
   Typography Scale
   ============================================================ */
.font-serif   { font-family: var(--font-serif); }
.font-sans    { font-family: var(--font-sans); }
.font-light   { font-weight: 300; }
.font-normal  { font-weight: 400; }
.font-medium  { font-weight: 500; }

/* Headings */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: var(--tracking-tight);
    color: var(--fg);
}

h1, .h1 { font-size: clamp(3.5rem, 8vw, 8rem); }
h2, .h2 { font-size: clamp(2.5rem, 5vw, 5rem); }
h3, .h3 { font-size: clamp(1.6rem, 3vw, 2.8rem); }
h4, .h4 { font-size: clamp(1.2rem, 2vw, 1.8rem); }

.text-editorial {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3.5vw, 3.2rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: var(--tracking-tight);
}

/* Eyebrow labels */
.label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: var(--tracking-ultra);
    text-transform: uppercase;
    color: var(--fg-muted);
}

.label-sm {
    font-size: 0.60rem;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--fg-muted);
}

/* Body text */
.text-lead {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--fg-muted);
}

.text-body {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--fg-muted);
}

/* ============================================================
   Layout
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 4vw, 4rem);
}

.container-narrow {
    max-width: var(--content-narrow);
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 4vw, 4rem);
}

.container-medium {
    max-width: var(--content-medium);
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 4vw, 4rem);
}

/* Section spacing */
.section {
    padding-block: clamp(5rem, 10vw, 12rem);
}

.section-sm {
    padding-block: clamp(3rem, 6vw, 6rem);
}

.section-lg {
    padding-block: clamp(7rem, 14vw, 16rem);
}

/* Backgrounds */
.bg-base    { background-color: var(--bg); }
.bg-muted   { background-color: var(--bg-muted); }
.bg-card    { background-color: var(--bg-card); }
.bg-invert  { background-color: var(--fg); color: var(--bg); }

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    transition: background-color var(--duration-mid) var(--ease-premium),
                border-color var(--duration-mid) var(--ease-premium),
                backdrop-filter var(--duration-mid) var(--ease-premium);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background-color: var(--bg-overlay);
    border-color: var(--border);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 2rem;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: var(--tracking-editorial);
    text-transform: uppercase;
    color: var(--fg);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: var(--tracking-ultra);
    text-transform: uppercase;
    color: var(--fg-muted);
    transition: color var(--duration-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--fg);
    transition: width var(--duration-mid) var(--ease-premium);
}

.nav-link:hover,
.nav-link.active {
    color: var(--fg);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--fg);
    transition: all var(--duration-mid) var(--ease-premium);
    transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: calc(var(--z-nav) - 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-premium);
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 300;
    letter-spacing: var(--tracking-tight);
    color: var(--fg);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    transition: color var(--duration-fast), padding-left var(--duration-mid) var(--ease-premium);
}

.mobile-nav-link:hover {
    color: var(--fg-muted);
    padding-left: 1rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: var(--tracking-ultra);
    text-transform: uppercase;
    padding: 1rem 2rem;
    transition: all var(--duration-mid) var(--ease-premium);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--fg);
    color: var(--bg);
    border: 1px solid var(--fg);
}

.btn-primary:hover {
    background: transparent;
    color: var(--fg);
}

.btn-outline {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border-strong);
}

.btn-outline:hover {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

.btn-ghost {
    background: transparent;
    color: var(--fg-muted);
    border: 1px solid transparent;
    padding-inline: 0.5rem;
}

.btn-ghost:hover {
    color: var(--fg);
}

.btn-sm {
    font-size: 0.6rem;
    padding: 0.7rem 1.4rem;
}

.btn-lg {
    font-size: 0.7rem;
    padding: 1.2rem 2.8rem;
}

/* Arrow button */
.btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: var(--tracking-editorial);
    text-transform: uppercase;
    color: var(--fg-muted);
    transition: color var(--duration-fast), gap var(--duration-mid) var(--ease-premium);
}

.btn-arrow:hover {
    color: var(--fg);
    gap: 0.9rem;
}

.btn-arrow svg {
    width: 14px;
    height: 14px;
    transition: transform var(--duration-mid) var(--ease-premium);
}

/* ============================================================
   Theme Toggle
   ============================================================ */
.theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-muted);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: color var(--duration-fast), border-color var(--duration-fast);
}

.theme-toggle:hover {
    color: var(--fg);
    border-color: var(--border);
}

.theme-toggle svg {
    width: 15px;
    height: 15px;
}

.icon-sun  { display: none; }
.icon-moon { display: block; }

[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: opacity 1.2s;
}

[data-theme="light"] .hero-bg img {
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(var(--bg-rgb, 8,8,8), 0.3) 50%,
        var(--bg) 100%
    );
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(250,250,248, 0.4) 50%,
        var(--bg) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 10rem;
    padding-bottom: 6rem;
    width: 100%;
}

.hero-eyebrow {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-premium) 0.2s forwards;
}

.hero-title {
    opacity: 0;
    animation: fadeInUp 1s var(--ease-premium) 0.5s forwards;
    max-width: 900px;
    margin-inline: auto;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.9s var(--ease-premium) 0.8s forwards;
    max-width: 560px;
    margin-inline: auto;
    margin-top: 1.75rem;
}

.hero-ctas {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-premium) 1.1s forwards;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-premium) 1.8s forwards;
}

.hero-scroll-line {
    width: 1px;
    height: 3.5rem;
    background: linear-gradient(to bottom, var(--fg-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================================
   Product Cards
   ============================================================ */
.product-card {
    display: block;
    position: relative;
    overflow: hidden;
}

.product-card-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    aspect-ratio: 4/5;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-xslow) var(--ease-premium);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 1.5rem 0 0;
}

.product-card-category {
    font-size: 0.6rem;
    letter-spacing: var(--tracking-ultra);
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 0.5rem;
}

.product-card-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: var(--tracking-tight);
    color: var(--fg);
    margin-bottom: 0.6rem;
    transition: color var(--duration-fast);
}

.product-card:hover .product-card-name {
    color: var(--fg-muted);
}

.product-card-desc {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--fg-muted);
    line-height: 1.65;
}

/* ============================================================
   Spirit Grid
   ============================================================ */
.spirit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    border: 1px solid var(--border);
}

.spirit-cell {
    display: block;
    padding: clamp(2rem, 4vw, 3.5rem);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background var(--duration-mid) var(--ease-premium);
    cursor: pointer;
}

.spirit-cell:hover {
    background: var(--bg-muted);
}

.spirit-cell-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.spirit-cell-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: var(--tracking-tight);
    transition: color var(--duration-fast);
}

.spirit-cell:hover .spirit-cell-name {
    color: var(--fg-muted);
}

.spirit-cell-footer {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.spirit-cell-recommend-label {
    font-size: 0.58rem;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 0.3rem;
}

.spirit-cell-recommend-name {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--fg);
}

/* ============================================================
   Stats / Brand Statement
   ============================================================ */
.brand-statement {
    text-align: center;
}

.brand-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3.5vw, 3.4rem);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: var(--tracking-tight);
    color: var(--fg);
    max-width: 1000px;
    margin-inline: auto;
}

.brand-quote em {
    font-style: italic;
    font-weight: 300;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.stat-divider {
    width: 1px;
    height: 3rem;
    background: var(--border-strong);
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: var(--tracking-tight);
    color: var(--fg);
}

.stat-label {
    font-size: 0.62rem;
    letter-spacing: var(--tracking-ultra);
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-top: 0.4rem;
}

/* ============================================================
   Feature Grid (Why Serious Rocks)
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    background: var(--border);
}

.feature-item {
    background: var(--bg-card);
    padding: clamp(2rem, 4vw, 3rem);
}

.feature-icon {
    color: var(--fg-muted);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.feature-desc {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--fg-muted);
    line-height: 1.7;
}

/* ============================================================
   Gallery Grid
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: clamp(0.5rem, 1vw, 1rem);
}

.gallery-item {
    overflow: hidden;
    background: var(--bg-card);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-xslow) var(--ease-premium);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* Gallery grid positions */
.gallery-item:nth-child(1) { aspect-ratio: 1/1; }
.gallery-item:nth-child(2) { aspect-ratio: 3/4; grid-row: span 2; }
.gallery-item:nth-child(3) { aspect-ratio: 1/1; }
.gallery-item:nth-child(4) { aspect-ratio: 2/1; grid-column: 1 / span 2; }

/* ============================================================
   CTA Block
   ============================================================ */
.cta-block {
    background: var(--fg);
    color: var(--bg);
    text-align: center;
    padding-block: clamp(5rem, 10vw, 10rem);
}

.cta-block .label {
    color: rgba(var(--bg-rgb, 8,8,8), 0.5);
}

[data-theme="light"] .cta-block .label {
    color: rgba(250,250,248, 0.5);
}

.cta-block h2 {
    color: var(--bg);
}

.cta-block .text-lead {
    color: rgba(var(--bg-rgb, 8,8,8), 0.65);
    max-width: 560px;
    margin-inline: auto;
}

[data-theme="light"] .cta-block .text-lead {
    color: rgba(250,250,248, 0.65);
}

.cta-block .btn-outline {
    color: var(--bg);
    border-color: rgba(var(--bg-rgb, 8,8,8), 0.25);
}

[data-theme="light"] .cta-block .btn-outline {
    color: var(--bg);
    border-color: rgba(250,250,248, 0.25);
}

.cta-block .btn-outline:hover {
    background: rgba(var(--bg-rgb, 8,8,8), 0.1);
    border-color: rgba(var(--bg-rgb, 8,8,8), 0.4);
}

[data-theme="light"] .cta-block .btn-outline:hover {
    background: rgba(250,250,248, 0.1);
    border-color: rgba(250,250,248, 0.4);
}

.cta-note {
    font-size: 0.75rem;
    color: rgba(var(--bg-rgb, 8,8,8), 0.35);
    margin-top: 2.5rem;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

[data-theme="light"] .cta-note {
    color: rgba(250,250,248, 0.35);
}

/* ============================================================
   Forms
   ============================================================ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-full { grid-column: 1 / -1; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: var(--tracking-ultra);
    text-transform: uppercase;
    color: var(--fg-muted);
}

.form-input,
.form-select,
.form-textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--fg);
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 0;
    padding: 0.875rem 1rem;
    transition: border-color var(--duration-fast), background var(--duration-fast);
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--fg-subtle);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--fg-muted);
    background: var(--accent-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.65;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888882' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-error {
    font-size: 0.75rem;
    color: #c0392b;
    margin-top: 0.25rem;
}

.form-success {
    padding: 1.5rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    text-align: center;
}

/* ============================================================
   Journal Cards
   ============================================================ */
.journal-card {
    display: block;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    transition: opacity var(--duration-fast);
}

.journal-card:hover {
    opacity: 0.75;
}

.journal-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-card);
    margin-bottom: 1.5rem;
}

.journal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-xslow) var(--ease-premium);
}

.journal-card:hover .journal-card-image img {
    transform: scale(1.04);
}

.journal-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.journal-card-title {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: var(--tracking-tight);
    margin-bottom: 0.75rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--border);
    padding-block: clamp(4rem, 8vw, 8rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 5rem);
}

.footer-brand-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: var(--tracking-editorial);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.25rem;
}

.footer-tagline {
    font-size: 0.6rem;
    letter-spacing: var(--tracking-ultra);
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-top: 2rem;
}

.footer-col-title {
    font-size: 0.6rem;
    letter-spacing: var(--tracking-ultra);
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-link {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--fg);
    transition: color var(--duration-fast);
}

.footer-link:hover {
    color: var(--fg-muted);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--fg-muted);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-link {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--fg-muted);
    transition: color var(--duration-fast);
}

.footer-legal-link:hover {
    color: var(--fg);
}

/* ============================================================
   Divider
   ============================================================ */
.hr {
    height: 1px;
    background: var(--border);
    border: none;
    margin: 0;
}

/* ============================================================
   Scroll Reveal Animations
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-slow) var(--ease-premium),
                transform var(--duration-slow) var(--ease-premium);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity var(--duration-xslow) var(--ease-premium),
                transform var(--duration-xslow) var(--ease-premium);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--duration-xslow) var(--ease-premium),
                transform var(--duration-xslow) var(--ease-premium);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity var(--duration-slow) var(--ease-premium),
                transform var(--duration-slow) var(--ease-premium);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-1  { transition-delay: 0.0s !important; }
.delay-2  { transition-delay: 0.1s !important; }
.delay-3  { transition-delay: 0.2s !important; }
.delay-4  { transition-delay: 0.3s !important; }
.delay-5  { transition-delay: 0.4s !important; }
.delay-6  { transition-delay: 0.5s !important; }

/* ============================================================
   Keyframe Animations
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%       { opacity: 0.9; transform: scaleY(0.85); }
}

/* ============================================================
   Utility Classes
   ============================================================ */
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-muted    { color: var(--fg-muted); }
.text-italic   { font-style: italic; }
.uppercase     { text-transform: uppercase; }
.sr-only       { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.gap-sm        { gap: 0.75rem; }
.gap-md        { gap: 1.5rem; }
.gap-lg        { gap: 3rem; }
.mt-sm         { margin-top: 1rem; }
.mt-md         { margin-top: 2rem; }
.mt-lg         { margin-top: 3rem; }
.mt-xl         { margin-top: 5rem; }
.mb-sm         { margin-bottom: 1rem; }
.mb-md         { margin-bottom: 2rem; }
.mb-lg         { margin-bottom: 3rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item:nth-child(4) { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-links    { display: none; }
    .nav-partner  { display: none; }
    .nav-toggle   { display: flex; }

    .form-grid { grid-template-columns: 1fr; }
    .form-full { grid-column: 1; }

    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }

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

    .stats-row { gap: 1.5rem; }
    .stat-divider { display: none; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item:nth-child(2) { grid-row: span 1; aspect-ratio: 1/1; }
    .gallery-item:nth-child(4) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
