/* =========================================================
   The Packing Company — shared styles
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

:root {
    --ink: #0a0a0a;
    --ink-2: #1a1a1a;
    --muted: #4b4b4b;
    --muted-2: #6b6b6b;
    --soft: #9a9a9a;
    --line: #e6e6e6;
    --bg: #fbfaf8;
    --bg-2: #f4f1ec;
    --card: rgba(255, 255, 255, 0.82);
    --accent: #f26a1f;     /* brand orange */
    --accent-2: #d85814;   /* darker orange */
    --accent-soft: #fff1e5;/* soft orange tint */
    --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
    --shadow-md: 0 12px 32px rgba(10, 10, 10, 0.08);
    --shadow-lg: 0 32px 64px rgba(10, 10, 10, 0.10);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

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

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 96px 0;
    position: relative;
}

@media (max-width: 768px) {
    section { padding: 64px 0; }
}

/* ---------- Typography ---------- */
.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 16px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 0 0 16px;
    line-height: 1.15;
}

h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; }

p { color: var(--muted); margin: 0 0 16px; }

.lead {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--muted);
    max-width: 640px;
}

.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}
.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 248, 251, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: 1160px;
    margin: 0 auto;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: 17px;
}
.brand img {
    height: 38px;
    width: auto;
    display: block;
}
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent);
    display: grid;
    place-items: center;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-sm);
}
.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 500;
    transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(15, 23, 42, 0.04); }
.nav-links a.active { color: var(--ink); }
.nav-cta {
    margin-left: 8px;
    padding: 9px 18px !important;
    background: var(--accent);
    color: #fff !important;
    border-radius: 999px;
}
.nav-cta:hover { background: var(--accent-2) !important; color: #fff !important; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 820px) {
    .nav-toggle { display: grid; place-items: center; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 16px 20px;
        border-bottom: 1px solid var(--line);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 14px; }
    .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(242, 106, 31, 0.30);
}
.btn-primary:hover {
    background: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(242, 106, 31, 0.40);
}
.btn-dark {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 4px 14px rgba(10, 10, 10, 0.18);
}
.btn-dark:hover {
    background: var(--ink-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(10, 10, 10, 0.24);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 72px;
}
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}
.hero::before {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #ffd9bd 0%, transparent 70%);
    top: -180px; left: -160px;
}
.hero::after {
    width: 560px; height: 560px;
    background: radial-gradient(circle, #ffe9d6 0%, transparent 70%);
    bottom: -220px; right: -200px;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
    position: relative;
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow-sm), var(--shadow-md), var(--shadow-lg);
}
.hero-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 20px;
}
.cert-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.cert-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.cert-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: grid; place-items: center;
    color: #fff;
    flex-shrink: 0;
}
.cert-icon.green { background: var(--accent); }
.cert-icon.tan { background: var(--ink); }
.cert-icon svg { width: 20px; height: 20px; }
.cert-tile strong { display: block; font-size: 14px; color: var(--ink); }
.cert-tile span { font-size: 12px; color: var(--muted-2); }

.hero-stats {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}
.hero-stats div strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--ink);
}
.hero-stats div span {
    font-size: 12px;
    color: var(--muted-2);
    letter-spacing: 0.04em;
}

@media (max-width: 880px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Page hero (smaller) ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 56px;
    text-align: center;
}
.page-hero::before {
    content: "";
    position: absolute;
    width: 700px; height: 500px;
    background: radial-gradient(ellipse, #ffe1c8 0%, transparent 65%);
    filter: blur(60px);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero p { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Services / cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 880px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}
.card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid; place-items: center;
    margin-bottom: 22px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 15px; }

.card-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.card-list li {
    position: relative;
    padding: 8px 0 8px 26px;
    font-size: 14.5px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}
.card-list li:first-child { border-top: 1px solid var(--line); margin-top: 12px; }
.card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 16px; height: 16px;
    background: var(--accent);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}

