/**
 * Shed Builder - Modern Design System
 * Clean, professional, timber-inspired aesthetic
 */

/* ==========================================================================
   CSS Variables - Design Tokens
   ========================================================================== */

:root {
    /* Brand Colors - Warm timber palette */
    --timber-900: #1a1208;
    --timber-800: #2d1f10;
    --timber-700: #4a3520;
    --timber-600: #6b4d2d;
    --timber-500: #8b6914;
    --timber-400: #a67c52;
    --timber-300: #c9a66b;
    --timber-200: #e4d4b8;
    --timber-100: #f5efe6;
    --timber-50: #faf8f4;

    /* Accent - Forest green */
    --forest-900: #0d2818;
    --forest-800: #14402a;
    --forest-700: #1a5c3a;
    --forest-600: #22754a;
    --forest-500: #2d8f5c;
    --forest-400: #4caf7d;
    --forest-300: #7ecda3;
    --forest-200: #b5e3ca;
    --forest-100: #e0f4ea;
    --forest-50: #f0faf5;

    /* Neutrals */
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    /* Semantic Colors */
    --color-primary: var(--timber-600);
    --color-primary-dark: var(--timber-700);
    --color-primary-light: var(--timber-400);
    --color-accent: var(--forest-600);
    --color-accent-dark: var(--forest-700);
    --color-accent-light: var(--forest-400);

    --color-text: var(--slate-800);
    --color-text-secondary: var(--slate-600);
    --color-text-muted: var(--slate-500);
    --color-text-inverse: #ffffff;

    --color-bg: #ffffff;
    --color-bg-subtle: var(--slate-50);
    --color-bg-muted: var(--slate-100);
    --color-bg-dark: var(--slate-900);
    --color-bg-warm: var(--timber-50);

    --color-border: var(--slate-200);
    --color-border-light: var(--slate-100);
    --color-border-focus: var(--timber-400);

    --color-success: #059669;
    --color-success-bg: #ecfdf5;
    --color-warning: #d97706;
    --color-warning-bg: #fffbeb;
    --color-error: #dc2626;
    --color-error-bg: #fef2f2;
    --color-info: #0284c7;
    --color-info-bg: #f0f9ff;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font-sans);
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Layout */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    --container-2xl: 1400px;
    --sidebar-width: 400px;

    /* Borders */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

    /* Transitions */
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 350ms;
}

/* ==========================================================================
   Font Loading
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--color-text);
    letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--color-primary-dark);
}

strong { font-weight: 600; }

ul, ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

li { margin-bottom: var(--space-2); }

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

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-lg {
    max-width: var(--container-2xl);
}

.section {
    padding: var(--space-20) 0;
}

.section-sm {
    padding: var(--space-12) 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--timber-700);
    text-decoration: none;
}

.logo:hover {
    color: var(--timber-800);
}

.logo-icon {
    width: 42px;
    height: 42px;
    transition: transform var(--duration-normal) var(--ease-out);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.main-nav > a,
.nav-dropdown > .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.main-nav > a:hover,
.nav-dropdown:hover > .dropdown-toggle,
.main-nav > a.active {
    color: var(--color-text);
    background: var(--color-bg-muted);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: var(--space-2);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--duration-fast) var(--ease-out);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown-menu a {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    color: var(--color-text);
    background: var(--color-bg-muted);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    padding: var(--space-2);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-inverse);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text-inverse);
}

.btn-accent {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text-inverse);
}

.btn-accent:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-text-inverse);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-text-inverse);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-text-inverse);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    background: var(--color-bg-muted);
    color: var(--color-text);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-xl);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    padding: var(--space-3);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, var(--timber-800) 0%, var(--timber-700) 50%, var(--timber-600) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--timber-200);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.hero h1 {
    margin-bottom: var(--space-6);
    font-size: var(--text-5xl);
    color: var(--color-text-inverse);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    margin-bottom: var(--space-10);
    font-size: var(--text-xl);
    color: var(--timber-200);
    line-height: var(--leading-relaxed);
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn-primary {
    background: var(--color-text-inverse);
    border-color: var(--color-text-inverse);
    color: var(--timber-700);
}

.hero-cta .btn-primary:hover {
    background: var(--timber-100);
    border-color: var(--timber-100);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    margin-top: var(--space-16);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-text-inverse);
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--timber-300);
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
    padding: var(--space-24) 0;
    background: var(--color-bg);
}

.section-header {
    max-width: 600px;
    margin: 0 auto var(--space-16);
    text-align: center;
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.feature-card {
    padding: var(--space-8);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-5);
    background: var(--timber-100);
    border-radius: var(--radius-lg);
    color: var(--timber-600);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
}

.feature-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   Shed Types Section
   ========================================================================== */

