/* ============================================
   TURKEY CREEK - UNIFIED STYLES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@400;700;900&family=Rye&display=swap');

/* 1. RESET & GLOBAL BOX MODEL */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* 2. BODY & BACKGROUND */
body {
    font-family: 'Crimson Text', serif;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #31180E;
    background-color: #FAF7E0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
    text-align: center;
}

/* 3. VARIABLES */
:root {
    --color-dark-brown: #31180E;
    --color-gold: #E3BB67;
    --color-parchment: #FAF7E0;
    --color-bg: #FAF7E0;
    --color-white: #ffffff;
    --color-text: #31180E;
    --color-text-light: #555;

    --font-heading: 'Rye', serif;
    --font-subheading: 'Lato', sans-serif;
    --font-body: 'Crimson Text', serif;

    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;

    --radius-sm: 4px;
    --radius-md: 8px;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* 3. TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6,
.subhead {
    text-align: center;
}

h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 3.5rem;
    color: var(--color-gold);
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #000;
    margin-bottom: 1rem;
    line-height: 1.1;
}

h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 2.5rem;
    color: var(--color-dark-brown);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h3 {
    font-family: var(--font-subheading);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.25rem;
    color: var(--color-dark-brown);
    letter-spacing: 1px;
    margin-bottom: 0.1rem !important;
    line-height: 1.3 !important;
}

p {
    text-align: center;
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.subhead {
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fdfdf5;
    margin-bottom: 2rem;
    display: block;
}

/* 4. LINKS & IMAGES */
a {
    text-decoration: none !important;
    color: inherit;
    transition: opacity 0.2s;
}

a:not(.btn) {
    border-bottom: none !important;
}

img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* 5. HEADER */
.header {
    width: 100%;
    z-index: 1000;
}

.header-branding {
    background-color: var(--color-parchment);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
    padding: 1rem 0;
    width: 100%;
}

.logo-main {
    height: 100px;
    width: auto;
}

/* HEADER PHONE WIDGET */
.header-phone {
    position: absolute;
    right: 1.5rem;
    bottom: 5px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.phone-label {
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--color-dark-brown);
    line-height: 1.2;
}

.phone-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #B6924A;
    line-height: 1;
    white-space: nowrap;
}

.phone-number:hover {
    opacity: 0.8;
}

.header-nav {
    background-color: var(--color-dark-brown);
    border-top: 4px solid #5e3b25;
    border-bottom: 2px solid #000;
    height: 60px;
    width: 100%;
    z-index: 999;
    position: sticky;
    top: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;

    align-items: center;
    height: 100%;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #decba4;
}

.nav-link:hover,
.nav-link.active {
    color: #fdfdf5;
}

.nav-link.btn-nav {
    background-color: #7B3018;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 2px;
}

.mobile-menu-toggle {
    display: none;
    color: var(--color-gold);
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* 6. HERO */
.hero {
    position: relative;
    height: 75vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-parchment);
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.page-hero {
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@keyframes videoFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.8;
    }
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: videoFadeIn 1s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(49, 24, 14, 0.4), rgba(0, 0, 0, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 90%;
    color: #fff;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 7. LAYOUT & SPACING */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3rem 0;
}

/* Section Variants */
.section-dark {
    background-color: var(--color-dark-brown);
    color: var(--color-parchment);
}

.section-light {
    background-color: rgba(255, 255, 255, 0.5);
}

.section-dark h2 {
    color: var(--color-gold);
}

.section-bg-light {
    background-color: rgba(255, 255, 255, 0.4);
}

/* 8. DIVIDERS */
.divider {
    width: 100%;
    margin: 1.5rem auto;
    display: flex;

}

.section>.divider:last-child {
    margin-bottom: -3rem;
}

.divider img {
    width: 90%;
    max-width: 900px;
    height: auto;
    max-height: 30px;
    object-fit: contain;
}

/* 9. BUTTONS */
.btn {
    font-family: var(--font-subheading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 2rem;
    cursor: pointer;
    display: inline-flex;

    align-items: center;
    text-align: center;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-dark-brown);
    border: 2px solid var(--color-gold);
}

.btn-primary:hover {
    background-color: #fff;
    color: var(--color-dark-brown);
    border-color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--color-dark-brown);
    border-color: #fff;
}

