@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

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

:root {
    --primary-color: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #40916c;
    --secondary-color: #52b788;
    --accent-color: #95d5b2;
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --background: #ffffff;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--background);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: var(--background);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(45, 106, 79, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 56px;
    width: auto;
    display: block;
    transform-origin: 50% 65%;
    animation: catWiggle 1.5s ease-in-out;
}

@keyframes catWiggle {
    0%   { transform: rotate(0deg); }
    45%  { transform: rotate(-18deg); }
    100% { transform: rotate(0deg); }
}

.logo h1 {
    display: none;
}

.logo-subtitle {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 70vh;
    position: relative;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
    min-height: calc(3.5rem * 1.2 * 2); /* always reserve 2 lines to prevent layout shift during typewriter */
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s;
}

.btn:hover::after {
    left: 150%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
}

.cta-section .btn-large {
    background: white;
    color: var(--primary-dark);
}

.cta-section .btn-large:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.floating-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 3rem;
    border-radius: 28px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(45, 106, 79, 0.4);
    animation: float 3s ease-in-out infinite;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.card-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon svg {
    width: 3.5rem;
    height: 3.5rem;
    color: white;
    stroke: white;
}

.floating-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animated hero background blobs */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: blobDrift ease-in-out infinite;
}

.hero-blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
    animation-duration: 18s;
    animation-delay: 0s;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    top: 40%;
    right: -80px;
    animation-duration: 22s;
    animation-delay: -6s;
}

.hero-blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    bottom: 10%;
    left: 30%;
    animation-duration: 15s;
    animation-delay: -3s;
}

@keyframes blobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(40px, -30px) scale(1.08); }
    66%       { transform: translate(-20px, 40px) scale(0.95); }
}

/* Typewriter cursor */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--primary-color);
    margin-left: 3px;
    vertical-align: middle;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Scroll reveal base state for general sections */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Stagger delays for cards */
.highlights-grid .highlight-card:nth-child(1) { animation-delay: 0.1s; }
.highlights-grid .highlight-card:nth-child(2) { animation-delay: 0.25s; }
.highlights-grid .highlight-card:nth-child(3) { animation-delay: 0.4s; }
.highlights-grid .highlight-card:nth-child(4) { animation-delay: 0.55s; }

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Wave divider between sections */
.section-wave {
    line-height: 0;
    overflow: hidden;
    margin-top: -1px;
}

.section-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* Carbon calculator SVG icon styles */
.calc-earth-icon svg,
.result-earth svg {
    width: 4.5rem;
    height: 4.5rem;
}

.calc-earth-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.cat-pill span:first-child svg {
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Highlights Section */
.highlights {
    padding: 5rem 0;
    background: var(--background-light);
}

.highlights h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 2px solid transparent;
    animation: cardFadeIn 0.6s ease-out both;
}

.highlight-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(45, 106, 79, 0.18);
    border-color: var(--secondary-color);
}

.highlight-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.highlight-icon svg {
    width: 3.2rem;
    height: 3.2rem;
    color: var(--primary-color);
    stroke: var(--primary-color);
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.2) rotate(-5deg);
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1.2) rotate(-5deg); }
    50% { transform: scale(1.35) rotate(5deg); }
}

.highlight-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: ctaPulse 4s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.15); opacity: 0.5; }
}

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

.cta-date {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* About Hero */
.about-hero {
    padding: 4rem 0;
    text-align: center;
    background: var(--background-light);
}

.about-hero h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.student-led-badge {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 4px 20px var(--shadow);
}

/* Timeline */
.timeline-section {
    padding: 5rem 0;
}

.timeline-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 4rem;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInTimeline 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }

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

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 3;
    text-align: left;
}

.timeline-marker {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s;
}

.timeline-icon svg {
    width: 2.2rem;
    height: 2.2rem;
    color: var(--primary-color);
    stroke: var(--primary-color);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1) rotate(5deg);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
}

.timeline-tag {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Mission Section */
.mission-section {
    padding: 5rem 0;
    background: var(--background-light);
}

.mission-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.mission-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.mission-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.mission-highlight {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 10px;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1.15rem;
}

/* Sign-up Hero */
.signup-hero {
    padding: 4rem 0;
    background: var(--background-light);
    text-align: center;
}

.signup-hero h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
}