.shed-types {
    padding: var(--space-24) 0;
    background: var(--color-bg-warm);
}

.shed-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.shed-type-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--duration-normal) var(--ease-out);
}

.shed-type-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.shed-type-image {
    position: relative;
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--slate-100) 0%, var(--slate-50) 100%);
    text-align: center;
}

.shed-preview {
    width: 140px;
    height: 110px;
    margin: 0 auto;
}

.shed-type-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-6);
}

.shed-type-content h3 {
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
}

.shed-type-content p {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

.shed-type-meta {
    display: flex;
    gap: var(--space-4);
    margin: var(--space-4) 0;
    padding: var(--space-3) 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.meta-item {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.meta-item strong {
    display: block;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.shed-type-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.shed-type-actions .btn {
    flex: 1;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.how-it-works {
    padding: var(--space-24) 0;
    background: var(--color-bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(12.5% + 24px);
    right: calc(12.5% + 24px);
    height: 2px;
    background: var(--color-border);
}

.step {
    position: relative;
    text-align: center;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-6);
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text-inverse);
    background: var(--color-primary);
    border-radius: var(--radius-full);
    position: relative;
    z-index: 1;
}

.step h3 {
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
}

.step p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--forest-700) 0%, var(--forest-600) 100%);
    text-align: center;
}

.cta-section h2 {
    margin-bottom: var(--space-4);
    color: var(--color-text-inverse);
}

.cta-section p {
    margin-bottom: var(--space-8);
    font-size: var(--text-lg);
    color: var(--forest-200);
}

.cta-section .btn-primary {
    background: var(--color-text-inverse);
    border-color: var(--color-text-inverse);
    color: var(--forest-700);
}

.cta-section .btn-primary:hover {
    background: var(--forest-100);
    border-color: var(--forest-100);
}

/* ==========================================================================
   SEO FAQ Accordion Section
   ========================================================================== */

.seo-faqs {
    padding: var(--space-24) 0;
    background: var(--color-bg-subtle);
}

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

.faq-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 600;
    text-align: left;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.faq-question:hover {
    background: var(--color-bg-subtle);
}

.faq-question svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    transition: transform var(--duration-fast) var(--ease-out);
}

.faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--space-6) var(--space-5);
}

.faq-answer p {
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--slate-900);
    color: var(--slate-300);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand p {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--slate-400);
    line-height: var(--leading-relaxed);
}

.footer-heading {
    margin-bottom: var(--space-5);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-inverse);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--slate-400);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
    color: var(--color-text-inverse);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-8);
    border-top: 1px solid var(--slate-800);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--slate-500);
}

.footer-copyright a {
    color: var(--timber-400);
    font-weight: 500;
}

.footer-copyright a:hover {
    color: var(--timber-300);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    font-size: var(--text-sm);
    color: var(--slate-500);
}

.footer-legal a:hover {
    color: var(--slate-300);
}

/* ==========================================================================
   Social Share Buttons
   ========================================================================== */

.social-share {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.social-share-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
}

