/* ==========================================================================
   German Motor Works — Public site styles
   ========================================================================== */

.topbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; gap: 16px; flex-wrap: wrap; }
.topbar-left { display: flex; align-items: center; gap: 20px; color: var(--text-faint); }
.topbar-left a { color: var(--text-dim); }
.topbar-left a:hover { color: var(--blue-bright); }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { color: var(--text-faint); }
.topbar-social a:hover { color: var(--blue-bright); }

.announcement { background: var(--blue-dim); color: var(--blue-bright); text-align: center; padding: 10px 16px; font-size: 0.86rem; border-bottom: 1px solid var(--blue-border); }

.navbar { position: sticky; top: 0; z-index: 50; background: rgba(8,9,11,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand-group { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-size: 1.35rem; color: var(--silver-bright); letter-spacing: 0.02em; }
.brand img { height: 40px; width: auto; }
.brand small { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-bright); font-weight: 600; }

/* Always visible next to the logo, at every viewport width — not part of the collapsible mobile
   menu, so it never requires opening the hamburger to find. */
.header-book-btn { white-space: nowrap; flex: 0 0 auto; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-dim); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--silver-bright); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-light); color: var(--silver); border-radius: var(--radius); padding: 8px 10px; cursor: pointer; }

@media (max-width: 920px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: fixed; top: 68px; left: 0; right: 0;
        height: calc(100vh - 68px); height: calc(100dvh - 68px);
        z-index: 100; background: var(--bg); flex-direction: column;
        align-items: stretch; justify-content: flex-start;
        padding: 30px 24px; gap: 4px;
        transform: translateY(-12px); opacity: 0; pointer-events: none;
        transition: opacity .2s ease, transform .2s ease; overflow-y: auto;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
    .nav-links a { display: block; padding: 14px 4px; font-size: 1.02rem; }
    .nav-cta .btn-outline { display: none; }
}

@media (max-width: 560px) {
    .brand-group { gap: 12px; }
    .brand small { display: none; }
    .header-book-btn { padding: 8px 14px; font-size: 0.8rem; }
}

.header-book-btn .btn-label-short { display: none; }
@media (max-width: 400px) {
    .header-book-btn .btn-label-full { display: none; }
    .header-book-btn .btn-label-short { display: inline; }
}

/* Hero */
.hero { position: relative; padding: 130px 0 110px; overflow: hidden; background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(79,157,234,0.12), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(79,157,234,0.08), transparent 60%),
    var(--bg); }
.hero .container { position: relative; z-index: 1; }
/* When an admin-uploaded hero image is set, it replaces the plain background — a dark
   scrim (left-to-right, strongest behind the text) keeps the headline/lead readable over
   any photo without needing a specific image treatment from whoever uploads it. */
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(90deg, var(--bg) 0%, rgba(8,9,11,.88) 35%, rgba(8,9,11,.55) 65%, rgba(8,9,11,.35) 100%);
}
@media (max-width: 780px) {
    .hero.has-image::before { background: linear-gradient(180deg, rgba(8,9,11,.75) 0%, rgba(8,9,11,.88) 100%); }
}
.hero-eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.75rem; color: var(--blue-bright); font-weight: 700; margin-bottom: 20px; display: block; }
.hero h1 { max-width: 780px; }
.hero p.lead { max-width: 600px; font-size: 1.12rem; color: var(--text-dim); margin: 22px 0 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 64px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-heading); font-size: 2rem; color: var(--silver-bright); }
.hero-stat span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); }

/* Services */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card .thumb { aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .thumb img { transform: scale(1.05); }
.service-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card .body h3 { margin-bottom: 10px; }
.service-card .body p { flex: 1; font-size: 0.92rem; }
.service-card .body .btn { align-self: flex-start; margin-top: 14px; }
.thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-faint); font-family: var(--font-heading); letter-spacing: 0.08em; font-size: 0.85rem; text-transform: uppercase; background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px); }

