/* ==========================================================================
   F-LINE PREMIUM PARALLAX WEBSITE DESIGN SYSTEM
   Theme: Bright / Light Luxury
   Colors: Crimson Red (#B41819), Obsidian Charcoal (#0C141F), Slate Steel (#445781)
   ========================================================================== */

/* 1. CORE TOKENS & INITIALIZATION */
:root {
    /* Brand HSL Colors */
    --brand-red-h: 359;
    --brand-red-s: 76%;
    --brand-red-l: 40%;
    --primary-red: hsl(var(--brand-red-h), var(--brand-red-s), var(--brand-red-l)); /* #B41819 */
    --primary-red-hover: hsl(var(--brand-red-h), var(--brand-red-s), 32%);
    --primary-red-alpha: hsla(var(--brand-red-h), var(--brand-red-s), var(--brand-red-l), 0.1);
    
    --text-navy: #0C141F;       /* Headings, high contrast */
    --text-muted: #445781;      /* Paragraphs, legibility */
    --text-light: #7E8DAA;      /* Small secondary descriptions */
    
    /* Backgrounds */
    --bg-white: #FFFFFF;        /* Main base background */
    --bg-slate: #F5F6FE;        /* Alternating section background */
    --bg-glass: rgba(255, 255, 255, 0.75);
    
    /* Borders & Accents */
    --border-light: #E2E8F0;
    --border-glass: rgba(255, 255, 255, 0.4);
    --accent-silver: #CBD5E1;
    
    /* Shadows */
    --shadow-soft: 0 10px 30px -10px rgba(12, 20, 31, 0.06);
    --shadow-hover: 0 20px 40px -15px rgba(180, 24, 25, 0.12);
    --shadow-glass: 0 8px 32px 0 rgba(68, 87, 129, 0.08);

    /* Transitions & Physics */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Scroll & Layout offsets */
    scroll-padding-top: 85px;
}

/* Base resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    color: var(--text-navy);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

ul {
    list-style: none;
}

/* 2. REUSABLE UTILITIES & LAYOUT LAYERS */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-white { color: var(--bg-white) !important; }
.text-light { color: #E2E8F0 !important; }
.text-red { color: var(--primary-red) !important; }
.max-width-center {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    margin-bottom: 60px;
}

.sub-title {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-red);
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.sub-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background-color: var(--primary-red);
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-muted);
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(180, 24, 25, 0.4);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-navy);
    border-color: var(--border-light);
}

.btn-secondary:hover {
    background-color: var(--bg-slate);
    border-color: var(--accent-silver);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-large {
    padding: 15px 36px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* 3. NAVIGATION NAVBAR & TOP BAR */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 38px;
    background-color: #B41819 !important;
    color: #ffffff !important;
    z-index: 10002 !important;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.top-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-company {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.top-bar-company i {
    font-size: 12px;
    opacity: 0.95;
    color: #ffffff !important;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff !important;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.top-bar-item i {
    font-size: 12px;
    opacity: 0.95;
    color: #ffffff !important;
}

.top-bar-item:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.top-bar-divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    user-select: none;
}

.navbar {
    position: fixed;
    top: 38px !important;
    left: 0;
    width: 100%;
    z-index: 10001 !important;
    background-color: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: padding var(--transition-smooth), background-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.navbar.scrolled {
    top: 38px !important;
    padding: 5px 0;
    box-shadow: var(--shadow-soft);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Real Corporate Logo Image sizing */
.fline-logo-img {
    height: 50px; /* Adjusted size for a balanced look */
    width: auto;
    display: block;
    transition: var(--transition-fast);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px; /* Reduced from 32px to ensure all elements fit in a single line */
}

.nav-item {
    font-size: 14px; /* Reduced from 15px */
    font-weight: 600;
    color: var(--text-navy);
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width var(--transition-fast);
}

.nav-item:hover {
    color: var(--primary-red);
}

.nav-item:hover::after {
    width: 100%;
}

/* Dropdown Menu System */
.nav-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Hover bridge to keep dropdown open smoothly */
.nav-dropdown-wrapper::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    display: block;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
}

.dropdown-icon {
    font-size: 11px;
    margin-top: 1px;
    transition: transform var(--transition-fast);
}

.nav-dropdown-wrapper:hover .dropdown-icon,
.nav-dropdown-wrapper.open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; /* Align left edge directly under Termékek */
    width: 290px; /* Fixed vertical card width */
    max-width: 90vw;
    display: flex;
    flex-direction: column; /* STRICT VERTICAL STACK */
    gap: 4px;
    background: #ffffff !important;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 40px -10px rgba(12, 20, 31, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
}

.nav-dropdown-wrapper:hover .dropdown-menu,
.nav-dropdown-wrapper.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-navy) !important;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    width: 100%;
    transition: all 0.2s ease;
}

