/* =========================================================
   Enthuza Cycles — Global stylesheet
   Dark, warm, magazine-grade theme inspired by frame builders.
   ========================================================= */

:root {
    --bg: #0c0c0d;
    --bg-alt: #131315;
    --surface: #18181b;
    --surface-2: #1f1f23;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --accent: #d4a017;
    --accent-bright: #f0c041;
    --accent-soft: rgba(212, 160, 23, 0.14);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --container: 1200px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --header-h: 76px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

a {
    color: var(--text);
    text-decoration: none;
    transition: color 160ms ease;
}

a:hover {
    color: var(--accent-bright);
}

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: var(--text);
}

h1 { font-size: clamp(2.75rem, 6vw, 5.25rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
h4 { font-size: 0.95rem; font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

p { margin: 0 0 1rem; color: var(--text-muted); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-left: 1.6rem;
    position: relative;
}

.eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.1rem;
    height: 2px;
    background: var(--accent);
    transform: translateY(-50%);
}

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

/* -------- Buttons -------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1.6rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
    white-space: nowrap;
}

.btn--small { padding: 0.65rem 1.15rem; font-size: 0.85rem; }

.btn--primary {
    background: var(--accent);
    color: #0b0b0c;
    border-color: var(--accent);
}

.btn--primary:hover {
    background: var(--accent-bright);
    border-color: var(--accent-bright);
    color: #0b0b0c;
    transform: translateY(-1px);
    box-shadow: 0 12px 30px -12px rgba(240, 192, 65, 0.55);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent-bright);
    background: var(--accent-soft);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--accent);
    font-size: 0.95rem;
}

.link-arrow:hover { color: var(--accent-bright); transform: translateX(2px); }

/* -------- Header / Nav -------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(12, 12, 13, 0.78);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
}

.site-header__brand img {
    width: 48px;
    height: 48px;
    filter: invert(1) brightness(1.1);
}

.site-header__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.site-header__brand-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.55rem;
    letter-spacing: 0.06em;
    color: var(--text);
}

.site-header__brand-sub {
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 2px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.site-nav a:hover { color: var(--text); }

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 200ms ease;
}

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

.site-nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.05rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text) !important;
    font-weight: 600;
}

.site-nav__cta:hover {
    border-color: var(--accent);
    color: var(--accent-bright) !important;
    background: var(--accent-soft);
}

.site-nav__cta::after { display: none; }

/* Mobile nav toggle (CSS-only) */
.nav-toggle { display: none; }
.nav-toggle-label {
    display: none;
    width: 32px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.nav-toggle-label span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 220ms ease, opacity 220ms ease;
    transform-origin: center;
}

/* -------- Hero -------- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.0); }
    to   { transform: scale(1.08); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(12, 12, 13, 0.6) 0%, rgba(12, 12, 13, 0.5) 40%, rgba(12, 12, 13, 0.92) 100%),
        radial-gradient(ellipse at 30% 30%, rgba(212, 160, 23, 0.18), transparent 60%);
}

.hero__inner {
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 4rem;
    max-width: 880px;
}

.hero__title {
    font-size: clamp(3rem, 7.5vw, 6.5rem);
    margin: 0 0 1.5rem;
}

.hero__lead {
    max-width: 600px;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--text);
    opacity: 0.92;
    margin-bottom: 2.25rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero__meta a {
    color: var(--text-muted);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}

.hero__meta a:hover {
    color: var(--accent-bright);
    border-color: var(--accent);
}

.hero__scroll {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 6px;
}

.hero__scroll span {
    width: 3px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* -------- Sections -------- */

.section {
    padding: clamp(4.5rem, 9vw, 7.5rem) 0;
    position: relative;
}

.section--services {
    background: var(--bg);
}

.section--about {
    background: var(--bg-alt);
}

.section--gallery {
    background: var(--bg);
}

.section--contact {
    background: var(--bg-alt);
    padding-bottom: 0;
}

.section__header {
    margin-bottom: 3.5rem;
    max-width: 720px;
}

.section__header--center {
    text-align: center;
    margin-inline: auto;
}

.section__header--center .eyebrow { padding-left: 0; }
.section__header--center .eyebrow::before { display: none; }

.section__title {
    margin-bottom: 1rem;
}

.section__lead {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* -------- Services grid -------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.service-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-card:hover .service-card__media img {
    transform: scale(1.06);
}

.service-card__body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.service-card__body p {
    flex: 1;
}

.service-card--featured {
    background: linear-gradient(160deg, rgba(212, 160, 23, 0.15), rgba(212, 160, 23, 0.02) 60%), var(--surface);
    border-color: rgba(212, 160, 23, 0.32);
}

.badge {
    align-self: flex-start;
    background: var(--accent);
    color: #0b0b0c;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.4rem;
}

/* -------- About -------- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.about-grid__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.about-grid__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-grid__badge {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background: var(--accent);
    color: #0b0b0c;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: var(--shadow-md);
}

.about-grid__badge-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.6rem;
    line-height: 1;
}

.about-grid__badge-label {
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.about-grid__body p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.amenities {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.1rem;
}

.amenities li {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.amenities svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.amenities strong {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.amenities span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* -------- Brands strip -------- */

.brands {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}

.brands__label {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
}

.brands__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: clamp(1.5rem, 5vw, 4rem);
}

.brands__list li {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--text-muted);
    letter-spacing: 0.08em;
    transition: color 200ms ease;
    cursor: default;
}

.brands__list li:hover { color: var(--accent-bright); }

/* -------- Gallery -------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}

.gallery-grid__item {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: var(--surface);
}

.gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 400ms ease;
    filter: saturate(0.95);
}

.gallery-grid__item:hover img {
    transform: scale(1.05);
    filter: saturate(1.1);
}

.gallery-grid__item--tall { grid-row: span 2; }
.gallery-grid__item--wide { grid-column: span 2; }

/* -------- Contact -------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
    margin-bottom: 4.5rem;
}

.contact-grid__intro p {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
}

.contact-list {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: grid;
    gap: 1.1rem;
}

.contact-list li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.contact-list li:last-child { border-bottom: 1px solid var(--border); }

.contact-list__label {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    padding-top: 2px;
}

.contact-list a { color: var(--text); font-weight: 500; }
.contact-list a:hover { color: var(--accent-bright); }

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* -------- Contact form -------- */

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: grid;
    gap: 1.1rem;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-form__field label {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
}

.contact-form__field input,
.contact-form__field textarea {
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-size: 0.98rem;
    transition: border-color 180ms ease, box-shadow 180ms ease;
    resize: vertical;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    color: var(--text-dim);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.contact-form__submit {
    align-self: flex-start;
    margin-top: 0.5rem;
    padding-inline: 2.5rem;
}

.contact-form__thanks {
    margin: 0;
    padding: 0.85rem 1rem;
    background: var(--accent-soft);
    border: 1px solid rgba(212, 160, 23, 0.4);
    border-radius: var(--radius);
    color: var(--accent-bright);
    font-size: 0.95rem;
}

/* -------- Map -------- */

.map-wrap {
    height: clamp(320px, 45vw, 520px);
    background: var(--surface);
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--border);
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.4) contrast(1.05);
    transition: filter 300ms ease;
}

