/* ===========================
   Offload Lab — Shared Styles
   =========================== */

:root {
    --bg: #F7F6F3;
    --bg-alt: #EDECE8;
    --text: #1A1A18;
    --text-muted: #6B6A65;
    --accent: #C8602A;
    --accent-hover: #A94E1F;
    --border: #D4D3CE;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- NAV --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(247, 246, 243, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

nav.scrolled {
    border-bottom-color: var(--border);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

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

.lang-toggle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: none;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-toggle:hover {
    border-color: var(--text);
    color: var(--text);
}

.lang-toggle .lang-active {
    font-weight: 600;
    color: var(--text);
}

.lang-toggle .lang-sep {
    color: var(--border);
}

.nav-cta {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    padding: 0.65rem 1.5rem;
    border: 1px solid var(--text);
    border-radius: 100px;
    transition: background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--text);
    color: var(--bg);
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s ease 0.35s forwards;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.55s forwards;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.7s forwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--white);
    background: var(--accent);
    border: none;
    padding: 1rem 2.2rem;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(200, 96, 42, 0.25);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-ghost {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    padding: 1rem 0.5rem;
    transition: color 0.3s ease;
}

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

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollPulse 2s ease infinite;
}

/* --- METRICS BAR --- */
.metrics {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
}

.metrics-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.metric {
    text-align: center;
}

.metric-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* --- SECTION SHARED --- */
section {
    padding: 6rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 3.5rem;
}

.section-title--spaced {
    margin-bottom: 3.5rem;
}

/* --- WHAT WE AUTOMATE --- */
.routines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.routine-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.2rem;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.routine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s ease;
}

.routine-card:hover::before {
    height: 100%;
}

.routine-card:hover {
    border-color: transparent;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.routine-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.routine-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.routine-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.routine-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 1rem;
    letter-spacing: 0.02em;
}

/* --- HOW IT WORKS --- */
.how-section {
    background: var(--bg-alt);
    max-width: 100%;
    padding: 6rem 3rem;
}

.how-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

.step {
    padding: 2.5rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 2.5rem;
    bottom: 2.5rem;
    width: 1px;
    background: var(--border);
}

.step-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1.2rem;
    opacity: 0.6;
}

.step h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* --- PRICING --- */
.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3.5rem;
    max-width: 640px;
    position: relative;
    overflow: hidden;
}

.pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.pricing-from {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.pricing-amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.pricing-per {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.pricing-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    padding: 0.55rem 0;
    font-size: 0.95rem;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.pricing-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 0.55rem;
}

.guarantee {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.4rem;
    background: var(--bg);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.guarantee svg {
    flex-shrink: 0;
}

/* --- CONTACT --- */
.contact-section {
    background: var(--bg-alt);
    color: var(--text);
    max-width: 100%;
    padding: 6rem 3rem;
    border-top: 1px solid var(--border);
}

.contact-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-field input,
.form-field textarea {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--text);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
    outline: none;
    transition: border-color 0.3s ease;
    resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--border);
}

.form-field input:focus,
.form-field textarea:focus {
    border-bottom-color: var(--accent);
}

.form-submit {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--white);
    background: var(--accent);
    border: none;
    padding: 1.1rem 2.5rem;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.form-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(200, 96, 42, 0.25);
}

/* --- CONFIRMATION PAGE --- */
.page-sent {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-sent nav,
.page-error nav {
    position: static;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border);
}

.confirmation {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.check-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: scale(0.6);
    animation: popIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.check-ring svg {
    opacity: 0;
    animation: fadeIn 0.4s ease 0.55s forwards;
}

.confirmation h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 0.7s ease 0.35s forwards;
}

.confirmation h1 em {
    font-style: italic;
    color: var(--accent);
}

.confirmation p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 440px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 0.7s ease 0.5s forwards;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--text);
    padding: 1rem 2.2rem;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 0.7s ease 0.65s forwards;
}

.btn-back:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-1px);
}

.btn-back svg {
    transition: transform 0.3s ease;
}

.btn-back:hover svg {
    transform: translateX(-3px);
}

/* --- FOOTER --- */
footer {
    padding: 2rem 3rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* --- ANIMATIONS --- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scrollPulse {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    nav {
        padding: 1.2rem 1.5rem;
        gap: 0.5rem;
    }

    .nav-cta {
        font-size: 0.75rem;
        padding: 0.55rem 1rem;
        letter-spacing: 0.03em;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .how-section, .contact-section {
        padding: 4rem 1.5rem;
    }

    .metrics-inner {
        padding: 0 1.5rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

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

    .step:not(:last-child)::after {
        display: none;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .pricing-card {
        padding: 2.5rem 2rem;
    }

    .confirmation {
        padding: 3rem 1.5rem;
    }

    footer {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- ADMIN PAGE --- */
.page-admin {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-nav {
    position: static;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.admin-nav-sep {
    width: 1px;
    height: 20px;
    background: var(--border);
}

.admin-nav-badge {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.admin-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.admin-nav-back:hover {
    color: var(--text);
}

.admin-nav-back svg {
    transition: transform 0.3s ease;
}

.admin-nav-back:hover svg {
    transform: translateX(-3px);
}

.admin-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 3rem 4rem;
}

.admin-header {
    margin-bottom: 2.5rem;
}

.admin-header-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.admin-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-count {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white);
    background: var(--accent);
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.admin-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Admin table */
.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table thead {
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    padding: 1rem 1.2rem;
    white-space: nowrap;
    background: var(--bg);
}

.admin-table th:first-child {
    border-top-left-radius: 12px;
}

.admin-table th:last-child {
    border-top-right-radius: 12px;
}

.admin-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--bg-alt);
    vertical-align: top;
    color: var(--text);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr {
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: var(--bg);
}

.col-id {
    width: 60px;
}

.col-date {
    width: 170px;
}

.col-name {
    width: 150px;
}

.col-email {
    width: 200px;
}

.cell-mono {
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}

.cell-nowrap {
    white-space: nowrap;
}

.cell-email {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cell-email:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.cell-message {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Admin empty state */
.admin-empty {
    text-align: center;
    padding: 6rem 2rem;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: var(--white);
}

.admin-empty-icon {
    color: var(--border);
    margin-bottom: 1.5rem;
}

.admin-empty-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.admin-empty-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Admin footer */
.admin-footer {
    padding: 2rem 3rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 900px) {
    .admin-nav {
        padding: 1rem 1.5rem;
    }

    .admin-main {
        padding: 2rem 1.5rem 3rem;
    }

    .admin-title {
        font-size: 2.2rem;
    }

    .admin-footer {
        padding: 1.5rem;
    }
}