.dropdown-item i {
    width: 20px;
    font-size: 15px;
    color: var(--primary-red);
    text-align: center;
    flex-shrink: 0;
}

.dropdown-item:hover {
    background-color: var(--bg-slate) !important;
    color: var(--primary-red) !important;
    transform: translateX(4px);
}

.dropdown-item.highlighted {
    background: rgba(180, 24, 25, 0.08) !important;
    border-left: 4px solid var(--primary-red) !important;
    color: var(--primary-red) !important;
    font-weight: 700;
}

.dropdown-item.highlighted:hover {
    background: rgba(180, 24, 25, 0.16) !important;
}

.dropdown-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    background-color: var(--primary-red);
    color: #ffffff !important;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 4px 0;
    width: 100%;
}

.nav-cta {
    padding: 10px 18px;
    font-size: 13.5px;
    white-space: nowrap; /* Guarantee that the CTA button fits on exactly one line under all conditions */
}

/* Hamburger mobile menu toggle */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1100;
    padding: 8px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-navy);
    transition: all var(--transition-smooth);
    border-radius: 2px;
}

/* 4. HERO PARALLAX SECTION */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Parallax background styling */
.hero-parallax-bg {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 110%;
    height: 120%;
    background-image: url('images/hero_bg.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    transform: translateY(0);
    will-change: transform;
    transition: transform 0.05s ease-out; /* Super low duration for responsive wheel */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    text-align: center;
    padding: 0 24px;
    margin-top: 60px;
}

.hero-tag {
    display: inline-block;
    background-color: var(--primary-red-alpha);
    color: var(--primary-red);
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 36px auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
}

.hero-scroll-indicator .mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--accent-silver);
    border-radius: 20px;
    position: relative;
}

.hero-scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-red);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite;
}

@keyframes scrollMouse {
    0% { opacity: 0; top: 6px; }
    30% { opacity: 1; }
    80% { opacity: 0; top: 22px; }
    100% { opacity: 0; top: 22px; }
}

/* 5. STATS & RÓLUNK SECTION */
.stats-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.stat-card {
    background-color: var(--bg-slate);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-red-alpha);
}

.stat-icon-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--bg-white);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px auto;
    box-shadow: 0 4px 10px rgba(12,20,31,0.03);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-navy);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Intro Layout */
.intro-block {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.intro-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 24px 0 32px 0;
}

.point-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-navy);
}

.point-item i {
    color: var(--primary-red);
    font-size: 18px;
}

.intro-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: visible;
}

.intro-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(12,20,31,0.08);
}

.intro-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--primary-red);
    color: var(--bg-white);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(180, 24, 25, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 160px;
    text-align: center;
}

.badge-num {
    font-family: 'Ubuntu', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.badge-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

/* 6. TABBED PRODUCT SHOWCASE */
.products-section {
    padding: 100px 0;
    background-color: var(--bg-slate);
}

.tabs-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    background-color: rgba(226, 232, 240, 0.4);
    padding: 8px;
    border-radius: 12px;
    margin-bottom: 60px;
}

