/* ============================================
   ARTISAN WOODWORKS - Main Stylesheet
   A Custom Furniture Maker & Carpenter
   ============================================ */

/* CSS Variables for Consistent Theming */
:root {
    --color-primary: #5C4033;
    --color-secondary: #8B7355;
    --color-accent: #C4A77D;
    --color-accent-light: #D4BC9A;
    --color-dark: #1A0F0A;
    --color-light: #F5F0E8;
    --color-cream: #FDF8F3;
    --color-text: #3D3D3D;
    --color-text-light: #6B6B6B;
    --color-white: #FFFFFF;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
    --shadow-soft: 0 4px 20px rgba(92, 64, 51, 0.1);
    --shadow-hover: 0 8px 30px rgba(92, 64, 51, 0.25);
    --shadow-glow: 0 0 40px rgba(196, 167, 125, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
    
    /* Gradient Definitions */
    --gradient-warm: linear-gradient(135deg, #5C4033 0%, #8B7355 50%, #C4A77D 100%);
    --gradient-gold: linear-gradient(135deg, #C4A77D 0%, #D4BC9A 50%, #E8D5B7 100%);
    --gradient-dark: linear-gradient(135deg, #1A0F0A 0%, #2C1810 50%, #3D2517 100%);
    --gradient-cream: linear-gradient(135deg, #FDF8F3 0%, #F5F0E8 50%, #EDE5D8 100%);
    --gradient-hero: linear-gradient(135deg, rgba(26, 15, 10, 0.85) 0%, rgba(92, 64, 51, 0.7) 100%);
    --gradient-section: linear-gradient(180deg, #FDF8F3 0%, #F5F0E8 100%);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="12" fill="none" stroke="%235C4033" stroke-width="2"/><circle cx="16" cy="16" r="4" fill="%23C4A77D"/></svg>') 16 16, auto;
}

/* Custom Cursor for Interactive Elements */
a, button, .btn, .service-card, .gallery-item {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="%23C4A77D" opacity="0.8"/><circle cx="16" cy="16" r="6" fill="%235C4033"/></svg>') 16 16, pointer;
}

/* ============================================
   DECORATIVE CORNER ACCENTS
   ============================================ */

/* Corner Tool Decorations - Anchored to design */
.floating-elements {
    display: none; /* Replaced with corner accents */
}

.floating-tool {
    display: none;
}

/* Decorative Corner Brackets */
.corner-accent {
    position: fixed;
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.35;
}

.corner-accent.top-left {
    top: 80px;
    left: 15px;
    border-top: 3px solid var(--color-accent);
    border-left: 3px solid var(--color-accent);
}

.corner-accent.top-right {
    top: 80px;
    right: 15px;
    border-top: 3px solid var(--color-accent);
    border-right: 3px solid var(--color-accent);
}

.corner-accent.bottom-left {
    bottom: 15px;
    left: 15px;
    border-bottom: 3px solid var(--color-accent);
    border-left: 3px solid var(--color-accent);
}

.corner-accent.bottom-right {
    bottom: 15px;
    right: 15px;
    border-bottom: 3px solid var(--color-accent);
    border-right: 3px solid var(--color-accent);
}

/* Subtle Saw Blade - Bottom Right Corner */
.saw-blade {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border: 3px dashed rgba(196, 167, 125, 0.3);
    border-radius: 50%;
    animation: spinBlade 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.saw-blade::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: rgba(196, 167, 125, 0.4);
    border-radius: 50%;
}

.saw-blade::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid rgba(92, 64, 51, 0.25);
    border-radius: 50%;
}

@keyframes spinBlade {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Wood Grain Lines - Horizontal Decorative Borders */
.wood-grain-line {
    display: none;
}

/* Decorative Tool Icon - Top Left */
.rotating-hammer {
    position: fixed;
    top: 85px;
    left: 20px;
    font-size: 1.4rem;
    opacity: 0.3;
    pointer-events: none;
    z-index: 2;
    animation: gentlePulse 4s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.4;
    }
}

/* Scrolling Ruler - Right Edge Accent */
.scrolling-ruler {
    position: fixed;
    right: 0;
    top: 70px;
    width: 20px;
    height: calc(100% - 70px);
    background: linear-gradient(
        180deg,
        rgba(196, 167, 125, 0.08) 0%,
        rgba(196, 167, 125, 0.15) 50%,
        rgba(196, 167, 125, 0.08) 100%
    );
    pointer-events: none;
    z-index: 1;
    border-left: 1px solid rgba(196, 167, 125, 0.2);
}

.scrolling-ruler::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 49px,
        rgba(196, 167, 125, 0.25) 49px,
        rgba(196, 167, 125, 0.25) 50px
    );
    animation: rulerSlide 60s linear infinite;
}

@keyframes rulerSlide {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(500px);
    }
}

/* Left Edge Wood Grain Accent */
.wood-grain-accent {
    position: fixed;
    left: 0;
    top: 70px;
    width: 8px;
    height: calc(100% - 70px);
    background: linear-gradient(
        180deg,
        rgba(92, 64, 51, 0.05) 0%,
        rgba(139, 115, 85, 0.12) 25%,
        rgba(196, 167, 125, 0.15) 50%,
        rgba(139, 115, 85, 0.12) 75%,
        rgba(92, 64, 51, 0.05) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Hide decorative elements on mobile */
@media screen and (max-width: 768px) {
    .floating-elements,
    .saw-blade,
    .wood-grain-line,
    .rotating-hammer,
    .scrolling-ruler,
    .corner-accent,
    .wood-grain-accent {
        display: none;
    }
}

/* ============================================
   SCROLL ANIMATIONS - CSS Only
   ============================================ */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply Animations to Elements */
.hero-content {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-content h1 {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-tagline {
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Section Headers */
.section-header {
    animation: fadeInUp 0.8s ease-out both;
}

/* About Section */
.about-image {
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.about-content {
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

/* Service Cards - Staggered Animation */
.service-card:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.service-card:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.service-card:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.service-card:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Gallery Items - Staggered Animation */
.gallery-item:nth-child(1) { animation: scaleIn 0.5s ease-out 0.1s both; }
.gallery-item:nth-child(2) { animation: scaleIn 0.5s ease-out 0.15s both; }
.gallery-item:nth-child(3) { animation: scaleIn 0.5s ease-out 0.2s both; }
.gallery-item:nth-child(4) { animation: scaleIn 0.5s ease-out 0.25s both; }
.gallery-item:nth-child(5) { animation: scaleIn 0.5s ease-out 0.3s both; }
.gallery-item:nth-child(6) { animation: scaleIn 0.5s ease-out 0.35s both; }
.gallery-item:nth-child(7) { animation: scaleIn 0.5s ease-out 0.4s both; }
.gallery-item:nth-child(8) { animation: scaleIn 0.5s ease-out 0.45s both; }

/* Story Section */
.story-text {
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.story-image {
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

/* Contact Items */
.contact-item {
    animation: fadeInLeft 0.6s ease-out both;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }

.contact-form-container {
    animation: fadeInRight 0.8s ease-out 0.3s both;
}

/* Footer */
.footer-grid > div:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s both; }
.footer-grid > div:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s both; }
.footer-grid > div:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s both; }

/* Navigation */
header {
    animation: slideDown 0.6s ease-out both;
}

nav ul li {
    animation: fadeInUp 0.4s ease-out both;
}

nav ul li:nth-child(1) { animation-delay: 0.1s; }
nav ul li:nth-child(2) { animation-delay: 0.15s; }
nav ul li:nth-child(3) { animation-delay: 0.2s; }

/* Reset & Box Sizing */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Body Styles */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--gradient-cream);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-accent);
}

ul, ol {
    list-style: none;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(253, 248, 243, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(92, 64, 51, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(196, 167, 125, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.logo span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover {
    transform: scale(1.02);
}

nav ul {
    display: flex;
    gap: 2.5rem;
}

nav ul li a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition-smooth);
    border-radius: 1px;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--color-primary);
}

/* ============================================
   HERO SECTION - PARALLAX
   ============================================ */
#hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(26, 15, 10, 0.88) 0%, rgba(92, 64, 51, 0.75) 50%, rgba(139, 115, 85, 0.65) 100%),
                url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920') center/cover no-repeat;
    background-attachment: fixed;
    margin-top: 0;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(26, 15, 10, 0.4) 100%);
    pointer-events: none;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, transparent, rgba(253, 248, 243, 1));
    pointer-events: none;
}

.hero-content {
    color: var(--color-white);
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    color: #F5E6D3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   BUTTONS & CTAs
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-dark);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--gradient-warm);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-warm);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-header p {
    margin-top: 2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ABOUT / WELCOME SECTION
   ============================================ */
#about {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(253, 248, 243, 0.88) 100%),
                url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
#services {
    background: linear-gradient(180deg, rgba(245, 240, 232, 0.9) 0%, rgba(237, 229, 216, 0.85) 50%, rgba(245, 240, 232, 0.9) 100%),
                url('https://images.unsplash.com/photo-1504148455328-c376907d081c?w=1920') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #FDFCFA 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(196, 167, 125, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover), var(--shadow-glow);
    border-color: rgba(196, 167, 125, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-cream);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--color-primary);
    border: 2px solid rgba(196, 167, 125, 0.3);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--gradient-gold);
    transform: scale(1.1) rotate(5deg);
    border-color: var(--color-accent);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ============================================
   FEATURED PROJECTS SECTION
   ============================================ */