.social-share-buttons {
    display: flex;
    gap: var(--space-2);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--color-text-inverse);
    transition: all var(--duration-fast) var(--ease-out);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn-facebook { background: #1877f2; }
.social-btn-twitter { background: #000000; }
.social-btn-pinterest { background: #e60023; }
.social-btn-linkedin { background: #0a66c2; }
.social-btn-whatsapp { background: #25d366; }
.social-btn-email { background: var(--slate-600); }

/* ==========================================================================
   Builder Page
   ========================================================================== */

.builder-page {
    background: var(--color-bg-subtle);
    min-height: 100vh;
}

.builder-header {
    padding: var(--space-8) 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.builder-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.builder-header h1 {
    margin: 0;
    font-size: var(--text-2xl);
}

.builder-header-actions {
    display: flex;
    gap: var(--space-3);
}

.builder-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: var(--space-6);
    padding: var(--space-6) 0 var(--space-12);
}

/* Config Panel */
.builder-config {
    position: sticky;
    top: 88px;
    height: fit-content;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--slate-300) transparent;
}

.config-form {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.config-section {
    padding: var(--space-5);
    border-bottom: 1px solid var(--color-border-light);
}

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

.config-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.config-section h3 svg {
    width: 18px;
    height: 18px;
}

.config-hint {
    margin-top: var(--space-3);
    padding: var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    background: var(--color-bg-muted);
    border-radius: var(--radius-md);
    line-height: var(--leading-relaxed);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-4);
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
}

.form-group .optional {
    font-weight: 400;
    color: var(--color-text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px var(--timber-100);
}

.input-with-unit {
    position: relative;
}

.input-with-unit input {
    padding-right: var(--space-12);
}

.unit-label {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-muted);
    pointer-events: none;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.radio-label:hover {
    border-color: var(--color-border);
}

.radio-label input[type="radio"] {
    width: auto;
    accent-color: var(--color-primary);
}

.form-actions {
    padding: var(--space-5);
    background: var(--color-bg-muted);
}

/* Results Panel */
.builder-results {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    min-height: 600px;
}

.results-loading,
.results-empty,
.results-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-16);
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
    margin-bottom: var(--space-4);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-6);
    color: var(--color-border);
}

.results-empty h3 {
    margin-bottom: var(--space-3);
    color: var(--color-text-secondary);
}

.results-empty p {
    max-width: 400px;
    color: var(--color-text-muted);
}

.results-error {
    color: var(--color-error);
}

.results-error h3 {
    color: var(--color-error);
}

/* Results Tabs */
.results-tabs {
    display: flex;
    gap: var(--space-1);
    padding: var(--space-2);
    background: var(--color-bg-muted);
    border-bottom: 1px solid var(--color-border);
}

.results-tabs button {
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.results-tabs button:hover {
    color: var(--color-text);
    background: var(--color-bg);
}

.results-tabs button.active {
    color: var(--color-primary);
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    padding: var(--space-6);
}

/* Materials Table */
.materials-category {
    margin-bottom: var(--space-8);
}

.materials-category h3 {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    font-size: var(--text-lg);
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.materials-table {
    width: 100%;
    border-collapse: collapse;
}

.materials-table th {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-text-muted);
    background: var(--color-bg-muted);
}

.materials-table td {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--color-border-light);
}

.materials-table tbody tr:hover {
    background: var(--color-bg-subtle);
}

.explanation-box {
    margin-top: var(--space-4);
    padding: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-info);
    background: var(--color-info-bg);
    border-left: 3px solid var(--color-info);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.contingency-info {
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning);
    border-radius: var(--radius-lg);
}

.contingency-info h4 {
    margin-bottom: var(--space-4);
    color: var(--color-warning);
}

.contingency-info ul {
    margin-bottom: 0;
}

.contingency-info li {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* Diagrams */
.diagrams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.diagram-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.diagram-card h4 {
    padding: var(--space-4);
    margin: 0;
    font-size: var(--text-sm);
    font-weight: 600;
    background: var(--color-bg-muted);
    border-bottom: 1px solid var(--color-border);
}

.diagram-container {
    padding: var(--space-4);
    background: var(--color-bg);
}

.diagram-container svg {
    width: 100%;
    height: auto;
}

/* Instructions */
.instructions-list {
    max-width: 800px;
}

.instruction-phase {
    margin-bottom: var(--space-10);
}

.instruction-phase h3 {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    font-size: var(--text-xl);
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.instruction-step {
    position: relative;
    margin-bottom: var(--space-5);
    padding-left: var(--space-10);
}

.instruction-step .step-number {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-text-inverse);
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.instruction-step .step-text {
    margin: 0;
    font-weight: 500;
}

.step-materials {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.step-tip {
    margin-top: var(--space-3);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-warning);
    background: var(--color-warning-bg);
    border-left: 3px solid var(--color-warning);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Export Options */
.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.export-card {
    padding: var(--space-6);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.export-card h4 {
    margin-bottom: var(--space-2);
}

.export-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

/* Save Config Section */
.save-config-section {
    padding: var(--space-6);
    background: var(--color-bg-subtle);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.save-config-section h4 {
    margin-bottom: var(--space-4);
}

.saved-configs-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.saved-config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.saved-config-item span {
    font-size: var(--text-sm);
    font-weight: 500;
}

.saved-config-item small {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ==========================================================================
   Shed Type Pages
   ========================================================================== */

.shed-hero {
    padding: var(--space-12) 0 var(--space-16);
    background: linear-gradient(180deg, var(--color-bg-warm) 0%, var(--color-bg) 100%);
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
    font-size: var(--text-sm);
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb span {
    color: var(--color-text-muted);
}

.breadcrumb span:last-child {
    color: var(--color-text);
    font-weight: 500;
}

.shed-hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.shed-hero-text h1 {
    margin-bottom: var(--space-4);
}

.shed-hero-text .lead {
    margin-bottom: var(--space-8);
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

.shed-quick-facts {
    display: flex;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.shed-quick-facts .fact {
    display: flex;
    flex-direction: column;
}

.shed-quick-facts .fact strong {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-1);
}

.shed-quick-facts .fact span {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text);
}

.shed-hero-cta {
    display: flex;
    gap: var(--space-4);
}

.shed-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shed-illustration {
    width: 100%;
    max-width: 380px;
}

/* Table of Contents */
.toc-section {
    padding: var(--space-5) 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 72px;
    z-index: 100;
}

.toc {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.toc h2 {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.toc ul {
    display: flex;
    gap: var(--space-6);
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.toc a {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    white-space: nowrap;
}

.toc a:hover {
    color: var(--color-primary);
}

/* Content Sections */
.content-section {
    padding: var(--space-16) 0;
}

.content-section.alt-bg {
    background: var(--color-bg-subtle);
}

.content-section h2 {
    margin-bottom: var(--space-8);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
}

.content-main .intro {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
}

.content-main h3 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.content-aside {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.info-card {
    padding: var(--space-6);
    background: var(--color-bg-muted);
    border-radius: var(--radius-lg);
}

.info-card h4 {
    margin-bottom: var(--space-4);
    font-size: var(--text-base);
}

.info-card dl {
    margin: 0;
}

.info-card dt {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-1);
}

.info-card dd {
    margin: 0 0 var(--space-4) 0;
    font-weight: 500;
}

.info-card dd:last-child {
    margin-bottom: 0;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding: var(--space-3) 0 var(--space-3) var(--space-8);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--color-success);
    border-radius: var(--radius-full);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.summary {
    margin-top: var(--space-6);
    padding: var(--space-5);
    background: var(--color-bg);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

/* Pros and Cons */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.pros-card,
.cons-card {
    padding: var(--space-6);
    border-radius: var(--radius-lg);
}

.pros-card {
    background: var(--color-success-bg);
    border: 1px solid #a7f3d0;
}

.pros-card h3 {
    color: #065f46;
}

.cons-card {
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.cons-card h3 {
    color: #92400e;
}

.pros-card ul,
.cons-card ul {
    margin-bottom: 0;
}

.pros-card li,
.cons-card li {
    font-size: var(--text-sm);
}

/* Uses Grid */
.uses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.uses-card {
    padding: var(--space-6);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.uses-card h3 {
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
    color: var(--color-primary);
}

.uses-card ul {
    margin-bottom: 0;
}

.uses-card li {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* Sizing Table */
.sizing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.sizing-table th,
.sizing-table td {
    padding: var(--space-4);
    text-align: left;
}

.sizing-table th {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-inverse);
    background: var(--color-primary);
}

.sizing-table td {
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--color-border-light);
}

.sizing-table tbody tr:nth-child(even) {
    background: var(--color-bg-subtle);
}

.sizing-table tbody tr:hover {
    background: var(--color-bg-muted);
}

.sizing-note {
    margin-top: var(--space-4);
    padding: var(--space-4);
    font-size: var(--text-sm);
    background: var(--color-info-bg);
    border-radius: var(--radius-md);
}

/* Construction Grid */
.construction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.construction-card {
    padding: var(--space-6);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.construction-card h3 {
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
    color: var(--color-primary);
}

.construction-card p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* Examples Grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.example-card {
    padding: var(--space-6);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.example-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.example-card h3 {
    margin-bottom: var(--space-2);
}

.example-size {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.example-card > p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.example-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-4);
}

.example-features li {
    padding: var(--space-1) 0;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.example-features li::before {
    content: '•';
    margin-right: var(--space-2);
    color: var(--color-primary);
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-answer {
    padding-bottom: var(--space-5);
}

.faq-answer p {
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* Related Section */
.related-section {
    padding: var(--space-16) 0;
    background: var(--color-bg-subtle);
}

.related-section h2 {
    text-align: center;
    margin-bottom: var(--space-10);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.related-card {
    display: block;
    padding: var(--space-6);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
}

.related-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.related-card h3 {
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
    color: var(--color-primary);
}

.related-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin: 0;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }

.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none !important; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .features-grid,
    .shed-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .builder-layout {
        grid-template-columns: 1fr;
    }

    .builder-config {
        position: static;
        max-height: none;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-aside {
        position: static;
    }

    .shed-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .shed-quick-facts {
        justify-content: center;
    }

    .shed-hero-cta {
        justify-content: center;
    }

    .diagrams-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid::before {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --text-5xl: 2.25rem;
        --text-4xl: 1.875rem;
        --text-3xl: 1.5rem;
        --text-2xl: 1.25rem;
    }

    .header-content {
        height: auto;
        padding: var(--space-4) 0;
        flex-wrap: wrap;
        gap: var(--space-4);
    }

    .main-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        padding: var(--space-16) 0;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
    }

    .features-grid,
    .shed-types-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

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

    .pros-cons-grid,
    .uses-grid,
    .construction-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .toc {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .toc ul {
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .results-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .results-tabs button {
        flex-shrink: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* ==========================================================================
   Page Hero (Contact, Sponsorship, etc.)
   ========================================================================== */

.page-hero {
    padding: var(--space-12) 0;
    background: var(--color-bg-warm);
}

.page-hero h1 {
    margin-bottom: var(--space-4);
}

.page-hero .lead {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
}

/* ==========================================================================
   Contact & Form Pages
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
}

.contact-info h2 {
    margin-bottom: var(--space-4);
}

.contact-info > p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--timber-100);
    border-radius: var(--radius-lg);
    color: var(--timber-600);
    flex-shrink: 0;
}

.contact-method h3 {
    margin-bottom: var(--space-1);
    font-size: var(--text-base);
}

.contact-method a {
    font-size: var(--text-sm);
    color: var(--color-primary);
}

.contact-links h3 {
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
}

.contact-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-links li {
    margin-bottom: var(--space-2);
}

.contact-links a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.contact-links a:hover {
    color: var(--color-primary);
}

.contact-form-wrapper {
    background: var(--color-bg);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

.contact-form .form-group {
    margin-bottom: var(--space-5);
}

.contact-form .required {
    color: var(--color-error);
}

.contact-form .has-error input,
.contact-form .has-error select,
.contact-form .has-error textarea {
    border-color: var(--color-error);
}

.contact-form .error-message {
    display: block;
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-error);
}

.form-success {
    text-align: center;
    padding: var(--space-8);
}

.form-success svg {
    color: var(--color-success);
    margin-bottom: var(--space-4);
}

.form-success h2,
.form-success h3 {
    margin-bottom: var(--space-3);
    color: var(--color-success);
}

.form-success p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

/* ==========================================================================
   Content Grid with Sidebar
   ========================================================================== */

.content-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--color-bg);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-6);
}

.sidebar-card h3 {
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
}

.sidebar-card h4 {
    margin-bottom: var(--space-3);
    font-size: var(--text-base);
}

.sidebar-card > p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-5);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: var(--space-2);
}

.contact-list a {
    font-size: var(--text-sm);
    color: var(--color-primary);
}

/* Feature Cards for Add to Website */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    margin: var(--space-8) 0;
}

.content-main .feature-card {
    padding: var(--space-5);
}

.content-main .feature-card h3 {
    margin-top: 0;
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
}

/* Steps List */
.steps-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0;
}

.steps-list li {
    position: relative;
    padding-left: var(--space-12);
    margin-bottom: var(--space-6);
    counter-increment: step-counter;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-weight: 700;
    font-size: var(--text-sm);
    border-radius: var(--radius-full);
}

.steps-list li strong {
    display: block;
    margin-bottom: var(--space-1);
    font-size: var(--text-base);
}

.steps-list li p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* Check List */
.check-list {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0;
}

.check-list li {
    position: relative;
    padding-left: var(--space-8);
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background: var(--color-success);
    border-radius: var(--radius-full);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================================================
   Sponsorship Page
   ========================================================================== */

.pricing-card {
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: var(--space-8) 0;
}

.pricing-header {
    padding: var(--space-8);
    background: var(--color-primary);
    text-align: center;
}

.pricing-amount {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--color-text-inverse);
    line-height: 1;
}

.pricing-period {
    display: block;
    font-size: var(--text-lg);
    color: var(--timber-200);
    margin-top: var(--space-2);
}

.pricing-body {
    padding: var(--space-8);
}

.pricing-body h3 {
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
}

.pricing-body .check-list {
    margin: 0;
}

.pricing-body .check-list li {
    font-size: var(--text-base);
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.pricing-footer {
    padding: var(--space-6) var(--space-8);
    background: var(--color-bg-muted);
    text-align: center;
}

.slots-available {
    font-size: var(--text-lg);
    color: var(--color-success);
    margin-bottom: var(--space-2);
}

.pricing-note {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

/* Benefit Grid */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

.benefit-item {
    display: flex;
    gap: var(--space-4);
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--timber-100);
    border-radius: var(--radius-lg);
    color: var(--timber-600);
    flex-shrink: 0;
}

.benefit-item h4 {
    margin-bottom: var(--space-1);
    font-size: var(--text-base);
}

.benefit-item p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* Responsive for new pages */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .feature-cards,
    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .pricing-amount {
        font-size: var(--text-4xl);
    }
}

/* ==========================================================================
   Legal Pages (Privacy, Terms, Cookies)
   ========================================================================== */

.legal-content {
    max-width: 800px;
}

.legal-content .last-updated {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.legal-content h2 {
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--color-primary);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h3 {
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
}

.legal-content p {
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

.legal-content ul,
.legal-content ol {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

.legal-content li {
    line-height: var(--leading-relaxed);
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--color-primary-dark);
}

.legal-content .contact-details {
    list-style: none;
    padding: 0;
    background: var(--color-bg-muted);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
}

.legal-content .contact-details li {
    margin-bottom: var(--space-2);
}

.legal-content .contact-details li:last-child {
    margin-bottom: 0;
}

/* Cookie Table */
.cookie-table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--space-6);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.cookie-table th,
.cookie-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border: 1px solid var(--color-border);
}

.cookie-table th {
    background: var(--color-bg-muted);
    font-weight: 600;
    color: var(--color-text);
}

.cookie-table td {
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform var(--duration-normal) var(--ease-out);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h3 {
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
}

.cookie-banner-text p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

.cookie-banner-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

/* Cookie Preferences Panel */
.cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease-out),
                visibility var(--duration-normal) var(--ease-out);
}

.cookie-preferences.visible {
    opacity: 1;
    visibility: visible;
}

.cookie-preferences-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cookie-preferences-content {
    position: relative;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform var(--duration-normal) var(--ease-out);
}

.cookie-preferences.visible .cookie-preferences-content {
    transform: scale(1);
}

.cookie-preferences-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.cookie-preferences-header h3 {
    margin: 0;
    font-size: var(--text-xl);
}

.cookie-preferences-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--color-text-muted);
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.cookie-preferences-close:hover {
    color: var(--color-text);
    background: var(--color-bg-muted);
}

.cookie-preferences-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-6);
}

.cookie-preferences-body > p {
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.cookie-category {
    padding: var(--space-5);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.cookie-category-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
}

.cookie-category-info h4 {
    margin: 0;
    font-size: var(--text-base);
}

.cookie-badge {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-success);
    background: var(--color-success-bg);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
}

.cookie-category-desc {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--slate-300);
    border-radius: var(--radius-full);
    transition: background var(--duration-fast) var(--ease-out);
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--color-bg);
    border-radius: var(--radius-full);
    transition: transform var(--duration-fast) var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--color-success);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(22px);
}

.cookie-toggle-slider.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--color-success);
}

.cookie-toggle-slider.disabled::before {
    transform: translateX(22px);
}

.cookie-preferences-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-6);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-subtle);
}

/* Cookie Settings Link in Footer */
.cookie-settings-link {
    font-size: var(--text-xs);
    color: var(--slate-500);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    margin-right: var(--space-4);
    transition: color var(--duration-fast) var(--ease-out);
}

.cookie-settings-link:hover {
    color: var(--slate-300);
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-5);
    }

    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-banner-actions .btn {
        width: 100%;
    }

    .cookie-preferences-content {
        width: 95%;
        max-height: 95vh;
    }

    .cookie-preferences-footer {
        flex-direction: column;
    }

    .cookie-preferences-footer .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .hero-cta,
    .shed-hero-cta,
    .cta-section,
    .results-tabs,
    .export-options,
    .social-share,
    .toc-section {
        display: none !important;
    }

    body {
        font-size: 11pt;
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .materials-table {
        page-break-inside: avoid;
    }

    .instruction-phase {
        page-break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