.tab-btn {
    background: none;
    border: none;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    padding: 14px 22px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.tab-btn i {
    font-size: 16px;
    transition: transform var(--transition-fast);
}

.tab-btn:hover {
    color: var(--primary-red);
    background-color: var(--bg-white);
}

.tab-btn:hover i {
    transform: scale(1.1);
}

.tab-btn.active {
    background-color: var(--bg-white);
    color: var(--primary-red);
    box-shadow: var(--shadow-soft);
}

/* Tab Panel Engine */
.tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Product Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 32px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-red-alpha);
}

.card-tag {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: var(--primary-red-alpha);
    color: var(--primary-red);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 20px;
}

.card-icon {
    font-size: 36px;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.card-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.card-details {
    margin-bottom: 32px;
    flex-grow: 1;
}

.card-details strong {
    display: block;
    font-family: 'Ubuntu', sans-serif;
    color: var(--text-navy);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 8px 0;
}

.card-details strong:first-of-type {
    margin-top: 0;
}

.card-details ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-details li {
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.card-details li i {
    color: var(--primary-red);
    margin-top: 3px;
    font-size: 12px;
}

/* 7. WHY CHOOSE US SECTION */
.why-us-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.why-card {
    background-color: var(--bg-slate);
    border-radius: 12px;
    padding: 40px 30px;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}

.why-card:hover {
    transform: translateY(-8px);
    background-color: var(--bg-white);
    border-color: var(--border-light);
    box-shadow: var(--shadow-soft);
}

.why-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--primary-red-alpha);
    color: var(--primary-red);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform var(--transition-fast);
}

.why-card:hover .why-icon {
    transform: rotate(6deg) scale(1.08);
}

.why-title {
    font-size: 18px;
    margin-bottom: 12px;
}

.why-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* 8. ESTIMATOR SECTION */
.estimator-section {
    padding: 100px 0;
    background-color: var(--bg-slate);
}

.estimator-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

.estimator-form-wrapper {
    background-color: var(--bg-white);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.quote-form {
    margin-top: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-navy);
}

.form-control {
    background-color: var(--bg-slate);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: var(--text-navy);
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus {
    background-color: var(--bg-white);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px var(--primary-red-alpha);
}

.form-control::placeholder {
    color: var(--text-light);
}

.input-info {
    font-size: 11px;
    color: var(--text-light);
}

.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-navy);
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-red);
}

.sub-section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-red);
    margin: 32px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

/* Quote Estimator Ticket Preview */
.estimator-preview-wrapper {
    position: sticky;
    top: 115px;
}

.quote-preview-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(12,20,31,0.06);
    border: 2px dashed var(--border-light);
    overflow: hidden;
    position: relative;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.quote-preview-card::before, .quote-preview-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bg-slate);
    border-radius: 50%;
    top: 70px;
    z-index: 10;
}

.quote-preview-card::before { left: -10px; }
.quote-preview-card::after { right: -10px; }

.preview-header {
    background-color: var(--text-navy);
    color: var(--bg-white);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-brand {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 2px;
}

.preview-status {
    background-color: var(--primary-red);
    color: var(--bg-white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 10px;
}

.preview-body {
    padding: 40px 32px 24px 32px;
    border-bottom: 1px dashed var(--border-light);
}

.preview-product-title {
    font-size: 20px;
    margin-bottom: 24px;
}

.preview-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.spec-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.spec-name {
    color: var(--text-light);
    font-weight: 600;
}

.spec-value {
    color: var(--text-navy);
    font-weight: 700;
}

.preview-price-tier {
    background-color: var(--bg-slate);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tier-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tier-value {
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-red);
}

.preview-note {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
}

.preview-note i {
    color: var(--primary-red);
    font-size: 14px;
    margin-top: 2px;
}

.preview-footer {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FAFAFC;
}

.barcode {
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.preview-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
}

/* Quote Success State */
.quote-success-state {
    background-color: var(--bg-white);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-red-alpha);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 12px;
}

.quote-success-state h3 {
    font-size: 24px;
}

.success-subtext {
    font-size: 14px;
    color: var(--text-light);
}

/* 9. TESTIMONIALS (VÉLEMÉNYEK) SECTION */
.testimonials-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.testimonials-parallax-bg {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 110%;
    height: 120%;
    background-image: url('images/awning_patio.png');
    background-position: center;
    background-size: cover;
    z-index: 1;
    will-change: transform;
    transition: transform 0.05s ease-out;
}

.testimonials-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 20, 31, 0.95) 0%, rgba(12, 20, 31, 0.8) 100%);
    z-index: 2;
}