#featured-projects {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(253, 248, 243, 0.9) 100%),
                url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920') center/cover no-repeat;
    background-attachment: fixed;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.featured-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.featured-item.large {
    grid-row: span 2;
}

.featured-item img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.featured-item.large img {
    min-height: 520px;
}

.featured-item:hover img {
    transform: scale(1.08);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(180deg, transparent, rgba(26, 15, 10, 0.9));
    color: var(--color-white);
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

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

.featured-overlay h4 {
    color: var(--color-white);
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.featured-overlay p {
    color: var(--color-accent);
    font-size: 0.9rem;
    margin: 0;
}

.featured-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
#why-choose {
    background: linear-gradient(180deg, rgba(245, 240, 232, 0.92) 0%, rgba(237, 229, 216, 0.88) 100%),
                url('https://images.unsplash.com/photo-1504148455328-c376907d081c?w=1920') center/cover no-repeat;
    background-attachment: fixed;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
}

.feature-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.6;
    margin-bottom: 1rem;
    line-height: 1;
}

.feature-item h4 {
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.feature-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
#testimonials {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(253, 248, 243, 0.92) 100%),
                url('https://images.unsplash.com/photo-1530124566582-a618bc2615dc?w=1920') center/cover no-repeat;
    background-attachment: fixed;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(253, 248, 243, 0.85) 100%);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(196, 167, 125, 0.15);
    position: relative;
    margin: 0;
    transition: var(--transition-smooth);
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-card p {
    font-style: italic;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card cite {
    display: block;
    font-style: normal;
}

.testimonial-card cite strong {
    display: block;
    color: var(--color-dark);
    font-size: 1.05rem;
}

.testimonial-card cite span {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Responsive adjustments for new sections */
@media screen and (max-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-item.large {
        grid-row: span 1;
    }
    
    .featured-item.large img {
        min-height: 300px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-number {
        font-size: 2.5rem;
    }
    
    #featured-projects,
    #why-choose,
    #testimonials {
        background-attachment: scroll;
    }
}

/* ============================================
   CTA SECTION - PARALLAX
   ============================================ */
#cta {
    background: linear-gradient(135deg, rgba(26, 15, 10, 0.9) 0%, rgba(92, 64, 51, 0.85) 50%, rgba(139, 115, 85, 0.8) 100%),
                url('https://images.unsplash.com/photo-1541123603104-512919d6a96c?w=1920') center/cover no-repeat;
    background-attachment: fixed;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

#cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(196, 167, 125, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

#cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

#cta h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

#cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   GALLERY PAGE STYLES
   ============================================ */
.page-hero {
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(26, 15, 10, 0.88) 0%, rgba(92, 64, 51, 0.75) 50%, rgba(139, 115, 85, 0.65) 100%),
                url('https://images.unsplash.com/photo-1610701596061-2ecf227e85b2?w=1920') center/cover no-repeat;
    background-attachment: fixed;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent, rgba(253, 248, 243, 1));
    pointer-events: none;
}

