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

/* === ECOSPHERE GUARDIANS: PREMIUM ECOLOGY & ENVIRONMENT STYLES === */

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

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

/* === PREMIUM TOKENS === */
:root {
  --bg: #09090b; /* Deep Obsidian */
  --bg-offset: #111114;
  --bg-accent: #18181b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #8b5cf6; /* Deep Purple */
  --accent-secondary: #0d9488; /* Dark Teal */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.3);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --nav-height: 70px;
  --max-width: 1200px;
}

/* === STRUCTURAL BASELINES === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

section {
    padding: 70px 0;
    position: relative;
    border-bottom: 1px dashed var(--glass-border);
}

/* Alternate Section Backgrounds (Z-Pattern / Zig-Zag 느낌) */
section:nth-child(even) {
    background: linear-gradient(2deg, var(--bg) 0%, var(--bg-offset) 100%);
}

section:nth-child(odd) {
    background: linear-gradient(-2deg, var(--bg-offset) 0%, var(--bg-accent) 100%);
}

/* === TOP NAVIGATION (Centered Logo) === */
.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 0 2rem;
}

.nav-links-left, .nav-links-right {
    display: flex;
    gap: 2rem;
    flex: 1;
}

.nav-links-left { justify-content: flex-end; padding-right: 3rem; }
.nav-links-right { justify-content: flex-start; padding-left: 3rem; }

.logo-container {
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(to right, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.top-nav a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.top-nav a:hover, .top-nav a.active {
    color: var(--text);
}

/* === BOTTOM NAVIGATION BAR (Fixed) === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 2000;
    padding: 0.5rem 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 4px;
}

.bottom-nav-item i {
    font-size: 1.5rem;
}

.bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bottom-nav-item.active {
    color: var(--accent);
}

/* Adjust page padding for bottom nav */
body { padding-bottom: var(--nav-height); }

/* === HERO SECTION (Cinematic 21:9) === */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
    padding: 0;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

/* Letterbox Bars */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 10vh;
    background: #000;
    z-index: 10;
}

.hero::before { top: 0; }
.hero::after { bottom: 0; }

.hero-content {
    max-width: 900px;
    z-index: 5;
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* === BUTTONS & CTAs === */
.cta-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    position: relative;
    padding-bottom: 4px;
}

.cta-link::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 cubic-bezier(0.19, 1, 0.22, 1);
}

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

/* === Z-PATTERN CONTENT SECTIONS === */
.section-magazine {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

.magazine-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 800px;
}

/* Zig-Zag Image/Text Blocks */
.zigzag-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin: 4rem 0;
    text-align: left;
}

.zigzag-block:nth-child(even) {
    flex-direction: row-reverse;
}

.zigzag-content { flex: 1; }
.zigzag-image { flex: 1; }

.zigzag-image img {
    width: 100%;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--glass-border);
}

/* === BONUSES & SPECIAL SECTIONS === */

/* Comparison Table */
.comparison-container {
    overflow-x: auto;
    margin-top: 3rem;
    width: 100%;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.comparison-table th {
    background: var(--bg-accent);
    color: var(--text);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.comparison-table .check { color: var(--accent-secondary); font-weight: bold; }
.comparison-table .cross { color: #ef4444; opacity: 0.5; }

/* Awards Bar */
.awards-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.award-item {
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.award-item:hover { opacity: 1; }

.award-item i { font-size: 2.5rem; color: var(--accent); margin-bottom: 0.5rem; display: block; }
.award-item span { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }

/* Testimonial Sorter */
.testimonial-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-chip.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.search-box {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-accent);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255,255,255,0.05);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .ph-caret-down {
    transform: rotate(180deg);
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: left;
    transition: all 0.4s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.testimonial-metrics {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.metric-box {
    background: rgba(13, 148, 136, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--accent-secondary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* === FOOTER (Full-Width Photo) === */
footer {
    position: relative;
    padding: 100px 0 150px; /* Extra bottom padding for nav */
    background: #000;
    color: white;
    overflow: hidden;
}

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

.footer-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) grayscale(0.5);
}

.footer-content {
    position: relative;
    z-index: 5;
}

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

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text); }

.newsletter input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    color: white;
    margin-bottom: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .nav-links-left, .nav-links-right { display: none; }
    .top-nav { justify-content: center; }
}

@media (max-width: 768px) {
    section { padding: 50px 0; }
    .zigzag-block, .zigzag-block:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .hero::before, .hero::after { height: 5vh; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.staggered-item {
    opacity: 0;
    transform: translateY(20px);
}

/* Dividers */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 4rem 0;
    opacity: 0.3;
}

.section-divider .line {
    flex: 1;
    border-bottom: 1px dotted var(--text-muted);
}

.section-divider i {
    font-size: 1.2rem;
}