.text-relative {
    position: relative;
    z-index: 3;
}

.testimonial-slider-container {
    max-width: 800px;
    margin: 40px auto 0 auto;
    position: relative;
}

.testimonial-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth);
    text-align: center;
}

.testimonial-slide.active {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #F1C40F;
    font-size: 16px;
    margin-bottom: 20px;
}

.testimonial-quote {
    font-size: clamp(20px, 3vw, 26px);
    color: var(--bg-white);
    margin-bottom: 16px;
    line-height: 1.35;
}

.testimonial-text {
    font-size: clamp(14px, 1.8vw, 17px);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.client-name {
    font-size: 16px;
    color: var(--bg-white);
    margin-bottom: 4px;
}

.client-role {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-red);
}

/* Slider Controls */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    padding: 0 10px;
    pointer-events: none;
    z-index: 10;
}

.carousel-control {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--bg-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    pointer-events: auto;
}

.carousel-control:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.carousel-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.indicator.active {
    background-color: var(--primary-red);
    width: 24px;
    border-radius: 5px;
}

/* 10. FAQ (ACCORDION) SECTION */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.faq-accordion-container {
    max-width: 800px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-slate);
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--accent-silver);
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 30px;
    text-align: left;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    outline: none;
}

.faq-trigger i {
    color: var(--text-light);
    transition: transform var(--transition-smooth);
}

.faq-item.active {
    background-color: var(--bg-white);
    border-color: var(--primary-red-alpha);
    box-shadow: var(--shadow-soft);
}

.faq-item.active .faq-trigger i {
    transform: rotate(180deg);
    color: var(--primary-red);
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
}

.faq-content {
    padding: 0 30px 24px 30px;
    font-size: 15px;
    color: var(--text-muted);
    border-top: 1px solid var(--bg-slate);
}

.faq-content p {
    margin-bottom: 12px;
}

.faq-content p:last-child {
    margin-bottom: 0;
}

/* 11. FOOTER & CONTACT */
.footer-section {
    background-color: var(--text-navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px 0;
    border-top: 4px solid var(--primary-red);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo .brand-text {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 900;
    font-size: 26px;
    letter-spacing: 2px;
    color: var(--bg-white);
}

.footer-logo .brand-sub {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-red);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.06);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--bg-white);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 16px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: var(--primary-red);
    font-size: 16px;
    margin-top: 3px;
}

.contact-item a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 16px;
}

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

.developer-credit {
    font-weight: 600;
}

/* ==========================================================================
   PORTFOLIO MOSAIC GALLERY & SLANTED BANNER STYLES
   ========================================================================== */

/* Slanted/Angled Banner Separators */
.slanted-banner {
    position: relative;
    height: 480px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Prevent flat clipping of skew dividers on wide screens */
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Clean, no parallax bugs on wide screen */
}

#banner-1 {
    background-image: url('images/parallax_banner_1.png');
    background-position: center 30%; /* Focus on the gorgeous sunset villa sky and pool deck */
}

#banner-2 {
    background-image: url('images/parallax_banner_2.png');
    background-position: center 40%; /* Focus on the pergola louvers and warm sunset sky */
}

.slanted-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 20, 31, 0.75) 0%, rgba(12, 20, 31, 0.45) 100%); /* Lightened slightly to make stunning details pop */
    z-index: 2;
}

.slanted-banner-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 24px;
    color: var(--bg-white);
}

.banner-tag {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--bg-white);
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.banner-title {
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.25;
    margin-bottom: 16px;
    font-weight: 700;
}

.banner-desc {
    font-size: clamp(15px, 2vw, 18px);
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
}

