/* ═══════════════════════════════════════════════════════════
   Formula Driving School — Main Stylesheet
   Colors: Red #C0392B / Black #1a1a1a
   Font: Roboto Condensed (Greek support)
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
    --red: #C0392B;
    --red-dark: #96281B;
    --red-light: #E74C3C;
    --black: #1a1a1a;
    --dark: #2c2c2c;
    --grey: #555;
    --grey-light: #888;
    --grey-bg: #f5f5f5;
    --white: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --transition: 0.3s ease;
    --max-width: 1200px;
    --header-h: 96px;
}
/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}
body {
    font-family: 'Roboto Condensed', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--black);
    background: var(--white);
}

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

a {
    color: var(--red);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--red-dark); }

ul { list-style: none; }

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

.section {
    padding: 80px 0;
}
.section--alt {
    background: var(--grey-bg);
}
.section--dark {
    background: var(--black);
    color: var(--white);
}
.section--dark .section__title { color: var(--white); }

.section__title {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 12px;
    color: var(--black);
}
.section__subtitle {
    text-align: center;
    color: var(--grey);
    margin-bottom: 48px;
    font-size: 1.1rem;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-align: center;
}
.btn--primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn--primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
}
.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn--outline:hover {
    background: var(--white);
    color: var(--red);
}
.btn--large {
    padding: 16px 36px;
    font-size: 1.05rem;
}
.btn--small {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ── Top Bar ───────────────────────────────────────────── */
.top-bar {
    background: #000;
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: none;
    padding-left: 16px;
    padding-right: 24px;
}
.top-bar__phone,
.top-bar__address {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
}
.top-bar__phone:hover { color: var(--red-light); }

/* ── Header ────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #000;
    box-shadow: var(--shadow);
    height: var(--header-h);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    max-width: none;
    padding-left: 16px;
    padding-right: 24px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: auto;
    padding: 0;
    background: transparent;
    text-decoration: none;
}
.site-logo__image {
    display: block;
    width: 224px;
    height: auto;
}

/* Navigation */
.main-nav {
    flex: 1;
    margin-left: clamp(24px, 4vw, 72px);
}
.nav-list {
    display: flex;
    justify-content: center;
    gap: clamp(8px, 1vw, 16px);
    align-items: center;
}
.nav-list .menu-item a {
    display: block;
    padding: 8px 14px;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-list .menu-item a:hover,
.nav-list .current-menu-item a {
    background: var(--red);
    color: var(--white);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    background: var(--black);
    overflow: hidden;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.92) 0%, rgba(192,57,43,0.7) 100%);
}
.hero__content {
    position: relative;
    z-index: 1;
    color: var(--white);
    text-align: center;
    padding: 80px 24px;
}
.hero__logo {
    width: min(300px, 72vw);
    margin: 0 auto 24px;
    animation: hero-logo-sweep 3.2s ease-in-out forwards;
}
@keyframes hero-logo-sweep {
    0% { transform: translateX(calc(-50vw - 50%)); }
    67% { transform: translateX(calc(50vw + 50%)); }
    100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero__logo { animation: none; }
}
.hero__title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero__subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.8;
}
.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Card Grids ────────────────────────────────────────── */
.card-grid {
    display: grid;
    gap: 24px;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Service Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 64px;
    margin-bottom: 16px;
}
.card__icon img {
    display: block;
    width: 88px;
    height: 64px;
    object-fit: contain;
}
.card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.card__desc {
    color: var(--grey);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.card__desc strong { color: var(--black); }
.card__link {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Why Us Cards */
.why-card {
    text-align: center;
    padding: 24px;
}
.why-card__number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--red-light);
    margin-bottom: 8px;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
}
.testimonial-card__stars {
    color: #f1c40f;
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.testimonial-card__text {
    font-style: italic;
    color: var(--grey);
    margin-bottom: 16px;
    line-height: 1.7;
}
.testimonial-card__author {
    font-weight: 700;
    color: var(--black);
}

/* Value Cards */
.value-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
}
.value-card__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

/* Team Cards */
.team-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow);
}
.team-card__photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    background: var(--grey-bg);
}
.team-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.team-card__role {
    color: var(--red);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.team-card__bio {
    color: var(--grey);
    font-size: 0.9rem;
}

/* ── Page Hero ─────────────────────────────────────────── */
.page-hero {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 48px;
    text-align: center;
}
.page-hero__title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 8px;
}
.page-hero__subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* ── Theory CTA (Home) ────────────────────────────────── */
.theory-cta__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.theory-cta__image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

