/**
 * 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;

    /* Extended palette for guides */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-600: #2563eb;
    --blue-800: #1e40af;

    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-600: #d97706;
    --amber-800: #92400e;

    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-800: #991b1b;

    /* 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: var(--color-bg);
    border-bottom: 1px solid var(--slate-100);
    transition: box-shadow var(--duration-normal) var(--ease-out);
}

.site-header:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

/* Modern Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
    z-index: 1001;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--timber-600) 0%, var(--timber-700) 100%);
    border-radius: var(--radius-lg);
    color: white;
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.logo:hover .logo-mark {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 77, 45, 0.3);
}

.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-link {
    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(--slate-600);
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--slate-900);
    background: var(--slate-50);
}

.nav-link.active {
    color: var(--timber-700);
    background: var(--timber-50);
}

/* Desktop CTA */
.nav-cta-desktop {
    display: flex;
    margin-left: var(--space-4);
}

.nav-cta-desktop .btn {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
    gap: var(--space-2);
}

.nav-cta-mobile {
    display: none;
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    font-family: var(--font-sans);
}

.dropdown-arrow {
    transition: transform var(--duration-fast) var(--ease-out);
    opacity: 0.6;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.is-open .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 200px;
    padding: var(--space-2);
    background: var(--color-bg);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 1002;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

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

.dropdown-menu a:hover {
    color: var(--slate-900);
    background: var(--slate-50);
}

.dropdown-menu a.active {
    color: var(--timber-700);
    background: var(--timber-50);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    color: var(--slate-700);
    z-index: 1001;
    transition: all var(--duration-fast) var(--ease-out);
}

.mobile-menu-toggle:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
}

.mobile-menu-toggle .close-icon {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .close-icon {
    display: block;
}

/* Navigation Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

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

/* ==========================================================================
   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: linear-gradient(180deg, var(--slate-900) 0%, #0f1419 100%);
    color: var(--slate-300);
    padding: var(--space-16) 0 var(--space-8);
}

/* Footer Main Layout */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-16);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--slate-800);
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    text-decoration: none;
}

.footer-logo .logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--timber-500) 0%, var(--timber-600) 100%);
    border-radius: var(--radius-md);
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--slate-400);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-6);
    max-width: 280px;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--slate-800);
    border-radius: var(--radius-lg);
    color: var(--slate-400);
    transition: all var(--duration-fast) var(--ease-out);
}

.social-link:hover {
    background: var(--timber-600);
    color: white;
    transform: translateY(-2px);
}

/* Footer Links Grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    margin-bottom: var(--space-4);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-heading-secondary {
    margin-top: var(--space-6);
}

.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: all var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
    color: white;
    padding-left: var(--space-2);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-8);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

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

.footer-credit {
    font-size: var(--text-xs);
    color: var(--slate-600);
    margin: 0;
}

.footer-credit a {
    color: var(--timber-500);
    font-weight: 500;
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-credit a:hover {
    color: var(--timber-400);
}

.footer-disclaimer {
    font-size: var(--text-xs);
    color: var(--slate-600);
    max-width: 400px;
    text-align: right;
    margin: 0;
}

/* ==========================================================================
   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;
    }

    /* Prevent horizontal overflow on all pages */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 0 var(--space-4);
    }

    /* Mobile Header */
    .header-content {
        height: 60px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
    }

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

    /* Hide desktop CTA on mobile */
    .nav-cta-desktop {
        display: none;
    }

    /* Mobile Menu Toggle - Show on mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: calc(60px + var(--space-6)) var(--space-5) var(--space-6);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform var(--duration-normal) var(--ease-out);
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-1);
        width: 100%;
    }

    .nav-link {
        padding: var(--space-4);
        font-size: var(--text-base);
        border-radius: var(--radius-lg);
        justify-content: space-between;
    }

    .nav-link.active {
        background: var(--timber-50);
        color: var(--timber-700);
    }

    /* Mobile Dropdown */
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--duration-normal) var(--ease-out);
        background: var(--slate-50);
        border-radius: var(--radius-lg);
        margin-top: var(--space-2);
    }

    .nav-dropdown:hover .dropdown-menu {
        transform: none;
    }

    .nav-dropdown.is-open .dropdown-menu {
        max-height: 500px;
        padding: var(--space-2);
    }

    .dropdown-menu a {
        padding: var(--space-3) var(--space-4);
    }

    /* Mobile Nav CTA */
    .nav-cta-mobile {
        display: block;
        margin-top: auto;
        padding-top: var(--space-6);
        border-top: 1px solid var(--slate-100);
    }

    .nav-cta-mobile .btn {
        width: 100%;
        justify-content: center;
    }

    /* Show overlay when nav is open */
    body.nav-open .nav-overlay {
        display: block;
        opacity: 1;
    }

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

    .hero h1 {
        font-size: var(--text-3xl);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

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

    .hero-cta {
        flex-direction: column;
        gap: var(--space-3);
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .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;
    }

    /* Mobile Footer */
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .footer-brand {
        text-align: center;
        align-items: center;
    }

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

    .footer-tagline {
        max-width: 100%;
        text-align: center;
    }

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

    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }

    .footer-column {
        text-align: center;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

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

    .footer-bottom-left {
        align-items: center;
    }

    .footer-disclaimer {
        text-align: center;
        max-width: 100%;
    }

    /* Builder page mobile fixes */
    .builder-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .builder-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    /* Page hero mobile */
    .page-hero .lead {
        font-size: var(--text-base);
    }

    /* Section headers */
    .section-header h2 {
        font-size: var(--text-2xl);
    }

    .section-header p {
        font-size: var(--text-base);
    }
}