.detail-icon svg {
    width: 2.4rem;
    height: 2.4rem;
    color: var(--primary-color);
    stroke: var(--primary-color);
}

.event-detail strong {
    color: var(--primary-color);
    display: block;
    font-size: 0.9rem;
}

.event-detail p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0;
}

/* Form Section */
.form-section {
    padding: 5rem 0;
}

/* Google Form Embed */
.form-embed-wrapper {
    max-width: 780px;
    margin: 0 auto;
}

.form-embed-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-embed-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.form-embed-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
}

.form-embed-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
}

.form-embed-header strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.form-embed-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(45, 106, 79, 0.12);
    overflow: hidden;
    border: 2px solid var(--accent-color);
    padding: 0.5rem;
}

.form-embed-container iframe {
    display: block;
    width: 100%;
    border: none;
    border-radius: 16px;
}

.form-embed-note {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
}

.form-embed-note a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.form-embed-note a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.signup-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 30px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-label {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 1rem;
}

.form-help {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.verification-options {
    margin-top: 1.5rem;
}

.verification-option {
    margin-bottom: 1rem;
}

.verification-option input[type="radio"] {
    display: none;
}

.radio-label {
    display: block;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.verification-option input[type="radio"]:checked + .radio-label {
    border-color: var(--primary-color);
    background: rgba(45, 106, 79, 0.05);
}

.radio-title {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.radio-description {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
}



.divider {
    display: none;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.btn-submit {
    width: 100%;
    margin-top: 2rem;
    font-size: 1.1rem;
    padding: 1.25rem;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.success-message {
    background: #efe;
    color: #3a3;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.form-info {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 15px;
    height: fit-content;
}

.form-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.form-info ul {
    list-style: none;
}

.form-info li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 2rem;
}

.form-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Carbon Calculator Styles */
.calculator-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.calculator-section:last-of-type {
    border-bottom: none;
}

.results-section {
    animation: fadeInUp 0.8s ease-out;
}

.results-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.result-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.main-result {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.main-result h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.result-value {
    font-size: 4rem;
    font-weight: 700;
    margin: 1rem 0;
}

.result-unit {
    font-size: 1.2rem;
    opacity: 0.9;
}

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

.comparison-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.result-card h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.result-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.breakdown-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--background-light);
    border-radius: 15px;
}

.breakdown-grid {
    display: grid;
    gap: 1.5rem;
}

.breakdown-item {
    display: grid;
    grid-template-columns: 150px 1fr 100px;
    gap: 1rem;
    align-items: center;
}

.breakdown-label {
    font-weight: 600;
    color: var(--text-dark);
}

.breakdown-bar {
    background: var(--border-color);
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 1s ease-out;
    border-radius: 15px;
}

.breakdown-value {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

.tips-section {
    margin-bottom: 3rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px var(--shadow);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.tip-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tip-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.co2-cloud-section {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.co2-cloud-section h3 {
    margin-bottom: 1rem;
}

.co2-cloud-section p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 1rem;
}

/* Clickable highlight card */
.highlight-card--clickable {
    cursor: pointer;
    position: relative;
}

.highlight-card--clickable .learn-more-hint {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.highlight-card--clickable:hover .learn-more-hint,
.highlight-card--clickable:focus-visible .learn-more-hint {
    opacity: 1;
}

.highlight-card--clickable:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Modal overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.modal-overlay.is-open {
    display: flex;
}

.modal {
    background: white;
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: visible;
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.4rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.modal-icon {
    position: relative;
    animation: modalSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
}

.modal-icon svg {
    width: 3.5rem;
    height: 3.5rem;
    color: white;
    stroke: white;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(-24px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2.5rem 2.5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.modal-body {
    padding: 1.75rem 2rem 2rem;
    padding: 2rem 2.5rem 2.5rem;
}

.modal-body p {
    color: var(--text-light);
    line-height: 1.75;
    line-height: 1.85;
    font-size: 1rem;
    margin: 0;
}

.modal-body a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

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

.modal-close {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.modal-close:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .timeline::before {
        left: 40px;
    }

    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: 2rem;
    }

    .timeline-item .timeline-content {
        grid-column: 2 !important;
        text-align: left !important;
    }

    .timeline-marker {
        grid-column: 1;
    }

    .form-container {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .event-details {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
        min-height: unset; /* removes the big blank space on mobile */
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .floating-card {
        padding: 1.75rem;
    }

    .floating-card h3 {
        font-size: 1.5rem;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }

    .signup-form {
        padding: 1.5rem;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .highlights h2,
    .cta-section h2,
    .mission-content h2 {
        font-size: 1.8rem;
    }

    .cta-date {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* =========================================================
   CARBON CALCULATOR – REDESIGNED QUIZ STYLES
   ========================================================= */

/* --- Hero --- */
.calc-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 55%, var(--secondary-color) 100%);
    color: white;
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.calc-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: floatParticle linear infinite;
}
.p1 { width: 60px; height: 60px; top: 10%; left: 5%;  animation-duration: 12s; animation-delay: 0s; }
.p2 { width: 30px; height: 30px; top: 60%; left: 12%; animation-duration: 9s;  animation-delay: 1s; }
.p3 { width: 80px; height: 80px; top: 20%; left: 80%; animation-duration: 15s; animation-delay: 2s; }
.p4 { width: 20px; height: 20px; top: 70%; left: 75%; animation-duration: 8s;  animation-delay: 0.5s; }
.p5 { width: 50px; height: 50px; top: 40%; left: 45%; animation-duration: 11s; animation-delay: 3s; }
.p6 { width: 35px; height: 35px; top: 80%; left: 55%; animation-duration: 10s; animation-delay: 1.5s; }

@keyframes floatParticle {
    0%   { transform: translateY(0)   rotate(0deg);   opacity: 0.6; }
    50%  { transform: translateY(-40px) rotate(180deg); opacity: 0.3; }
    100% { transform: translateY(0)   rotate(360deg); opacity: 0.6; }
}

.calc-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.calc-earth-icon {
    font-size: 4.5rem;
    display: block;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.calc-hero-inner h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.calc-hero-inner p {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.calc-hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-badge {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
}

.btn-hero {
    background: white;
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 700;
    padding: 1rem 2.8rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    transition: all 0.3s;
}
.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* --- Quiz Shell --- */
.quiz-shell {
    background: #f4f7f5;
    min-height: 100vh;
    padding-bottom: 4rem;
}

.quiz-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Top bar --- */
.quiz-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0 0.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quiz-cats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cat-pill {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #e2ece7;
    color: var(--text-light);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.cat-pill.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
}

.cat-pill.done {
    background: var(--secondary-color);
    color: white;
    opacity: 0.7;
}

.cat-pill-label { display: inline; }

/* --- Progress bar --- */
.quiz-prog-track {
    height: 6px;
    background: #d8e8df;
    border-radius: 3px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.quiz-prog-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Step label --- */
.quiz-step-row {
    text-align: right;
    margin-bottom: 0.25rem;
}
.quiz-step-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* --- Live counter --- */
.live-counter {
    background: white;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 0.5rem 1.1rem;
    text-align: center;
    transition: opacity 0.5s;
    min-width: 140px;
}
.live-counter-label {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.live-counter-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}
.live-unit {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
}

/* --- Question area --- */
.question-area {
    position: relative;
    min-height: 380px;
    overflow: hidden;
}

/* --- Question panel animations --- */
.q-panel {
    width: 100%;
}

.q-panel.enter-right {
    animation: qSlideInRight 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.q-panel.enter-left {
    animation: qSlideInLeft 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.q-panel.exit-left {
    position: absolute;
    top: 0; left: 0;
    animation: qSlideOutLeft 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}
.q-panel.exit-right {
    position: absolute;
    top: 0; left: 0;
    animation: qSlideOutRight 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

@keyframes qSlideInRight {
    from { opacity: 0; transform: translateX(70px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes qSlideInLeft {
    from { opacity: 0; transform: translateX(-70px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes qSlideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-70px); }
}
@keyframes qSlideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(70px); }
}

/* --- Category label inside question --- */
.q-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--accent-color);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Question text --- */
.q-question {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.35;
    margin-bottom: 0.5rem;
    text-align: center;
}

.q-sub {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.75rem;
    text-align: center;
}

/* --- Cards grid --- */
.q-cards-grid {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.q-cards-grid.g-2  { grid-template-columns: repeat(2, 1fr); }
.q-cards-grid.g-3  { grid-template-columns: repeat(3, 1fr); }
.q-cards-grid.g-4  { grid-template-columns: repeat(4, 1fr); }
.q-cards-grid.g-auto { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }

.q-card {
    background: white;
    border: 2.5px solid #e0e8e4;
    border-radius: 16px;
    padding: 1.15rem 0.75rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    user-select: none;
}

.q-card:hover {
    border-color: var(--primary-light);
    background: #f0f7f3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45,106,79,0.15);
}

.q-card.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(45,106,79,0.35);
}

.q-card-icon {
    font-size: 2.2rem;
    line-height: 1;
    display: block;
}

.q-card-label {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

.q-card.selected .q-card-label {
    color: white;
}

.q-card-sub {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.3;
}

.q-card.selected .q-card-sub {
    color: rgba(255,255,255,0.85);
}

/* --- Number input --- */
.q-number-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.q-number-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 2.5px solid #d0e4da;
    border-radius: 16px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transition: border-color 0.25s;
}

.q-number-row:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(45,106,79,0.18);
}

.q-number-input {
    border: none;
    outline: none;
    font-size: 2.2rem;
    font-weight: 700;
    width: 140px;
    text-align: center;
    color: var(--primary-dark);
    background: transparent;
}

/* Chrome/Safari spinner removal */
.q-number-input::-webkit-outer-spin-button,
.q-number-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.q-number-input[type=number] { appearance: textfield; -moz-appearance: textfield; }

.q-number-unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

.q-number-hint {
    font-size: 0.88rem;
    color: var(--text-light);
    text-align: center;
    max-width: 400px;
    line-height: 1.5;
}

.btn-quiz-continue {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.9rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(45,106,79,0.3);
}
.btn-quiz-continue:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45,106,79,0.4);
}

/* --- Back button --- */
.quiz-back-row {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.btn-quiz-back {
    background: none;
    border: 2px solid #c8ddd4;
    color: var(--text-light);
    border-radius: 50px;
    padding: 0.55rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}
.btn-quiz-back:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* =========================================================
   RESULTS SECTION
   ========================================================= */
.results-shell {
    padding: 3rem 0 5rem;
    background: var(--background-light);
}

.results-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 0;
    animation: fadeInUp 0.7s ease-out;
}

.results-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 3.5rem 2rem 2.5rem;
}

.result-earth {
    font-size: 5rem;
    display: block;
    margin-bottom: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

.results-header h2 {
    font-size: 1.6rem;
    opacity: 0.95;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.result-total-wrap {
    display: inline-block;
}

.result-total-number {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.result-total-unit {
    font-size: 1.1rem;
    opacity: 0.88;
    margin-top: 0.25rem;
}

.result-rating-badge {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.5rem 1.75rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.5);
    letter-spacing: 0.04em;
}

/* --- Comparison gauge --- */
.comparison-section {
    padding: 2.5rem 2.5rem 1.5rem;
}

.comparison-section h3,
.breakdown-section h3,
.tips-section h3 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.comparison-gauge {
    background: var(--background-light);
    border-radius: 16px;
    padding: 1.5rem;
}

.gauge-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.4rem;
    padding: 0 1px;
}

.gauge-track {
    height: 28px;
    border-radius: 14px;
    display: flex;
    overflow: visible;
    position: relative;
    margin-bottom: 1rem;
}

.gauge-zone {
    height: 100%;
}
.gauge-zone:first-child { border-radius: 14px 0 0 14px; }
.gauge-zone:last-child  { border-radius: 0 14px 14px 0; }
.gauge-zone.green  { background: #22c55e; }
.gauge-zone.yellow { background: #84cc16; }
.gauge-zone.orange { background: #f59e0b; }
.gauge-zone.red    { background: #ef4444; }

.gauge-marker {
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    transition: left 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    z-index: 2;
}

.gauge-arrow {
    font-size: 1.4rem;
    color: var(--primary-dark);
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.gauge-marker-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    background: white;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
    margin-top: 0.2rem;
}

.gauge-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.legend-item.green  { color: #15803d; }
.legend-item.blue   { color: #2563eb; }
.legend-item.orange { color: #d97706; }

/* --- Comparison cards grid --- */
.comparison-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 2.5rem 2rem;
}

.comparison-card {
    background: var(--background-light);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.highlight-card-result {
    background: linear-gradient(135deg, #e8f5ee, #d1eedd);
    border-color: var(--primary-light);
}

.comp-icon { font-size: 2rem; margin-bottom: 0.4rem; }

.comp-label {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.comp-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
}
.comp-value span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    display: block;
}

/* --- Breakdown bars --- */
.breakdown-section {
    padding: 2rem 2.5rem 2.5rem;
    background: var(--background-light);
}

.breakdown-grid { display: grid; gap: 1.25rem; }

.breakdown-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    align-items: center;
}

.breakdown-label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.breakdown-bar-wrap {
    display: grid;
    grid-template-columns: 1fr 90px;
    gap: 0.75rem;
    align-items: center;
}

.breakdown-bar-bg {
    height: 24px;
    background: #d8e8df;
    border-radius: 12px;
    overflow: hidden;
}

.breakdown-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.breakdown-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-align: right;
}

/* --- Tips --- */
.tips-section {
    padding: 2.5rem 2.5rem 1.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.tip-card {
    background: white;
    border: 2px solid #e0ebe5;
    border-radius: 14px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.tip-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 6px 20px rgba(45,106,79,0.12);
}

.tip-icon { font-size: 2.2rem; margin-bottom: 0.6rem; }

.tip-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.tip-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- CO2 cloud & footer --- */
.co2-cloud-section {
    background: linear-gradient(135deg, #e8f5ee, #d4ede0);
    padding: 2rem 2.5rem;
    text-align: center;
}
.co2-cloud-section h3 { color: var(--primary-dark); margin-bottom: 0.75rem; }
.co2-cloud-section p  { color: var(--text-light); margin-bottom: 1.25rem; font-size: 0.95rem; }

.results-footer {
    padding: 2rem 2.5rem;
    text-align: center;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 720px) {
    .calc-hero-inner h1 { font-size: 2rem; }
    .q-question { font-size: 1.35rem; }
    .q-cards-grid.g-4  { grid-template-columns: repeat(2, 1fr); }
    .q-cards-grid.g-3  { grid-template-columns: repeat(2, 1fr); }
    .comparison-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .breakdown-item { grid-template-columns: 1fr; gap: 0.4rem; }
    .breakdown-bar-wrap { grid-template-columns: 1fr 80px; }
    .cat-pill-label { display: none; }
    .comparison-section, .breakdown-section, .tips-section,
    .co2-cloud-section, .results-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (max-width: 480px) {
    .q-cards-grid.g-2  { grid-template-columns: 1fr; }
    .q-cards-grid.g-3  { grid-template-columns: repeat(2, 1fr); }
    .comparison-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .result-total-number { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .modal {
        animation: none;
    }
}

/* =========================================================
   HAMBURGER + SIDE MENU
   ========================================================= */

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

.side-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1500;
    backdrop-filter: blur(2px);
}

.side-menu-overlay.open {
    display: block;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 260px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1600;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
}

.side-menu.open {
    right: 0;
}

.side-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.side-menu-close:hover {
    color: var(--primary-color);
}

.side-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.side-menu-links a {
    display: block;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.side-menu-links a:hover,
.side-menu-links a.active {
    background: var(--background-light);
    color: var(--primary-color);
}

/* On desktop: hide hamburger */
.hamburger {
    display: none;
}

/* On mobile (≤600px): hide nav links, show hamburger */
@media (max-width: 600px) {
    .nav-menu {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }
}

/* =========================================================
   COOKIES CONSENT BANNER
   ========================================================= */

.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 30px rgba(45, 106, 79, 0.15);
    border-top: 3px solid var(--accent-color);
    z-index: 3000;
    padding: 1.25rem 2rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    font-family: 'Poppins', sans-serif;
}

.cookies-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.cookies-banner.is-hiding {
    transform: translateY(100%);
    opacity: 0;
}

.cookies-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookies-banner-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 260px;
}

.cookies-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cookies-banner-text strong {
    display: block;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.cookies-banner-text p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.5;
}

.cookies-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    align-items: center;
}

.cookies-accept {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.cookies-decline {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cookies-decline:hover {
    border-color: var(--text-light);
    color: var(--text-dark);
}

@media (max-width: 600px) {
    .cookies-banner {
        padding: 1rem;
    }

    .cookies-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookies-banner-actions {
        width: 100%;
    }

    .cookies-accept,
    .cookies-decline {
        flex: 1;
        text-align: center;
    }
}