/* Skew Dividers - Enhanced for Wide Screens to Avoid Gaps */
.skew-divider {
    position: absolute;
    left: -5%;
    width: 110%;
    height: 140px; /* Increased to perfectly cover drops on wide screens */
    z-index: 4;
}

.top-skew {
    top: -70px; /* Shifted accordingly */
    transform: skewY(1.5deg); /* Slightly gentler slope for flawless wide-screen look */
}

.bottom-skew {
    bottom: -70px; /* Shifted accordingly */
    transform: skewY(1.5deg);
}

.skew-white {
    background-color: var(--bg-white);
}

.skew-slate {
    background-color: var(--bg-slate);
}

/* Portfolio / Mosaic Gallery Section */
.portfolio-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.mosaic-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 24px;
    margin-top: 50px;
}

.mosaic-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.mosaic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.span-col-2 {
    grid-column: span 2;
}

.span-row-2 {
    grid-row: span 2;
}

.mosaic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(12, 20, 31, 0.9) 0%, rgba(12, 20, 31, 0.4) 60%, transparent 100%);
    color: var(--bg-white);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0.95;
    transition: all var(--transition-smooth);
    transform: translateY(0);
}

.mosaic-tag {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--bg-white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    width: fit-content;
}

.mosaic-item-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 6px;
}

.mosaic-item-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

/* Hover effects */
.mosaic-item:hover .mosaic-img {
    transform: scale(1.05);
}

.mosaic-item:hover .mosaic-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(12, 20, 31, 0.95) 0%, rgba(12, 20, 31, 0.5) 70%, transparent 100%);
}

.mosaic-item:hover .mosaic-item-desc {
    opacity: 1;
    max-height: 50px;
    margin-top: 6px;
}

/* 12. RESPONSIVENESS MEDIA QUERIES */

/* Large Desktop & Tablet Pro */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 16px;
    }
    .nav-menu {
        gap: 10px; /* Super compact gap to fit all items flawlessly on medium displays */
    }
    .nav-item {
        font-size: 13px; /* Slightly smaller text for layout preservation */
    }
    .fline-logo-img {
        height: 40px; /* Adjusted size for tablet */
    }
    .nav-cta {
        padding: 8px 12px;
        font-size: 12.5px;
    }
    .estimator-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .estimator-preview-wrapper {
        position: static;
    }
}

/* Tablet portrait */
@media (max-width: 992px) {
    /* Navbar Hamburger */
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 85px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        height: calc(100vh - 85px);
        gap: 0;
        transition: left var(--transition-smooth);
        box-shadow: 0 10px 24px rgba(12,20,31,0.05);
        border-top: 1px solid var(--border-light);
        overflow-y: auto;
        padding: 30px 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        padding: 16px 0;
        font-size: 18px;
        border-bottom: 1px solid var(--bg-slate);
    }

    .nav-item::after {
        display: none;
    }

    /* Mobile Dropdown Menu Accordion */
    .nav-dropdown-wrapper {
        width: 100%;
        flex-direction: column;
        align-items: center;
        border-bottom: 1px solid var(--bg-slate);
    }

    .nav-dropdown-wrapper .nav-dropdown-trigger {
        width: 100%;
        justify-content: center;
        padding: 16px 0;
        border-bottom: none;
    }

    .nav-dropdown-wrapper .dropdown-menu {
        display: none !important;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        box-shadow: none !important;
        background: #F5F6FE !important;
        border: 1px solid var(--border-light) !important;
        width: 90% !important;
        margin: 4px auto 16px auto !important;
        padding: 8px !important;
        border-radius: 12px !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    .nav-dropdown-wrapper:hover .dropdown-menu,
    .nav-dropdown-wrapper.open .dropdown-menu {
        display: flex !important;
    }

    .nav-dropdown-wrapper .dropdown-item {
        justify-content: flex-start !important;
        padding: 12px 16px !important;
        font-size: 15px !important;
        border-bottom: none !important;
        width: 100% !important;
        background: #ffffff !important;
        border-radius: 8px !important;
    }

    .nav-cta {
        margin-top: 24px;
        width: 80%;
    }

    /* Blocks */
    .intro-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .intro-image-wrapper {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-parallax-bg, .testimonials-parallax-bg {
        height: 100%;
        top: 0;
        left: 0;
        width: 100%;
    }
    
    /* Responsive Gallery */
    .mosaic-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
    }
    
    .slanted-banner {
        height: 400px;
    }
}

