/* --- SPD BREUNA: RESPONSIVE & MODERN --- */

:root {
    --spd-red: #E3000F;
    --spd-red-dark: #b0000b;
    --midnight: #0f172a;
    --slate: #64748b;
    --bg-color: #f8fafc;
    --white: #ffffff;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --glass: rgba(255, 255, 255, 0.7);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--midnight);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 900;
    color: var(--midnight);
    line-height: 1.1;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
}

p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--slate);
    margin-bottom: 1.5rem;
}

small {
    display: inline-block;
}

a {
    color: var(--spd-red);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

a:hover {
    color: var(--spd-red-dark);
}

.container {
    width: min(1200px, 100% - 32px);
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: clamp(64px, 8vw, 100px) 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(227, 0, 15, 0.3);
}

.btn-primary {
    background: var(--spd-red);
    color: white;
}

.btn-primary:hover {
    background: var(--spd-red-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(227, 0, 15, 0.5);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    color: var(--midnight);
    box-shadow: none;
}

.btn-glass:hover {
    background: white;
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--midnight);
    color: var(--midnight);
    border-radius: 8px;
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--midnight);
    color: white;
}

header {
    position: sticky;
    top: 12px;
    z-index: 1000;
    margin: 0 12px;
}

.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.logo {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--midnight);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-box {
    background: var(--spd-red);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    transform: rotate(-3deg);
}

.nav-links {
    display: flex;
    gap: clamp(14px, 2vw, 30px);
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--midnight);
    font-family: var(--font-head);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--spd-red);
}

.hamburger {
    display: none;
    border: none;
    background: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--midnight);
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.hero-modern {
    position: relative;
    padding-top: clamp(48px, 8vw, 80px);
    padding-bottom: clamp(64px, 8vw, 100px);
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: linear-gradient(135deg, rgba(227,0,15,0.05) 0%, rgba(227,0,15,0.1) 100%);
    border-radius: 50% 0 0 50%;
    z-index: -1;
    transform: rotate(-10deg);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 60px);
}

.hero-text,
.hero-visual {
    min-width: 0;
}

.hero-visual {
    position: relative;
}

.hero-label {
    display: inline-block;
    color: var(--spd-red);
    font-weight: 700;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--spd-red);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.highlight-text {
    color: var(--spd-red);
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(227, 0, 15, 0.15);
    z-index: -1;
    transform: rotate(-1deg);
}

.floating-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    transform: rotate(2deg);
    transition: 0.5s;
    object-fit: cover;
}

.floating-img:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-stat-box {
    position: absolute;
    bottom: 40px;
    left: -20px;
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    animation: float 4s ease-in-out infinite;
}

.hero-stat-box strong {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--spd-red);
    line-height: 1;
}

.hero-stat-box span {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.next-event-bar {
    background: var(--midnight);
    color: white;
    margin: 0 auto;
    border-radius: 12px;
    padding: 20px 24px;
    position: relative;
    top: -32px;
    box-shadow: var(--shadow-xl);
}

.event-badge {
    background: var(--spd-red);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: var(--font-head);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-right: 15px;
}

.next-event-bar a {
    color: white;
    text-decoration: underline;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 24px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-card);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--spd-red);
    opacity: 0;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(227, 0, 15, 0.1);
    color: var(--spd-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.card-link {
    margin-top: auto;
    color: var(--midnight);
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-link::after {
    content: '→';
    transition: 0.3s;
}

.card:hover .card-link::after {
    transform: translateX(5px);
    color: var(--spd-red);
}

.hero-text p {
    max-width: 60ch;
}

.text-highlight-box {
    background: linear-gradient(135deg, rgba(227,0,15,0.08), rgba(227,0,15,0.02));
    border: 1px solid rgba(227,0,15,0.12);
    border-radius: 16px;
    padding: 18px 20px;
}

.person-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    text-align: center;
    border: none;
    transition: 0.3s;
}

.person-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.person-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 0;
}

.person-card h3 {
    margin-top: 20px;
    font-size: 1.3rem;
}

.person-card .role {
    display: inline-block;
    background: var(--bg-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--slate);
    margin-bottom: 15px;
}

.feature-section {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.feature-section:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-img-box {
    flex: 1;
    position: relative;
}

.feature-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    z-index: 2;
    position: relative;
}

.feature-img-box::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    background: var(--spd-red);
    opacity: 0.1;
    border-radius: 20px;
    top: 20px;
    left: 20px;
    z-index: 1;
}

.feature-section:nth-child(even) .feature-img-box::before {
    left: -20px;
}

.feature-content {
    flex: 1;
}

.feature-number {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 4rem;
    color: rgba(0,0,0,0.05);
    line-height: 1;
    margin-bottom: -20px;
    display: block;
}

.event-item {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    display: flex;
    overflow: hidden;
    margin-bottom: 30px;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.event-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(227,0,15,0.2);
}

.event-date {
    background: var(--bg-color);
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-right: 2px dashed #ddd;
}

.date-day {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 900;
    color: var(--spd-red);
    line-height: 1;
}

.date-month {
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.event-details {
    padding: 30px;
    flex-grow: 1;
}

.event-meta {
    font-size: 0.85rem;
    color: var(--slate);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.form-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fdfdfd;
    font-family: var(--font-body);
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--spd-red);
    background: white;
    box-shadow: 0 0 0 4px rgba(227, 0, 15, 0.1);
}

.table-wrapper {
    background: white;
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow-card);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 20px;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--slate);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #eee;
}

td {
    padding: 20px;
    border-bottom: 1px solid #f4f4f4;
    color: var(--midnight);
}

tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-success {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef9c3;
    color: #854d0e;
}

.faq-box,
.faq-item {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    border-left: 5px solid var(--spd-red);
}

.faq-q,
.faq-question {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--midnight);
    display: block;
    margin-bottom: 10px;
}

footer {
    background: var(--midnight);
    color: var(--slate);
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li + li {
    margin-top: 10px;
}

.footer-col a {
    color: var(--slate);
    font-family: var(--font-head);
    font-weight: 500;
}

.footer-col a:hover {
    color: white;
}

@media (max-width: 900px) {
    header {
        top: 8px;
        margin: 0 8px;
    }

    .navbar {
        padding: 12px 14px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-bg-shape {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stat-box {
        display: none;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 24px;
        box-shadow: var(--shadow-xl);
        border-radius: 16px;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    p {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .next-event-bar {
        top: -20px;
        padding: 18px;
    }

    .feature-section,
    .feature-section:nth-child(even) {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }

    .feature-img-box::before {
        display: none;
    }

    .event-item {
        flex-direction: column;
    }

    .event-date {
        flex-direction: row;
        gap: 10px;
        border-right: none;
        border-bottom: 2px dashed #ddd;
        min-width: 100%;
    }

    .event-details,
    .form-card {
        padding: 24px;
    }

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

@media (max-width: 480px) {
    h1 {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo-box {
        padding: 4px 6px;
    }

    .hero-modern {
        padding-top: 36px;
    }

    .next-event-bar {
        border-radius: 10px;
    }

    .card-icon {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
}
