@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --page: #ffffff;
    --paper: #f5f5f3;
    --paper-strong: #ecebe8;
    --text: #3a3a3a;
    --text-soft: #626262;
    --text-inverse: #ffffff;
    --teal: #00a6a2;
    --teal-dark: #007b78;
    --teal-soft: rgba(0, 166, 162, 0.1);
    --ink: #181818;
    --line: #e3e0dc;
    --line-dark: rgba(255, 255, 255, 0.2);
    --danger: #c33b3b;
    --warning: #a86e10;
    --success: #1f8b52;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius-lg: 18px;
    --radius-md: 10px;
    --radius-sm: 4px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--text);
    background: var(--page);
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

code {
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.06);
    padding: 0.12rem 0.35rem;
}

.site-body,
.admin-body {
    min-height: 100vh;
}

.page-shell {
    width: 100%;
    padding-bottom: 64px;
}

.brand-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    min-height: 98px;
    padding: 0 max(24px, calc((100vw - 1360px) / 2));
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.brand-logo {
    width: 76px;
    height: 76px;
    background: var(--teal);
    display: grid;
    place-items: center;
}

.brand-logo img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.brand-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-weight: 700;
    color: #383838;
}

.brand-nav a {
    position: relative;
    padding: 10px 0;
}

.brand-nav a::after {
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    content: '';
    background: var(--teal);
    transition: width 0.2s ease;
}

.brand-nav a:hover::after {
    width: 100%;
}

.header-cta,
.primary-button,
.secondary-button,
.danger-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--teal);
    border-radius: 0;
    cursor: pointer;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta,
.primary-button {
    padding: 0 24px;
    background: var(--teal);
    color: var(--text-inverse);
    box-shadow: 0 10px 24px rgba(0, 166, 162, 0.24);
}

.secondary-button {
    padding: 0 24px;
    background: #ffffff;
    color: var(--teal-dark);
}

.light-button {
    background: rgba(255, 255, 255, 0.92);
}

.header-cta:hover,
.primary-button:hover,
.secondary-button:hover,
.danger-button:hover {
    transform: translateY(-2px);
}

.primary-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.inline-button {
    width: fit-content;
}

.hero {
    position: relative;
    min-height: 690px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: end;
    gap: 36px;
    padding: 96px max(24px, calc((100vw - 1360px) / 2)) 70px;
    color: var(--text-inverse);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 46%, rgba(0, 0, 0, 0.2) 100%),
        url('../images/hero.jpg') center / cover no-repeat;
}

.hero::after {
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 30px;
    height: 30px;
    content: '';
    transform: translateX(-50%) rotate(45deg);
    background: #ffffff;
}

.hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    max-width: 650px;
    gap: 22px;
}

.hero h1,
.intro-section h2,
.panel-card h2,
.side-card h2,
.thank-you-card h1,
.login-card h1,
.admin-topbar h2 {
    margin: 0;
    color: inherit;
    font-weight: 800;
    line-height: 1.12;
}

.hero h1 {
    max-width: 740px;
    font-size: clamp(2.35rem, 5vw, 4.25rem);
}

.hero-text {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    line-height: 1.75;
}

