/* TOMSPORT — contemporary landing */
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Sora:wght@400;500;600&display=swap");

:root {
    --red: #e02020;
    --red-dark: #b81818;
    --ember: #ff5a1f;
    --ink: #0c0d10;
    --ink-2: #15171c;
    --mist: rgba(245, 242, 237, 0.72);
    --paper: #f4f1ea;
    --line: rgba(244, 241, 234, 0.12);
    --text: #f4f1ea;
    --muted: rgba(244, 241, 234, 0.62);
    --header-h: 4.5rem;
    --container: 72rem;
    --font-display: "Syne", sans-serif;
    --font: "Sora", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 0.5rem); }

body {
    font-family: var(--font);
    background: var(--ink);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.accent { color: var(--red); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    border: 0;
    cursor: pointer;
    transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.35s;
}

.btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(244, 241, 234, 0.28);
    color: var(--text);
}

.btn-outline:hover {
    background: rgba(244, 241, 234, 0.06);
    border-color: rgba(244, 241, 234, 0.5);
}

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-full { width: 100%; border-radius: 12px; }

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    background: rgba(12, 13, 16, 0.55);
    backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid transparent;
    transition: background 0.35s, border-color 0.35s;
}

.site-header.is-scrolled {
    background: rgba(12, 13, 16, 0.92);
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    z-index: 2;
}

.logo-icons {
    display: flex;
    gap: 0.2rem;
    color: rgba(244, 241, 234, 0.8);
}

.logo-icons svg { width: 1.85rem; height: 1.25rem; }

.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.site-nav a {
    padding: 0.45rem 0.7rem;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
}

.site-nav a:hover { color: #fff; }
.site-nav .btn { margin-left: 0.55rem; color: #fff; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Hero — one composition, brand first, full-bleed */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    padding: calc(var(--header-h) + 2rem) 0 4.5rem;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(12, 13, 16, 0.88) 12%, rgba(12, 13, 16, 0.35) 52%, rgba(12, 13, 16, 0.78) 100%),
        linear-gradient(180deg, rgba(12, 13, 16, 0.2) 0%, rgba(12, 13, 16, 0.92) 92%),
        url("https://images.unsplash.com/photo-1517649763962-0c62306627e7?auto=format&fit=crop&w=2000&q=80") center / cover no-repeat;
    transform: scale(1.04);
    animation: hero-drift 22s var(--ease) infinite alternate;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(180deg, transparent, var(--ink));
}

@keyframes hero-drift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    animation: rise 1s var(--ease) both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mist);
}

.hero-kicker::before {
    content: "";
    width: 2rem;
    height: 2px;
    background: var(--red);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3.6rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.045em;
    margin-bottom: 1.15rem;
}

.hero-lead {
    max-width: 34rem;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--mist);
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    animation: rise 1.15s 0.12s var(--ease) both;
}

.scroll-hint {
    position: absolute;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(244, 241, 234, 0.35);
    animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(7px); }
}

/* Sections */
.section {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    position: relative;
}

.section--split {
    background:
        radial-gradient(ellipse 60% 50% at 100% 0%, rgba(224, 32, 32, 0.08), transparent 60%),
        var(--ink);
}

.section--ember {
    background:
        radial-gradient(ellipse 50% 45% at 0% 20%, rgba(255, 90, 31, 0.1), transparent 55%),
        var(--ink-2);
}

.section-bar {
    display: block;
    width: 3rem;
    height: 3px;
    margin-bottom: 1rem;
    background: var(--red);
}

.section-bar--orange { background: var(--ember); }

.section-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

@media (min-width: 960px) {
    .section-grid { grid-template-columns: 1.1fr 0.9fr; }
    .section-grid--reverse .section-text { order: 2; }
    .section-grid--reverse .section-visual { order: 1; }
}

.section-text h2,
.contact-header h2,
.service-block h3 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

.section-visual {
    min-height: 16rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.section-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(224, 32, 32, 0.22), transparent 50%),
        linear-gradient(320deg, rgba(255, 90, 31, 0.12), transparent 45%),
        repeating-linear-gradient(-18deg, rgba(244, 241, 234, 0.03) 0 2px, transparent 2px 14px);
    z-index: -1;
}

.section-visual--photo-bike {
    background:
        linear-gradient(160deg, rgba(12, 13, 16, 0.2), rgba(12, 13, 16, 0.75)),
        url("https://images.unsplash.com/photo-1485965120187-e551b1f7b0b6?auto=format&fit=crop&w=1200&q=75") center / cover no-repeat;
    min-height: 22rem;
}

.section-visual--photo-ski {
    background:
        linear-gradient(160deg, rgba(12, 13, 16, 0.15), rgba(12, 13, 16, 0.72)),
        url("https://images.unsplash.com/photo-1551524559-8af4e6624178?auto=format&fit=crop&w=1200&q=75") center / cover no-repeat;
    min-height: 22rem;
}

.heritage-timeline {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
}

.heritage-item {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1rem;
    align-items: baseline;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.heritage-item:last-child { border-bottom: 0; padding-bottom: 0; }

.heritage-year {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--red);
}

.heritage-label {
    font-size: 0.95rem;
    color: var(--muted);
}

.offer-pillars {
    display: grid;
    gap: 1.5rem;
    padding: 1.75rem;
}