/* Mobile Screens */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
        height: 70px;
    }
    
    .fline-logo-img {
        height: 35px; /* Adjusted size for mobile */
    }
    
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    scroll-padding-top: 70px;
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .estimator-form-wrapper {
        padding: 24px 16px;
    }
    
    .quote-preview-card {
        border-radius: 12px;
    }
    .preview-header, .preview-body, .preview-footer {
        padding: 16px 20px;
    }
    
    .testimonial-slider {
        height: 380px;
    }
    
    .carousel-nav {
        display: none;
    }
    
    /* Responsive Mobile Gallery */
    .mosaic-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 16px;
    }
    
    .mosaic-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 260px;
    }
    
    .slanted-banner {
        height: 340px;
    }
    
    .top-skew {
        top: -30px;
        height: 60px;
        transform: skewY(1.5deg);
    }
    
    .bottom-skew {
        bottom: -30px;
        height: 60px;
        transform: skewY(1.5deg);
    }
}

/* ==========================================================================
   MASONRY GALLERY & LIGHTBOX
   ========================================================================== */
.masonry-category-title {
    margin: 60px 0 30px 0;
    text-align: center;
}

.masonry-category-title h4 {
    font-size: 24px;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-red);
}

.masonry-gallery {
    column-count: 3;
    column-gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 20, 31, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--primary-red);
}

/* Responsive Masonry */
@media (max-width: 991px) {
    .masonry-gallery { column-count: 2; }
}

@media (max-width: 575px) {
    .masonry-gallery { column-count: 1; }
}

/* ==========================================================================
   REDŐNY JAVÍTÁS SUBPAGE STYLES
   ========================================================================== */

/* Subpage Hero (Light Luxury Theme) */
.subpage-hero {
    position: relative;
    padding: 160px 0 90px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F6FE 100%);
    color: var(--text-navy);
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at 80% 20%, rgba(180, 24, 25, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.subpage-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.subpage-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-red-alpha);
    border: 1px solid rgba(180, 24, 25, 0.2);
    color: var(--primary-red);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subpage-hero-title {
    font-size: clamp(32px, 4.5vw, 50px);
    color: var(--text-navy);
    line-height: 1.2;
    margin-bottom: 20px;
}

.subpage-hero-title span {
    color: var(--primary-red);
}

.subpage-hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.subpage-hero-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-light);
}

.subpage-hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.subpage-hero-image-wrapper:hover img {
    transform: scale(1.03);
}

.hero-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.subpage-hero .hero-actions {
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.pill-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-navy);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(12, 20, 31, 0.04);
}

.pill-item i {
    color: var(--primary-red);
}

