/* ═══ Aachener Str. 1274 — Custom Styles ═══ */

/* ── Base ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Hero ── */
.hero-gradient {
    background: linear-gradient(135deg, rgba(28, 11, 43, 0.85) 0%, rgba(42, 24, 64, 0.65) 100%);
}

/* ── Cards ── */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(28, 11, 43, 0.08);
}

.service-card img {
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.03);
}

/* ── Feature List Check ── */
.feature-check {
    position: relative;
    padding-left: 1.75rem;
}

.feature-check::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 14px;
    height: 14px;
    background-color: #A6432B;
    border-radius: 50%;
}

.feature-check::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.67rem;
    width: 6px;
    height: 3px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

/* ── Hamburger Animation ── */
.is-active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ── Nearby Section ── */
.nearby-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nearby-scroll::-webkit-scrollbar {
    display: none;
}

/* Cards */
.nearby-card {
    background: #fff !important;
    border-radius: 0.75rem !important;
    border: 1px solid rgba(224, 219, 212, 0.5) !important;
    overflow: hidden;
    padding: 0 !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease, order 0s;
}
@media (min-width: 768px) {
    .nearby-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    }
}
.nearby-card.is-active {
    border-color: var(--accent, #A6432B) !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.1) !important;
}
.nearby-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem 0 !important;
    margin-bottom: 1rem;
}
.nearby-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* List items */
.nearby-list {
    padding: 0 1.5rem 1.25rem !important;
    list-style: none !important;
    margin: 0 !important;
}
.nearby-list li {
    border-bottom: 1px solid rgba(224, 219, 212, 0.35) !important;
    padding: 0.6rem 0 !important;
}
.nearby-list li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.nearby-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem;
    text-decoration: none !important;
}

/* Distance badges */
.nearby-badge {
    display: inline-flex !important;
    align-items: center;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 9999px !important;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}
.nearby-badge--green {
    background: #dcfce7 !important;
    color: #166534 !important;
}
.nearby-badge--yellow {
    background: #fef9c3 !important;
    color: #854d0e !important;
}
.nearby-badge--gray {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
}

/* Summary pills */
.nearby-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 9999px !important;
    font-size: 0.75rem;
    border: 1px solid rgba(224, 219, 212, 0.5) !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}
.nearby-pill:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.nearby-pill.is-active {
    background: var(--pill-bg) !important;
    border-color: var(--pill-border) !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}
