/* ==========================================================================
   5R Knives — shared stylesheet
   Consolidated from the per-page <style> blocks of index, gallery,
   available and biography. Declarations are unchanged from the originals.
   The three rules that differed between pages (body line-height,
   .page-header padding, footer border-top) are scoped with a <body> class
   so every page renders exactly as it did before.
   ========================================================================== */

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

:root {
    --primary-brown: #8B4513;
    --dark-brown: #5D2F0B;
    --leather: #964B00;
    --cream: #FAF0E6;
    --gold: #DAA520;
    --charcoal: #2C2C2C;
    --white: #FFFFFF;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--white);
}

/* Biography uses a slightly taller line-height for long-form reading */
body.biography {
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Navigation (shared across all pages)
   -------------------------------------------------------------------------- */
nav {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--dark-brown);
    text-decoration: none;
    letter-spacing: 3px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: var(--charcoal);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--leather);
}

.nav-links a.active {
    color: var(--leather);
}

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

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

/* ==========================================================================
   HOME (index.html)
   ========================================================================== */

/* Hero Section with Carousel */
.hero {
    padding-top: 100px;
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--white), rgba(250, 240, 230, 0.3));
    position: relative;
}

.carousel-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: var(--charcoal);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), var(--leather);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-placeholder {
    color: var(--white);
    font-size: 2rem;
    text-align: center;
    padding: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: var(--gold);
    width: 30px;
    border-radius: 6px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--dark-brown);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-tagline {
    font-size: 1.4rem;
    color: var(--leather);
    margin-bottom: 30px;
    font-style: italic;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--charcoal);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    padding: 18px 45px;
    font-size: 1.2rem;
    background: var(--leather);
    color: var(--white);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.hero-cta:hover {
    background: var(--dark-brown);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

/* Section Styles */
.section {
    padding: 100px 30px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--dark-brown);
    margin-bottom: 20px;
}

