:root {
    --teal-dark: #143330;  /* Mélyzöld fénypont */
    --teal-deep: #113535;
    --teal-medium: #1b4b4b;
    --teal-muted: #467c82;
    --lavender: #8f8bc4;
    --terracotta: #964405; /* Gazdag terrakotta */
    --ochre: #e5a93b;      /* Meleg antik arany */
    --gold: #c98e2b;
    --light-bg: #f8f9f9;
    --light-surface: #ffffff;
    --text-dark: #1c2e2e;
    --text-light: #dfdfdf; /* Kifinomult törtfehér */
    --text-muted: #627c7c;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Settings */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

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

.app-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

@media (min-width: 1024px) {
    .app-layout {
        display: grid;
        grid-template-columns: 63% 37%;
        height: 100vh;
        overflow: hidden;
    }
}

/* Independent Column Scrolling for Desktop Lookbook Style */
/* Fő panel flexboxosítása a sorrend átrendezéséhez */
.pane-main {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Mobil nézet sorrendje (a contact-social-bar felugrik a hero alá) */
.navbar { order: 1; }
.hero { order: 2; }
.contact-social-bar { order: 3; } /* Mobilon ez lesz a 3. elem! */
#services { order: 4; }
#service-details { order: 5; }
.about-section { order: 6; }

/* Asztali nézet sorrendjének és elemeinek szabályozása */
@media (min-width: 1024px) {
    .contact-social-bar {
        order: 10; /* Asztalin visszakerül a legalsó pozícióba */
    }
    
    .mobile-phone-link {
        display: none !important; /* Asztalon rejtve marad a telefon ikon */
    }
}

.pane-sidebar {
    width: 100%;
    background-color: var(--light-surface);
    border-top: 1px solid rgba(0,0,0,0.05);
    overflow-x: hidden;
}

@media (min-width: 1024px) {
    .pane-main {
        height: 100vh;
        overflow-y: auto;
        border-right: 1px solid rgba(10, 35, 35, 0.1);
        -ms-overflow-style: none;  /* IE/Edge görgetősáv elrejtés */
        scrollbar-width: none;  /* Firefox görgetősáv elrejtés */
    }
    /* Chrome, Safari, Opera görgetősáv elrejtés */
    .pane-main::-webkit-scrollbar {
        display: none;
    }
    .pane-sidebar {
        height: 100vh;
        overflow-y: hidden; /* Fix oldalsáv laptopon & tableten */
        border-top: none;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        z-index: 10;
        box-shadow: -12px 0 35px rgba(10, 35, 35, 0.05); /* Lágy mélységérzet balra */
    }
    .pane-sidebar .section-padding {
        padding-top: 2.5vh;
        padding-bottom: 1vh;
        padding-left: 4%;
        padding-right: 4%;
    }
}

h1, h2, h3, h4, .serif-font {
    font-family: var(--font-serif);
    font-weight: 600;
}

a, button {
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

/* NAVIGATION BAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 6%;
    background-color: var(--teal-dark);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: rgba(223, 223, 223, 0.75);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ochre);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--ochre);
    transition: var(--transition);
}

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

@media (min-width: 1024px) {
    .mobile-only-link {
        display: none !important;
    }
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
}

/* HERO SECTION */
.hero {
    display: flex;
    min-height: 40vh;
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-deep) 100%);
    position: relative;
    overflow: hidden;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero {
        min-height: 45vh;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('img/header.jpg') no-repeat center center/cover;
    opacity: 0.45;
    mix-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 2.5rem 8%;
    text-align: left;
}

.hero h2 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
    max-width: 800px;
    color: var(--text-muted);
}

.hero p {
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    max-width: 550px;
    color: rgba(223, 223, 223, 0.85);
    margin-bottom: 2.5rem;
}

.btn-gold {
    background-color: var(--ochre);
    color: var(--teal-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.btn-gold:hover {
    background-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 169, 59, 0.25);
}

/* GENERAL SECTIONS STYLING */
.section-padding {
    padding: 4.5rem 6%;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    color: var(--teal-dark);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: var(--ochre);
}

/* SERVICES GRID */
#services {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#services .section-header {
    padding-left: 6%;
    padding-right: 6%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
}

@media (max-width: 1023px) {
    #services .section-header {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 0 solid var(--ochre);
    transition: var(--transition);
    pointer-events: none;
    z-index: 5;
}

/* Active highlight for selected card */
.service-card.active-card::before {
    border-bottom-width: 6px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    z-index: 2;
}

.card-teal { background-color: var(--teal-deep); }
.card-lavender { background-color: var(--lavender); }
.card-terracotta { background-color: var(--terracotta); }

.service-img-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 0;
    border: 3px solid rgba(223, 223, 223, 0.25);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.03em;
}

.service-card p {
    font-size: 0.88rem;
    opacity: 0.85;
    line-height: 1.5;
    font-weight: 300;
}

/* DYNAMIC SERVICE DETAILS CONTAINER */
.details-display-section {
    background-color: rgba(0,0,0,0.01);
    border-top: 1px solid rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.03);

    /* UI PROGRESS MARKER: Dinamikus elrejtés alapértelmezetten */
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.details-display-section.show {
    display: block;
}

.details-display-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.details-card-wrapper {
    background-color: var(--light-surface);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(10, 35, 35, 0.03);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .details-card-wrapper {
        grid-template-columns: 1.2fr 1fr;
    }
}

