/* ===================================================
   AUTOMIETENPALMADEMALLORCA.DE — Mallorca Sapphire Blue Design
   Palette: Deep Sapphire Blue + Navy + Sky Blue
   Split-screen hero, light sections, gradient cards
=================================================== */

:root {
    --primary: #1E40AF;
    --primary-dark: #1E3A8A;
    --primary-light: #60A5FA;
    --primary-ultra: #DBEAFE;
    --dark: #0C1628;
    --dark-2: #162032;
    --dark-3: #1E2D44;
    --accent: #F59E0B;
    --accent-green: #22C55E;
    --text-dark: #0F172A;
    --text-medium: #4B5563;
    --text-light: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-blue: #EFF6FF;
    --border-color: #E5E7EB;
    --white: #FFFFFF;
    --star-color: #F59E0B;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.16), 0 8px 16px rgba(0,0,0,0.08);
    --shadow-blue: 0 8px 24px rgba(30,64,175,0.25);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================================
   HERO — dark navy, split-screen layout
=================================================== */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--dark);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* REPLACE THIS WITH YOUR HERO IMAGE */
    background: url('../img/hero.webp') center/cover no-repeat;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

header {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

nav a {
    color: rgba(255,255,255,0.82);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

nav a:hover { color: var(--primary-light); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* Hero split-screen grid */
.hero-main {
    padding: 52px 0 48px;
}

.hero-main .container {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 52px;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}

.hero-main h1 {
    font-size: 2.55rem;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255,255,255,0.92);
    margin-bottom: 24px;
    line-height: 1.65;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30,64,175,0.18);
    border: 1px solid rgba(96,165,250,0.4);
    border-radius: var(--radius-full);
    padding: 5px 14px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--white);
    backdrop-filter: blur(6px);
}

.hero-badge .check {
    color: var(--primary-light);
    font-weight: 800;
}

.widget-container {
    min-height: 420px;
    border-radius: 15px;
    overflow: hidden;
}

/* ===================================================
   HOW TO RENT — light blue, circular step icons
=================================================== */
.how-to-rent {
    padding: 72px 0;
    background: var(--bg-blue);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.step {
    text-align: center;
    padding: 0 20px 24px;
}

.step-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 0 0 6px rgba(30,64,175,0.12), var(--shadow-blue);
}

.step h3 {
    font-size: 0.97rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step p {
    font-size: 0.86rem;
    color: var(--text-medium);
    line-height: 1.65;
}

.step p a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===================================================
   BENEFITS — white bg, blue gradient filled cards
=================================================== */
.benefits {
    padding: 72px 0;
    background: var(--bg-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-blue);
    color: var(--white);
    transition: transform 0.25s, box-shadow 0.25s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(30,64,175,0.38);
}

.benefit-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-card h3 .material-icons {
    font-size: 26px;
    color: var(--primary-ultra);
}

.benefit-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.75;
}

/* ===================================================
   WHY RENT — light blue section
=================================================== */
.why-rent {
    padding: 72px 0;
    background: var(--bg-blue);
}

.why-rent-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 52px;
    align-items: center;
}

.why-rent-text p {
    font-size: 0.97rem;
    color: var(--text-medium);
    line-height: 1.82;
    margin-bottom: 16px;
}

.why-rent-text p:last-child { margin-bottom: 0; }

.why-rent-text strong { color: var(--primary-dark); }

.why-rent-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

/* ===================================================
   PRICING — light section
=================================================== */
.pricing {
    padding: 72px 0;
    background: var(--bg-light);
}

.pricing-intro {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 28px;
    font-size: 0.97rem;
    color: var(--text-medium);
    line-height: 1.72;
}

.pricing-tips {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 36px;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.pricing-tips h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.pricing-tips ul { padding-left: 20px; }

.pricing-tips li {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 6px;
    line-height: 1.65;
}

.car-type-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.type-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 22px 14px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-sm);
}

.type-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.type-card h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.type-card .price {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary);
}

.type-card .per {
    font-size: 0.78rem;
    color: var(--text-light);
}

.price-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

.price-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

.price-table-wrap th {
    background: var(--primary-dark);
    color: var(--white);
    padding: 14px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.price-table-wrap td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-medium);
}

.price-table-wrap tr:last-child td { border-bottom: none; }

.price-table-wrap tr:nth-child(even) td { background: var(--bg-light); }

/* ===================================================
   REVIEWS — white
=================================================== */
.reviews {
    padding: 72px 0;
    background: var(--bg-white);
}

.rating-overview {
    text-align: center;
    margin-bottom: 48px;
}

.rating-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-blue);
    border-radius: var(--radius-xl);
    padding: 26px 48px;
    border: 2px solid var(--primary-ultra);
}