.section-header .subtitle {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* The Unique System Section */
.unique-system {
    background: var(--white);
}

.system-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.system-text h3 {
    font-size: 2rem;
    color: var(--leather);
    margin-bottom: 20px;
}

.system-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.system-features {
    list-style: none;
    margin-top: 30px;
}

.system-features li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.system-features li::before {
    content: '✓';
    color: var(--gold);
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 15px;
}

.system-image {
    background: linear-gradient(135deg, var(--leather), var(--primary-brown));
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Handcrafted Excellence Section */
.handcrafted {
    background: var(--cream);
}

.craftsmanship-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.craft-card {
    text-align: center;
    padding: 0 30px 40px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.craft-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* The image fills the whole top of the card, edge to edge. The gold backdrop
   only shows while a slot still holds its emoji placeholder. */
.craft-icon {
    height: 220px;
    margin: 0 -30px 25px;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}

.craft-card h3 {
    font-size: 1.6rem;
    color: var(--dark-brown);
    margin-bottom: 15px;
}

/* Materials Section */
.materials {
    background: var(--white);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.material-card {
    background: var(--cream);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.material-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.material-image {
    height: 200px;
    background: linear-gradient(135deg, var(--leather), var(--primary-brown));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.material-info {
    padding: 20px;
}

.material-info h4 {
    font-size: 1.3rem;
    color: var(--dark-brown);
    margin-bottom: 10px;
}

/* Process Section */
.process {
    background: linear-gradient(to bottom, var(--charcoal), #1a1a1a);
    color: var(--white);
}

.process .section-header h2 {
    color: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.process-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(218, 165, 32, 0.3);
    transition: all 0.3s ease;
}

.process-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--gold);
    color: var(--charcoal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

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

.tom-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-top: 60px;
    align-items: start;
}

.tom-image {
    height: 400px;
    background: linear-gradient(135deg, var(--leather), var(--dark-brown));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: sticky;
    top: 120px;
    overflow: hidden;
}

.tom-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tom-story h3 {
    font-size: 2rem;
    color: var(--dark-brown);
    margin-bottom: 25px;
}

.tom-story p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.tom-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--leather);
    padding: 25px;
    border-left: 4px solid var(--gold);
    margin: 30px 0;
    background: rgba(250, 240, 230, 0.5);
}

.values-list {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding: 30px;
    background: var(--cream);
    border-radius: 10px;
}

.value-item {
    text-align: center;
    flex: 1;
}

.value-item h4 {
    color: var(--dark-brown);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Contact Section (home) */
.contact {
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-card h3 {
    font-size: 1.8rem;
    color: var(--dark-brown);
    margin-bottom: 20px;
}

.contact-card p {
    font-size: 1.1rem;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.contact-card a {
    color: var(--leather);
    text-decoration: none;
    font-weight: bold;
}

.contact .international-disclaimer,
.contact-section .international-disclaimer {
    max-width: 800px;
    margin: 50px auto 0;
    padding: 20px 30px;
    background: var(--white);
    border-left: 4px solid var(--gold);
    border-radius: 5px;
    font-size: 1.05rem;
    color: var(--charcoal);
    text-align: center;
}

/* ==========================================================================
   SHARED PAGE HEADER (gallery, available, biography)
   ========================================================================== */
.page-header {
    padding: 150px 30px 80px;
    background: linear-gradient(to bottom, var(--white), var(--cream));
    text-align: center;
}

/* Gallery uses a slightly shorter header */
body.gallery .page-header {
    padding: 150px 30px 60px;
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--dark-brown);
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.3rem;
    color: var(--leather);
    max-width: 800px;
    margin: 0 auto;
}

.page-header .subtitle {
    font-size: 1.5rem;
    color: var(--leather);
    font-style: italic;
}

/* ==========================================================================
   GALLERY (gallery.html)
   ========================================================================== */

/* Filter Section */
.filter-section {
    background: var(--white);
    padding: 40px 30px;
    border-bottom: 2px solid var(--cream);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-header h3 {
    font-size: 1.5rem;
    color: var(--dark-brown);
}

.results-count {
    color: var(--leather);
    font-size: 1.1rem;
}

.filter-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-label {
    font-weight: bold;
    color: var(--charcoal);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid var(--cream);
    background: var(--white);
    color: var(--charcoal);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.filter-select:hover {
    border-color: var(--leather);
}

.filter-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--cream);
    background: var(--white);
    color: var(--charcoal);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--cream);
    border-color: var(--leather);
}

.filter-btn.active {
    background: var(--leather);
    color: var(--white);
    border-color: var(--leather);
}

.clear-filters {
    padding: 10px 25px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background: var(--gold);
    color: var(--white);
}

/* Gallery Grid */
.gallery-section {
    padding: 60px 30px;
    background: var(--white);
    min-height: 500px;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: var(--cream);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-image {
    height: 250px;
    background: linear-gradient(135deg, var(--leather), var(--primary-brown));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    position: relative;
}

.gallery-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--dark-brown);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
}

.gallery-info {
    padding: 20px;
}

.gallery-knife-name {
    font-size: 1.3rem;
    color: var(--dark-brown);
    margin-bottom: 8px;
}

.gallery-material {
    color: var(--leather);
    font-size: 1rem;
    margin-bottom: 5px;
}

.gallery-year {
    color: var(--charcoal);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Modal for larger view */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    z-index: 2001;
    background: var(--leather);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--leather), var(--primary-brown));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.modal-details {
    padding: 30px;
    background: var(--white);
}

/* Load More Button */
.load-more {
    text-align: center;
    padding: 40px;
}

.load-more-btn {
    padding: 15px 40px;
    background: var(--leather);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 30px;
}

.no-results h3 {
    font-size: 2rem;
    color: var(--dark-brown);
    margin-bottom: 20px;
}

.no-results p {
    font-size: 1.2rem;
    color: var(--charcoal);
}

/* ==========================================================================
   NOW AVAILABLE (available.html)
   ========================================================================== */

/* Availability Notice */
.availability-notice {
    background: var(--gold);
    color: var(--dark-brown);
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Available Knives Section */
.available-knives {
    padding: 80px 30px;
    background: var(--white);
}

.knives-container {
    max-width: 1400px;
    margin: 0 auto;
}

.knives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 50px;
}

/* Individual Knife Card */
.knife-card {
    background: var(--cream);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.knife-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.knife-images {
    position: relative;
    height: 350px;
    background: linear-gradient(45deg, var(--leather), var(--primary-brown));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.knife-status {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 20px;
    background: var(--gold);
    color: var(--dark-brown);
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.knife-status.sold {
    background: #999;
    color: var(--white);
}

.knife-details {
    padding: 35px;
}

.knife-number {
    font-size: 1rem;
    color: var(--leather);
    font-weight: bold;
    margin-bottom: 10px;
}

.knife-name {
    font-size: 2rem;
    color: var(--dark-brown);
    margin-bottom: 15px;
}

.knife-price {
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 25px;
}

.knife-specs {
    border-top: 1px solid rgba(139, 69, 19, 0.2);
    padding-top: 20px;
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.spec-label {
    font-weight: bold;
    color: var(--leather);
}

.spec-value {
    color: var(--charcoal);
}

.knife-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 30px;
}

.knife-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
    text-align: center;
    flex: 1;
}

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

.btn-purchase:hover {
    background: var(--dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.btn-details {
    background: transparent;
    color: var(--leather);
    border: 2px solid var(--leather);
}

.btn-details:hover {
    background: var(--leather);
    color: var(--white);
}

.btn:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

/* Sold Out Overlay */
.sold-overlay {
    position: relative;
}

.sold-overlay::after {
    content: 'SOLD';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 4rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(139, 69, 19, 0.8);
    padding: 10px 40px;
    border: 5px solid var(--gold);
}

/* Contact Section (available) */
.contact-section {
    padding: 80px 30px;
    background: var(--cream);
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.contact-method {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-method h3 {
    color: var(--leather);
    margin-bottom: 10px;
}

/* ==========================================================================
   BIOGRAPHY (biography.html)
   ========================================================================== */

/* Biography Content */
.bio-section {
    padding: 80px 30px;
    background: var(--white);
}

.bio-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.tom-portrait {
    position: sticky;
    top: 120px;
}

.portrait-frame {
    background: linear-gradient(135deg, var(--leather), var(--dark-brown));
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.portrait-image {
    height: 400px;
    background: var(--white);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.portrait-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portrait-caption {
    text-align: center;
    margin-top: 25px;
    padding: 20px;
    background: var(--cream);
    border-radius: 10px;
}

.portrait-caption h3 {
    color: var(--dark-brown);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.portrait-caption p {
    color: var(--leather);
    font-style: italic;
}

.bio-story {
    font-size: 1.15rem;
}

.chapter {
    margin-bottom: 50px;
}

.chapter-title {
    font-size: 2.2rem;
    color: var(--dark-brown);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--gold);
}

.chapter p {
    margin-bottom: 20px;
    text-align: justify;
}

.highlight-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--leather);
    padding: 30px;
    margin: 40px 0;
    border-left: 5px solid var(--gold);
    background: linear-gradient(to right, rgba(250, 240, 230, 0.5), transparent);
}

/* Journey Timeline */
.journey-section {
    padding: 80px 30px;
    background: var(--cream);
}

.journey-container {
    max-width: 1200px;
    margin: 0 auto;
}

.journey-header {
    text-align: center;
    margin-bottom: 60px;
}

.journey-header h2 {
    font-size: 3rem;
    color: var(--dark-brown);
    margin-bottom: 20px;
}

.timeline {
    position: relative;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--gold);
    z-index: 0;
    top: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.timeline-image {
    width: 45%;
    height: 250px;
    position: relative;
    z-index: 1;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--leather), var(--primary-brown));
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.timeline-item:hover .image-placeholder {
    transform: scale(1.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
}

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

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 3;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Add connecting dots on the timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--gold);
    border: 4px solid var(--white);
    border-radius: 50%;
    z-index: 2;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.timeline-content h3 {
    font-size: 1.8rem;
    color: var(--dark-brown);
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--charcoal);
}

/* Philosophy Section */
.philosophy-section {
    padding: 80px 30px;
    background: linear-gradient(to bottom, var(--charcoal), #1a1a1a);
    color: var(--white);
}

.philosophy-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-header h2 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 40px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.value-card {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(218, 165, 32, 0.3);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.value-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--cream);
    font-size: 1rem;
}

.closing-statement {
    font-size: 2rem;
    color: var(--gold);
    margin-top: 60px;
    font-style: italic;
}

/* ==========================================================================
   FOOTER (shared across all pages)
   ========================================================================== */
footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 50px 30px;
    text-align: center;
}

/* Biography adds a gold rule above the footer */
body.biography footer {
    border-top: 3px solid var(--gold);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--cream);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

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

.copyright {
    font-size: 1rem;
    color: var(--cream);
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(218, 165, 32, 0.3);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Biography — tablet */
@media (max-width: 968px) {
    .bio-container {
        grid-template-columns: 1fr;
    }

    .tom-portrait {
        position: static;
        margin-bottom: 40px;
    }

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

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 20px;
        padding-left: 60px;
    }

    .timeline-content,
    .timeline-image {
        width: 100%;
    }

    .timeline-image {
        height: 200px;
    }

    /* Stack the year above the card so a wide range ("2006-2009") cannot
       run off the left edge or overlap the text bubble. */
    .timeline-year {
        position: static;
        order: -1;
        transform: none;
        align-self: flex-start;
        margin-bottom: 4px;
    }

    .timeline-item::before {
        left: 30px;
        top: 22px;
    }

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

/* Mobile (all pages) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Let the footer nav wrap instead of pushing the end links off screen */
    .footer-links {
        flex-wrap: wrap;
        gap: 16px 24px;
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .craftsmanship-grid,
    .materials-grid,
    .process-steps,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .tom-image {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

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

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }

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