.eyebrow,
.metric-label {
    margin: 0;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow,
.hero .metric-label {
    color: #2df0e9;
}

.hero-pills,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-pills span {
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 9px 14px;
    background: rgba(0, 0, 0, 0.28);
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.metric-card {
    border-left: 4px solid var(--teal);
    padding: 18px;
    background: rgba(0, 0, 0, 0.54);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
}

.metric-card strong {
    display: block;
    margin-top: 6px;
    color: #ffffff;
    font-size: 1.05rem;
}

.metric-card.accent {
    background: rgba(0, 166, 162, 0.88);
}

.intro-section,
.benefit-strip,
.content-grid {
    width: min(1160px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.intro-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
    align-items: center;
    gap: 56px;
    padding: 108px 0 64px;
}

.intro-copy {
    display: grid;
    gap: 18px;
}

.intro-section h2 {
    color: var(--teal);
    font-size: clamp(2rem, 3.4vw, 3rem);
}

.intro-section p {
    margin: 0;
    color: #4d4d4d;
    font-size: 1.12rem;
    line-height: 1.7;
}

.intro-image {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}

.intro-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.benefit-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 64px;
    background: var(--paper);
}

.benefit-strip article {
    display: grid;
    gap: 12px;
    min-height: 220px;
    padding: 34px;
    border-right: 1px solid var(--line);
    text-align: center;
}

.benefit-strip article:last-child {
    border-right: 0;
}

.benefit-strip span {
    color: var(--teal);
    font-weight: 800;
}

.benefit-strip h3 {
    margin: 0;
    color: #363636;
    font-size: 1.45rem;
}

.benefit-strip p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    align-items: start;
    gap: 28px;
}

.form-column,
.booking-form,
.info-column,
.panel-card,
.side-card,
.grid-two,
.field,
.summary-box,
.summary-row,
.admin-shell,
.admin-sidebar,
.admin-nav,
.admin-main,
.stat-card,
.stats-grid,
.detail-grid,
.detail-list,
.subsection,
.table-wrap,
.stack-form {
    display: grid;
    gap: 16px;
}

.panel-card,
.side-card,
.thank-you-card,
.login-card,
.stat-card {
    border: 1px solid var(--line);
    background: #ffffff;
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.panel-card h2,
.side-card h2 {
    color: #383838;
    font-size: 1.65rem;
}

.panel-card-dark,
.side-card.dark {
    border: 0;
    color: var(--text-inverse);
    background: #181818;
}

.panel-card-dark h2,
.side-card.dark h2 {
    color: var(--text-inverse);
}

.section-heading {
    display: grid;
    gap: 8px;
}

.section-heading-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    gap: 8px;
}

.field span {
    color: #343434;
    font-size: 0.94rem;
    font-weight: 800;
}

.panel-card-dark .field span,
.panel-card-dark .muted,
.side-card.dark,
.side-card.dark .location-list {
    color: rgba(255, 255, 255, 0.82);
}

.field input,
.field select,
.field textarea,
.table-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff;
    color: var(--text);
    padding: 14px 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.table-input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 166, 162, 0.16);
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

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

.bike-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bike-card {
    display: grid;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    padding: 16px;
}

.bike-image {
    margin: 0;
    overflow: hidden;
    background: #ffffff;
}

.bike-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.25s ease;
}

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

.bike-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.25rem;
}

.muted,
.small {
    color: var(--text-soft);
}

.bike-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    color: #ffffff;
}

.bike-meta strong {
    color: #2df0e9;
    font-size: 1.08rem;
}

.compact input {
    max-width: 128px;
}

.inline-summary {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0 16px;
    background: rgba(0, 166, 162, 0.18);
    color: #ffffff;
}

.form-hint {
    min-height: 20px;
    margin: 0;
    color: #f4c65d;
}

.summary-box {
    border-left: 5px solid var(--teal);
    padding: 18px 20px;
    background: var(--paper);
}

.summary-row {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.summary-row.total {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.summary-row.total strong {
    color: var(--teal-dark);
    font-size: 1.45rem;
}

.checkbox-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 12px;
    border: 1px solid var(--line);
    padding: 14px 16px;
    background: #ffffff;
}

.checkbox-row input {
    margin-top: 4px;
}

.image-card,
.video-card {
    overflow: hidden;
    padding: 0;
}

.image-card img,
.video-card video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.video-card video {
    background: #111111;
}

.side-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.location-list,
.detail-items,
.error-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.7;
}

.alert {
    border: 1px solid transparent;
    padding: 14px 16px;
}

.alert-success {
    border-color: rgba(31, 139, 82, 0.2);
    background: rgba(31, 139, 82, 0.1);
    color: #17683a;
}