.map-wrap:hover iframe {
    filter: grayscale(0) contrast(1);
}

/* -------- Footer -------- */

.site-footer {
    background: #08080a;
    color: var(--text-muted);
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.site-footer__col h4 {
    color: var(--text);
    margin-bottom: 0.6rem;
}

.site-footer__col a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.site-footer__col a:hover { color: var(--accent-bright); }

.site-footer__col address {
    font-style: normal;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.6rem;
}

.site-footer__brand img {
    width: 64px;
    height: 64px;
    filter: invert(1) brightness(1.1);
}

.site-footer__tagline {
    margin: 1rem 0 1.25rem;
    color: var(--text-muted);
    max-width: 280px;
}

.site-footer__social {
    display: flex;
    gap: 0.65rem;
}

.site-footer__social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: var(--text-muted);
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.site-footer__social a:hover {
    border-color: var(--accent);
    color: var(--accent-bright);
    background: var(--accent-soft);
}

.site-footer__bar {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    background: #060607;
}

.site-footer__bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.site-footer__credit { color: var(--text-dim); }

/* -------- Responsive -------- */

@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: 1fr;
        max-width: 540px;
        margin-inline: auto;
    }

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

    .about-grid__media {
        aspect-ratio: 16 / 11;
        max-height: 480px;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-grid__item--wide { grid-column: span 2; }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .nav-toggle-label {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(12, 12, 13, 0.98);
        backdrop-filter: saturate(160%) blur(14px);
        -webkit-backdrop-filter: saturate(160%) blur(14px);
        border-bottom: 1px solid var(--border);
        padding: 1rem var(--gutter) 1.5rem;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 280ms ease, opacity 200ms ease, visibility 0s linear 280ms;
    }

    .nav-toggle:checked ~ .site-nav {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: transform 280ms ease, opacity 200ms ease, visibility 0s;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .site-nav a:not(.site-nav__cta) {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--border);
        font-size: 1.05rem;
        color: var(--text);
    }

    .site-nav a::after { display: none; }

    .site-nav__cta {
        margin-top: 0.75rem;
        padding: 0.85rem 1.5rem;
        justify-content: center;
        border: 1.5px solid var(--accent);
        color: var(--accent-bright) !important;
    }

    .hero {
        min-height: 90vh;
    }

    .hero__cta { gap: 0.65rem; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .gallery-grid__item--wide { grid-column: span 2; }
    .gallery-grid__item--tall { grid-row: span 1; }

    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .contact-list li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .site-header__brand-text { display: none; }
    h1 { font-size: clamp(2.4rem, 9vw, 3.5rem); }
}

/* -------- Blazor error styles -------- */

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}