/* Variant for light backgrounds */
.section:not(.section-dark) .btn-secondary {
    color: var(--color-dark-brown);
    border-color: var(--color-dark-brown);
}

.section:not(.section-dark) .btn-secondary:hover {
    background: var(--color-dark-brown);
    color: #fff;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* 10. GRIDS & CARDS */

/* Product Category Grid (Sand, Gravel, Limestone pages) */
.category-grid {
    display: flex;
    /* Changed from grid to flex for centering */
    flex-wrap: wrap;

    gap: 2rem;
    margin-bottom: 4rem;
}

.category-card {
    background: var(--color-white);
    border: 1px solid #dcdcdc;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 300px;
    max-width: 400px;
}

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

.category-image-link {
    display: block;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.category-title {
    font-family: var(--font-subheading);
    /* Changed from Rye */
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--color-dark-brown);
    margin-bottom: 1rem;
}

.category-description {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.category-list li {
    padding: 0.5rem 0;
    color: #7B3018;
    font-weight: 600;
    border-bottom: 1px solid #f5f5f5;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-actions {
    margin-top: auto;
}

/* Services / Info Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;

    gap: 2rem;
    align-items: stretch;
    justify-content: center;
}

.info-card {
    background: var(--color-white);
    padding: 2rem;
    border: 1px solid #dcdcdc;
    border-radius: var(--radius-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Enforce center alignment */
    justify-content: flex-start;
    box-shadow: var(--shadow-sm);
    height: 100%;
    flex: 1 1 300px;
    /* Default to 3 per row (flexible) */
    max-width: 400px;
}

/* Utility to enforce 2 columns (for Gravel/Sand) */
.grid-2-cols .info-card {
    flex: 0 1 calc(50% - 2rem);
    min-width: 280px;
    max-width: 100%;
}

.info-card h3 {
    text-align: center;
    color: var(--color-dark-brown);
    font-family: var(--font-subheading);
    /* Changed from Rye */
    font-weight: 700;
    /* Bold for Lato */
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.info-card p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    font-size: 1rem;
}

.info-card ul {
    text-align: center;
    list-style: none;
    padding: 0;
    color: var(--color-text-light);
}

.info-card li {
    margin-bottom: 0.1rem !important;
    line-height: 1.3 !important;
}

/* Align buttons to bottom */
.info-card .btn {
    margin-top: auto;
}

/* Icons */
.icon-container {
    width: 60px;
    height: 60px;
    background-color: var(--color-parchment);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 1.5rem auto;
    box-shadow: var(--shadow-md);
}

.icon-container svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-dark-brown);
}

/* Service Area Stack layout */
.service-area-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* 11. FOOTER */
.footer {
    background-color: var(--color-dark-brown);
    color: #999;
    padding: 4rem 0 2rem;
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: left;
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 400;
    margin-bottom: 1rem;
    text-align: left;
}

.footer p,
.footer a {
    text-align: left;
    color: #999;
}

.footer p {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

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


.social-icon {
    width: 36px;
    height: 36px;
    background-color: var(--color-gold);
    color: var(--color-dark-brown);
    border-radius: 50%;
    display: flex;
    align-items: center;

    transition: all 0.2s;
    border: 1px solid transparent;
}

.social-icon:hover {
    background-color: #fff;
    transform: translateY(-2px);
    border-color: var(--color-gold);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--color-dark-brown);
    /* Enforce dark brown fill */
}

/* Footer Copyright Centering Helper */
.footer .text-center {
    text-align: center;
}

/* 13. CALCULATOR STYLES */
.calc-form {
    background: var(--color-white);
    padding: 2.5rem;
    border: 1px solid #dcdcdc;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    margin: 2rem auto;
}

.calc-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.calc-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.calc-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.calc-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-dark-brown);
    margin-bottom: 0.1rem !important;
    line-height: 1.3 !important;
    display: block;
}

