/* ============================================================
   CANNING FACILITY — photography-led counterpart to /co-packing/
   The co-packing page argues the service in diagrams; this one
   shows the plant. Every class is cf- prefixed and self-contained
   so it cannot collide with cp- or the shared component styles.
   ============================================================ */

:root {
    --cf-ink: #0d1f1d;
    --cf-ink-deep: #07120f;
    --cf-teal: var(--color-primary, #00AE9C);
    --cf-teal-bright: #35cfbf;
    --cf-paper: #ffffff;
    --cf-paper-warm: #f6faf9;
    --cf-text: #231F20;
    --cf-muted: #6F7C7C;
    --cf-line: rgba(13, 31, 29, 0.10);
    --cf-line-light: rgba(255, 255, 255, 0.16);
    --cf-radius: 16px;
    --cf-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.cf-wrap {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* ── shared type ─────────────────────────────────────────── */

.cf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-body, sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cf-teal);
    margin: 0 0 16px;
}
.cf-eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
}
.cf-eyebrow--light { color: var(--cf-teal-bright); }

.cf-h1 {
    font-family: var(--font-heading, serif);
    font-weight: 400;
    font-size: clamp(2.4rem, 4.4vw + 0.4rem, 4.1rem);
    line-height: 1.06;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
}
.cf-h1 em { font-style: italic; color: var(--cf-teal-bright); }

.cf-h2 {
    font-family: var(--font-heading, serif);
    font-weight: 400;
    font-size: clamp(1.85rem, 2.3vw + 0.6rem, 2.85rem);
    line-height: 1.16;
    color: var(--cf-text);
    margin: 0 0 16px;
}
.cf-h2--light { color: #fff; }
.cf-h2 em { font-style: italic; color: var(--cf-teal); }

.cf-lead {
    font-family: var(--font-body, sans-serif);
    font-size: clamp(1rem, 0.4vw + 0.9rem, 1.12rem);
    line-height: 1.65;
    color: var(--cf-muted);
    max-width: 62ch;
    margin: 0;
}
.cf-lead--light { color: rgba(255, 255, 255, 0.76); }

/* ── hero ────────────────────────────────────────────────── */

.cf-hero {
    position: relative;
    background: var(--cf-ink-deep);
    overflow: hidden;
    isolation: isolate;
}
.cf-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.cf-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
}
.cf-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 18, 15, 0.62) 0%, rgba(7, 18, 15, 0.55) 42%, rgba(7, 18, 15, 0.93) 100%),
        linear-gradient(90deg, rgba(7, 18, 15, 0.80) 0%, rgba(7, 18, 15, 0.20) 62%);
}
.cf-hero-inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(96px, 15vh, 168px) clamp(64px, 9vh, 104px);
}
.cf-hero-copy { max-width: 44ch; }
.cf-hero .cf-lead { margin-top: 20px; }

.cf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}
.cf-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-body, sans-serif);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 14px 26px;
    border-radius: 100px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.25s var(--cf-ease), color 0.25s var(--cf-ease),
                border-color 0.25s var(--cf-ease), transform 0.25s var(--cf-ease);
}
.cf-btn:hover { transform: translateY(-2px); }
.cf-btn--solid { background: var(--cf-teal); color: #fff; }
.cf-btn--solid:hover { background: #00c4b0; color: #fff; }
.cf-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: var(--cf-line-light);
}
.cf-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.cf-btn--dark { background: var(--cf-ink); color: #fff; }
.cf-btn--dark:hover { background: #14322e; color: #fff; }

/* ── spec strip ──────────────────────────────────────────── */

.cf-specs {
    position: relative;
    z-index: 1;
    background: var(--cf-ink);
    border-top: 1px solid var(--cf-line-light);
}
.cf-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--cf-line-light);
}
.cf-spec {
    background: var(--cf-ink);
    padding: 26px 22px;
}
.cf-spec dt {
    font-family: var(--font-body, sans-serif);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 8px;
}
.cf-spec dd {
    font-family: var(--font-heading, serif);
    font-size: clamp(1.3rem, 1.1vw + 0.9rem, 1.75rem);
    line-height: 1.15;
    color: #fff;
    margin: 0;
}

/* ── generic section ─────────────────────────────────────── */

.cf-section { padding-block: clamp(64px, 8vw, 104px); }
.cf-section--warm { background: var(--cf-paper-warm); }
.cf-section--ink { background: var(--cf-ink); }
.cf-section-head { max-width: 70ch; margin-bottom: clamp(34px, 4vw, 52px); }

/* ── facility gallery ────────────────────────────────────── */

.cf-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.cf-shot {
    position: relative;
    margin: 0;
    border-radius: var(--cf-radius);
    overflow: hidden;
    background: #e8efee;
}
.cf-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--cf-ease);
}
.cf-shot:hover img { transform: scale(1.035); }
.cf-shot figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 20px 16px;
    font-family: var(--font-body, sans-serif);
    font-size: 12.5px;
    line-height: 1.4;
    color: #fff;
    background: linear-gradient(180deg, rgba(7, 18, 15, 0) 0%, rgba(7, 18, 15, 0.82) 100%);
}
/* deliberate rhythm: two wide, one tall, then a run of thirds */
.cf-shot--wide { grid-column: span 4; aspect-ratio: 3 / 2; }
.cf-shot--tall { grid-column: span 2; grid-row: span 2; aspect-ratio: 2 / 3; }
.cf-shot--half { grid-column: span 4; aspect-ratio: 3 / 2; }
.cf-shot--third { grid-column: span 2; aspect-ratio: 4 / 3; }

