:root {
    --sage-green: #9fbc91; 
    --grey: #6b6b6b; 
    --purple: #9e8cc1; 
    --bg-light: #faf9f6; 
    --bg-grey: #f0f0f0; 
    --white: #ffffff;
    --card-bg: #f3f3f3; 
    
    --font-body: 'Cardo', serif;
    --font-button: 'Libre Baskerville', serif;

    --pad-x: max(8vw, calc((100vw - 1440px) / 2));
}

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

html {
    scroll-behavior: smooth; 
}

body {
    font-family: var(--font-body);
    color: var(--grey);
    font-size: 15px; 
    line-height: 1.6; 
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-body);
    color: var(--sage-green);
    font-weight: normal;
}

h1 { 
    font-size: 4.5rem; 
    line-height: 0.9; 
    margin-bottom: 20px; 
    letter-spacing: -3px; 
    backface-visibility: hidden; 
    filter: blur(0px); 
}

h2 { font-size: 2.2rem; line-height: 1.1; margin-bottom: 25px; letter-spacing: -1.5px; }
h3 { font-size: 1.4rem; margin-bottom: 15px; letter-spacing: -0.5px; }

p { margin-bottom: 20px; font-size: 15px; }
p:last-child { margin-bottom: 0; }

/* Subtitle H2 with 21px styling */
h2.subtitle { 
    font-style: italic; 
    font-size: 21px; 
    margin-bottom: 25px; 
    color: var(--grey); 
    letter-spacing: normal;
}

.intro-text { max-width: 800px; margin: 0 auto 20px auto; }

/* PREVENT FLICKER: Hidden until GSAP takes over */
.hero h1, .hero .subtitle, .hero p, .hero .buttons, .hero-lorna-img, .floating-leaf-hero {
    opacity: 0;
    will-change: transform, opacity, filter; 
}

/* Utility Classes */
.bg-white { background-color: var(--white); }
.bg-grey { background-color: var(--bg-grey); }
.text-white, .text-white h2, .text-white p, .text-white li { color: var(--white) !important; }
.text-green { color: var(--sage-green); font-weight: bold; }
.text-center { text-align: center; }
.purple-bg { background-color: var(--purple); }
.dark-green-bg { background-color: var(--sage-green); }

/* --- Header --- */
header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 30px var(--pad-x) 15px var(--pad-x);
    position: absolute;
    width: 100%;
    z-index: 100;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--grey);
    margin-left: 40px;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
nav a:hover {
    color: var(--sage-green);
}
.nav-btn { 
    border: 1px solid var(--sage-green); 
    padding: 8px 25px; 
    border-radius: 30px; 
    color: var(--grey); 
    transition: all 0.3s ease;
}
.nav-btn:hover {
    background-color: var(--sage-green);
    color: var(--white);
}

/* AestheticSource logo in nav */
.nav-as-logo {
    display: flex;
    align-items: center;
    margin-left: 30px;
    padding-left: 30px;
    border-left: 1px solid rgba(107, 107, 107, 0.2);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    text-decoration: none;
}
.nav-as-logo:hover {
    opacity: 1;
    color: var(--grey);
}
.nav-as-logo img {
    height: 24px;
    width: auto;
    display: block;
}

/* Inline body text links */
.as-inline-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}
.as-inline-link:hover {
    opacity: 1;
}

/* --- Buttons --- */
.buttons { margin-top: 30px; position: relative; z-index: 20; }
.btn {
    display: inline-block;
    font-family: var(--font-button);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-primary { background-color: var(--sage-green); color: var(--white); border: 1px solid var(--sage-green); }
.btn-primary:hover { background-color: #8bab7d; border-color: #8bab7d; }

.btn-outline { border: 1px solid var(--sage-green); color: var(--grey); margin-left: 15px; }
.btn-outline:hover { background-color: var(--sage-green); color: var(--white); }

/* --- STANDARD LAYOUT COLUMNS --- */
.split-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px var(--pad-x);
    gap: 6%;
}
.split-section.reverse { flex-direction: row-reverse; }

.split-section .content { 
    flex: 0 0 45%; 
    width: 45%;
    position: relative;
}

.split-section .image-container { 
    flex: 0 0 48%; 
    width: 48%;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.split-section .image-container img { width: 100%; height: auto; object-fit: cover; border-radius: 8px; }

/* --- CUSTOM ABOUT SECTION PROPORTIONS --- */
#about .image-container {
    flex: 0 0 35%;
    width: 35%;
}
#about .content {
    flex: 0 0 58%;
    width: 58%;
}