.calc-input,
.calc-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #FAFAFA;
    transition: border-color 0.2s;
}

.calc-input:focus,
.calc-select:focus {
    border-color: var(--color-gold);
    outline: none;
    background-color: #fff;
}

.calc-help-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.3rem;
    font-style: italic;
}

.calc-button-container {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

#calc-results {
    background-color: var(--color-parchment);
    border: 2px solid var(--color-gold);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-top: 2rem;
    display: none;
    /* Hidden by default */
}

.calc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.calc-result-item:last-of-type {
    border-bottom: none;
}

.calc-result-label {
    font-family: var(--font-heading);
    color: var(--color-dark-brown);
    font-size: 1.1rem;
}

.calc-result-value {
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 1.25rem;
    color: #7B3018;
}

.calc-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: none;
}

.calc-cta h3 {
    margin-bottom: 1.5rem;
}

.calc-cta-buttons {
    display: flex;

    gap: 1rem;
}

/* 12. RESPONSIVE */
@media (max-width: 900px) {
    .header-phone {
        display: none;
    }

    .service-area-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--color-dark-brown);
        padding: 1rem;
    }
}

/* Team & Other Components */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.team-photo {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 4px solid var(--color-gold);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.team-name {
    font-family: var(--font-subheading);
    /* Changed from Rye */
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-dark-brown);
    margin-bottom: 0.2rem;
}

.team-role {
    font-family: var(--font-subheading);
    font-weight: 700;
    color: #7B3018;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* PRICE TAGS */
.price-tag {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark-brown);
    margin-bottom: 1rem;
}

/* GALLERY STYLES */
.gallery-filter {
    display: flex;

    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

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

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(49, 24, 14, 0.8);
    color: #fff;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-family: var(--font-subheading);
    /* Changed from Rye */
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    text-align: left;
    color: var(--color-gold);
}

.gallery-category {
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    text-transform: uppercase;
    text-align: left;
    color: #ddd;
}

/* RESTORED LAYOUT STYLES due to accidental deletion */

/* Service Cards (Index & Pickup) */
.service-card {
    background: var(--color-white);
    border: 1px solid #dcdcdc;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    /* Ensure 3 fit on a line */
    max-width: 400px;
}

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

.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 4px solid var(--color-gold);
}

.service-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.service-content h3 {
    font-family: var(--font-subheading);
    /* Changed from Rye */
    font-weight: 700;
    color: var(--color-dark-brown);
    margin-bottom: 0.1rem !important;
    line-height: 1.3 !important;
    font-size: 1.4rem;
}

.service-content p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.service-content ul {
    text-align: left;
    margin: 0 auto 1.5rem auto;
    padding-left: 1.5rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
    width: 100%;
    max-width: 250px;
    /* Keep list tidy */
}

/* Icon Grid (Index & About) */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    text-align: center;
    margin-top: 2rem;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-white);
    padding: 2rem;
    border: 1px solid #dcdcdc;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Trust/Local Knowledge Grid (About) */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.trust-text h2 {
    text-align: left;
}

.trust-text p {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.trust-image img {
    width: 100%;
    border-radius: var(--radius-sm);
}

/* Old Timeline Styes Removed - Using Centered Layout Below */

/* Pickup Page - Card Fixes if generic 'card' was used */
/* Standardizing backgrounds */
.bg-light {
    background-color: rgba(255, 255, 255, 0.5);
    /* Same as .section-light */
}

/* RESTORED TIMELINE STYLES (Centered & Alternating) */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 3rem auto;
    padding: 0;
    border-left: none;
    /* Removing the side border */
}

/* Central Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #e0e0e0;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
    width: 50%;
    clear: both;
}

/* Alternating Sides */
.timeline-item:nth-child(odd) {
    float: left;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    float: right;
    padding-left: 3rem;
    text-align: left;
}

/* Clearfix for floating items */
.timeline::after {
    content: '';
    display: table;
    clear: both;
}