/* Our Team */
.staff-card { display: flex; flex-direction: column; height: 100%; text-align: center; }
.staff-photo { width: 148px; height: 148px; border-radius: 50%; overflow: hidden; margin: 32px auto 0; background: var(--surface-2); border: 2px solid var(--border-light); }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-card .body { padding: 20px 24px 28px; flex: 1; display: flex; flex-direction: column; align-items: center; }
.staff-card .body h3 { margin-bottom: 4px; }
.staff-position { color: var(--blue-bright); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.staff-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin-bottom: 12px; }
.staff-bio { font-size: 0.9rem; color: var(--text-dim); text-align: left; }
.staff-bio p:last-child { margin-bottom: 0; }

/* Gallery — full width */
.gallery-strip { width: 100%; padding: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gallery-grid a { position: relative; display: block; aspect-ratio: 1/1; overflow: hidden; background: var(--surface-2); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.gallery-grid a:hover img { transform: scale(1.06); filter: brightness(1.05); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-carousel-wrap { position: relative; }
.gallery-carousel { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.gallery-carousel::-webkit-scrollbar { height: 6px; }
.gallery-carousel::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
.gallery-carousel a { flex: 0 0 78%; scroll-snap-align: center; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); display: block; position: relative; }
.gallery-carousel img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .gallery-carousel a { flex-basis: 46%; } }
@media (min-width: 1100px) { .gallery-carousel a { flex-basis: 32%; } }
.carousel-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(8,9,11,0.7); border: 1px solid var(--border-light); color: var(--silver); width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; z-index: 2; }
.carousel-prev { left: 16px; } .carousel-next { right: 16px; }
.carousel-hint { text-align: center; color: var(--text-faint); font-size: 0.78rem; margin-top: 14px; }

.lightbox { position: fixed; inset: 0; background: rgba(4,5,6,0.94); display: none; align-items: center; justify-content: center; z-index: 200; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 24px; right: 32px; color: var(--silver); font-size: 2rem; cursor: pointer; background: none; border: none; line-height: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.06); border: 1px solid var(--border-light); color: var(--silver); width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox-prev { left: 24px; } .lightbox-next { right: 24px; }

/* Blog */
.post-card .thumb { aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 22px; }
.post-meta { font-size: 0.76rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.post-tags { margin-top: 14px; }
.post-article img { border-radius: var(--radius-lg); margin-bottom: 28px; }
.post-article .post-content { font-size: 1.02rem; }
.post-article .post-content p { color: var(--text); }
/* Embedded videos (YouTube/Vimeo, inserted via the editor's video button) — Quill outputs a bare
   <iframe class="ql-video">; this wraps it to a responsive 16:9 box instead of a fixed size. */
.post-content .ql-video, .rt-editor .ql-video { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: var(--radius-lg); margin: 8px 0 28px; border: 0; display: block; }

/* Events */
.event-card { display: flex; gap: 22px; padding: 22px; }
.event-date-block { flex: 0 0 84px; text-align: center; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 8px; height: fit-content; }
.event-date-block .month { color: var(--blue-bright); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.08em; font-weight: 700; }
.event-date-block .day { font-family: var(--font-heading); font-size: 1.9rem; color: var(--silver-bright); line-height: 1.1; }
.event-body h3 { margin-bottom: 8px; }
.event-meta { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 10px; }
.event-meta span { margin-right: 18px; }

/* Testimonials */
.testimonial-card { padding: 28px; }
.testimonial-card .stars { color: var(--blue-bright); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card .quote { font-family: var(--font-body); font-size: 1.02rem; line-height: 1.6; color: var(--silver-bright); font-style: normal; }
.testimonial-card .who { margin-top: 16px; font-size: 0.82rem; color: var(--text-faint); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item summary { cursor: pointer; color: var(--silver-bright); font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--blue-bright); font-size: 1.3rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p, .faq-item .faq-answer { margin-top: 12px; }

/* About */
.about-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--surface-2); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 0.92rem; }
.hours-list li span:first-child { color: var(--silver); font-weight: 600; }
.hours-list li.today { color: var(--blue-bright); }

/* Contact / booking */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.info-row { display: flex; gap: 14px; margin-bottom: 20px; }
.info-row .icon { flex: 0 0 20px; color: var(--blue-bright); }

.booking-steps { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.booking-step { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-light); font-size: 0.8rem; color: var(--text-faint); }
.booking-step.active { color: var(--blue-bright); border-color: var(--blue-border); background: var(--blue-dim); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 20px 0; }
.slot-btn { padding: 10px 8px; text-align: center; border: 1px solid var(--border-light); border-radius: var(--radius); background: var(--bg-alt); color: var(--silver); font-size: 0.86rem; cursor: pointer; }
.slot-btn:hover { border-color: var(--blue-border); color: var(--blue-bright); }
.slot-btn.selected { background: var(--blue-dim); border-color: var(--blue); color: var(--blue-bright); }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 64px 0 28px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--silver); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; color: var(--text-dim); font-size: 0.9rem; }
.footer-grid a { color: var(--text-dim); font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--text-faint); }