/* --- CUSTOM HERO PNG LAYOUT --- */
.hero { 
    padding-top: 140px; 
    padding-bottom: 0;  
    align-items: stretch; 
    position: relative;
    z-index: 20; 
    background: linear-gradient(to right, var(--bg-light) 40%, #e8e6df 100%); 
    max-height: 850px; 
    overflow: hidden;
	box-shadow: inset 0 -40px 40px -20px rgba(0, 0, 0, 0.1);
}

.hero .content {
    align-self: center; 
    padding-bottom: 40px; 
}

.hero-image-right {
    flex: 0 0 50%;
    position: relative;
    display: flex;
    justify-content: flex-end; 
    align-self: flex-end; 
    z-index: 10;
}

.hero-lorna-img {
    width: 125%; 
    max-width: 850px; 
    height: auto;
    max-height: 750px; 
    object-fit: contain;
    object-position: bottom right;
    margin-right: -10vw; 
    display: block; 
	z-index: 3;
	filter: drop-shadow(0px 15px 25px rgba(85, 112, 74, 0.35));
}

.floating-leaf-hero { 
    position: absolute; 
    bottom: -70px; 
    left: -120px;   
    width: 320px; 
    z-index: 15;
}

/* --- LISTS --- */
.speaking ul { list-style: none; margin-top: 20px; margin-bottom: 20px; }
.speaking li { margin-bottom: 10px; position: relative; padding-left: 15px; font-size: 15px; }
.speaking li::before { content: "•"; position: absolute; left: 0; color: inherit; }

/* --- INDUSTRY SECTION --- */
.custom-industry-section {
    position: relative;
    background-color: var(--white);
    margin-top: 0; 
    padding-top: 0;
}

.industry-purple-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 380px; 
    background-color: var(--purple);
    z-index: 1;
    display: flex;
    justify-content: center; 
}

