/*
Theme Name: Style by Milena
Description: Custom WordPress theme for Milena Stoilova
Author: Antigravity
Version: 1.0
*/
:root {
    /* High-Contrast Parisian Golden Hour Palette */
    --bg-ivory: #F7F3EE;     /* Primary Background */
    --bg-linen: #EEE6DE;     /* Secondary Background */
    --text-espresso: #221B17;/* Enhanced High-Contrast Primary Text */
    --text-taupe: #52443C;   /* Enhanced High-Contrast Secondary Text (AAA Compliant) */
    --accent-rose: #A36B54;  /* Rich Accent Colour */
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* Reset and Globals */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-ivory);
    color: var(--text-espresso);
    font-family: var(--font-body);
    font-size: 20px; /* High readability */
    font-weight: 400; /* Regular weight for enhanced legibility */
    line-height: 1.8;
    letter-spacing: 0.2px;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: 2px; }

.container {
    max-width: 1100px; /* Slightly narrower for a more intimate editorial feel */
    margin: 0 auto;
    padding: 0 3rem;
}

/* Typography */
h1, h2, h3, h4 { 
    font-family: var(--font-heading); 
    font-weight: 400; 
    color: var(--text-espresso); 
}

.subtitle { 
    font-family: var(--font-body); 
    font-size: 1rem; 
    font-weight: 600;
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: var(--text-espresso); 
    display: block; 
    margin-bottom: 1.5rem; 
}



.text-center { text-align: center; }

.separator-delicate { 
    width: 30px; 
    height: 1px; 
    background: var(--accent-rose); 
    margin: 2rem 0; 
}
.separator-delicate.center { margin: 2rem auto; }
.separator-delicate.light { background: var(--bg-ivory); opacity: 0.6; }

/* Buttons */
.btn-solid { 
    display: inline-block; 
    padding: 1rem 2.5rem; 
    background: var(--accent-rose); 
    color: var(--bg-ivory); 
    font-family: var(--font-body);
    font-size: 0.8rem; 
    font-weight: 400; 
    letter-spacing: 1.5px;
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    margin-top: 2rem; 
    transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease; 
}
.btn-solid:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 137, 115, 0.25);
    background: #A67A66;
}
.btn-solid:focus-visible {
    outline: 2px solid var(--accent-rose);
    outline-offset: 3px;
}

.btn-outline { 
    border: 1px solid var(--accent-rose); 
    padding: 0.8rem 2rem; 
    font-family: var(--font-body);
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    color: var(--accent-rose);
    border-radius: 6px; 
    transition: all 0.4s ease; 
    font-weight: 400;
}
.btn-outline:hover { 
    background: var(--accent-rose); 
    color: var(--bg-ivory); 
}

/* Sections */
section { padding: 10rem 0; } /* Generous whitespace */

/* Navbar */
.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: rgba(247, 243, 238, 0.98); /* --bg-ivory slightly transparent */
    z-index: 100; 
    transition: padding 0.5s ease, background 0.5s ease; 
}
.navbar-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 2rem 3rem; 
    max-width: 1400px; 
    margin: 0 auto; 
    transition: padding 0.5s ease;
}
.navbar.scrolled {
    background: rgba(247, 243, 238, 1);
    box-shadow: 0 4px 20px rgba(58, 49, 44, 0.03); /* Extremely soft shadow using espresso */
}
.navbar.scrolled .navbar-inner { padding: 1.2rem 3rem; }