/* Utility page bits */
.page-hero { padding: 70px 0 50px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.breadcrumb { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--blue-bright); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-faint); }

/* Public-facing month calendar (events page, booking date picker) */
.view-toggle { display: inline-flex; border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.view-toggle a { padding: 9px 18px; font-size: 0.85rem; color: var(--text-dim); }
.view-toggle a.active { background: var(--blue-dim); color: var(--blue-bright); }
.view-toggle a:not(:last-child) { border-right: 1px solid var(--border-light); }

.site-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.site-cal { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.site-cal th { text-align: center; padding: 10px 4px; font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.site-cal td { text-align: left; vertical-align: top; height: 92px; border: 1px solid var(--border); padding: 8px; width: 14.28%; }
.site-cal td.muted { opacity: 0.35; }
.site-cal td.today { background: var(--blue-dim); }
.site-cal .day-num { font-weight: 600; color: var(--silver); font-size: 0.85rem; margin-bottom: 6px; text-align: right; }
.site-cal .day-chip { display: block; background: var(--surface); border-left: 2px solid var(--blue); border-radius: 3px; padding: 3px 6px; font-size: 0.7rem; margin-bottom: 3px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-cal .day-chip:hover { color: var(--blue-bright); }
@media (max-width: 700px) {
    .site-cal td { height: 60px; padding: 4px; font-size: 0.7rem; }
    .site-cal .day-chip { font-size: 0.6rem; padding: 2px 3px; }
    .site-cal th { font-size: 0.6rem; padding: 6px 2px; }
}

/* Compact date-picker calendar used on the booking page */
.picker-cal { width: 100%; border-collapse: collapse; }
.picker-cal th { text-align: center; padding: 6px 2px; font-size: 0.68rem; color: var(--text-faint); text-transform: uppercase; }
.picker-cal td { text-align: center; padding: 3px; }
.picker-day { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: var(--radius); cursor: pointer; font-size: 0.86rem; color: var(--text-dim); border: 1px solid transparent; }
.picker-day:hover:not(.disabled) { border-color: var(--blue-border); color: var(--blue-bright); }
.picker-day.disabled { color: var(--text-faint); opacity: 0.35; cursor: not-allowed; }
.picker-day.selected { background: var(--blue); color: #fff; font-weight: 600; }
.picker-day.today { box-shadow: inset 0 0 0 1px var(--blue-border); }
.picker-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.picker-nav button { background: none; border: 1px solid var(--border-light); color: var(--silver); border-radius: var(--radius); padding: 6px 12px; cursor: pointer; }
.picker-nav button:disabled { opacity: 0.3; cursor: not-allowed; }
.picker-month-label { font-weight: 600; color: var(--silver-bright); font-size: 0.92rem; }