/* ---------- Alternating section background ---------- */
.section-alt {
    background: linear-gradient(180deg, #ffffff 0%, #f3f5fa 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ---------- Two-column feature row ---------- */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.feature.reverse > :first-child { order: 2; }
@media (max-width: 880px) {
    .feature, .feature.reverse { grid-template-columns: 1fr; gap: 32px; }
    .feature.reverse > :first-child { order: 0; }
}
.feature-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffe1c8 0%, #ffc89e 100%);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    place-items: center;
}
.feature-visual svg {
    width: 50%;
    height: 50%;
    color: rgba(10, 10, 10, 0.22);
}
.feature-visual.tan {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}
.feature-visual.tan svg { color: rgba(242, 106, 31, 0.55); }
.feature-visual img.logo-bg {
    width: 60%;
    height: auto;
    object-fit: contain;
}
.feature-visual.feature-cert {
    padding: 24px;
}
.feature-visual.feature-cert svg {
    width: 100%;
    height: 100%;
    color: inherit;
}
.feature-visual.feature-photo {
    background: none;
    padding: 0;
}
.feature-visual.feature-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* ---------- Process steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 24px;
    counter-increment: step;
    position: relative;
}
.step::before {
    content: "0" counter(step);
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- CTA strip ---------- */
.cta-strip {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #fff;
    border-radius: 28px;
    padding: 56px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.cta-strip::before {
    content: "";
    position: absolute;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 106, 31, 0.55), transparent 70%);
    top: -180px;
    right: -140px;
}
.cta-strip h2 { color: #fff; margin-bottom: 8px; }
.cta-strip p { color: rgba(255, 255, 255, 0.78); margin-bottom: 0; }
.cta-strip .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}
.cta-strip .btn-primary { background: var(--accent); color: #fff; }
.cta-strip .btn-primary:hover { background: var(--accent-2); }
.cta-strip .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.cta-strip .btn-ghost:hover { border-color: #fff; }

@media (max-width: 720px) {
    .cta-strip { grid-template-columns: 1fr; padding: 40px 28px; }
    .cta-strip .actions { justify-content: flex-start; }
}

/* ---------- Footer ---------- */
.footer {
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.78);
    padding: 64px 0 32px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.footer h4 {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fff;
    margin: 0 0 16px;
}
.footer ul {
    list-style: none;
    margin: 0; padding: 0;
}
.footer li { margin-bottom: 10px; font-size: 14.5px; }
.footer a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.15s ease;
}
.footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; font-weight: 700; font-size: 17px; }
.footer-brand .brand-mark { background: var(--accent); }
.footer-brand img { height: 36px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer p { color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 880px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- About / values ---------- */
.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 880px) { .values { grid-template-columns: 1fr; } }
.value h3 { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; }
.value-num {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

/* ---------- Certification block ---------- */
.cert-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 720px) { .cert-block { grid-template-columns: 1fr; } }
.cert-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 36px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
}
.cert-card .cert-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
}
.cert-card .cert-icon svg { width: 28px; height: 28px; }
.cert-card h3 { margin-bottom: 8px; }
.cert-card p { margin-bottom: 0; font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 6px;
}
.field input, .field textarea, .field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(242, 106, 31, 0.18);
}
.field textarea { min-height: 120px; resize: vertical; }
.contact-info {
    display: grid;
    gap: 18px;
}
.info-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.info-row .cert-icon { width: 40px; height: 40px; }
.info-row .cert-icon svg { width: 18px; height: 18px; }
.info-row strong { display: block; color: var(--ink); font-size: 14px; }
.info-row a { color: var(--muted); text-decoration: none; font-size: 15px; }
.info-row a:hover { color: var(--ink); }

/* ---------- Field label (non-input fields) ---------- */
.field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 8px;
}
.field-hint {
    color: var(--soft);
    font-weight: 400;
}

/* ---------- Checkbox chip group ---------- */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* Override .field label rules with higher specificity */
.field label.checkbox-chip,
.checkbox-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
    font-size: inherit;
    font-weight: 400;
    color: inherit;
}
/* Override .field input width:100% etc. */
.field .checkbox-chip input,
.checkbox-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: auto;
    padding: 0;
    border: 0;
    margin: 0;
}
.checkbox-chip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.checkbox-chip span::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1.5px solid var(--soft);
    background: #fff;
    flex-shrink: 0;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.checkbox-chip:hover span {
    border-color: var(--ink);
    color: var(--ink);
}
.checkbox-chip input:checked + span {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--ink);
}
.checkbox-chip input:checked + span::before {
    background: var(--accent);
    border-color: var(--accent);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size: 10px 10px;
    background-position: center;
    background-repeat: no-repeat;
}
.checkbox-chip input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(242, 106, 31, 0.18);
    border-color: var(--accent);
}

/* ---------- Hero stacked logo ---------- */
.hero-logo {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto 28px;
}
.about-logo {
    display: block;
    width: 70%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 8px 24px rgba(10, 10, 10, 0.08));
}

/* ---------- Animations on scroll ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.in { opacity: 1; transform: none; }