/* ── Contact CTA (Home) ───────────────────────────────── */
.contact-cta__inner {
    text-align: center;
}
.contact-cta__inner h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}
.contact-cta__inner p {
    opacity: 0.85;
    margin-bottom: 28px;
}
.contact-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Services Detail ───────────────────────────────────── */
.services-catalog {
    padding: 48px 0 64px;
}
.services-catalog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 20px;
}
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.service-card > .btn {
    align-self: flex-start;
    margin-top: auto;
}
.service-card__badge {
    align-self: flex-start;
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.service-card h2 {
    font-size: 1.45rem;
    font-weight: 900;
    margin-bottom: 10px;
}
.service-card p {
    color: var(--grey);
    margin-bottom: 12px;
}
.service-card__features {
    margin-bottom: 18px;
}
.service-card__features li {
    padding: 4px 0;
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.45;
}

/* ── Process Steps ─────────────────────────────────────── */
.process-steps {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
}
.process-step {
    text-align: center;
    max-width: 200px;
}
.process-step__number {
    width: 56px;
    height: 56px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 16px;
}
.process-step h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}
.process-step p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ── Gallery ───────────────────────────────────────────── */
.gallery__filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.gallery__filter {
    background: var(--grey-bg);
    border: 2px solid transparent;
    padding: 8px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}
.gallery__filter:hover,
.gallery__filter.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery__item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--grey-bg);
    cursor: pointer;
}
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,26,26,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery__item:hover .gallery__overlay { opacity: 1; }
.gallery__overlay span {
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
}
.gallery__item.hidden {
    display: none;
}

/* ── Contact ───────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 0.9rem; }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
}
.contact-form__note {
    font-size: 0.85rem;
    color: var(--grey-light);
}

.contact-info-card {
    background: var(--grey-bg);
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}
.contact-info-card h2,
.contact-info-card h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.contact-info-list li {
    margin-bottom: 20px;
}
.contact-info-list li strong {
    display: block;
    margin-bottom: 4px;
    color: var(--red);
    font-size: 0.9rem;
}
.contact-map iframe {
    width: 100%;
    border-radius: var(--radius);
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
    background: var(--black);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col__tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 12px;
}
.footer-contact li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.footer-contact li svg { flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 48px;
    padding: 20px 0;
}
.footer-bottom__inner {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ── Cookie Notice ─────────────────────────────────────── */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white);
    padding: 16px 24px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform var(--transition);
}
.cookie-notice.visible { transform: translateY(0); }
.cookie-notice__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cookie-notice p { font-size: 0.85rem; opacity: 0.9; }
.cookie-notice a { color: var(--red-light); text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 48px 0; }

    /* Nav toggle */
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #000;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform var(--transition);
        padding: 16px 24px;
        z-index: 999;
        flex: initial;
        margin-left: 0;
    }
    .main-nav.open { transform: translateY(0); }
    .nav-list { flex-direction: column; justify-content: flex-start; gap: 0; }
    .nav-list .menu-item a {
        padding: 12px 16px;
        display: block;
        border-bottom: 1px solid #333;
    }

    /* Hero */
    .hero__title { font-size: 2rem; }
    .hero__subtitle { font-size: 1rem; }
    .hero__actions { flex-direction: column; align-items: center; }

    /* Grids */
    .card-grid--3,
    .card-grid--4 { grid-template-columns: 1fr; }
    .theory-cta__inner,
    .contact-grid { grid-template-columns: 1fr; }

    /* Gallery */
    .gallery__grid { grid-template-columns: repeat(2, 1fr); }

    /* Footer */
    .site-footer__inner { grid-template-columns: 1fr; }
    .top-bar__address { display: none; }
}

@media (max-width: 960px) {
    .services-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    :root { --header-h: 80px; }
    .site-logo__image { width: 184px; }
    .hero { min-height: 420px; }
    .hero__title { font-size: 1.7rem; }
    .page-hero__title { font-size: 1.8rem; }
    .gallery__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .services-catalog__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .service-card { height: auto; }
}

