/* Design System & Variables */
:root {
    /* Colors - Premium Light Theme */
    --color-bg-primary: #ffffff;
    /* White */
    --color-bg-secondary: #f8fafc;
    /* Slate 50 */
    --color-bg-tertiary: #e2e8f0;
    /* Slate 200 */

    --color-text-primary: #0f172a;
    /* Slate 900 */
    --color-text-secondary: #475569;
    /* Slate 600 */
    --color-text-accent: #2563eb;
    /* Blue 600 */

    --color-primary: #1e40af;
    /* Blue 800 - Stronger Blue for primary actions */
    --color-primary-hover: #1e3a8a;
    /* Blue 900 */

    --color-success: #16a34a;
    /* Green 600 */
    --color-danger: #dc2626;
    /* Red 600 */

    /* Overlay colors for header/modal */
    --color-overlay-bg: rgba(255, 255, 255, 0.95);

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;

    /* Shadows - softer for light mode */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 800;
    /* Bolder headings for modern look */
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
        text-align: center !important;
    }

    h3 {
        text-align: center !important;
    }

    h3[style*="font-size"] {
        font-size: 2rem !important;
        text-align: center !important;
    }

    .section {
        text-align: center !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Ensure services section title is centered properly */
    .section h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
}

/* Landscape mobile - ensure padding and centering applies */
@media (max-width: 1024px) and (orientation: landscape) {
    .section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .section h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    /* Hero buttons margin for landscape */
    .hero-content>div:last-child {
        margin-top: 1.5rem;
        justify-content: center;
    }
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-medium);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.4);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(30, 64, 175, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-text-secondary);
    color: var(--color-text-secondary);
    font-weight: 700;
}

.btn-outline:hover {
    border-color: var(--color-text-primary);
    color: var(--color-text-primary);
    background-color: var(--color-bg-secondary);
}

.hero .btn-outline {
    border-color: white;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero .btn-outline:hover {
    background-color: white;
    color: var(--color-primary);
    border-color: white;
    text-shadow: none;
}

/* Header Styles */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--color-bg-tertiary);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--color-primary);
}

.nav-desktop {
    display: none;
    align-items: center;
}

.nav-mobile-toggle {
    display: block;
    font-size: 1.5rem;
    color: var(--color-text-primary);
    background: transparent;
    padding: 0.5rem;
}

@media (min-width: 900px) {
    .nav-desktop {
        display: flex;
        gap: var(--spacing-lg);
    }

    .nav-mobile-toggle {
        display: none;
    }
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-text-secondary);
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    /* Full height minus header */
    background-color: var(--color-overlay-bg);
    padding: var(--spacing-xl) var(--spacing-md);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    list-style: none;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
    /* Ensure text is readable on dark overlay */
}

/* Background Slider */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: heroSlider 15s infinite;
    /* Dark overlay built into the background images or added via gradient below */
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Dark overlay for text readability */
    z-index: -1;
}

@keyframes heroSlider {

    0%,
    30% {
        background-image: url('../assets/autoszerelohazhoz.png');
    }

    33%,
    63% {
        background-image: url('../assets/klimatoltes.png');
    }

    66%,
    96% {
        background-image: url('../assets/felretankolas.jpeg');
    }

    100% {
        background-image: url('../assets/autoszerelohazhoz.png');
    }
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 10;
}

.hero-tagline {
    color: #93c5fd;
    /* Blue 300 - Much lighter for dark background */
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    color: white;
    /* Overriding variable for Hero */
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero {
        align-items: center;
        /* Center on mobile too */
        text-align: center;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-content {
        margin: 0 auto;
        padding-bottom: 4rem;
    }

    /* Hero buttons margin */
    .hero-content>div:last-child {
        margin-top: 1.5rem;
        justify-content: center;
    }
}

/* Landscape mobile hero fixes */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-content {
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-bg-primary);
    /* White */
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-bg-tertiary);
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    background: rgba(30, 64, 175, 0.1);
    /* Light Blue background */
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.service-title {
    font-size: 1.35rem;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.service-list {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.service-list li {
    margin-bottom: 0.25rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-list li::before {
    content: "→";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Call to Action Helper */
.cta-box {
    background-color: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* About / Info Section */
.info-box {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-bg-tertiary);
}

/* Rich Service Cards */
.services-grid-rich {
    display: grid;
    /* Desktop: Force 3 columns */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 1024px) {
    .services-grid-rich {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid-rich {
        grid-template-columns: 1fr;
    }
}

.service-card-rich {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-bg-tertiary);
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.service-card-rich:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

/* Removed Image Container Styles */

.service-content {
    padding: 2rem;
    /* Increased padding since no image */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-bg-tertiary);
}

.service-title-rich {
    font-size: 1.35rem;
    /* Slightly larger */
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.service-price {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 700;
}

.service-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-action {
    margin-top: auto;
    align-self: flex-start;
    /* Align button to start */
}

/* Brand Highlights Section */
.brand-section {
    margin-bottom: 4rem;
    background: var(--color-bg-secondary);
    padding: 3rem;
    border-radius: var(--radius-lg);
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.brand-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    /* Ensure equal height */
}

.brand-card .btn {
    margin-top: auto;
    /* Push button to bottom */
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.brand-logo {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    /* Fixed height for logo area */
}

.brand-card-wide {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    margin-top: 2rem;
    width: 100%;
    border: 1px solid var(--color-bg-tertiary);
    /* Match other cards border if they have it, or just keep consistent style */
}

.brand-card-wide:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

/* AdBlue Specific Styles */
.adblue-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 16px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial
}

.adblue-head {
    text-align: center;
    margin-bottom: 18px
}

.adblue-head h2 {
    font-size: 32px;
    line-height: 1.15;
    margin: 0 0 10px;
    color: #0f172a
}

.adblue-head p {
    margin: 0;
    color: #64748b;
    font-size: 14.5px
}

.adblue-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px
}

.adblue-card {
    background: #fff;
    border: 1px solid #e7edf6;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
    min-height: 240px;
    display: flex;
    flex-direction: column
}

.adblue-icon {
    width: 65px;
    height: 65px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5ff;
    color: #1d4ed8;
    font-weight: 800;
    margin-bottom: 10px
}

.adblue-card h3 {
    margin: 2px 0 8px;
    color: #0f172a;
    font-size: 18px
}

.adblue-card p {
    margin: 0 0 14px;
    color: #475569;
    font-size: 13.8px;
    line-height: 1.45;
    flex: 1
}

.adblue-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    background: #1d4ed8;
    color: #fff;
    font-weight: 800;
    letter-spacing: .4px;
    padding: 12px 14px;
    border-radius: 999px;
    width: 140px
}

.adblue-btn:hover {
    filter: brightness(1.05)
}

.adblue-foot {
    margin-top: 16px;
    text-align: center;
    color: #334155
}

.adblue-foot p {
    margin: 6px 0;
    font-size: 14px
}

.adblue-note {
    color: #64748b;
    font-size: 12.5px
}

@media (max-width: 980px) {
    .adblue-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .adblue-grid {
        grid-template-columns: 1fr;
    }

    .adblue-head h2 {
        font-size: 26px
    }
}

/* About Section with Map */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    order: 1;
}

.about-map {
    order: 2;
    background: white;
    border: 1px solid var(--color-bg-tertiary);
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.map-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-button a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.map-button a:hover {
    transform: scale(1.05);
}

/* Mobile responsive for About section */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        order: 1;
        text-align: center;
    }

    .about-map {
        order: 2;
        height: 250px;
    }

    .map-button {
        padding: 10px 20px;
    }

    .map-button a {
        font-size: 1rem;
    }
}