.details-text-pane {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.details-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--terracotta);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.details-title {
    font-size: 1.8rem;
    color: var(--teal-dark);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.details-paragraph {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.8rem;
    font-weight: 400;
}

.details-badges {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.details-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    background-color: rgba(20, 51, 48, 0.05);
    color: var(--teal-dark);
    padding: 0.5rem 1rem;
    border-radius: 30px;
}

.details-visual-pane {
    position: relative;
    min-height: 250px;
    overflow: hidden;
}

.details-visual-pane img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.details-card-wrapper:hover .details-visual-pane img {
    transform: scale(1.05);
}

/* PORTFOLIO ITEM BOUNDS */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.portfolio-item:hover {
    cursor: pointer;
}

/* SIDEBAR COLLAGE */
.sidebar-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(10, 35, 35, 0.08);
    padding-bottom: 12px;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .sidebar-section-header {
        margin-bottom: 1.5vh;
    }
}

.sidebar-section-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal-dark);
}

.sidebar-collage-wrapper {
    position: relative;
    margin-bottom: 3.5rem;
    padding: 1.5rem 0;
}

@media (min-width: 1024px) {
    .sidebar-collage-wrapper {
        margin-top: 4vh;
        margin-bottom: 1.5vh;
        padding: 0.5vh 0;
    }
}

/* Horizontal dark terracotta belt running behind the center tiles */
.sidebar-collage-wrapper::before {
    content: '';
    position: absolute;
    left: -50px;
    right: -50px;
    top: 37%;
    transform: translateY(-50%);
    height: 160px;
    background-color: var(--terracotta);
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .sidebar-collage-wrapper::before {
        top: 38%;
        height: 22vh;
        max-height: 200px;
    }
}

.sidebar-collage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    z-index: 1;
}

@media (min-width: 1024px) {
    .sidebar-collage {
        grid-template-rows: repeat(4, 1fr);
        height: 64vh;
        max-height: 650px;
        gap: 0.5rem;
    }
}

.portfolio-media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--light-bg);
}

.portfolio-media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.sidebar-collage .portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(10, 35, 35, 0.12);
}

.portfolio-item:hover img {
    transform: scale(1.06);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 35, 35, 0.9) 10%, rgba(10, 35, 35, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.8rem;
    opacity: 0;
    transition: var(--transition);
}

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

.portfolio-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ochre);
    margin-bottom: 0.1rem;
    font-weight: 700;
}

.portfolio-title {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}

/* THE TARA AESTHETIC CARD - DARK GREEN (#143330) STYLE */
.aesthetic-card {
    background-color: var(--teal-dark);
    color: var(--text-light);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--ochre);
    box-shadow: 0 8px 30px rgba(10, 35, 35, 0.08);
}

.aesthetic-card h3 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aesthetic-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 400;
}

/* BEMUTATKOZÁS (RÓLAM) KÉTOSZLOPOS ELRENDEZÉS */
.about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 150px; /* Kompakt, ízléses méret a portrénak */
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

@media (min-width: 768px) {
    .about-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }
}

/* BRIDGING SIDEBAR CONTACT FOOTER */
.footer-sidebar {
    background-color: var(--teal-dark);
    color: var(--text-light);
    padding: 3rem 6%;
    border-top: 4px solid var(--ochre);
}

@media (min-width: 1024px) {
    .footer-sidebar {
        padding: 2.5vh 6%;
    }
}

.footer-top-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .footer-top-row {
        margin-bottom: 1vh;
    }
}

@media (max-width: 640px) {
    .footer-top-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

.footer-col-left {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.footer-col-left a, .footer-col-right a {
    color: rgba(223, 223, 223, 0.75);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-col-left a:hover, .footer-col-right a:hover {
    color: var(--ochre);
}

.footer-col-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-center-logo {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (min-width: 1024px) {
    .footer-center-logo {
        height: 5.5vh;
        max-height: 54px;
    }
}

.footer-col-right {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    position: relative;
    align-items: flex-end; 
    text-align: right;
}

@media (min-width: 641px) {
    .footer-col-right {
        padding-right: 15px;
    }
}

@media (max-width: 640px) {
    .footer-col-left {
        align-items: center;
    }
    .footer-col-right {
        align-items: center;
        padding-right: 0;
    }
}

.footer-bottom-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .footer-bottom-line {
        margin-top: 1.5vh;
    }
}

.footer-bottom-line .line-segment {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(223, 223, 223, 0.15);
}

.footer-bottom-line .brand-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: rgba(223, 223, 223, 0.45);
    white-space: nowrap;
    text-transform: uppercase;
}

.copyright-tag {
    color: rgba(223, 223, 223, 0.25);
    font-size: 0.7rem;
    text-align: center;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .copyright-tag {
        margin-top: 1vh;
    }
}

/* CONTACT & SOCIAL BAR */
.contact-social-bar {
    background-color: var(--teal-deep);
    padding: 0.8rem 6%;
    border-top: 1px solid rgba(223, 223, 223, 0.05);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.contact-social-bar h4 {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.1rem;
    color: rgba(223, 223, 223, 0.9);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.social-icons-container {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: rgba(223, 223, 223, 0.75);
    transition: var(--transition);
}

.social-icon-link:hover {
    color: var(--ochre);
    transform: translateY(-2px);
}

.social-icon-link svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    display: block;
}

@media (max-width: 1023px) {
    .contact-social-bar {
        padding: 2.5rem 1.25rem;
    }
}

.icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: inline-block;
}

/* CUSTOM LIGHTBOX SYSTEM */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 35, 0.96);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80vh;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2.5rem;
    cursor: pointer;
}

.lightbox-caption {
    color: var(--text-light);
    text-align: center;
    margin-top: 1.2rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 1023px) {
    .navbar {
        padding: 1.2rem 5%;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--teal-dark);
        padding: 2.5rem 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        gap: 1.5rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        min-height: 55vh;
    }

    .section-padding {
        padding: 4rem 5%;
    }

    .sidebar-collage-wrapper::before {
        left: -20px;
        right: -20px;
    }
}