/* ==========================================================================
   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;
    }
}

/* ==========================================================================
   Guides Section
   ========================================================================== */

/* Guides Listing Page */
.guides-featured {
    background: var(--color-bg-warm);
}

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

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

/* Guide Card */
.guide-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
}

.guide-card:hover {
    border-color: var(--timber-200);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.guide-card-featured {
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
}

.guide-card-content {
    flex: 1;
}

.guide-category {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--timber-100);
    color: var(--timber-700);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
}

.guide-card h3 {
    font-size: var(--text-lg);
    color: var(--slate-900);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

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

.guide-meta {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
    font-size: var(--text-xs);
    color: var(--slate-500);
}

.guide-read-time,
.guide-date {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.guide-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--slate-100);
    border-radius: var(--radius-full);
    color: var(--slate-400);
    flex-shrink: 0;
    transition: all var(--duration-fast) var(--ease-out);
}

.guide-card:hover .guide-card-arrow {
    background: var(--timber-600);
    color: white;
}

.guides-coming-soon {
    margin-top: var(--space-12);
    padding: var(--space-8);
    background: var(--color-bg-subtle);
    border-radius: var(--radius-xl);
    text-align: center;
}

.guides-coming-soon h3 {
    margin-bottom: var(--space-2);
    color: var(--slate-700);
}

.guides-coming-soon p {
    color: var(--slate-600);
    margin: 0;
}

/* Guide Article Page */
.guide-article {
    padding-bottom: var(--space-16);
}

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

.guide-header-content {
    max-width: 800px;
}

.guide-header h1 {
    margin-bottom: var(--space-4);
    font-size: var(--text-4xl);
    line-height: 1.2;
}

.guide-excerpt {
    font-size: var(--text-lg);
    color: var(--slate-600);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.guide-meta-header {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border-light);
}

.guide-meta-header span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--slate-600);
}

.guide-meta-header svg {
    color: var(--slate-400);
}

/* Guide Layout */
.guide-content {
    padding-top: var(--space-12);
}

.guide-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-12);
    align-items: start;
}

/* Table of Contents */
.guide-toc {
    position: sticky;
    top: 100px;
}

.guide-toc-inner {
    padding: var(--space-5);
    background: var(--color-bg-subtle);
    border-radius: var(--radius-xl);
}

.guide-toc h4 {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
    margin-bottom: var(--space-4);
}

.guide-toc nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-toc nav li {
    margin-bottom: var(--space-2);
}

.guide-toc nav a {
    display: block;
    font-size: var(--text-sm);
    color: var(--slate-600);
    padding: var(--space-2) 0;
    border-left: 2px solid transparent;
    padding-left: var(--space-3);
    transition: all var(--duration-fast) var(--ease-out);
}

.guide-toc nav a:hover {
    color: var(--timber-700);
    border-left-color: var(--timber-300);
}

/* Guide Main Content */
.guide-main {
    max-width: 720px;
}

.guide-main section {
    margin-bottom: var(--space-12);
}

.guide-main section:last-child {
    margin-bottom: 0;
}

.guide-intro {
    font-size: var(--text-lg);
    color: var(--slate-700);
    line-height: var(--leading-relaxed);
}

.guide-main h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
    padding-top: var(--space-4);
}

