/* =========================================
   Adelaide Invest - Stylesheet
   ========================================= */

/* CSS Variables */
:root {
    /* Colors */
    --clr-bg-light: #fbfaf6;
    /* Cream / Off-white */
    --clr-bg-white: #ffffff;
    --clr-bg-dark: #212f49;
    /* Deep Navy */
    --clr-accent: #d6a848;
    /* Elegant Gold */
    --clr-accent-hover: #b88d38;
    --clr-accent-light: #ebd08d;
    /* Brighter gold for better contrast on dark bg */

    --clr-text-main: #1a1a24;
    --clr-text-muted: #555a6d;
    --clr-text-light: #f0f0f5;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-max: 1200px;
    --section-padding: 100px 0;

    /* UI Elements */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 40px rgba(33, 47, 73, 0.05);
    --shadow-hover: 0 15px 50px rgba(33, 47, 73, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--clr-bg-white);
}

.bg-dark {
    background-color: var(--clr-bg-dark);
}

.text-gold {
    color: var(--clr-accent);
}

.bg-dark .text-gold,
.card-dark .text-gold,
.card-dark .card-title,
.main-footer span,
.text-gold.on-dark {
    color: var(--clr-accent-light) !important;
}

.text-white {
    color: var(--clr-text-light) !important;
}

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

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

.text-left .section-subtitle {
    margin-left: 0;
    margin-right: 0;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--clr-bg-dark);
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--clr-accent);
    display: inline-block;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.btn-primary {
    background-color: var(--clr-accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 168, 72, 0.3);
}

.btn-outline {
    border: 1px solid var(--clr-bg-dark);
    color: var(--clr-bg-dark);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--clr-bg-dark);
    color: var(--clr-bg-white);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--clr-text-light);
    background: transparent;
}

.btn-outline-light:hover {
    background-color: var(--clr-bg-white);
    color: var(--clr-bg-dark);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(251, 250, 246, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.main-header.scrolled-down {
    transform: translateY(-100%);
}

.main-header.scrolled-up {
    transform: translateY(0);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo {
    max-height: 45px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a:not(.btn) {
    color: var(--clr-text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a:not(.btn) i {
    font-size: 1.1rem;
    color: var(--clr-accent);
}

.main-nav a:not(.btn):hover {
    color: var(--clr-accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--clr-bg-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Header offset */
}

.hero-mobile {
    display: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Optional: subtle parallax handled by JS later if needed */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(251, 250, 246, 0.45) 30%, rgba(251, 250, 246, 1.00) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text-box {
    max-width: 650px;
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title em {
    font-style: normal;
    color: var(--clr-accent);
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

/* Statement Section */
.statement-section {
    padding: 80px 0;
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
}

.statement-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
}

.statement-image-wrapper {
    flex-shrink: 0;
}

.statement-image {
    width: 300px;
    height: 400px;
    border-radius: var(--radius-md);
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: var(--transition);
}

.statement-image:hover {
    filter: grayscale(40%) contrast(1.1);
}

.statement-content {
    flex: 1;
}

.statement-text-new {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    color: var(--clr-text-light);
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: 16px;
}

.statement-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    line-height: 1.6;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
}

.bento-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-dark {
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
}

.card-dark .card-title {
    color: var(--clr-accent);
}

.card-dark .card-desc {
    color: rgba(255, 255, 255, 0.95);
}

.card-light {
    background-color: var(--clr-bg-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--clr-accent);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card-desc {
    color: var(--clr-text-muted);
}

.check-list {
    list-style: none;
    margin-top: 24px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.check-list i {
    color: var(--clr-accent);
    font-size: 1.25rem;
    margin-top: 3px;
}

/* Grid Layout specific */
.g-col-1 {
    grid-column: span 2;
}

/* Per chi è (Wide card) */
.g-col-2 {
    grid-column: span 1;
}

/* Acquisisco */
.g-col-3 {
    grid-column: span 1;
}

/* Continuità */
.g-col-4 {
    grid-column: span 1;
}

/* Valorizzo */
.g-col-5 {
    grid-column: span 1;
}

/* Crescita */

/* Adjustment for better flow */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .g-col-1 {
        grid-column: span 2;
    }

    .g-col-2 {
        grid-column: span 1;
    }

    .g-col-3 {
        grid-column: span 1;
    }

    .g-col-4 {
        grid-column: span 1;
    }

    .g-col-5 {
        grid-column: span 2;
    }

    /* Make the last one span 2 on tablet to close the grid evenly */
}

/* Approach Section */
.approach-features {
    margin-top: 50px;
}

.approach-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.approach-img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.approach-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
    background: var(--clr-bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(33, 47, 73, 0.03);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.approach-feature-item:hover {
    border-left-color: var(--clr-accent);
    transform: translateX(10px);
    box-shadow: var(--shadow-soft);
}

.feature-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--clr-accent);
    line-height: 1;
    opacity: 0.9;
}

.feature-content h4 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: var(--clr-bg-dark);
}

.feature-content p {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* About / Philosophy Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) contrast(1.2);
    /* Professional and perfectly blended look */
    transition: var(--transition);
}

.about-image:hover img {
    filter: grayscale(40%) contrast(1.1);
}

.philosophy-list {
    margin-top: 40px;
}

.philosophy-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.philosophy-item i {
    font-size: 1.5rem;
    margin-top: 2px;
}

.philosophy-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-top: 4px;
}

.privacy-note {
    display: block;
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
}

/* Process Horizontal */
.process-horizontal {
    display: flex;
    border-top: 1px solid rgba(33, 47, 73, 0.15);
    border-bottom: 1px solid rgba(33, 47, 73, 0.15);
    margin-top: 40px;
}

.process-step {
    flex: 1;
    padding: 50px 40px;
    border-right: 1px solid rgba(33, 47, 73, 0.15);
    transition: var(--transition);
}

.process-step:last-child {
    border-right: none;
}

.process-step:hover {
    background-color: rgba(33, 47, 73, 0.02);
}

.step-num {
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--clr-accent);
    font-weight: 600;
    margin-bottom: 30px;
    display: block;
    letter-spacing: 2px;
}

.step-info h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.step-info p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* What I Look For */
.align-center {
    display: flex;
    align-items: center;
    gap: 60px;
}

.col-text,
.col-image {
    flex: 1;
}

.sector-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.sector-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.sector-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(33, 47, 73, 0.9) 0%, rgba(33, 47, 73, 0) 100%);
    color: var(--clr-bg-white);
}

.sector-content h4 {
    color: var(--clr-bg-white);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Final CTA & Contact */
.direct-contact {
    margin: 60px auto 0;
    text-align: center;
}

.email-link {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--clr-accent);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.email-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: transparent;
    transition: var(--transition);
}

.email-link:hover {
    color: var(--clr-bg-white);
}

.email-link:hover::after {
    background-color: var(--clr-accent);
}

.privacy-disclaimer {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

/* Footer */
.main-footer {
    background-color: #111825;
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0 30px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.footer-brand a {
    display: inline-block;
}

.footer-logo {
    max-height: 45px;
    width: auto;
    display: block;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--clr-accent);
}

.footer-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    width: 100%;
}

.footer-credits a {
    color: var(--clr-accent-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-credits a:hover {
    color: var(--clr-bg-white);
    text-decoration: underline;
}

/* Modal Privacy */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 37, 0.8);
    backdrop-filter: blur(5px);
    overflow: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--clr-bg-white);
    margin: auto;
    padding: 40px;
    border-radius: var(--radius-md);
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-hover);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--clr-bg-dark);
}