.nearby-pill--blue   { color: #2563eb !important; }
.nearby-pill--amber  { color: #d97706 !important; }
.nearby-pill--red    { color: #ef4444 !important; }
.nearby-pill--emerald { color: #059669 !important; }
.nearby-pill--indigo { color: #4f46e5 !important; }
.nearby-pill-badge {
    display: inline-block !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    padding: 0.15rem 0.45rem !important;
    border-radius: 9999px !important;
    margin-left: 0.15rem;
}
.nearby-pill-badge--green {
    background: #dcfce7 !important;
    color: #166534 !important;
}
.nearby-pill-badge--yellow {
    background: #fef9c3 !important;
    color: #854d0e !important;
}
.nearby-pill--orange { color: #ea580c !important; }

/* Score ring */
.score-ring-fill {
    transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Travel timeline destinations */
.nearby-dest {
    display: inline-flex !important;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem !important;
    border-radius: 0.75rem !important;
    background: #fff !important;
    border: 1px solid rgba(224, 219, 212, 0.5) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-decoration: none !important;
    transition: all 0.25s ease;
}
.nearby-dest:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: #A6432B !important;
}

/* Expandable extras */
.nearby-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease 0.05s;
}
.nearby-extra.is-open {
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.3s ease 0.1s;
}
.nearby-extra .nearby-list {
    border-top: 1px dashed rgba(224, 219, 212, 0.5) !important;
}
.nearby-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.55rem 0 !important;
    background: #fafaf8 !important;
    border: none !important;
    border-top: 1px solid rgba(224, 219, 212, 0.35) !important;
    color: #A6432B !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s ease;
}
.nearby-toggle:hover {
    background: #f3f0ec !important;
}
.nearby-toggle i {
    transition: transform 0.3s ease;
}
.nearby-toggle.is-open i {
    transform: rotate(180deg);
}

/* ── Map ── */
#map {
    z-index: 1;
}

/* ── Availability Badge ── */
.badge-available {
    background-color: #dcfce7;
    color: #166534;
}

.badge-unavailable {
    background-color: #fef2f2;
    color: #991b1b;
}

/* ── Pricing card highlight ── */
.pricing-highlight {
    border: 2px solid #A6432B;
    position: relative;
}

.pricing-highlight::before {
    content: 'Recommended';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #A6432B;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 16px;
    border-radius: 9999px;
}

/* ── Form Focus ── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #A6432B;
    box-shadow: 0 0 0 3px rgba(192, 88, 47, 0.15);
}

/* ── Page Hero ── */
.page-hero {
    background: linear-gradient(135deg, #1D211F 0%, #2C312D 100%);
}

/* ── FAQ Accordion ── */
.faq-item {
    border-top: 1px solid #CFD5CE;
}

.faq-item:last-child {
    border-bottom: 1px solid #CFD5CE;
}

.faq-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #1D211F;
    transition: color 0.2s ease;
}

.faq-btn:hover {
    color: #A6432B;
}

.faq-btn .faq-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

/* ── SEO Text Block ── */
.seo-block h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.seo-block h3:first-child {
    margin-top: 0;
}

.seo-block p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.seo-block p:last-child {
    margin-bottom: 0;
}

/* ── Numbered Features ── */
.feature-num-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-num-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-num-item .feature-num {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.feature-num-item h4 {
    font-weight: 700;
    color: #FFFFFF;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.feature-num-item:hover h4,
.feature-num-item.is-active h4 {
    color: #E8A88A;
}

.feature-num-item .feature-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.feature-num-item.is-active .feature-desc {
    max-height: 80px;
    opacity: 1;
    margin-top: 0.4rem;
}

/* ── SEO Dark Block ── */
.seo-dark-block {
    background-color: #1D211F;
    color: #D1D5DB;
}

.seo-dark-block h2 {
    color: #FFFFFF;
}

.seo-dark-block h3 {
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.seo-dark-block h3:first-child {
    margin-top: 0;
}

.seo-dark-block p {
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.seo-dark-block p:last-child {
    margin-bottom: 0;
}

/* ── Benefits Grid ── */
.benefit-card {
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(28, 11, 43, 0.06);
}

/* ── USP Section (dark background) ── */
.usp-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
}

/* ── Scrollbar Hide ── */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ── Floating WhatsApp Button ── */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

/* ── Cookie Consent Banner ── */
.cookie-consent {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #FFFFFF;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(28, 11, 43, 0.15);
    padding: 1.25rem 1.5rem;
    max-width: 360px;
    z-index: 9998;
    display: none;
    animation: cookieSlideIn 0.4s ease;
}

@keyframes nearbyPulse {
    0%   { transform: scale(0.5); opacity: 0.7; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes cookieSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent.show {
    display: block;
}

.cookie-consent-text {
    font-size: 0.875rem;
    color: #1D211F;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.cookie-consent-text a {
    color: #A6432B;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    text-decoration: none;
}

.cookie-consent-btns {
    display: flex;
    gap: 0.75rem;
}

.cookie-consent-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.cookie-btn-accept {
    background-color: #A6432B;
    color: white;
    border: none;
}

.cookie-btn-accept:hover {
    background-color: #A84725;
}

.cookie-btn-close {
    background-color: transparent;
    color: #6B7280;
    border: 1px solid #E5E7EB;
    flex: 0 0 auto;
    padding: 0.5rem 0.75rem;
}

.cookie-btn-close:hover {
    background-color: #F3F4F6;
    color: #374151;
}

/* Adjust WhatsApp position when cookie banner is shown */
.cookie-consent.show ~ .whatsapp-float {
    bottom: 9rem;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
    font-size: 0.875rem;
    color: #6B7280;
}

.breadcrumbs a {
    color: #6B7280;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #A6432B;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #D1D5DB;
}

.breadcrumbs .current {
    color: #1D211F;
    font-weight: 500;
}

/* ── Header Animation on Scroll ── */
#site-header {
    transition: box-shadow 0.3s ease;
}

#site-header.shadow-md {
    box-shadow: 0 4px 12px rgba(28, 11, 43, 0.12);
}

/* ── Footer Mini Map ── */
.footer-map {
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 180px;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.footer-social-link:hover {
    background-color: #A6432B;
    color: white;
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 1rem;
    height: 1rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(180deg, rgba(28, 11, 43, 0.88) 0%, rgba(42, 24, 64, 0.7) 100%);
    }

    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
    }

    .whatsapp-float svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .cookie-consent {
        bottom: 1.5rem;
        right: 1.5rem;
        left: 1.5rem;
        max-width: none;
    }

    .cookie-consent.show ~ .whatsapp-float {
        bottom: 10rem;
    }
}


/* ═══════════════════════════════════════════════════════════════
   CRAFT LAYER — the building read as a spec sheet
   Palette from the building itself: brick #A6432B, mortar grounds,
   slate roof. Type: Archivo (signage) / IBM Plex Sans / Plex Mono.
   Layout is untouched; this layer only refines type, figures and edges.
   ═══════════════════════════════════════════════════════════════ */

/* ── Display type ──
   Archivo is a grotesque, so it needs tighter tracking than the serif it replaced. */
.font-display {
    letter-spacing: -0.021em;
    font-weight: 600;
}
h1.font-display,
h2.font-display {
    letter-spacing: -0.032em;
}
h1, h2, h3 {
    text-wrap: balance;
}
p {
    text-wrap: pretty;
}

/* ── Section eyebrows become technical labels ── */
.text-gold.tracking-wider.uppercase,
footer h4.uppercase {
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.11em;
}

/* ── Figures ──
   Everything this building is let by is a number: metres, months, euros,
   square metres, tram lines. They all share one voice and always align. */
.fig,
.nearby-badge,
.nearby-pill-badge,
[data-count],
.score-ring + div span,
.badge-available,
.badge-unavailable {
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
}
.fig {
    font-weight: 600;
    letter-spacing: -0.015em;
}
.nearby-badge {
    letter-spacing: 0 !important;
    font-weight: 600 !important;
}
.nearby-pill-badge {
    letter-spacing: 0 !important;
}

/* Transport mode chips (Tram / Bus / S / A1) read as route markers */
.nearby-item span.inline-flex.rounded {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    letter-spacing: 0;
}

/* ── Edges ──
   Crisp hairlines rather than soft drop shadows. Masonry has edges. */
.nearby-card {
    border-color: #CFD5CE !important;
    box-shadow: none !important;
}
@media (min-width: 768px) {
    .nearby-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 2px 0 0 #CFD5CE, 0 10px 20px -14px rgba(29, 33, 31, 0.5);
        border-color: var(--accent, #A6432B) !important;
    }
}
.nearby-card.is-active {
    box-shadow: inset 3px 0 0 0 var(--accent, #A6432B) !important;
}
.service-card,
.nearby-dest,
.nearby-pill {
    border-radius: 0.625rem;
}

/* ── Interaction states ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #A6432B;
    outline-offset: 2px;
    border-radius: 2px;
}
input:focus,
textarea:focus {
    border-color: #A6432B !important;
    box-shadow: 0 0 0 3px rgba(166, 67, 43, 0.12);
    outline: none;
}

/* ── Respect a reduced-motion preference ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
}