/* Feature Grid & Assessment Section */
.assessment-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.assessment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.assessment-content h3 {
    font-size: 30px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.assessment-content p {
    font-size: 16.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.assessment-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.assessment-card {
    background: var(--bg-slate);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-red);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.assessment-card h4 {
    font-size: 17px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.assessment-card h4 i {
    color: var(--primary-red);
}

.assessment-card p {
    font-size: 14.5px;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Decision Matrix Section (Javítható vs Cserélendő) */
.decision-matrix-section {
    padding: 100px 0;
    background-color: var(--bg-slate);
}

.matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.matrix-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.matrix-card .btn {
    margin-top: 40px !important;
}

.matrix-card.repair {
    border-top: 5px solid #10B981;
}

.matrix-card.replace {
    border-top: 5px solid #EF4444;
}

.matrix-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.matrix-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.matrix-card.repair .matrix-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.matrix-card.replace .matrix-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.matrix-card h3 {
    font-size: 24px;
}

.matrix-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.matrix-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15.5px;
    line-height: 1.6;
}

.matrix-item i {
    margin-top: 4px;
    font-size: 16px;
}

.matrix-card.repair .matrix-item i {
    color: #10B981;
}

.matrix-card.replace .matrix-item i {
    color: #EF4444;
}

/* Process Timeline (Felmérés & Javítás lépései) */
.process-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
    position: relative;
}

.process-card {
    background: var(--bg-slate);
    border-radius: 14px;
    padding: 30px 24px;
    position: relative;
    transition: all var(--transition-smooth);
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    background: var(--bg-white);
}

.process-number {
    position: absolute;
    top: -18px;
    left: 24px;
    width: 36px;
    height: 36px;
    background: var(--primary-red);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(180, 24, 25, 0.3);
}

.process-card h4 {
    font-size: 19px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.process-card p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Repairs Showcase Grid */
.repairs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.repair-service-card {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 32px 26px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-fast);
}

.repair-service-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.repair-service-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-red-alpha);
    color: var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.repair-service-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.repair-service-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* FAQ Accordion Section */
.faq-section {
    padding: 100px 0;
    background: var(--bg-slate);
}

.faq-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.faq-question, .faq-trigger {
    width: 100%;
    padding: 22px 28px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Ubuntu', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-navy);
    cursor: pointer;
    text-align: left;
    transition: color var(--transition-fast);
}

.faq-question:hover, .faq-trigger:hover {
    color: var(--primary-red);
}

.faq-question i, .faq-trigger i {
    font-size: 14px;
    color: var(--text-light);
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-question i, .faq-item.active .faq-trigger i {
    transform: rotate(180deg);
    color: var(--primary-red);
}

.faq-answer, .faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 28px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

.faq-item.active .faq-answer, .faq-item.active .faq-panel {
    padding: 0 28px 24px 28px;
    max-height: 500px;
}

/* Responsive Rules for Subpage */
@media (max-width: 991px) {
    .subpage-hero-grid, .assessment-grid, .matrix-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .repairs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .process-grid, .repairs-grid, .assessment-points {
        grid-template-columns: 1fr;
    }
    
    .matrix-card {
        padding: 24px;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 18px 20px;
    }
}

/* Responsive Top Bar Rules */
@media (max-width: 991px) {
    .top-bar-container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        height: 34px;
        font-size: 12px;
    }
    .navbar {
        top: 34px !important;
    }
    .top-bar-right {
        gap: 10px;
    }
    .top-bar-email,
    .top-bar-divider {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .top-bar {
        height: 32px;
        font-size: 11.5px;
    }
    .navbar {
        top: 32px !important;
    }
    .top-bar-container {
        padding: 0 12px;
    }
    .hide-xs {
        display: none;
    }
}

/* FORM CALL-TO-ACTION (CTA) BANNER */
.form-cta-box {
    margin-top: 35px;
    background: linear-gradient(135deg, #0C141F 0%, #1E293B 100%);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 12px 30px -10px rgba(12, 20, 31, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.form-cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.form-cta-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-red-alpha);
    border: 1px solid rgba(180, 24, 25, 0.3);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.form-cta-text h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 4px;
    font-weight: 700;
}

.form-cta-text p {
    color: #CBD5E1;
    font-size: 14.5px;
    margin: 0;
    line-height: 1.5;
}

.form-cta-btn {
    white-space: nowrap;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(180, 24, 25, 0.4);
    flex-shrink: 0;
}

.form-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(180, 24, 25, 0.6);
}

@media (max-width: 991px) {
    .form-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    
    .form-cta-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-cta-btn {
        width: 100%;
    }
}

/* 3-Column Reference Gallery (3-3 Layout) */
.masonry-gallery-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.masonry-gallery-3col .masonry-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    height: 280px;
    cursor: pointer;
}

.masonry-gallery-3col .masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.masonry-gallery-3col .masonry-item:hover img {
    transform: scale(1.06);
}

@media (max-width: 991px) {
    .masonry-gallery-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .masonry-gallery-3col {
        grid-template-columns: 1fr;
    }
}