.alert-error {
    border-color: rgba(195, 59, 59, 0.22);
    background: rgba(195, 59, 59, 0.08);
    color: #8a2121;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.company-fields {
    display: none;
}

.company-fields.visible {
    display: block;
}

.text-link {
    color: var(--teal-dark);
    font-weight: 800;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-actions form {
    margin: 0;
}

.danger-link {
    border: 0;
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0;
}

.danger-zone {
    border-top: 1px solid var(--line-dark);
    margin-top: 12px;
    padding-top: 16px;
}

.danger-button {
    border-color: var(--danger);
    background: var(--danger);
    color: #ffffff;
    padding: 0 24px;
    width: 100%;
}

.thank-you-shell,
.login-shell {
    display: grid;
    width: min(660px, calc(100% - 32px));
    min-height: 100vh;
    align-items: center;
    margin: 0 auto;
    padding: 24px 0;
}

.thank-you-card,
.login-card {
    max-width: 660px;
    margin: 0 auto;
}

.stack-form {
    gap: 14px;
}

.admin-body {
    background: var(--paper);
}

.admin-shell {
    min-height: 100vh;
    grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    align-content: space-between;
    padding: 24px;
    background: #181818;
    color: var(--text-inverse);
}

.admin-sidebar h1,
.admin-sidebar p {
    margin: 0;
}

.admin-nav a {
    padding: 14px 16px;
    border-left: 4px solid transparent;
    color: rgba(255, 255, 255, 0.78);
}

.admin-nav a.active,
.admin-nav a:hover {
    border-left-color: var(--teal);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.admin-main {
    gap: 20px;
    padding: 32px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
    gap: 10px;
}

.stat-card strong {
    color: var(--teal-dark);
    font-size: 2rem;
}

.stat-card.accent {
    background: var(--teal);
    color: #ffffff;
}

.stat-card.accent strong {
    color: #ffffff;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--line);
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 800;
}

.status-new {
    background: rgba(168, 110, 16, 0.14);
    color: var(--warning);
}

.status-progress {
    background: rgba(0, 166, 162, 0.12);
    color: var(--teal-dark);
}

.status-confirmed,
.status-completed {
    background: rgba(31, 139, 82, 0.12);
    color: var(--success);
}

.status-rejected {
    background: rgba(195, 59, 59, 0.12);
    color: var(--danger);
}

.detail-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    align-items: start;
}

.detail-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.detail-list div {
    padding: 14px;
    background: var(--paper);
}

.detail-list span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.subsection h3 {
    margin: 0 0 6px;
}

.subsection p {
    margin: 0;
}

.table-input {
    min-width: 120px;
    padding: 10px 12px;
}

.table-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.small {
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .brand-header {
        grid-template-columns: auto 1fr;
        gap: 18px;
        min-height: 86px;
        padding: 10px 16px;
    }

    .brand-logo,
    .brand-logo img {
        width: 64px;
        height: 64px;
    }

    .brand-nav {
        justify-content: flex-end;
        gap: 16px;
        font-size: 0.92rem;
    }

    .header-cta {
        display: none;
    }

    .hero,
    .intro-section,
    .content-grid,
    .detail-grid,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 620px;
        padding: 72px 16px 52px;
    }

    .intro-section {
        gap: 28px;
        padding: 72px 0 44px;
    }

    .benefit-strip {
        grid-template-columns: 1fr;
    }

    .benefit-strip article {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-sidebar {
        position: static;
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .brand-header {
        align-items: start;
    }

    .brand-nav {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px 16px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
    }

    .inline-button,
    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .grid-two,
    .bike-grid {
        grid-template-columns: 1fr;
    }

    .panel-card,
    .side-card,
    .thank-you-card,
    .login-card,
    .stat-card {
        padding: 20px;
    }

    .image-card,
    .video-card {
        padding: 0;
    }

    .section-heading-inline {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-main {
        padding: 20px 16px 40px;
    }
}