/* ============================================
   PARALLAX DIVIDER SECTIONS
   ============================================ */
.parallax-divider {
    height: 40vh;
    min-height: 300px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 15, 10, 0.7) 0%, rgba(92, 64, 51, 0.5) 100%);
    pointer-events: none;
}

.parallax-divider .parallax-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 2rem;
}

.parallax-divider .parallax-content h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.parallax-divider .parallax-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.parallax-wood {
    background-image: url('https://images.unsplash.com/photo-1541123603104-512919d6a96c?w=1920');
}

.parallax-workshop {
    background-image: url('https://images.unsplash.com/photo-1504148455328-c376907d081c?w=1920');
}

.parallax-tools {
    background-image: url('https://images.unsplash.com/photo-1530124566582-a618bc2615dc?w=1920');
}

.page-hero h1 {
    color: var(--color-white);
    font-size: 3rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-style: italic;
}

.gallery-intro {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.93) 0%, rgba(253, 248, 243, 0.9) 100%),
                url('https://images.unsplash.com/photo-1610701596061-2ecf227e85b2?w=1920') center/cover no-repeat;
    background-attachment: fixed;
}

.gallery-intro p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-light);
    line-height: 1.8;
}

#gallery {
    background: linear-gradient(180deg, rgba(245, 240, 232, 0.88) 0%, rgba(237, 229, 216, 0.85) 50%, rgba(245, 240, 232, 0.88) 100%),
                url('https://images.unsplash.com/photo-1541123603104-512919d6a96c?w=1920') center/cover no-repeat;
    background-attachment: fixed;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    background: linear-gradient(180deg, #FFFFFF 0%, #FDFCFA 100%);
    border: 1px solid rgba(196, 167, 125, 0.15);
    transition: var(--transition-smooth);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(26, 15, 10, 0.8) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover {
    box-shadow: var(--shadow-hover), 0 0 30px rgba(196, 167, 125, 0.2);
    border-color: rgba(196, 167, 125, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.gallery-caption {
    padding: 1.5rem;
    text-align: center;
}

.gallery-caption h4 {
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.gallery-caption p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Craftsmanship Story Section */
#story {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(253, 248, 243, 0.88) 100%),
                url('https://images.unsplash.com/photo-1530124566582-a618bc2615dc?w=1920') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
}

#story::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text h3 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.story-text blockquote {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-secondary);
    border-left: 4px solid transparent;
    border-image: var(--gradient-gold) 1;
    padding-left: 1.5rem;
    margin: 2rem 0;
    background: linear-gradient(90deg, rgba(196, 167, 125, 0.1), transparent);
    padding: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.story-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */
#contact-info {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(253, 248, 243, 0.88) 100%),
                url('https://images.unsplash.com/photo-1504148455328-c376907d081c?w=1920') center/cover no-repeat;
    background-attachment: fixed;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details h3 {
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
    font-weight: bold;
    border: 2px solid rgba(196, 167, 125, 0.3);
    transition: var(--transition-smooth);
}

.contact-item:hover .contact-icon {
    background: var(--gradient-gold);
    transform: scale(1.1);
}

.contact-text h5 {
    margin-bottom: 0.25rem;
    color: var(--color-dark);
}

.contact-text p {
    margin-bottom: 0;
    color: var(--color-text-light);
}

/* Business Hours */
.hours-list {
    margin-top: 2rem;
}

.hours-list h4 {
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.hours-list ul li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-light);
}

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

/* Contact Form */
.contact-form-container {
    background: linear-gradient(135deg, #F5F0E8 0%, #EDE5D8 100%);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(196, 167, 125, 0.2);
    box-shadow: var(--shadow-soft);
}

.contact-form-container h3 {
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background-color: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 167, 125, 0.2), 0 0 20px rgba(196, 167, 125, 0.1);
    background: linear-gradient(180deg, #FFFFFF 0%, #FDFCFA 100%);
}

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

/* Map Section */
#map-section {
    background: linear-gradient(180deg, rgba(245, 240, 232, 0.9) 0%, rgba(237, 229, 216, 0.88) 100%),
                url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920') center/cover no-repeat;
    background-attachment: fixed;
    padding: 4rem 0;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--gradient-warm);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.social-link:hover {
    background: var(--gradient-gold);
    color: var(--color-dark);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--gradient-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about .logo {
    color: var(--color-white);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: var(--color-accent);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.site-credit {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.site-credit strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ============================================ */

/* Tablet (max-width: 992px) */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-grid,
    .story-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li a {
        font-size: 0.85rem;
    }
    
    #hero {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 4rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .page-hero {
        height: 40vh;
        min-height: 300px;
        margin-top: 100px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Disable Parallax on Mobile - Fix for iOS/Android */
@media screen and (max-width: 768px) {
    #hero,
    .page-hero,
    #cta,
    .parallax-divider,
    #about,
    #services,
    #gallery,
    #story,
    #contact-info,
    #map-section,
    .gallery-intro {
        background-attachment: scroll;
    }
    
    .parallax-divider {
        height: 30vh;
        min-height: 200px;
    }
    
    .parallax-divider .parallax-content h3 {
        font-size: 1.75rem;
    }
    
    .parallax-divider .parallax-content p {
        font-size: 1rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.85rem;
    }
    
    .about-image img,
    .story-image img {
        height: 300px;
    }
    
    .gallery-item img {
        height: 250px;
    }
}

