:root {
    --color-bg: #FAFAFA;
    /* Slightly warmer white for premium feel */
    --color-bg-alt: #F0F2F5;
    --color-text-main: #2C3E50;
    --color-text-muted: #546E7A;
    --color-accent: #37474F;
    --color-accent-light: #607D8B;
    --color-border: #E0E0E0;

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 120px;

    --container-width: 1000px;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);

    --radius-sm: 4px;
    --radius-md: 8px;

    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll only */
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--color-text-main);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    /* Responsive font size */
    font-weight: 300;
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: var(--spacing-sm);
}

/* Layout & Common */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-sm);
    position: relative;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for children (handled in CSS for simplicity) */
.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

/* Navigation */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    height: 95vh;
    /* Almost full viewport */
    min-height: 600px;
    display: flex;
    align-items: center;
    /* Center vertically */
    justify-content: flex-start;
    /* Align left */
    text-align: left;
    overflow: hidden;
    padding: 0 var(--spacing-xl);
    /* Add side padding */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.1);
    /* Slight zoom for depth */
    transition: transform 0.1s linear;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle gradient to darken bottom/left for text readability */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: 0;
    /* Remove padding */
    background: transparent;
    /* Remove glass box */
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
    /* Slower, smoother entry */
}

/* Styled Hero Typography */
.hero h1 {
    color: #FFFFFF;
    /* White text */
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 300;
    /* Thin, elegant weight */
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* Subtle shadow for legibility */
    margin-bottom: var(--spacing-md);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 500px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Decorative line */
.hero-content::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: white;
    margin-bottom: var(--spacing-md);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0 var(--spacing-md);
        justify-content: center;
        text-align: center;
    }

    .hero-content::before {
        margin: 0 auto var(--spacing-md);
        /* Center line */
    }

    .hero p {
        margin: 0 auto;
    }

    .navbar {
        padding: var(--spacing-sm);
    }
}

/* Sections */
.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Text area larger than image */
    gap: var(--spacing-lg);
    align-items: center;
}

.intro-content {
    display: grid;
    gap: var(--spacing-md);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-height: 400px;
    /* Ensure height matches text */
}

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

    .intro-image {
        order: -1;
        /* Show image first on mobile */
        height: 300px;
    }
}

.card {
    padding: var(--spacing-md);
    background: white;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border-top: 3px solid var(--color-accent);
}

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

.card h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-light);
    border-bottom: 2px solid transparent;
    /* Keeps layout stable */
    margin-bottom: var(--spacing-sm);
}

/* Contrast Section */
.contrast-section,
.reference-section {
    position: relative;
    border-top: 1px solid var(--color-border);
}

/* Split Layout with Images */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.split-layout.reverse .content-block {
    order: 2;
}

.split-layout.reverse .image-block {
    order: 1;
}

.image-block {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    height: 400px;
}

.image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-block:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .split-layout.reverse .content-block {
        order: 1;
    }

    .split-layout.reverse .image-block {
        order: 2;
    }

    .image-block {
        height: 300px;
    }
}

/* What to Expect */
.what-to-expect {
    background-color: var(--color-bg-alt);
    max-width: none;
    padding-bottom: var(--spacing-xl);
}

.what-to-expect-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.feature-item {
    background: white;
    padding: var(--spacing-md);
    /* border: 1px solid var(--color-border); REMOVED border for cleaner shadow look */
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    transition: transform var(--transition-fast);
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-item h3 {
    color: var(--color-accent);
}

/* Usage Guide */
.steps-list {
    counter-reset: steps;
    list-style: none;
    padding: 0;
    display: grid;
    gap: var(--spacing-md);
}

.steps-list li {
    position: relative;
    padding-left: 60px;
}

.steps-list li::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50%;
    /* Circle looks more modern */
    background: white;
    transition: background-color 0.3s, color 0.3s;
}

.steps-list li:hover::before {
    background-color: var(--color-accent);
    color: white;
}

/* CTA */
.cta-section {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-sm);
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.btn-primary {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: 18px 48px;
    background-color: var(--color-text-main);
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: 30px;
    /* Pillow shape for modern accessible feel */
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.btn-primary:hover {
    background-color: black;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.4);
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    /* Dark footer for contrast */
    color: #888;
    padding: var(--spacing-lg) var(--spacing-sm);
    font-size: 0.875rem;
    text-align: center;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Dropdown Navigation */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: var(--radius-sm);
    padding: 8px 0;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
}

.dropdown-content::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

.dropdown-content a {
    color: var(--color-text-main) !important; /* Override white nav color */
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-accent) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Ensure Planning link specifically looks clickable but stays styling consistent */
.dropdown > a {
    cursor: default;
}