.guide-main h3 {
    font-size: var(--text-lg);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

.guide-main p {
    color: var(--slate-700);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

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

.guide-main li {
    color: var(--slate-700);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2);
}

/* Guide Callouts */
.guide-callout {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    margin: var(--space-6) 0;
}

.guide-callout-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.guide-callout-content strong {
    display: block;
    margin-bottom: var(--space-1);
}

.guide-callout-content p {
    margin: 0;
    font-size: var(--text-sm);
}

.guide-callout-info {
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
}

.guide-callout-info .guide-callout-icon {
    background: var(--blue-100);
    color: var(--blue-600);
}

.guide-callout-info strong {
    color: var(--blue-800);
}

.guide-callout-tip {
    background: var(--timber-50);
    border: 1px solid var(--timber-100);
}

.guide-callout-tip .guide-callout-icon {
    background: var(--timber-100);
    color: var(--timber-600);
}

.guide-callout-tip strong {
    color: var(--timber-800);
}

.guide-callout-warning {
    background: var(--amber-50);
    border: 1px solid var(--amber-100);
}

.guide-callout-warning .guide-callout-icon {
    background: var(--amber-100);
    color: var(--amber-600);
}

.guide-callout-warning strong {
    color: var(--amber-800);
}

/* Guide Comparison Table */
.guide-comparison-table {
    overflow-x: auto;
    margin: var(--space-6) 0;
}

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

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

.guide-comparison-table th {
    background: var(--slate-50);
    font-weight: 600;
    color: var(--slate-700);
}

.guide-comparison-table td {
    color: var(--slate-600);
}

.guide-comparison-table tbody tr:hover {
    background: var(--slate-50);
}

/* Guide Two Column Layout */
.guide-two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    margin: var(--space-6) 0;
}

.guide-column {
    min-width: 0;
    overflow: visible;
}

.guide-column h3 {
    margin-top: 0;
}

/* Guide Checklist */
.guide-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-checklist li {
    position: relative;
    padding-left: var(--space-8);
    margin-bottom: var(--space-2);
}

.guide-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 16px;
    height: 16px;
    background: var(--timber-100);
    border: 2px solid var(--timber-300);
    border-radius: var(--radius-sm);
}

/* Guide Steps */
.guide-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

.guide-steps li {
    position: relative;
    padding-left: var(--space-10);
    padding-bottom: var(--space-6);
    border-left: 2px solid var(--slate-200);
    margin-left: var(--space-4);
}

.guide-steps li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.guide-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: -15px;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--timber-600);
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Guide Figures */
.guide-figure {
    margin: var(--space-8) 0;
}

.guide-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-12);
    background: var(--slate-100);
    border-radius: var(--radius-xl);
    color: var(--slate-400);
}

.guide-image-placeholder span {
    font-size: var(--text-sm);
    text-align: center;
}

.guide-figure figcaption {
    font-size: var(--text-sm);
    color: var(--slate-500);
    text-align: center;
    margin-top: var(--space-3);
    font-style: italic;
}

.guide-figure img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
}

/* Guide Video Embed */
.guide-video {
    margin: var(--space-8) 0;
}

.guide-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--slate-900);
}

.guide-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.guide-video-caption {
    font-size: var(--text-sm);
    color: var(--slate-500);
    text-align: center;
    margin-top: var(--space-3);
}

/* Guide Mistakes List */
.guide-mistake-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.guide-mistake {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--red-50);
    border: 1px solid var(--red-100);
    border-radius: var(--radius-xl);
}

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

.guide-mistake-content strong {
    color: var(--red-800);
    display: block;
    margin-bottom: var(--space-1);
}

.guide-mistake-content p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--red-700);
}

/* Guide Size Cards */
.guide-size-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.guide-size-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.guide-size-card-featured {
    border-color: var(--timber-300);
    box-shadow: 0 0 0 3px var(--timber-100);
}

.guide-size-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: var(--slate-50);
    border-bottom: 1px solid var(--color-border-light);
}

.guide-size-card-featured .guide-size-card-header {
    background: var(--timber-50);
}

.guide-size-dimensions {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--slate-900);
}

.guide-size-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
    background: var(--slate-200);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
}

.guide-size-card-featured .guide-size-label {
    background: var(--timber-600);
    color: white;
}

.guide-size-card-body {
    padding: var(--space-4);
}

.guide-size-card-body p {
    margin: 0 0 var(--space-2);
    font-size: var(--text-sm);
}

.guide-size-card-body p:last-child {
    margin-bottom: 0;
}

/* Guide Use Cases */
.guide-use-cases {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.guide-use-case {
    padding: var(--space-6);
    background: var(--color-bg-subtle);
    border-radius: var(--radius-xl);
}

.guide-use-case h3 {
    margin: 0 0 var(--space-2);
}

.guide-size-rec {
    font-size: var(--text-sm);
    color: var(--slate-600);
    margin-bottom: var(--space-3);
}

.guide-size-rec strong {
    color: var(--timber-700);
}

.guide-use-case > p:last-child {
    margin-bottom: 0;
}

/* Guide Rules Grid */
.guide-rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.guide-rule {
    padding: var(--space-5);
    background: var(--slate-50);
    border-radius: var(--radius-xl);
    text-align: center;
}

.guide-rule h4 {
    font-size: var(--text-sm);
    color: var(--slate-600);
    margin-bottom: var(--space-2);
}

.guide-rule p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--slate-700);
}

