/* ---------------------------
   CSS VARIABLES & SETUP
--------------------------- */
:root {
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --text-main: #111111;
    --text-body: #333333;
    --text-muted: #666666;
    --primary: #c02f31;
    --primary-hover: #a12426;
    --font: 'Outfit', sans-serif;
    --nav-height: 80px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    font-weight: 300;
    background-color: var(--bg-color);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 200;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.light-alt-bg { background-color: var(--bg-alt); }

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-main);
    position: relative;
    padding-bottom: 15px;
    font-weight: 200;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.section-title.text-left { text-align: left; }
.section-title.text-left::after { left: 0; transform: translateX(0); }

/* ---------------------------
   BUTTONS
--------------------------- */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 32px;
    border-radius: 30px;
    font-family: var(--font);
    font-weight: 300;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(192, 47, 49, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(192, 47, 49, 0.4);
}
.btn-primary-outline {
    display: inline-block;
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
}
.btn-primary-outline:hover { background: var(--primary); color: #fff !important; }
.w-full { width: 100%; }

/* ---------------------------
   GLASSMORPHISM
--------------------------- */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* ---------------------------
   NAVIGATION
--------------------------- */
.main-header {
    position: fixed; top: 0; width: 100%;
    height: var(--nav-height); z-index: 1000;
    overflow: visible;
    transition: var(--transition);
}
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.nav-container {
    width: 90%; max-width: 1200px;
    margin: 0 auto; height: 100%;
    display: flex; justify-content: space-between; align-items: center;
}

/* ---------------------------
   LOGO
--------------------------- */
.svg-logo-link { 
    display: flex; align-items: center; height: 100%; 
    overflow: visible;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0 15px;
    border-radius: 50px;
}
.logo-wrapper { position: relative; display: inline-block; }
.logo-wrapper img { display: block; mix-blend-mode: multiply; }
.nav-logo-wrapper { height: 120px; }
.nav-logo-wrapper img { height: 100%; width: auto; }
.hero-logo-container { margin-bottom: 2rem; display: flex; justify-content: center; }
.hero-logo-wrapper { width: 320px; margin: 0 auto; }
.hero-logo-wrapper img { width: 100%; height: auto; }

/* ---------------------------
   NAV LINKS
--------------------------- */
.nav-links {
    display: flex; list-style: none;
    align-items: center; gap: 2rem;
}
.nav-links a {
    font-family: var(--font); font-weight: 300;
    letter-spacing: 0.12em; font-size: 0.85rem;
    text-transform: uppercase;
}
.nav-links a:hover { color: var(--primary); }

.mobile-menu-btn {
    display: none;
    flex-direction: column; justify-content: space-between;
    width: 30px; height: 21px;
    background: transparent; border: none; cursor: pointer; z-index: 1001;
}
.mobile-menu-btn span {
    display: block; width: 100%; height: 2px;
    background-color: var(--text-main); border-radius: 3px;
    transition: var(--transition);
}

/* ---------------------------
   HERO
--------------------------- */
.hero {
    position: relative; height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff, #fdfdfd);
}
.hero-content {
    position: relative; z-index: 1;
    text-align: center; padding: 3rem; max-width: 800px;
    animation: fadeIn 1s ease-out;
}
.hero-content .slogan {
    font-size: 1.3rem; font-weight: 200;
    margin-bottom: 2.5rem; color: var(--text-muted);
    letter-spacing: 0.06em; font-style: italic;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------
   INTRO / MOTTO
--------------------------- */
.intro { padding: 80px 0; background: #ffffff; }
.motto {
    font-size: 1.5rem; font-weight: 200;
    text-align: center; max-width: 900px; margin: 0 auto;
    line-height: 1.8; color: var(--text-main);
    font-style: italic; letter-spacing: 0.03em;
    position: relative;
}
.motto::before, .motto::after {
    content: '"'; font-size: 4rem;
    color: rgba(192, 47, 49, 0.15);
    position: absolute; font-family: serif; line-height: 1;
}
.motto::before { top: -20px; left: -30px; }
.motto::after  { bottom: -40px; right: -30px; }

/* ---------------------------
   SERVICE ROWS
--------------------------- */
.service-rows { display: flex; flex-direction: column; gap: 6rem; }

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.service-row-reverse { direction: rtl; }
.service-row-reverse > * { direction: ltr; }

.service-row-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}
.service-row-image img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.6s ease;
}
.service-row:hover .service-row-image img { transform: scale(1.03); }

.service-row-text { padding: 1rem 0; }
.service-row-text h3 {
    font-size: 1.6rem; font-weight: 200;
    letter-spacing: 0.15em; text-transform: uppercase;
    margin-bottom: 1.2rem; color: var(--text-main);
}
.service-row-text p {
    color: var(--text-muted); font-size: 1.05rem;
    line-height: 1.8; font-weight: 300; letter-spacing: 0.02em;
}

/* scroll-anim: CSS transition simítja a görgetés közbeni elmozdulást */
.scroll-anim {
    will-change: transform, opacity;
    transition: transform 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity  0.18s ease-out;
}

/* ---------------------------
   ABOUT
--------------------------- */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
}
.profil-img {
    width: 100%; height: auto; display: block;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    object-fit: cover;
}
.about-text p {
    margin-bottom: 1.5rem; font-size: 1.05rem;
    font-weight: 300; line-height: 1.8; letter-spacing: 0.02em;
}