.logo { 
    font-family: var(--font-heading); 
    font-size: 1.85rem; 
    font-style: italic;
    font-weight: 500; 
    letter-spacing: 0px; 
    color: var(--text-espresso);
    text-transform: none;
}
.nav-links { display: flex; gap: 3.5rem; }
.nav-links a { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    color: var(--text-taupe);
    position: relative; 
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--text-espresso); }
.nav-links a::after { 
    content: ''; 
    position: absolute; 
    bottom: -6px; 
    left: 0; 
    width: 0; 
    height: 1px; 
    background: var(--accent-rose); 
    transition: width 0.4s ease; 
}
.nav-links a:hover::after { width: 100%; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; padding: 4px; }
.mobile-menu-btn span { width: 24px; height: 1.5px; background: var(--text-espresso); display: block; transition: all 0.4s ease; transform-origin: center; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero-editorial { 
    position: relative; 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    padding: 0; 
    background-color: var(--bg-linen); /* Fallback */
}
.hero-bg-image { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center 30%; 
}
.hero-overlay { 
    position: absolute; 
    inset: 0; 
    /* Very soft gradient so text is legible but image remains rich */
    background: linear-gradient(to right, rgba(247, 243, 238, 0.85) 0%, rgba(247, 243, 238, 0.4) 60%, transparent 100%); 
}
.hero-content { 
    position: relative; 
    width: 100%; 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 3rem; 
}
.hero-text-box { 
    max-width: 550px; 
    padding-bottom: 6rem; 
}
.hero-text-box h1 { 
    font-size: 4.8rem; 
    line-height: 1.1; 
    margin-bottom: 2rem; 
    color: var(--text-espresso);
}
.hero-text-box em { 
    font-style: italic; 
    color: var(--accent-rose); 
}
.hero-text-box p { 
    font-size: 1.1rem; 
    color: var(--text-taupe); 
    margin-bottom: 2.5rem; 
    line-height: 1.8; 
}

/* About (Offset Image) */
.about-editorial { background: var(--bg-ivory); }
.editorial-grid { 
    display: grid; 
    grid-template-columns: 5fr 6fr; 
    gap: 8rem; 
    align-items: center; 
}
.ed-image-col { position: relative; }
.ed-main-img { 
    width: 100%; 
    height: auto; 
    z-index: 2; 
    position: relative; 
    filter: sepia(10%) contrast(95%); /* Very subtle warming filter */
}
/* About Section Two-Image Stack */
.about-image-stack {
    display: flex;
    flex-direction: column;
    gap: 4rem; /* Generous padding between stacked portraits */
    width: 100%;
}
.stack-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: sepia(5%) contrast(98%);
}

.ed-text-col h2 { 
    font-size: 2.5rem; 
    line-height: 1.3; 
}
.intro-p { 
    font-size: 1.25rem; 
    font-family: var(--font-heading); 
    font-style: italic; 
    color: var(--text-taupe); 
    margin-bottom: 2rem; 
}
.ed-text-col p { 
    font-size: 1.1rem; 
    color: var(--text-taupe); 
    margin-bottom: 1.5rem; 
}



/* Services */
.services-editorial { background: var(--bg-linen); }
.services-editorial .section-title h2 { font-size: 2.5rem; }
.services-columns { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 4rem; 
    margin-top: 6rem; 
}
.service-col { 
    text-align: center; 
    display: flex;
    flex-direction: column;
}
.service-img-wrapper { 
    width: 100%; 
    aspect-ratio: 4 / 3; /* Less extreme horizontal crop to preserve faces */
    height: auto;
    margin-bottom: 2.5rem; 
    overflow: hidden; 
    position: relative; 
}
.service-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: top center; /* Prioritizes faces */
    transition: transform 1.2s ease; /* Very slow, gentle zoom */
}
.service-col:hover .service-img { transform: scale(1.03); }
.service-col h3 { 
    font-size: 1.6rem; 
    margin-bottom: 0.5rem; 
    min-height: 4.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.service-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent-rose);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}
.service-intro {
    font-size: 1.1rem; 
    color: var(--text-taupe); 
    padding: 0 1rem; 
    line-height: 1.8;
}
.service-details {
    text-align: left;
    margin-top: 2rem;
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
    opacity: 0;
}
.service-details.open {
    max-height: 800px;
    opacity: 1;
}
.service-details h4 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-espresso);
    margin: 2rem 0 0.8rem;
    font-weight: 600;
}
.service-details ul {
    list-style: none;
    padding-left: 0;
}
.service-details li {
    font-size: 1rem;
    color: var(--text-taupe);
    line-height: 1.7;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
}
.service-details li::before {
    content: "✦";
    color: var(--accent-rose);
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}
.service-details ul.nested-list li::before {
    content: "✦";
}
.service-details li strong {
    color: var(--text-espresso);
    font-weight: 500;
}
.service-toggle {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-rose);
    cursor: pointer;
    margin-top: 1.5rem;
    padding: 0.5rem 0;
    border: none;
    background: none;
    transition: color 0.3s ease;
}
.service-toggle:hover { color: var(--text-espresso); }



