/* Fejes Bútor Kft. - Exact Joomla Color Palette Styling */
:root {
    --primary: #2b121c;
    --primary-hover: #070305;
    --primary-glow: rgba(43, 18, 28, 0.25);
    --secondary: #2b121c;
    --secondary-dark: #0e0609;
    --accent: #2b121c;
    --text-dark: #363636;
    --text-headings: #030303;
    --text-muted: #666666;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border: #e8e8e8;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(43, 18, 28, 0.15);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: var(--text-headings);
}

/* Topbar */
.topbar {
    background: #0e0609;
    color: #ffffff;
    font-size: 13.5px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.topbar-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    text-decoration: none;
    transition: var(--transition);
}

.topbar-info-item svg {
    flex-shrink: 0;
    display: block;
}

.topbar-info-item:hover {
    color: #ffffff;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #3e1928;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.navbar-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand img {
    height: 54px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
    color: #ffcfcf;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: #ffcfcf;
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2b121c, #15090e);
    color: #ffffff;
    border: 1px solid #15090e;
    box-shadow: 0 6px 20px rgba(43, 18, 28, 0.35);
}

.btn-primary:hover {
    background: #070305;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(43, 18, 28, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Hero Section with pageglare.jpg */
.hero {
    position: relative;
    padding: 120px 20px 100px;
    background: linear-gradient(135deg, rgba(43, 18, 28, 0.88), rgba(14, 6, 9, 0.92)),
                url('../images/pageglare.jpg') center/cover fixed no-repeat;
    color: #ffffff;
    overflow: hidden;
}

.hero-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 18px;
    color: #f1f5f9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-card-box {
    background: rgba(43, 18, 28, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-card-box h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 16px;
}

.hero-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #f8fafc;
}

.hero-feature-list li span.check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Sections */
.section {
    padding: 90px 20px;
}

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

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.section-subtitle {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-headings);
}

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

/* Process Steps Grid */
.process-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.process-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(43, 18, 28, 0.3);
}

.process-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #15090e);
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 6px 16px rgba(43, 18, 28, 0.3);
}

.process-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-headings);
}

.process-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Services Grid */
.services-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(43, 18, 28, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(43, 18, 28, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-headings);
}

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

/* About Section */
.about-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-box {
    position: relative;
}

.about-img-box img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(43, 18, 28, 0.4);
    text-align: center;
}

.about-experience-badge .num {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.about-experience-badge .txt {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    color: #f1f5f9;
}

/* Gallery Section - Masonry Mozaik Layout */
.gallery-grid {
    max-width: 1240px;
    margin: 0 auto;
    column-count: 3;
    column-gap: 20px;
}

@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    margin-bottom: 20px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: inline-block;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(43, 18, 28, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
    border-radius: var(--radius);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(43, 18, 28, 0.2);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(14, 6, 9, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(12px);
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
}

/* Contact & Form Section */
.contact-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(43, 18, 28, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
    color: var(--text-headings);
}

.contact-info-text a, .contact-info-text span {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14.5px;
}

.contact-info-text a:hover {
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-headings);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(43, 18, 28, 0.15);
    background: #ffffff;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: #2b121c;
    color: #f1f5f9;
    padding: 60px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 12px;
}

.footer-bottom {
    background: #0e0609;
    padding: 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #94a3b8;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-container, .about-container, .contact-container, .footer-container {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #3e1928;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
}