/* ---------------------------
   CONTACT
--------------------------- */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem;
}
.contact-info .info-item {
    display: flex; align-items: flex-start;
    margin-bottom: 2rem; gap: 1.5rem;
}
.info-item .icon {
    font-size: 1.8rem;
    background: rgba(192, 47, 49, 0.05);
    width: 55px; height: 55px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; flex-shrink: 0;
}
.info-item h3 {
    margin-bottom: 0.2rem; font-size: 0.85rem;
    font-weight: 300; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--text-muted);
}
.info-item a, .info-item p {
    color: var(--text-body); font-size: 1.05rem;
    font-weight: 300; letter-spacing: 0.02em;
}
.info-item a:hover { color: var(--primary); }
.contact-form-container { padding: 2.5rem; background: #ffffff; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block; margin-bottom: 0.5rem;
    color: var(--text-muted); font-weight: 300;
    font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 15px;
    background: #f8f9fa; border: 1px solid #e0e0e0;
    border-radius: 8px; color: var(--text-main);
    font-family: var(--font); font-size: 1rem;
    font-weight: 300; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(192, 47, 49, 0.08);
}
.form-help {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.form-help a {
    color: var(--primary);
    text-decoration: underline;
}

/* ---------------------------
   PRIVACY MODÁL
--------------------------- */
.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.privacy-modal:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}
.privacy-modal[hidden] {
    display: flex !important;
    opacity: 0;
    pointer-events: none;
}
.privacy-modal-inner {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 48px 40px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: translateY(12px);
    transition: transform 0.25s ease;
}
.privacy-modal:not([hidden]) .privacy-modal-inner {
    transform: translateY(0);
}
.privacy-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 4px 8px;
}
.privacy-modal-close:hover {
    color: var(--dark);
}
.privacy-modal-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.2rem;
}
.privacy-modal-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}
.privacy-modal-body p,
.privacy-modal-body li {
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.privacy-modal-body ul {
    padding-left: 1.4rem;
    margin-bottom: 0.4rem;
}
.privacy-modal-body a {
    color: var(--primary);
    text-decoration: underline;
}
.privacy-updated {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #aaa;
}
@media (max-width: 600px) {
    .privacy-modal-inner {
        padding: 40px 20px 28px;
    }
}

/* ---------------------------
   FOOTER
--------------------------- */
footer {
    background-color: #ffffff;
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    font-weight: 300;
}
.footer-links a {
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.footer-links a:hover { color: var(--primary); }

/* ---------------------------
   SUBPAGES
--------------------------- */
.subpage-main {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
}

.subpage-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.2rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.subpage-card p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.subpage-card ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.subpage-card li {
    margin-bottom: 0.4rem;
}

/* ---------------------------
   RESPONSIVE
--------------------------- */
@media (max-width: 992px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .service-row { grid-template-columns: 1fr; direction: ltr; }
    .service-row-reverse { direction: ltr; }
    .service-rows { gap: 3.5rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex; flex-direction: column;
        position: fixed; top: var(--nav-height); left: -100%;
        width: 100%; height: calc(100vh - var(--nav-height));
        background: #ffffff; justify-content: center;
        gap: 2.5rem; transition: 0.4s;
        z-index: 1000;
    }
    .nav-links.active { left: 0; }
    .mobile-menu-btn { display: flex; margin-left: auto; }
    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 1.6rem; }
    .motto { font-size: 1.15rem; padding: 0 1rem; }
    .service-row-text h3 { font-size: 1.3rem; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
    .subpage-main { padding-top: calc(var(--nav-height) + 24px); }
    .subpage-card { padding: 1.4rem; }
}