/* Guide Summary */
.guide-summary {
    padding: var(--space-8);
    background: var(--timber-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--timber-100);
}

.guide-summary h2 {
    margin-top: 0;
    padding-top: 0;
}

/* Guide Related */
.guide-related {
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border-light);
}

.guide-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.guide-related-card {
    display: block;
    padding: var(--space-5);
    background: var(--slate-50);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
}

.guide-related-card:hover {
    background: var(--timber-50);
}

.guide-related-card h4 {
    font-size: var(--text-base);
    color: var(--slate-900);
    margin-bottom: var(--space-1);
}

.guide-related-card span {
    font-size: var(--text-sm);
    color: var(--slate-500);
}

/* Guide CTA */
.guide-cta {
    padding: var(--space-10);
    background: linear-gradient(135deg, var(--timber-600) 0%, var(--timber-700) 100%);
    border-radius: var(--radius-xl);
    text-align: center;
    color: white;
}

.guide-cta h2 {
    color: white;
    margin-top: 0;
    padding-top: 0;
}

.guide-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-6);
}

.guide-cta .btn {
    background: white;
    color: var(--timber-700);
}

.guide-cta .btn:hover {
    background: var(--timber-50);
}

/* Guide Responsive */
@media (max-width: 1024px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }

    .guide-toc {
        position: relative;
        top: 0;
        margin-bottom: var(--space-8);
    }

    .guide-toc-inner {
        display: flex;
        flex-direction: column;
    }

    .guide-toc nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .guide-toc nav li {
        margin-bottom: 0;
    }

    .guide-toc nav a {
        border-left: none;
        padding: var(--space-2) var(--space-3);
        background: var(--color-bg);
        border-radius: var(--radius-md);
    }

    .guide-toc nav a:hover {
        background: var(--timber-100);
    }
}

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

    .guide-card-featured {
        flex-direction: column;
    }

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

    .guide-meta-header {
        gap: var(--space-4);
    }

    .guide-two-column,
    .guide-size-cards,
    .guide-rules-grid,
    .guide-related-grid {
        grid-template-columns: 1fr;
    }

    .guide-callout {
        flex-direction: column;
    }

    .guide-mistake {
        flex-direction: column;
    }

    .guide-cta {
        padding: var(--space-6);
    }
}

/* ==========================================================================
   Author Page
   ========================================================================== */

.page-hero-compact {
    padding: var(--space-6) 0;
    background: var(--color-bg-subtle);
}

.author-profile {
    padding: var(--space-12) 0;
}

.author-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-8);
    padding: var(--space-8);
    background: var(--color-bg);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-10);
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar-placeholder {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--timber-100) 0%, var(--timber-200) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--timber-500);
}

.author-info h1 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-2);
}

.author-title {
    font-size: var(--text-lg);
    color: var(--color-primary);
    font-weight: 500;
    margin: 0 0 var(--space-3);
}

.author-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin: 0 0 var(--space-5);
}

.author-location svg {
    color: var(--color-text-muted);
}

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

.author-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-bg-muted);
    border-radius: var(--radius-lg);
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.author-social-link:hover {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.author-website-link {
    width: auto;
    padding: 0 var(--space-4);
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
}

.author-bio {
    max-width: 800px;
}

.author-bio h2 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--space-4);
}

.author-bio > p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0 0 var(--space-8);
}

.author-expertise h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--space-4);
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.expertise-tag {
    display: inline-flex;
    padding: var(--space-2) var(--space-4);
    background: var(--timber-100);
    color: var(--timber-700);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-full);
}

.author-articles {
    padding: var(--space-12) 0;
    background: var(--color-bg-subtle);
}

.author-articles h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-8);
}

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

/* Author link in guides */
.guide-author a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

@media (max-width: 768px) {
    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-6);
    }

    .author-avatar-placeholder {
        width: 100px;
        height: 100px;
    }

    .author-avatar-placeholder svg {
        width: 48px;
        height: 48px;
    }

    .author-info h1 {
        font-size: var(--text-2xl);
    }

    .author-location {
        justify-content: center;
    }

    .author-social {
        justify-content: center;
    }

    .author-bio {
        text-align: left;
    }

    .author-articles-grid {
        grid-template-columns: 1fr;
    }
}
