img { max-width: 100%; height: auto; display: block; }

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Color Theme: Soft Pastel Ethereal (Muted warm pastel tones like lavender, peach, mint on white bg) */
    --bg: #fcfaff; /* Soft Lavender Tint */
    --text: #1a1a2e;
    --text-muted: #5a5a7a;
    --accent: #b19cd9; /* Lavender */
    --accent-peach: #ffd1dc; /* Peach */
    --accent-mint: #b2e2f2; /* Mint */

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-glass: 0 8px 32px 0 rgba(177, 156, 217, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 15px; /* Compact text per spec */
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

/* Background Texture: Subtle animated CSS gradient */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #fcfaff, #fff5f2, #f2fff9, #f5f2ff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Mesh gradient simulation */
.mesh-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.5;
    background-image:
        radial-gradient(at 0% 0%, var(--accent-mint) 0px, transparent 50%),
        radial-gradient(at 100% 0%, var(--accent-peach) 0px, transparent 50%),
        radial-gradient(at 50% 100%, var(--accent) 0px, transparent 50%);
}

img, video {
    max-width: 100%; height: auto; display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 5%; width: 100%; }

/* Spacing Strategy: Tight-then-expand */
section { padding: 60px 0; position: relative; }
section:nth-last-child(2) { padding: 80px 0; }
section:last-of-type { padding: 110px 0; }

@media (max-width: 768px) {
    section { padding: 40px 0 !important; }
}

/* Layout Archetype: Modern Corporate Clean (Soft gradients, 8px radius on small elements) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px; /* Compact padding per spec */
    box-shadow: var(--shadow-glass);
}

/* CTA / Button Style: Outlined pill with fill-on-hover */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border: 2px solid var(--accent);
    border-radius: 50px;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-pill:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* PAGE LAYOUT SCHEME: Top Mega-Header + Clean Body */
.mega-header {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.mega-grid {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 30px;
    align-items: center;
}

.brand-block h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent);
    line-height: 1.1;
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.header-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.header-nav a {
    font-weight: 500;
    font-size: 0.95rem;
}

.header-nav a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.header-search {
    display: flex;
    background: #f0f0f5;
    padding: 8px 15px;
    border-radius: 50px;
}

.header-search input {
    background: none;
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

.header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.contact-mini {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
}

@media (max-width: 1024px) {
    .mega-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .header-meta { align-items: center; }
    .contact-mini { text-align: center; }
}

/* Navigation Style: Hidden Until Scroll */
.sticky-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sticky-nav.visible {
    transform: translateY(0);
}

.sticky-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hero Style: Headline + subtitle staggered */
.hero-section {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 5rem; /* Enormous font */
    line-height: 1;
    margin-bottom: 20px;
}

.hero-subtitle {
    text-align: right;
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 500px;
    margin-left: auto;
    margin-top: -20px;
}

@media (max-width: 768px) {
    .hero-headline { font-size: 3rem; }
    .hero-subtitle { text-align: left; margin-top: 20px; }
    .hero-section { grid-template-columns: 1fr; }
}

/* Section Dividers: Overlap style */
.section-overlap {
    margin-top: -60px;
    z-index: 10;
}

/* Grid / Card Alignment Strategy: CSS columns for masonry */
.masonry-grid {
    columns: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) { .masonry-grid { columns: 2; } }
@media (max-width: 768px) { .masonry-grid { columns: 1; } }

/* Section Internal Layout: Offset grid */
.offset-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.offset-row:nth-child(even) {
    margin-left: 100px;
}

.offset-row:nth-child(odd) {
    margin-right: 100px;
}

@media (max-width: 1024px) {
    .offset-row { margin-left: 0 !important; margin-right: 0 !important; grid-template-columns: 1fr; }
}

/* Marquee Styles */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    padding: 30px 0;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    display: inline-block;
    padding: 0 40px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: #ccc;
    text-transform: uppercase;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Interactive Map/Region Selector */
.region-selector {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.region-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.region-btn {
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: 0.3s;
}

.region-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.region-info {
    min-height: 300px;
}

/* Testimonial Presentation: Spotlight single */
.testimonial-spotlight {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.spotlight-card {
    display: flex;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.spotlight-img {
    width: 300px;
    height: 400px;
    flex-shrink: 0;
}

.spotlight-quote {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .spotlight-card { flex-direction: column; text-align: center; }
}

/* Footer Style: CTA Footer */
.cta-footer-box {
    background: var(--accent-peach);
    padding: 80px 40px;
    text-align: center;
    border-radius: var(--radius-lg);
    margin-bottom: 60px;
}

.footer-main {
    padding-bottom: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid #ddd;
    flex-grow: 1;
}

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

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

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--accent);
}

.breadcrumbs span {
    margin: 0 10px;
}

/* Expert Tip Callout */
.expert-callout {
    border-left: 5px solid var(--accent-mint);
    background: #f9fffb;
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.expert-callout h5 {
    color: var(--accent-mint);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .newsletter-form { flex-direction: column; }
    .mega-header { padding: 20px 0; }
}