/* ── station walkthrough ─────────────────────────────────── */

.cf-stations { display: grid; gap: clamp(48px, 6vw, 80px); }
.cf-station {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 60px);
    align-items: center;
}
.cf-station:nth-child(even) .cf-station-media { order: 2; }
.cf-station-media {
    border-radius: var(--cf-radius);
    overflow: hidden;
    background: #e8efee;
    aspect-ratio: 3 / 2;
}
.cf-station-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cf-station-num {
    font-family: var(--font-body, sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--cf-teal);
    margin-bottom: 10px;
}
.cf-station h3 {
    font-family: var(--font-heading, serif);
    font-weight: 400;
    font-size: clamp(1.35rem, 1.2vw + 0.9rem, 1.75rem);
    line-height: 1.2;
    color: var(--cf-text);
    margin: 0 0 12px;
}
.cf-station p {
    font-family: var(--font-body, sans-serif);
    font-size: 15px;
    line-height: 1.68;
    color: var(--cf-muted);
    margin: 0;
}

/* ── fills grid ──────────────────────────────────────────── */

.cf-fills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.cf-fill {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    background: var(--cf-paper);
    border: 1px solid var(--cf-line);
    border-radius: var(--cf-radius);
    padding: 20px 22px;
}
.cf-fill i {
    color: var(--cf-teal);
    font-size: 17px;
    line-height: 1.35;
    flex-shrink: 0;
}
.cf-fill span {
    font-family: var(--font-body, sans-serif);
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--cf-text);
}

/* ── credentials ─────────────────────────────────────────── */

.cf-creds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.cf-cred {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--cf-line-light);
    border-radius: var(--cf-radius);
    padding: 26px 24px;
}
.cf-cred h3 {
    font-family: var(--font-body, sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 9px;
}
.cf-cred p {
    font-family: var(--font-body, sans-serif);
    font-size: 14px;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.66);
    margin: 0;
}

/* ── faq ─────────────────────────────────────────────────── */

.cf-faq-list { display: grid; gap: 10px; max-width: 900px; }
.cf-faq-item {
    background: var(--cf-paper);
    border: 1px solid var(--cf-line);
    border-radius: var(--cf-radius);
    overflow: hidden;
}
.cf-faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    list-style: none;
    padding: 20px 24px;
    font-family: var(--font-body, sans-serif);
    font-size: 15.5px;
    font-weight: 500;
    color: var(--cf-text);
}
.cf-faq-item summary::-webkit-details-marker { display: none; }
.cf-faq-item summary::after {
    content: "\002B";
    font-size: 20px;
    line-height: 1;
    color: var(--cf-teal);
    transition: transform 0.25s var(--cf-ease);
    flex-shrink: 0;
}
.cf-faq-item[open] summary::after { transform: rotate(45deg); }
.cf-faq-item p {
    margin: 0;
    padding: 0 24px 22px;
    font-family: var(--font-body, sans-serif);
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--cf-muted);
}

/* ── closing cta ─────────────────────────────────────────── */

.cf-cta { text-align: center; }
.cf-cta .cf-lead { margin-inline: auto; }
.cf-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

/* ── breadcrumb ──────────────────────────────────────────── */

.cf-crumb {
    background: var(--cf-paper);
    border-bottom: 1px solid var(--cf-line);
    padding-block: 14px;
}
.cf-crumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-body, sans-serif);
    font-size: 12.5px;
    color: var(--cf-muted);
}
.cf-crumb a { color: var(--cf-muted); text-decoration: none; }
.cf-crumb a:hover { color: var(--cf-teal); }
.cf-crumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.cf-crumb li[aria-current] { color: var(--cf-text); }

/* ── responsive ──────────────────────────────────────────── */

@media (max-width: 980px) {
    .cf-specs-grid { grid-template-columns: repeat(2, 1fr); }
    .cf-station { grid-template-columns: 1fr; }
    .cf-station:nth-child(even) .cf-station-media { order: 0; }
    .cf-fills, .cf-creds { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .cf-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cf-shot--wide, .cf-shot--half { grid-column: span 2; }
    .cf-shot--tall { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; }
    .cf-shot--third { grid-column: span 1; }
    .cf-fills, .cf-creds { grid-template-columns: 1fr; }
    .cf-hero-actions .cf-btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .cf-shot img, .cf-btn, .cf-faq-item summary::after { transition: none; }
    .cf-shot:hover img { transform: none; }
    .cf-btn:hover { transform: none; }
}