.modal-content p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-content h3 {
    font-size: 1.1rem;
    color: var(--clr-bg-dark);
    margin-bottom: 8px;
}

.modal-content a {
    color: var(--clr-accent);
    text-decoration: none;
    font-weight: 500;
}

.modal-content a:hover {
    text-decoration: underline;
}

.close-modal {
    color: var(--clr-text-muted);
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--clr-accent);
}

/* Animations (Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Load Reveal Animations (Hero) */
.load-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease-out forwards;
}

.hero-text-box .load-reveal:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-text-box .load-reveal:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-text-box .load-reveal:nth-child(3) {
    animation-delay: 0.5s;
}

.hero-text-box .load-reveal:nth-child(4) {
    animation-delay: 0.7s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .row.align-center {
        flex-direction: column;
        gap: 40px;
    }

    .col-image {
        order: -1;
    }

    /* Image first on mobile */
    .hero-bg img {
        object-position: 70% center;
    }
}

@media (max-width: 768px) {
    .hero-desktop {
        display: none;
    }

    .hero-mobile {
        display: flex;
        flex-direction: column;
        padding: 100px 0 60px;
        min-height: auto;
    }

    .header-logo,
    .footer-logo {
        max-height: 35px;
    }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-overlay {
        background: linear-gradient(to right, rgba(251, 250, 246, 0.95) 0%, rgba(251, 250, 246, 0.8) 100%);
    }

    .main-nav {
        display: none;
        /* Add JS toggle for mobile menu later */
    }

    .mobile-menu-btn {
        display: block;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .g-col-1,
    .g-col-2,
    .g-col-3,
    .g-col-4,
    .g-col-5 {
        grid-column: span 1;
    }

    .process-horizontal {
        flex-direction: column;
        border-right: 1px solid rgba(33, 47, 73, 0.15);
        border-left: 1px solid rgba(33, 47, 73, 0.15);
    }

    .process-step {
        border-right: none;
        border-bottom: 1px solid rgba(33, 47, 73, 0.15);
    }

    .process-step:last-child {
        border-bottom: none;
    }

    .email-link {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-text-box .eyebrow {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        letter-spacing: 2px;
    }

    .hero-actions .btn-large {
        width: 100%;
        padding: 16px 20px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .statement-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .statement-image {
        width: 150px;
        height: 150px;
    }

    .statement-text-new {
        font-size: 1.6rem;
    }

    .approach-img,
    .sector-card img {
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .footer-copy {
        flex-direction: column;
        text-align: center;
    }
}