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

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

:root {
  /* Jewel Tones Dark - Emerald variant */
  --bg-deep: #050a05;
  --bg-panel: #0f1a0f;
  --text: #f0fdf4;
  --text-muted: #86efac;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.3);
  --emerald: #059669;
  --glass-bg: rgba(15, 26, 15, 0.7);
  --glass-border: rgba(16, 185, 129, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.4);
  --font-heading: 'Clash Grotesk', sans-serif;
  --font-body: 'Archivo', sans-serif;
}

@font-face {
    font-family: 'Clash Grotesk';
    src: url('https://api.fontshare.com/v2/css?f[]=clash-grotesk@700,600,500&display=swap');
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 18px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg-deep);
    background-attachment: fixed;
}

/* === PAGE LAYOUT: Centered Floating Content === */
.layout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background: var(--bg-panel);
    box-shadow: 0 0 100px rgba(0,0,0,0.5);
    min-height: 100vh;
}

.full-page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #102a10 0%, #050a05 100%);
}

/* === NAVIGATION: Floating Pill & Transparent Hero Nav === */
.nav-pill-container {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    display: flex;
    justify-content: center;
}

.nav-pill {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1.5rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: var(--shadow-glass);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-pill.scrolled {
    background: var(--bg-panel);
    border-color: var(--accent);
    padding: 0.75rem 2rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 { font-size: clamp(3rem, 8vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: 1.75rem; }

/* === SECTION DIVIDERS: SVG Waves === */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
    fill: var(--bg-panel);
}

/* === GRADIENT BORDER GLOW === */
.glow-border {
    position: relative;
    background: var(--bg-panel);
    border-radius: var(--radius-lg);
    padding: 2px;
    overflow: hidden;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--accent),
        transparent 30%,
        transparent 70%,
        var(--accent),
        transparent
    );
    animation: rotate-glow 6s linear infinite;
    z-index: 0;
}

.glow-content {
    position: relative;
    background: var(--bg-panel);
    border-radius: calc(var(--radius-lg) - 2px);
    z-index: 1;
    height: 100%;
    padding: 2.5rem;
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === RADIAL SPOTLIGHT SECTIONS === */
.spotlight-section {
    position: relative;
    background: var(--bg-panel);
    overflow: hidden;
}

.spotlight-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* === HERO: Animated Text === */
.hero-content {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.hero-title span.animate {
    animation: char-in 0.6s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes char-in {
    to { opacity: 1; transform: translateY(0); }
}

/* === THREE-COLUMN BODY (20% / 50% / 30%) === */
.tri-layout {
    display: grid;
    gap: 3rem;
    padding: 4rem 2rem;
}

@media (min-width: 1024px) {
    .tri-layout {
        grid-template-columns: 0.2fr 0.5fr 0.3fr;
    }
}

/* === GRID SYSTEM === */
.centered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* === CTA: Underline Style === */
.underline-cta {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--accent);
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.underline-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.underline-cta:hover::after {
    transform: scaleX(1);
}

/* === TESTIMONIAL: Spotlight Single === */
.testimonial-spotlight {
    padding: 4rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    display: none;
    animation: fade-in 0.5s ease;
}

.testimonial-card.active {
    display: block;
}

.testimonial-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    border: 3px solid var(--accent);
    object-fit: cover;
}

.testimonial-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === INTERACTIVE MAP / REGION SELECTOR === */
.map-container {
    padding: 3rem 2rem;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.region-btn {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
}

.region-btn.active {
    background: var(--accent);
    color: white;
}

.region-info {
    min-height: 200px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--glass-border);
}

/* === SOCIAL FEED === */
.social-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem;
}

.social-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.social-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.social-card:hover img {
    transform: scale(1.1);
}

.social-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card:hover .social-overlay {
    opacity: 1;
}

/* === COMPARISON SECTION === */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.comparison-table th, .comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table .brand-col {
    color: var(--accent);
    font-weight: 600;
}

/* === FOOTER: Contextual === */
footer {
    background: #030603;
    padding: 6rem 2rem 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.mini-card {
    background: var(--bg-panel);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-size: 0.8rem;
}

.footer-links-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 6rem 2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* === MOBILE NAV === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: fixed;
        top: 2rem;
        right: 2rem;
        z-index: 1001;
        background: var(--glass-bg);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border);
    }

    .nav-pill {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 2rem;
        gap: 2rem;
    }

    .nav-pill.open {
        transform: translateY(0);
    }
}

/* === STATS BANNER === */
.stats-banner {
    background: var(--accent);
    color: white;
    padding: 4rem 2rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 4rem 0;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    display: block;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}

/* === MISC === */
section {
    padding: 6rem 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Tight-then-expand spacing */
section:nth-of-type(1), section:nth-of-type(2), section:nth-of-type(3) {
    padding: 60px 0;
}

section:nth-last-of-type(1), section:nth-last-of-type(2) {
    padding: 110px 0;
}

/* Auto-fix: prevent default blue/purple browser links */
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: currentColor; }