.industry-purple-bg::after {
    content: "";
    width: 100%;
    max-width: 1600px;
    height: 100%;
    background-image: url('industry-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.industry-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    padding: 0 var(--pad-x);
    gap: 40px; 
}

.industry-image-left {
    flex: 0 0 42%; 
    display: flex;
    align-items: flex-end;
    position: relative;
}

.lorna-overlap {
    width: 100%;
    height: auto;
    max-width: 550px;
    margin-bottom: -60px; 
    display: block;
    position: relative;
    z-index: 10;
	filter: drop-shadow(0px 15px 25px rgba(85, 112, 74, 0.35));
}

.industry-leaf-behind {
    position: absolute;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.industry-content-right {
    flex: 0 0 50%; 
    display: flex;
    flex-direction: column;
}

.industry-top-text {
    height: 380px; 
    display: flex;
    align-items: flex-end;
    padding-bottom: 30px;
}

.industry-top-text h2 {
    color: var(--white);
    margin: 0;
    letter-spacing: 0;
}

.title-large {
    font-size: clamp(3rem, 4.5vw, 4.84rem);
    display: block;
    margin-bottom: 5px; 
    line-height: 1;
}

.industry-bottom-text {
    padding-top: 50px;
    padding-bottom: 80px;
    background-color: transparent;
}

.industry-bottom-text p {
    color: var(--grey);
    font-size: 15px;
    max-width: 650px;
}

.green-bullets {
    list-style: none;
    margin-top: 30px;
    padding: 0;
}

.green-bullets li {
    color: var(--sage-green);
    font-size: 15px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.green-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--sage-green);
    font-size: 20px;
    line-height: 1.2;
}

/* --- Quote Banner --- */
.quote-banner { 
    background-color: var(--sage-green);
    color: var(--white);
    text-align: center; 
    padding: 100px var(--pad-x); 
    position: relative;
    z-index: 20; 
}

.quote-banner p {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 20; 
    font-size: 32px; 
    line-height: 1.4; 
}

.quote-banner p span {
    opacity: 0.15; 
    display: inline-block;
    padding: 0 4px;
    will-change: opacity;
}

/* --- SPEAKING MOCKUP SECTION --- */
.speaking-mockup-section {
    background-color: #f1f3f0; 
    padding: 60px var(--pad-x);
    align-items: flex-start; 
}

.mockup-bullets {
    list-style: none;
    padding-left: 0;
    margin: 40px 0;
}

.mockup-bullets li {
    font-size: 15px;
    color: var(--grey);
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px; 
    display: flex;
    align-items: center;
}

.mockup-bullets li::before {
    content: "●"; 
    position: absolute;
    left: 0;
    color: #333; 
    font-size: 12px;
}

.mockup-green-text {
    color: var(--sage-green) !important;
    font-size: 15px;
    line-height: 1.5;
    margin-top: 30px;
}

.leaf-container-mockup {
    flex: 0 0 35% !important; 
    overflow: visible !important;
    background: none !important;
}

.mockup-leaf-img {
    width: 100% !important; 
    max-width: 600px; 
    height: auto;
    transform: rotate(-3deg); 
    margin-top: -20px;
}

/* --- Advisory Carousel --- */
.advisory { 
    padding: 80px var(--pad-x); 
    overflow-x: hidden; 
    position: relative;
    z-index: 5; 
}

.carousel-wrapper { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; position: relative; }
.carousel-container { flex: 1; overflow: hidden; width: 100%; }
.card-track { display: flex; transition: transform 0.4s ease-in-out; gap: 30px; touch-action: pan-y; }

.card { 
    background: var(--card-bg); 
    border-radius: 12px; 
    padding: 50px 40px; 
    text-align: center; 
    flex: 0 0 calc((100% - 60px) / 3); 
}

.card p {
    max-width: 250px;
    margin: 0 auto;
}

.arrow { 
    color: var(--sage-green); 
    cursor: pointer; 
    user-select: none; 
    z-index: 10; 
    display: flex; 
    align-items: center; 
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.arrow:hover { opacity: 1; }
.arrow svg { width: 45px; height: 45px; }

.pagination-dots { margin-top: 40px; }
.dot { display: inline-block; width: 8px; height: 8px; background-color: #dcdcdc; border-radius: 50%; margin: 0 5px; cursor: pointer; transition: background-color 0.3s ease; }
.dot.active { background-color: #9e8cc1; } 

/* --- LEGACY SECTION --- */
.legacy-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 60px var(--pad-x) 120px var(--pad-x); 
    position: relative;
}

.legacy-section .content {
    flex: 0 0 45%;
    width: 45%;
    position: relative;
    z-index: 2; 
}

.legacy-image-container {
    position: absolute;
    bottom: -150px; 
    right: calc(var(--pad-x) + 2vw);
    width: 50%;
    max-width: 650px;
    z-index: 5; 
    pointer-events: none; 
}

.legacy-lorna-img {
    width: 100%; 
    height: auto;
    display: block;
	filter: drop-shadow(0px 15px 25px rgba(85, 112, 74, 0.35));
}

/* --- Contact Section --- */
.bottom-master-section {
    background-color: var(--sage-green);
    color: var(--white);
    padding: 0 var(--pad-x) 40px var(--pad-x);
    margin-top: 0; 
    position: relative;
    z-index: 15; 
}

.contact-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 60px;
}

.contact-text { 
    flex: 1; 
    padding-right: 50px;
    padding-top: 100px; 
}
.contact-text h2 { color: var(--white); letter-spacing: -2px; }
.contact-info { display: flex; gap: 50px; margin-top: 30px; flex-wrap: wrap; }

/* Enhanced Contact Blocks */
.info-block { display: flex; align-items: flex-start; gap: 15px; }
.contact-icon { width: 26px; height: 26px; color: var(--white); opacity: 0.85; margin-top: 5px; }
.info-text strong { text-transform: uppercase; font-size: 12px; letter-spacing: 1px; opacity: 0.7; }
.contact-link { color: var(--white); text-decoration: none; font-size: 19px; font-family: var(--font-button); transition: opacity 0.3s ease; display: inline-block; margin-top: 5px; }
.contact-link:hover { opacity: 0.7; }

.contact-form {
    flex: 0 0 450px; 
    width: 450px;
    padding: 40px;
    border-radius: 12px;
    margin-top: -120px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    position: relative;
    z-index: 20; 
}

.contact-form input, .contact-form textarea {
    width: 100%; 
    padding: 12px 15px; 
    margin-bottom: 15px; 
    border: none; 
    border-radius: 6px; 
    font-family: var(--font-body); 
    font-size: 14px; 
    color: var(--grey);
}
.contact-form textarea { height: 100px; resize: none; }

.btn-form { 
    font-family: var(--font-button); 
    background-color: #55704a; 
    color: var(--white); 
    border: none; 
    cursor: pointer; 
    border-radius: 30px; 
    padding: 12px 30px; 
    font-size: 13px; 
    letter-spacing: 0.5px; 
    transition: all 0.3s ease;
}
.btn-form:hover {
    background-color: #455d3b;
    transform: translateY(-2px);
}

/* --- Footer --- */
footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 50px;
}
footer h2 { color: var(--white); margin: 0; font-size: 2.5rem; line-height: 0.9; font-weight: normal; letter-spacing: -3px; }
footer h4 { margin-bottom: 10px; font-weight: normal; font-size: 18px; }
footer a, footer p { color: var(--white); text-decoration: none; display: block; margin-bottom: 6px; font-size: 15px; transition: color 0.3s ease; }
footer a:hover { color: #e0e0e0; }

/* Enhanced Social Icon */
.social-link { color: var(--white); transition: opacity 0.3s ease; display: inline-flex; align-items: center; justify-content: center; }
.social-link:hover { opacity: 0.7; }
.social-link svg { width: 24px; height: 24px; }

.copyright { width: 100%; text-align: center; margin-top: 50px; font-size: 14px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; }

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    padding: 20px var(--pad-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
}
.cookie-popup.show {
    bottom: 0;
}
.cookie-popup p {
    margin: 0;
    font-size: 14px;
    color: var(--grey);
    flex: 1;
    padding-right: 30px;
}
.cookie-popup a {
    color: var(--sage-green);
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 15px;
}
.cookie-btn {
    padding: 10px 25px;
    border-radius: 30px;
    background-color: var(--sage-green);
    color: var(--white);
    border: 1px solid var(--sage-green);
    cursor: pointer;
    font-family: var(--font-button);
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.cookie-btn:hover {
    background-color: #8bab7d;
    border-color: #8bab7d;
}
.btn-outline-cookie {
    background-color: transparent;
    color: var(--grey);
    border-color: var(--grey);
}
.btn-outline-cookie:hover {
    background-color: var(--grey);
    color: var(--white);
    border-color: var(--grey);
}

/* --- Legal Pages --- */
.legal-section {
    padding: 160px var(--pad-x) 100px var(--pad-x);
    background-color: var(--bg-light);
    min-height: 70vh;
}
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.legal-content h1 { font-size: 3rem; letter-spacing: -2px; margin-bottom: 30px; }
.legal-content h2 { font-size: 1.8rem; letter-spacing: -1px; margin-top: 40px; margin-bottom: 20px; }
.legal-content p, .legal-content li { font-size: 15px; color: var(--grey); margin-bottom: 15px; }
.legal-content ul { padding-left: 20px; margin-bottom: 20px; }

/* --- FULL MOBILE CSS BLOCK --- */

@media (max-width: 1024px) {
    html, body { 
        max-width: 100vw; 
        overflow-x: hidden; 
        position: relative;
        width: 100%;
    }
    * { box-sizing: border-box; }
    :root { --pad-x: 20px; }

    nav a:not(.nav-btn) { display: none; }
    .nav-as-logo { display: flex !important; margin-left: 15px; padding-left: 15px; }
    .nav-as-logo img { height: 18px; }
    header { padding: 20px 20px; justify-content: flex-end; }

    .split-section {
        flex-direction: column !important;
        padding: 0px 20px !important;
        text-align: center;
    }

    .hero {
        flex-direction: column !important;
        height: auto !important;
        max-height: none !important;
        padding: 100px 20px 0px !important;
        display: flex !important;
        background: linear-gradient(to bottom, var(--bg-light) 0%, #e8e6df 100%) !important;
        overflow: hidden !important; 
    }
    .hero .content { order: 1; width: 100%; margin-bottom: 0px; }
    .hero-image-right { order: 2; width: 100% !important; justify-content: center !important; position: relative; display: flex !important; margin-bottom: 0 !important; }
    .hero-lorna-img { width: 100% !important; max-width: 450px; position: static !important; margin: 0 auto !important; display: block !important; z-index: 3}
    .floating-leaf-hero { position: absolute; bottom: -60px; left: 50px; width: 400px; z-index: 2; }

    #about { padding: 100px 20px 100px !important; background-color: var(--white); display: flex !important; flex-direction: column !important; overflow: hidden !important; }
    #about .image-container { display: none !important; }
    #about .content { flex: 0 0 58%; width: 100%; }

    .industry-purple-bg { height: 160px !important; }
    .industry-content-right { order: 2; display: block !important; background: #e8e6df; padding: 20px 20px !important; z-index: 20 !important;}
    .industry-top-text { height: auto !important; display: block !important; padding: 10px 0 20px !important; text-align: center !important; }
    .industry-top-text h2 { color: var(--sage-green) !important; text-align: center !important; width: 100%; display: block; }
    .title-large { font-size: 1.1em !important; color: var(--sage-green) !important; display: block !important; text-align: center !important; }

    .industry-bottom-text { padding-top: 0px !important; padding-bottom: 25px; background-color: transparent; text-align: center !important; }
    .industry-bottom-text p { margin: 0 auto 20px auto; }
    .green-bullets { display: inline-block; text-align: left; }

    .industry-inner { margin-top: 0 !important; display: block !important; padding: 0px 0px !important; }
    .industry-image-left { width: 100%; display: block !important; text-align: center !important; position: relative; margin-bottom: 0px !important; z-index:10;}
    .lorna-overlap { width: 80% !important; max-width: 400px; position: relative !important; margin: -8px auto !important; display: inline-block !important; z-index: 10; }
    .industry-leaf-behind { display: none !important; }

    .quote-banner { background-color: var(--sage-green); color: var(--white); text-align: center; padding: 40px var(--pad-x); position: relative; z-index: 20; }
    .quote-banner p { max-width: 1100px; margin: 0 auto; position: relative; z-index: 20; font-size: 22px; line-height: 1.4; }

    #speaking { padding: 100px 20px 100px !important; display: flex !important; flex-direction: column !important; background-image: linear-gradient(rgba(241, 243, 240, 0.7), rgba(241, 243, 240, 0.7)), url('leaf-decor-2.png'); background-repeat: no-repeat; background-position: top left; background-size: 220px; background-color: #f1f3f0; }
    #speaking .image-container { display: none !important; }
    #speaking h2 { color: var(--sage-green) !important; text-align: center; }
    #speaking .content { width: 100%; }
    .mockup-bullets li { text-align: left; }

    .advisory { padding: 60px var(--pad-x); overflow: hidden !important; position: relative; z-index: 5; }
    .carousel-container { width: 100%; overflow: hidden; }
    .card-track { display: flex !important; flex-wrap: nowrap !important; gap: 30px !important; transition: transform 0.5s ease; }
    .card { flex: 0 0 100% !important; width: 100% !important; min-width: 100% !important; margin: 0 !important; padding: 40px 20px !important; }
    .arrow svg { width: 20px; height: 20px; }

    #legacy { display: flex !important; flex-direction: column !important; padding: 100px var(--pad-x) 0px !important; text-align: center; }
    #legacy .content { order: 1; width: 100% !important; text-align: center; margin-bottom: 5px; }
    #legacy h2 { color: var(--sage-green) !important; }
    .legacy-image-container { order: 2; position: static !important; width: 100% !important; display: flex; justify-content: center; margin-bottom: 0 !important; }
    .legacy-lorna-img { width: 100% !important; max-width: 450px; margin: 0 auto !important; display: block !important; }

    .bottom-master-section { padding-top: 40px !important; overflow: hidden; }
    .contact-area { flex-direction: column !important; align-items: center; }
    .contact-text { flex: 1; padding: 20px 20px 30px 20px; text-align: center; }
    
    /* Stack contact info nicely on mobile */
    .contact-info { flex-direction: column; gap: 20px; align-items: center; margin-top: 20px; }
    .info-block { flex-direction: column; text-align: center; align-items: center; gap: 10px; }
    .contact-icon { margin-top: 0; }
    
    .contact-form { width: 100% !important; margin-top: 0 !important; position: relative !important; z-index: 50; }
    
    .cookie-popup { flex-direction: column; text-align: center; padding: 20px; }
    .cookie-popup p { padding-right: 0; margin-bottom: 15px; }
    .cookie-buttons { width: 100%; flex-direction: column; gap: 10px; }
    .cookie-btn { width: 100%; }
    
    .legal-content { padding: 40px 20px; }
}

@media (max-width: 768px) {
    .btn { display: block; width: 100%; margin-left: 0 !important; margin-bottom: 15px; }
    footer { flex-direction: column; text-align: center; gap: 30px; }
}