/* Timeline Dots */
.timeline-year {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    background: var(--color-gold);
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Dot on the central line */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 15px;
    width: 16px;
    height: 16px;
    background: var(--color-dark-brown);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #ccc;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -8px;
    /* Half width of dot (16/2) centered on line */
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

/* Timeline Content Box */
.timeline-content {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid #dcdcdc;
}

.timeline-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--color-dark-brown);
    font-size: 1.4rem;
}

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

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        float: none;
        padding-left: 60px;
        /* Increased from 50px for spacing */
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
        padding-right: 0;
        padding-left: 60px;
    }

    .timeline-item::after {
        left: 12px;
    }

    .timeline-item:nth-child(odd)::after {
        left: 12px;
        right: auto;
    }
}

/* BREADCRUMBS */
.breadcrumbs {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 3;
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    opacity: 0.6;
}

/* Testimonial Cards */
.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    text-align: left;
    /* Changed alignment to left */
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 1rem;
}

.author-photo {
    width: 60px;
    /* Smaller photo */
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gold);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    /* Kept for potential compatibility, though .testimonial-quote is used in HTML */
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.testimonial-quote {
    font-style: italic;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.author-name {
    /* Targeting the h4 explicitly */
    margin: 0;
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark-brown);
}

.author-title {
    /* Targeting the p explicitly */
    margin: 0;
    font-size: 0.85rem;
    color: #888;
}

/* Removed old .testimonial-author and .testimonial-role as they are replaced by specific header styles */

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

/* Material Navigation (Browse Other Materials) */
.material-nav-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.material-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
    padding: 1.5rem;
    background: var(--color-white);
    border: 1px solid #dcdcdc;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    transition: all 0.2s ease;
    flex: 0 1 300px;
    max-width: 350px;
    min-width: 250px;
}

.material-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold);
}

.material-nav-card h3 {
    font-family: var(--font-subheading);
    font-weight: 700;
    color: var(--color-dark-brown);
    font-size: 1.25rem;
    margin-bottom: 0.1rem !important;
    line-height: 1.3 !important;
}

.material-nav-card p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.4;
}

/* 14. UNIFIED FORM STYLES & CONTACT PAGE */
.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    stroke: var(--color-gold);
    color: var(--color-gold);
}

.styled-form {
    background: var(--color-white);
    padding: 2.5rem;
    border: 1px solid #dcdcdc;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.styled-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.styled-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .styled-row {
        flex-direction: column;
        gap: 1rem;
    }
}

.styled-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 1rem;
}

.styled-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-dark-brown);
    margin-bottom: 0.1rem !important;
    line-height: 1.3 !important;
    display: block;
}

.styled-input,
.styled-select,
.styled-textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #FAFAFA;
    transition: border-color 0.2s;
}

.styled-textarea {
    min-height: 150px;
    resize: vertical;
}

.styled-input:focus,
.styled-select:focus,
.styled-textarea:focus {
    border-color: var(--color-gold);
    outline: none;
    background-color: #fff;
}

.styled-submit {
    text-align: center;
    margin-top: 1rem;
}

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

/* Contact Info Card */
.contact-info-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid #dcdcdc;
}

/* Info Card (General) */
.info-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Washed Background Card (Overlay) */
.card-bg-washed {
    position: relative;
    z-index: 1;
    background-size: cover;
    background-position: center;
}

.card-bg-washed::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: -1;
    border-radius: var(--radius-sm);
}

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


/* Materials Category Grid */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

/* Materials Category Cards (Overlay Style) */
.category-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    height: auto;
}

.category-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1 !important;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-content {
    position: relative;
    z-index: 10 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;

    text-align: center;
    transition: background 0.3s ease;
}

.category-card:hover .category-content {
    background: rgba(255, 255, 255, 0.95) !important;
}

.category-title {
    font-family: var(--font-body) !important;
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-dark-brown);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.category-description {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    color: var(--color-navy);
    font-weight: 600;
}

.category-list li {
    margin-bottom: 0.1rem !important;
    line-height: 1.3 !important;
}

.category-actions {
    margin-top: auto;
}

/* Footer Title Override */
.footer h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: #ffffff;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}