/* Footer */
.footer-editorial { background: var(--bg-linen); padding: 8rem 0 3rem; }
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 5rem; 
    margin-bottom: 6rem; 
}
.footer-brand .logo { 
    display: inline-block; 
    margin-bottom: 1.5rem; 
    font-size: 2rem; 
}
.footer-brand p { 
    color: var(--text-taupe); 
    max-width: 320px; 
    font-size: 0.9rem;
}
.footer-links h4, .footer-contact h4 { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 2rem; 
    color: var(--text-espresso);
}
.footer-links ul li { margin-bottom: 1.2rem; }
.footer-links a { 
    color: var(--text-taupe); 
    font-size: 0.85rem; 
    transition: color 0.4s; 
}
.footer-links a:hover { color: var(--accent-rose); }
.footer-contact p { 
    color: var(--text-taupe); 
    font-size: 0.85rem; 
    margin-bottom: 0.8rem;
}
.socials-ed { display: flex; gap: 2rem; margin-top: 2.5rem; }
.socials-ed a { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    color: var(--text-espresso); 
    transition: color 0.4s; 
}
.socials-ed a:hover { color: var(--accent-rose); }
.footer-bottom { 
    text-align: center; 
    border-top: 1px solid rgba(138, 123, 113, 0.15); /* Taupe opacity */
    padding-top: 3rem; 
    font-size: 0.75rem; 
    color: var(--text-taupe); 
}



.clarity-call-section {
    background: var(--bg-ivory);
    padding: 10rem 0;
}
.clarity-box {
    background: var(--bg-linen);
    padding: 6rem 4rem;
    text-align: center;
    border-radius: 4px;
    max-width: 900px;
    margin: 0 auto;
}
.clarity-box h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}
.clarity-box p {
    font-size: 1.1rem;
    color: var(--text-taupe);
    max-width: 600px;
    margin: 0 auto;
}

/* Layout Utilities */
.approach-grid {
    grid-template-columns: 6fr 5fr;
    align-items: stretch;
    gap: 6rem;
}
.about-row {
    grid-template-columns: 5fr 5fr;
    gap: 8rem;
    align-items: stretch;
    margin-bottom: 6rem;
}
.about-conclusion {
    max-width: 800px;
    margin: 0 auto;
}
.clarity-wrapper {
    background: var(--bg-linen);
    border-radius: 8px;
    padding: 6rem;
    box-shadow: 0 4px 30px rgba(58, 49, 44, 0.02);
}
.clarity-grid {
    grid-template-columns: 6fr 5fr;
    gap: 6rem;
    align-items: stretch;
}
.height-match-img {
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 35px rgba(58, 49, 44, 0.04);
}
.diploma-img {
    max-width: 380px;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 10px 35px rgba(58, 49, 44, 0.04);
}
.diploma-caption {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1rem;
    color: var(--text-taupe);
    margin-top: 1.5rem;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--accent-rose);
    z-index: 200;
    width: 0%;
    transition: width 0.1s linear;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-rose);
    color: var(--bg-ivory);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(184, 137, 115, 0.3);
    z-index: 99;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-3px);
}

/* Animations */
.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-text-box h1 { font-size: 4rem; }
    .editorial-grid { gap: 4rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    section { padding: 6rem 0; }
    .container { padding: 0 2rem; }
    .hero-text-box h1 { font-size: 3.2rem; }
    .hero-text-box { padding-top: 2rem; }
    .hero-overlay { background: linear-gradient(to bottom, rgba(247, 243, 238, 0.95) 0%, rgba(247, 243, 238, 0.85) 100%); }
    .hero-text-box { text-align: center; margin: 0 auto; }
    .editorial-grid, .services-columns { grid-template-columns: 1fr; }
    .about-image-stack {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    .ed-image-col { padding-right: 0; margin-bottom: 2rem; }
    .nav-links, .navbar .btn-outline { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-links.mobile-open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-ivory);
        padding: 2.5rem 3rem;
        gap: 2rem;
        border-bottom: 1px solid rgba(138, 123, 113, 0.1);
        box-shadow: 0 10px 30px rgba(58, 49, 44, 0.05);
        animation: slideDown 0.3s ease;
    }
    .nav-links.mobile-open a { font-size: 0.9rem; }
    .navbar .btn-outline.mobile-cta {
        display: inline-block !important;
        margin-top: 0.5rem;
        text-align: center;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .footer-grid { grid-template-columns: 1fr; gap: 4rem; }
    .footer-brand { grid-column: span 1; }
}

/* Language Switcher Styling */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 0.75rem;
    background: rgba(238, 230, 222, 0.6);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid rgba(138, 123, 113, 0.25);
}
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-taupe);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.lang-btn:hover {
    color: var(--text-espresso);
    background: rgba(255, 255, 255, 0.6);
}
.lang-btn.active {
    color: var(--text-espresso);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(58, 49, 44, 0.1);
    font-weight: 600;
}
.flag-svg {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}


