:root {
    /* Colors - Premium Industrial */
    --primary: #FFA91C;
    /* Gold/Orange from original */
    --primary-hover: #FFBC4F;
    --dark-bg: #121212;
    /* Deep Charcoal */
    --card-bg: #1E1E1E;
    --text-main: #E0E0E0;
    --text-muted: #A0A0A0;
    --border: #333333;
    --glass: rgba(30, 30, 30, 0.8);

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 20px;
    --section-padding-mobile: 50px 15px;

    /* Typography */
    --font-heading: 'Lora', serif;
    /* Elegant, premium */
    --font-body: 'Inter', sans-serif;
    /* Clean, modern */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #FFFFFF;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    color: var(--primary);
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 169, 28, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #000;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Header */
header {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFF;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 36px;
    width: auto;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Mobile Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #FFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 600px;
    max-height: 800px;
    height: 85vh;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.75)), url('../images/grantech-feltengely-kardantengely-kormanymu.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 750px;
    padding: 0 20px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Services Grid */
.services {
    padding: var(--section-padding);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.service-card h3,
.service-card p {
    padding: 0 25px;
}

.service-card h3 {
    margin-top: 20px;
}

.service-card p {
    color: var(--text-muted);
}

.service-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.05);
}

.card-link {
    display: inline-block;
    color: var(--primary);
    padding: 15px 25px 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

.service-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Features / Why Us */
.features {
    background: #181818;
    padding: var(--section-padding);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #FFF;
}

.feature-item p {
    color: var(--text-muted);
}

/* Contact Form */
.contact-section {
    padding: var(--section-padding);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px;
    background: #121212;
    border: 1px solid var(--border);
    color: #FFF;
    border-radius: 4px;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

.contact-form .btn {
    display: block;
    width: 100%;
    margin-top: 15px;
    text-align: center;
}

/* Footer */
footer {
    background: #000;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #FFF;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

/* ===== SUBPAGE STYLES ===== */

/* Page Hero (smaller, for subpages) */
.page-hero {
    padding: 160px 20px 80px;
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(18, 18, 18, 0.95) 100%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-hero .subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary);
}

/* Content Section */
.content-section {
    padding: var(--section-padding);
}

.content-section.alt-bg {
    background: #181818;
}

/* Image + Text Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.split-layout.reverse {
    direction: rtl;
    grid-template-columns: 2fr 3fr;
}

.split-layout.reverse>* {
    direction: ltr;
}

.split-text h2 {
    margin-bottom: 20px;
}

.split-text p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.8;
}

.split-text ul {
    margin-top: 15px;
}

.split-text ul li {
    color: var(--text-muted);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.split-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.split-image {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.split-image:hover img {
    transform: scale(1.03);
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 169, 28, 0.3);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #FFF;
    font-size: 1.05rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 25px 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Info Cards Row */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.info-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.info-card h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    counter-reset: step;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.process-step::before {
    counter-increment: step;
    content: counter(step);
    display: block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

.process-step h4 {
    color: #FFF;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Promo Cards */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.promo-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.promo-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.promo-card .promo-badge {
    background: var(--primary);
    color: #000;
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0 0 8px 0;
}

.promo-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.promo-card-body h3 {
    margin-bottom: 12px;
}

.promo-card-body p {
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.promo-card-body .btn {
    align-self: flex-start;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: var(--font-heading);
    line-height: 1;
}

.testimonial-card p {
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Google Maps */
.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    height: 400px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, rgba(255, 169, 28, 0.1) 0%, rgba(18, 18, 18, 1) 70%);
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-banner h2 {
    margin-bottom: 15px;
}

.cta-banner p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large screens / 4K */
@media (min-width: 1600px) {
    :root {
        --container-width: 1400px;
    }

    .hero {
        max-height: 750px;
    }

    .hero-content {
        max-width: 850px;
    }

    .stat-item {
        padding: 25px 30px;
    }
}

/* Tablet landscape */
@media (max-width: 1024px) {
    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .split-layout {
        gap: 40px;
    }
}

/* Tablet portrait & mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px 15px;
    }

    /* Mobile menu */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(18, 18, 18, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Hero */
    .hero {
        min-height: 500px;
        height: auto;
        max-height: none;
        padding-top: 120px;
        padding-bottom: 50px;
        align-items: flex-start;
    }

    .hero-content .btn {
        display: block;
        width: 100%;
        margin-left: 0 !important;
        margin-bottom: 15px;
    }

    .hero-stats {
        gap: 15px;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Layouts */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .split-layout.reverse {
        direction: ltr;
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Subpages */
    .page-hero {
        padding: 130px 15px 50px;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .info-cards {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-banner {
        padding: 50px 15px;
    }

    .cta-banner .btn {
        display: block;
        margin: 10px auto;
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .cta-banner .btn-outline {
        margin-left: 0 !important;
    }

    /* Section title */
    .section-title {
        margin-bottom: 35px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero {
        min-height: 450px;
        height: auto;
        max-height: none;
        padding-top: 120px;
        padding-bottom: 40px;
        align-items: flex-start;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .stat-item {
        width: 100%;
        max-width: 250px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    nav {
        height: 65px;
    }

    .page-hero {
        padding: 110px 15px 40px;
    }

    .contact-form {
        padding: 25px;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 15px 18px;
    }
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 18px 25px;
    border-radius: 12px;
    color: #FFF;
    font-size: 0.95rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 450px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: linear-gradient(135deg, #1a472a, #2d6a4f);
    border-left: 4px solid #52b788;
}

.toast-error {
    background: linear-gradient(135deg, #641220, #85182a);
    border-left: 4px solid #e5383b;
}

/* Honeypot - hidden from humans */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

@media (max-width: 480px) {
    .toast-notification {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: none;
    }
}

/* ===== POPUP MODAL STYLES ===== */
.modal-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-popup.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid var(--primary);
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-popup.show .modal-content {
    transform: translateY(0);
}

.close-popup {
    color: var(--text-muted);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: var(--primary);
}

.modal-header h2 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-right: 30px;
    line-height: 1.4;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.modal-body h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #FFF;
}

.custom-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-main);
}

.custom-list li strong {
    color: #FFF;
}

.custom-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -4px;
}

.modal-footer {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .modal-body p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
    }

    .modal-footer {
        flex-direction: column;
        gap: 15px;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0 !important;
        text-align: center;
    }

    .close-popup {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}

/* Screen Reader Only for SEO optimized hidden text */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