.rating-box .big-number {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.rating-box .stars .material-icons {
    color: var(--star-color);
    font-size: 24px;
}

.rating-box .count {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 6px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.reviewer h4 {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-dark);
}

.reviewer span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.review-stars .material-icons {
    color: var(--star-color);
    font-size: 17px;
}

.review-text {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.75;
    font-style: italic;
}

/* ===================================================
   TRAFFIC RULES — light gray
=================================================== */
.traffic-rules {
    padding: 72px 0;
    background: var(--bg-light);
}

.rules-main {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border-top: 4px solid var(--primary);
}

.rules-main h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.rules-main p {
    font-size: 0.93rem;
    color: var(--text-medium);
    margin-bottom: 14px;
}

.rules-main ul { padding-left: 20px; }

.rules-main li {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 6px;
    line-height: 1.65;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rule-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.rule-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rule-card h3 .material-icons {
    color: var(--primary);
    font-size: 22px;
}

.rule-card p {
    font-size: 0.88rem;
    color: var(--text-medium);
    line-height: 1.72;
}

/* ===================================================
   ATTRACTIONS — light blue section
=================================================== */
.attractions {
    padding: 72px 0;
    background: var(--bg-blue);
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.attraction {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 26px;
    border: 1px solid var(--border-color);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-sm);
}

.attraction:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.attraction h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.attraction p {
    font-size: 0.87rem;
    color: var(--text-medium);
    line-height: 1.72;
    margin-bottom: 14px;
}

.attraction-info {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.attraction-info .info-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
}

.attraction-info .info-tag .material-icons { font-size: 16px; }

/* ===================================================
   TOP CARS — white
=================================================== */
.top-cars {
    padding: 72px 0;
    background: var(--bg-white);
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.car-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.25s, box-shadow 0.25s;
}

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

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #FFFFFF;
    padding: 20px;
}

.car-body { padding: 22px; }

.car-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.car-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.87rem;
    color: var(--text-medium);
}

.spec .material-icons {
    font-size: 20px;
    color: var(--primary);
    width: 24px;
    flex-shrink: 0;
}

.car-price-tag {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.btn-offer {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.92rem;
    transition: opacity 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-blue);
}

.btn-offer:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ===================================================
   FAQ — blue-tinted
=================================================== */
.faq {
    padding: 72px 0;
    background: var(--bg-blue);
}

.faq-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-medium);
    font-size: 0.97rem;
    line-height: 1.72;
}

.faq-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 991px) {
    .faq-list {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
    font-family: inherit;
}

.faq-question:hover { background: rgba(30,64,175,0.04); }

.faq-question .material-icons {
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-question .material-icons { transform: rotate(180deg); }
.faq-item.active .faq-question { color: var(--primary-dark); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
}

.faq-answer-inner {
    padding: 14px 22px 18px;
    color: var(--text-medium);
    line-height: 1.78;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-answer { max-height: 400px; }

/* ===================================================
   FOOTER LOCATIONS — light bg
=================================================== */
.footer-locations {
    padding: 52px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.footer-locations h2 {
    color: var(--text-dark);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

.footer-locations h2 .material-icons {
    color: var(--primary);
    font-size: 24px;
}

.locations-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.locations-cols ul { list-style: none; }

.locations-cols li {
    padding: 4px 0;
    font-size: 0.87rem;
}

.locations-cols li a {
    color: var(--text-medium);
    transition: color 0.2s;
}

.locations-cols li a:hover { color: var(--primary); }

/* ===================================================
   FOOTER
=================================================== */
footer {
    background: var(--bg-white);
    color: var(--text-medium);
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
}

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

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.footer-seo {
    font-size: 0.82rem;
    color: var(--text-light);
    max-width: 720px;
    margin: 0 auto 16px;
    line-height: 1.65;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-medium);
    font-size: 0.87rem;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--primary); }

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 991px) {
    .hero-main .container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-text { padding-top: 0; }
    .hero-main h1 { font-size: 1.9rem; }
    .steps-row { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .why-rent-grid { grid-template-columns: 1fr; }
    .why-rent-image { order: -1; }
    .car-type-grid { grid-template-columns: repeat(3, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .rules-grid { grid-template-columns: 1fr; }
    .attractions-grid { grid-template-columns: repeat(2, 1fr); }
    .cars-grid { grid-template-columns: repeat(2, 1fr); }
    .locations-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section-title { font-size: 1.45rem; }
    .hero-main { padding: 32px 0 28px; }
    .hero-description { font-size: 0.93rem; }
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(12,22,40,0.97);
        padding: 16px 24px;
        z-index: 100;
    }
    nav.active { display: block; }
    nav ul { flex-direction: column; gap: 14px; }
    .menu-toggle { display: block; }
    header { position: relative; }
    .car-type-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }
    .cars-grid { grid-template-columns: 1fr; }
    .attractions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .steps-row { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .hero-benefits { gap: 6px; }
    .hero-badge { font-size: 0.8rem; padding: 4px 12px; }
    .locations-cols { grid-template-columns: 1fr; }
    .hero-main h1 { font-size: 1.55rem; }
    .step-icon { width: 56px; height: 56px; font-size: 1.25rem; }
}
