/* The Quiet Architect Website Styles */
/* Minimalist, structural design reflecting the book's philosophy */

/* CSS Variables for Consistent Design System */
:root {
    /* Color Palette - Matching actual book design */
    --primary-green: #1a2f14;
    --accent-green: #2d4524;
    --light-green: #4a5c42;
    --gold-accent: #c9a961;
    --dark-bg: #1a1a1a;
    --medium-bg: #2a2a2a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-medium: #666666;
    --text-light: #999999;
    --border-light: #e5e5e5;
    
    /* Typography */
    --font-primary: 'Garamond', 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Typography Scale - Refined Hierarchy System */
    --font-size-xl: clamp(2.625rem, 3.8vw, 3rem);        /* 42-48px, hero H1 */
    --font-size-lg: clamp(1.8125rem, 2.5vw, 2.0625rem);  /* 29-33px, section H2 (+3pt) */
    --font-size-cta: 2.25rem;                            /* 36px, main CTA prominence (+4px) */
    --font-size-md: clamp(1.1875rem, 1.9vw, 1.3125rem); /* 19-21px, H3, tile titles (-1pt) */
    --font-size-base: 1.125rem;                          /* 18px, hero body, lead lines */
    --font-size-sm: 1rem;                               /* 16px, standard body */
    --font-size-xs: 0.875rem;                           /* 14px, disclaimers, footer legal */
    
    /* Line Height Tokens */
    --line-tight: 1.25;                             /* headings */
    --line-normal: 1.6;                             /* body text */
    --line-loose: 1.7;                              /* long copy, bullet lists */
    
    /* Spacing System - Based on 8px grid */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    
    /* Layout */
    --max-width: 1200px;
    --section-padding: 4rem 0;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-normal);
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

/* Professional Typography System */
p { 
    font-size: var(--font-size-sm); 
    line-height: var(--line-normal); 
}

h1 { 
    font-size: var(--font-size-xl); 
    line-height: var(--line-tight);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

h2, .section-title { 
    font-size: var(--font-size-lg); 
    line-height: var(--line-tight);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

h3 { 
    font-size: var(--font-size-md); 
    line-height: var(--line-tight);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

/* Component-Specific Typography */
.lead, .hero-description { 
    font-size: var(--font-size-base); 
    line-height: var(--line-loose); 
}

.hero-subtitle { 
    font-size: var(--font-size-md); 
    line-height: var(--line-tight); 
}

.feature h3, .contents-box h3 { 
    font-size: var(--font-size-md); 
}

.feature p, .contents-box p { 
    font-size: var(--font-size-sm); 
    line-height: var(--line-normal); 
}

.audience-intro { 
    font-size: var(--font-size-base); 
}

.audience-statement p { 
    font-size: var(--font-size-sm); 
    line-height: var(--line-loose); 
}

.purchase-content h2 { 
    font-size: var(--font-size-cta); 
    line-height: var(--line-tight); 
}

.purchase-content p { 
    font-size: var(--font-size-md); 
}

.purchase-info p { 
    font-size: var(--font-size-sm); 
}

.author-content p strong { 
    font-size: var(--font-size-base); 
    font-weight: 700; 
}

.author-content p { 
    font-size: var(--font-size-sm); 
    line-height: var(--line-normal); 
}

.footer-title h3 { 
    font-size: var(--font-size-lg); 
}

.footer-title p { 
    font-size: var(--font-size-base); 
}

.footer-details p { 
    font-size: var(--font-size-xs); 
    line-height: 1.5; 
}

.footer-details p strong { 
    font-weight: 700; 
}

h1 {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

h2 {
    font-size: var(--font-size-lg);
}

h3 {
    font-size: var(--font-size-md);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--text-medium);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.lead {
    font-size: var(--font-size-md);
    font-weight: 500;
    color: var(--text-dark);
}

/* Layout Components */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-title {
    font-size: var(--font-size-lg);
    color: var(--primary-green);
    margin-bottom: var(--space-sm);
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--gold-accent));
    margin: 0 auto;
    border-radius: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    font-family: var(--font-mono);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-link.cta-link {
    background: var(--primary-green);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.nav-link.cta-link:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    font-size: var(--font-size-md);
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--light-bg) 0%, rgba(107, 144, 128, 0.1) 100%);
    position: relative;
    padding-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/background-pattern.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
    animation: subtleFloat 20s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.01);
    }
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
    min-height: 80vh;
}

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