.offer-pillar h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0.35rem 0 0.4rem;
}

.offer-pillar p {
    font-size: 0.92rem;
    color: var(--muted);
}

.offer-pillar-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--ember);
}

.offer-pillar--services .offer-pillar-icon { color: var(--red); }

/* Services as editorial blocks, not heavy cards */
.services-grid {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 860px) {
    .services-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.service-block {
    padding-top: 0.25rem;
    border-top: 3px solid var(--red);
}

.service-block--orange { border-top-color: var(--ember); }

.prose p { margin-bottom: 0.8rem; color: var(--muted); }
.prose strong { color: #fff; font-weight: 600; }
.prose h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 1.2rem 0 0.45rem;
}
.prose h3:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.2rem; margin-bottom: 0.8rem; }
.prose li { margin-bottom: 0.3rem; color: var(--muted); }

/* Contact — form is interactive container */
.section--contact {
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(224, 32, 32, 0.1), transparent 55%),
        var(--ink);
}

.contact-header {
    max-width: 36rem;
    margin-bottom: 2.75rem;
}

.contact-header p { color: var(--muted); }

.contact-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 960px) {
    .contact-grid { grid-template-columns: 0.95fr 1.05fr; align-items: start; }
}

.contact-info ul {
    list-style: none;
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.contact-info li {
    color: var(--muted);
    font-size: 0.98rem;
}

.contact-info strong {
    display: block;
    color: rgba(244, 241, 234, 0.4);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-info a { color: #fff; border-bottom: 1px solid rgba(224, 32, 32, 0.55); }
.contact-info a:hover { color: var(--red); }

.map-wrap {
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 16rem;
}

.map-wrap iframe {
    width: 100%;
    height: 280px;
    border: 0;
    display: block;
    filter: grayscale(0.35) contrast(1.05);
}

.contact-form {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: rgba(244, 241, 234, 0.03);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.35rem;
}

.contact-form label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(12, 13, 16, 0.65);
    color: #fff;
    font: inherit;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(224, 32, 32, 0.65);
}

.form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 540px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.recaptcha-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.form-note {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(244, 241, 234, 0.35);
    margin-bottom: 1rem;
}

.form-feedback {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.form-feedback.success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.form-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 2.5rem 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
}

.footer-inner p {
    font-size: 0.88rem;
    color: rgba(244, 241, 234, 0.42);
}

.footer-inner a { color: var(--red); }

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Social */
.social-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    align-items: stretch;
}

.social-tab-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    padding: 0.75rem 0.45rem;
    border: 0;
    border-radius: 0 10px 10px 0;
    background: var(--red);
    color: #fff;
    cursor: pointer;
}

.social-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.7rem;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 12px 12px 0;
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
}

.social-tab:hover .social-tab-panel,
.social-tab.is-open .social-tab-panel,
.social-tab:focus-within .social-tab-panel {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: transform 0.2s, background 0.2s;
}

.social-link svg { width: 1.25rem; height: 1.25rem; }
.social-link:hover { transform: scale(1.06); }
.social-link--facebook:hover { background: #1877f2; }
.social-link--instagram:hover { background: #dc2743; }
.social-link--youtube:hover { background: #ff0000; }
.social-link--tiktok:hover { background: #010101; color: #69c9d0; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.admin-field--checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
}

.admin-field--checkbox input[type="checkbox"] {
    width: auto;
    accent-color: var(--red);
}

.field-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.35rem;
}

/* Mobile nav */
@media (max-width: 1023px) {
    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: rgba(12, 13, 16, 0.97);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s var(--ease), opacity 0.35s;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav a { padding: 0.8rem 1rem; }
    .site-nav .btn { margin: 0.5rem 0 0; text-align: center; }

    .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Admin (unchanged surface) */
.admin-body { min-height: 100vh; background: var(--ink); }
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.admin-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border: 1px solid var(--line);
    background: var(--ink-2);
}
.admin-card h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.admin-card .subtitle {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.admin-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: var(--ink-2);
    padding: 1rem 1.5rem;
}
.admin-header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.admin-tabs button {
    padding: 0.5rem 1rem;
    border: 0;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}
.admin-tabs button.active,
.admin-tabs button:hover {
    background: var(--red);
    color: #fff;
}
.admin-panel {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.admin-section {
    display: none;
    padding: 1.5rem;
    border: 1px solid var(--line);
    background: var(--ink-2);
}
.admin-section.active { display: block; }
.admin-field { margin-bottom: 1rem; }
.admin-field label {
    display: block;
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.admin-field input,
.admin-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--ink);
    color: #fff;
    font: inherit;
}
.admin-field input:focus,
.admin-field textarea:focus {
    outline: none;
    border-color: var(--red);
}
.admin-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.admin-alert.success { background: rgba(34, 197, 94, 0.1); color: #4ade80; }
.admin-alert.error { background: rgba(239, 68, 68, 0.1); color: #f87171; }
.admin-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--muted);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.05); }
.messages-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.messages-table th,
.messages-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.messages-table th { color: var(--muted); font-weight: 600; }
.messages-table td { color: rgba(255, 255, 255, 0.75); }
.messages-table .msg-preview {
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 768px) {
    .messages-table { display: block; overflow-x: auto; }
}