.hero-title {
    color: var(--primary-green);
    margin-bottom: var(--space-md);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 0.9;
}

.hero-title .title-line {
    display: block;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-title .title-line:nth-child(1) {
    font-size: clamp(3.2rem, 5vw, 4rem);
}

.hero-title .title-line:nth-child(2) {
    font-size: clamp(3rem, 4.8vw, 3.8rem);
    margin-top: -0.1em;
}

.hero-title .title-line:nth-child(3) {
    font-size: clamp(2.8rem, 4.6vw, 3.6rem);
    margin-top: -0.1em;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--gold-accent));
    border-radius: 2px;
}

.hero-subtitle {
    font-size: clamp(1.4rem, 2.2vw, 1.6rem);
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: var(--space-lg);
    line-height: 1.3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-subtitle .subtitle-line {
    display: block;
    margin-bottom: 0.2em;
}

.hero-description {
    font-size: clamp(1.2rem, 1.8vw, 1.4rem);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    color: var(--text-medium);
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
}

.hero-pain-points {
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(26, 47, 20, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--gold-accent);
}

.hero-pain-points p {
    font-size: var(--font-size-base);
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    font-weight: 500;
    line-height: 1.6;
}

.hero-pain-points p:last-child {
    margin-bottom: 0;
}

.hero-solution {
    font-size: var(--font-size-base);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    color: var(--text-dark);
    font-weight: 600;
    font-style: italic;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}



/* Book Flip Animation Styles */
.book-flip-container {
    perspective: 1000px;
    max-width: 500px;
    width: 100%;
    cursor: pointer;
    position: relative;
    z-index: 4;
    display: block;
}

.book-flipper {
    position: relative;
    width: 100%;
    transition: transform 0.8s ease-in-out;
    transform-style: preserve-3d;
}

.hero-image:hover .book-flipper {
    transform: rotateY(180deg) translateY(-15px) scale(1.05);
}

.book-front, .book-back {
    width: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.book-front {
    position: relative;
    z-index: 2;
}

.book-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    z-index: 1;
}

.book-cover {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    transition: all 0.8s ease-in-out;
    position: relative;
    z-index: 4;
    display: block;
}

.hero-image:hover .book-cover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: scrollingGlow 3s ease-in-out infinite;
}

@keyframes scrollingGlow {
    0%, 100% {
        filter: brightness(1) contrast(1);
    }
    25% {
        filter: brightness(1.1) contrast(1.1);
    }
    50% {
        filter: brightness(1.2) contrast(1.2);
    }
    75% {
        filter: brightness(1.1) contrast(1.1);
    }
}

.book-shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 30px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.2), transparent);
    border-radius: 50%;
    z-index: 1;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 400;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    white-space: nowrap;
    min-width: auto;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(to bottom, #F7DFA5, #F0C14B);  /* Amazon yellow gradient */
    border: 1px solid #A88734;
    color: #111;
    font-weight: 400;
    font-family: var(--font-primary);
    border-radius: 3px;
    text-shadow: 0 1px 0 rgba(255,255,255,.6);
    box-shadow: 0 1px 0 rgba(255,255,255,.4) inset;
}





.btn-primary:hover {
    background: linear-gradient(to bottom, #F5D78E, #EDB933);
    transform: none;
    box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 1px 1px rgba(0,0,0,.15);
}

.btn-buy-now {
    display: inline-block;
    background: linear-gradient(135deg, #FF9900 0%, #E6800A 100%);
    color: #333333;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    min-width: 180px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    border: 1px solid #CC7A00;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #E6800A 0%, #CC7A00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    color: #333333;
    text-decoration: none;
}

.btn-buy-now:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-large {
    padding: 16px 32px;
    font-size: var(--font-size-sm);
    min-width: 200px;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

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

.btn-large {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-sm);
    min-width: auto;
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xxl);
    text-align: center;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: var(--space-xxl);
}

.about-intro {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    line-height: 1.6;
}

.about-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-emphasis {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.6;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    width: 100%;
    max-width: 1000px;
}

.feature {
    text-align: center;
    padding: var(--space-lg);
    background: var(--light-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: var(--space-sm);
}

.feature h3 {
    color: var(--primary-green);
    margin-bottom: var(--space-sm);
    font-size: clamp(1.125rem, 2.2vw, 1.25rem);
    font-weight: 600;
}

.feature p {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Author Info within About Section */
.author-info {
    margin-top: var(--space-xxl);
    padding-top: var(--space-xl);
    border-top: 2px solid var(--border-light);
}

.author-info h3 {
    color: var(--primary-green);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-md);
}

.author-info h4 {
    color: var(--accent-green);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-xs);
}

.author-info .author-title {
    color: var(--gold-accent);
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.author-info p {
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    color: var(--text-medium);
}

.author-info strong {
    color: var(--primary-green);
}

/* Problem List in About Section */
.problem-list {
    background: rgba(201, 169, 97, 0.08);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    margin: var(--space-lg) 0;
    border-left: 4px solid var(--gold-accent);
}

.problem-list p {
    font-size: var(--font-size-base);
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    font-weight: 500;
    line-height: 1.6;
}

.problem-list p:last-child {
    margin-bottom: 0;
}

/* Audience Section */
.audience-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, rgba(107, 144, 128, 0.05) 100%);
    position: relative;
}

.audience-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/background-pattern.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.audience-intro {
    text-align: center;
    font-size: var(--font-size-md);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--space-xl);
}

.audience-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.audience-statement {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border-left: 3px solid var(--gold-accent);
    transition: var(--transition-fast);
}

.audience-statement:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(8px);
}

.statement-marker {
    color: var(--gold-accent);
    font-size: var(--font-size-md);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.audience-statement p {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
}

/* Contents Section */
.contents-section {
    background: var(--white);
}

.contents-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.contents-box {
    position: relative;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 320px;
    transition: var(--transition);
    border: 2px solid var(--border-light);
}

.contents-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--gold-accent);
}

.box-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/background-pattern.jpg');
    background-size: 110%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: 1;
    transition: var(--transition);
}

.contents-box:hover .box-background {
    background-size: 115%;
    opacity: 0.12;
}

.box-content {
    position: relative;
    z-index: 2;
    padding: var(--space-xl);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contents-box h3 {
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-md);
    font-weight: 700;
}

.contents-box h3 i {
    color: var(--gold-accent);
    font-size: var(--font-size-md);
}

.contents-box p {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.contents-box p:first-of-type {
    font-weight: 600;
    color: var(--accent-green);
    font-size: var(--font-size-base);
}

.contents-box strong {
    color: var(--primary-green);
    font-weight: 600;
}

.framework-tags {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: var(--space-md);
}

.tag {
    background: rgba(26, 47, 20, 0.1);
    color: var(--gold-accent);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 15px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border: 1px solid rgba(201, 169, 97, 0.3);
    backdrop-filter: blur(5px);
}



/* Purchase Section */
.purchase-section {
    background: var(--dark-bg);
    color: var(--white);
    text-align: center;
}

.purchase-content h2 {
    font-size: var(--font-size-cta);
    color: var(--white);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.purchase-content p {
    font-size: var(--font-size-md);
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

.purchase-info {
    margin-top: var(--space-lg);
}

.purchase-info p {
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.format-options {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

.format-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-light);
    font-size: var(--font-size-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    font-weight: 400;
}

.format-item i {
    color: var(--gold-accent);
    font-size: var(--font-size-md);
}

/* Copyright Section */
.copyright-section {
    background: var(--light-bg);
    border-top: 1px solid var(--border-light);
    position: relative;
}

.copyright-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/background-pattern.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

.copyright-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.publication-details h3,
.trademark-info h3 {
    color: var(--primary-green);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-md);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

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

.author-profile {
    margin-bottom: var(--space-xxl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-light);
}

.author-profile h3 {
    color: var(--primary-green);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-md);
}

.author-profile p {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-secondary);
}

.isbn-details {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: var(--space-lg);
    line-height: 1.4;
}

.isbn-line {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

/* Structural Quote Section */
.structural-quote-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    padding: var(--space-xxl) 0;
    margin: var(--space-xxl) 0;
}

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

.structural-quote blockquote {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.5;
    color: var(--white);
    font-weight: 500;
    font-style: italic;
    margin: 0;
    padding: 0;
    position: relative;
}

.structural-quote blockquote::before {
    content: '"';
    font-size: 3em;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: -0.2em;
    left: -0.3em;
    font-family: var(--font-primary);
}

.structural-quote blockquote::after {
    content: '"';
    font-size: 3em;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    bottom: -0.4em;
    right: -0.3em;
    font-family: var(--font-primary);
}

.audience-closing {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Author Section */
.author-section {
    background: var(--white);
}

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

.author-content p {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

/* Footer Section */
.footer-section {
    background: var(--primary-green);
    color: var(--white);
    padding: var(--space-xxl) 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-title h3 {
    color: var(--white);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-xs);
}

.footer-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-xl);
}

.footer-details p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.footer-details strong {
    color: var(--white);
}

.edition-availability {
    text-align: center;
    margin: var(--space-sm) 0;
}

.edition-availability p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.premium-quality-center {
    display: flex;
    justify-content: center;
    margin: var(--space-md) 0;
}

.format-item-center {
    margin: 0 auto;
}

.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.pub-item {
    text-align: center;
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.pub-item strong {
    color: var(--primary-green);
    font-size: var(--font-size-sm);
    display: block;
    margin-bottom: var(--space-xs);
}

.pub-item p {
    font-size: var(--font-size-xs);
    line-height: 1.4;
    margin: 0;
}

.trademark-info p {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.trademark-info strong {
    color: var(--primary-green);
}





/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: var(--space-xl) 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/background-pattern.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

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

.footer-left {
    margin-bottom: var(--space-lg);
}

.footer-left h3 {
    color: var(--gold-accent);
    margin-bottom: var(--space-xs);
    font-family: var(--font-mono);
    font-size: var(--font-size-md);
}

.footer-left p {
    color: var(--text-light);
    margin: 0;
    font-size: var(--font-size-base);
}

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

.footer-right p {
    margin-bottom: var(--space-xs);
    line-height: 1.6;
}

.footer-right p:last-of-type:not(.contact-footer) {
    margin-bottom: 0;
}

.footer-right p {
    color: var(--text-light);
    margin: 0;
    font-size: var(--font-size-sm);
}

.footer-right a {
    color: var(--gold-accent);
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

.contact-footer {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(201, 169, 97, 0.3);
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

.contact-footer a {
    color: var(--gold-accent);
    text-decoration: none;
    font-weight: 500;
}

.contact-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        gap: var(--space-xl);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-features {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .feature {
        flex: 1;
        min-width: 250px;
    }
    
    .contents-grid-2x2 {
        gap: var(--space-lg);
    }
    
    .contents-box {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-container {
        padding: 0 var(--space-md);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: var(--box-shadow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .author-info {
        margin-top: var(--space-xl);
        padding-top: var(--space-lg);
    }
    
    .author-info h3 {
        font-size: var(--font-size-md);
    }
    
    .author-info h4 {
        font-size: var(--font-size-md);
    }
    
    .hero-pain-points {
        padding: var(--space-md);
    }
    
    .problem-list {
        padding: var(--space-md);
        margin: var(--space-md) 0;
    }
    
    .audience-statement {
        padding: var(--space-md);
        gap: var(--space-sm);
    }
    
    .audience-statement p {
        font-size: var(--font-size-base);
    }
    
    .statement-marker {
        font-size: var(--font-size-md);
    }
    
    .contents-grid-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: var(--space-lg);
    }
    
    .contents-box {
        min-height: 280px;
    }
    
    .box-content {
        padding: var(--space-lg);
    }
    
    .contents-box h3 {
        font-size: var(--font-size-md);
    }
    
    .contents-box h3 i {
        font-size: var(--font-size-md);
    }
    
    .framework-tags {
        justify-content: flex-start;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-left {
        margin-bottom: var(--space-md);
    }
    
    .footer-right {
        text-align: center;
    }
    
    .copyright-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .pub-grid {
        grid-template-columns: 1fr;
    }
    
    /* Hero title mobile optimization */
    .hero-title {
        margin-bottom: var(--space-lg);
    }
    
    .hero-title .title-line:nth-child(1) {
        font-size: clamp(2.8rem, 7vw, 3.2rem);
    }
    
    .hero-title .title-line:nth-child(2) {
        font-size: clamp(2.6rem, 6.8vw, 3rem);
    }
    
    .hero-title .title-line:nth-child(3) {
        font-size: clamp(2.4rem, 6.6vw, 2.8rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.2rem, 3vw, 1.4rem);
    }
    
    .hero-description {
        font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    }

}

@media (max-width: 480px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 2rem;
        --space-xxl: 2.5rem;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .nav-container {
        padding: 0 var(--space-sm);
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 var(--space-xxl);
    }
    
    .book-flip-container {
        max-width: 320px;
    }
    
    .hero-image:hover .book-flipper {
        transform: rotateY(180deg) translateY(-10px) scale(1.03);
    }
    
    .hero-image {
        /* No additional padding needed for mobile */
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .nav-toggle,
    .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding-top: 0;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .btn {
        display: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero::before {
        animation: none !important;
    }
}

/* Focus Styles for Keyboard Navigation */
.nav-link:focus,
.btn:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #1a3d0a;
        --accent-green: #2d5016;
        --text-medium: #333333;
        --border-light: #cccccc;
    }
}

/* ========================================
   Field Manual Teaser Section (Secondary)
   ======================================== */

.field-manual-teaser {
    background: var(--light-bg);
    padding: 4.5rem 0; /* 72px desktop */
    position: relative;
}

.field-manual-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2.5rem; /* 40px */
    align-items: start;
}

.field-manual-image-card {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 420px;
}

.field-manual-cover-secondary {
    width: 100%;
    max-width: min(100%, 420px);
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.field-manual-cover-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.field-manual-copy {
    max-width: 600px;
}

.field-manual-title-secondary {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 2.5vw, 2.25rem); /* 28-36px */
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.1;
    margin: 0 0 0.75rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF9900 0%, #E6800A 100%);
    color: #333333;
    font-size: 0.625rem; /* 10px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #CC7A00;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: var(--font-mono);
    white-space: nowrap;
    margin-top: 0.125rem;
}

.field-manual-hook-secondary {
    font-family: var(--font-primary);
    font-size: 1.125rem; /* 18px */
    color: var(--text-dark);
    line-height: 1.35;
    margin: 0.75rem 0 0.75rem 0;
}

.field-manual-description-secondary {
    font-family: var(--font-primary);
    font-size: 1.0625rem; /* 17px */
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0.75rem 0 0.625rem 0;
}

.field-manual-toggle-secondary {
    background: none;
    border: none;
    color: var(--accent-green);
    font-family: var(--font-primary);
    font-size: 1rem; /* 16px */
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin: 0.625rem 0 0 0;
    transition: color 0.2s ease;
}

.field-manual-toggle-secondary:hover {
    color: var(--primary-green);
    text-decoration: none;
}

.field-manual-toggle-secondary:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

.field-manual-blurb-panel-secondary {
    margin-top: 0.75rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.field-manual-blurb-secondary {
    font-family: var(--font-primary);
    font-size: 1.0625rem; /* 17px */
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding-top: 0.75rem;
}

.field-manual-positioning-secondary {
    font-family: var(--font-primary);
    font-size: 0.875rem; /* 14px */
    color: rgba(26, 26, 26, 0.7); /* 70% foreground color */
    line-height: 1.4;
    margin: 0.75rem 0 0 0;
    font-style: italic;
}



/* Cross-reference Links */
.hero-field-manual-link,
.purchase-field-manual-link {
    margin-top: 1rem;
    text-align: center;
}

.field-manual-cross-link {
    color: var(--accent-green);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.field-manual-cross-link:hover {
    color: var(--primary-green);
    text-decoration: none;
}

/* Secondary Button Style */
.btn-secondary {
    background: var(--light-green);
    color: var(--white);
    border: 2px solid var(--light-green);
}

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

/* Responsive Design for Field Manual Teaser */
@media (max-width: 1024px) {
    .field-manual-layout {
        grid-template-columns: 340px 1fr;
        gap: 2rem;
    }
    
    .field-manual-image-card {
        max-width: 340px;
    }
    
    .field-manual-title-secondary {
        font-size: clamp(1.625rem, 2.5vw, 1.875rem); /* 26-30px */
    }
}

@media (max-width: 768px) {
    .field-manual-teaser {
        padding: 3.5rem 0; /* 56px mobile */
    }
    
    .field-manual-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .field-manual-image-card {
        order: 1;
        max-width: min(280px, 70vw);
        margin: 0 auto;
    }
    
    .field-manual-copy {
        order: 2;
        max-width: 100%;
    }
    
    .field-manual-title-secondary {
        font-size: clamp(1.5rem, 4vw, 1.75rem); /* 24-28px mobile */
        justify-content: center;
        gap: 0.5rem;
    }
    
    .coming-soon-badge {
        font-size: 0.5rem; /* 8px on mobile */
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .field-manual-teaser {
        padding: 3rem 0;
    }
    
    .field-manual-layout {
        gap: 1.25rem;
    }
    
    .field-manual-image-card {
        max-width: min(240px, 65vw);
    }
}