/* ===================================
   Design System & Variables
   =================================== */
:root {
    --color-wood-darkest: #2C1810;
    --color-wood-dark: #4A3228;
    --color-wood-medium: #6B4C3A;
    --color-wood-light: #8B6B4C;
    --color-wood-pale: #A68B6B;

    --color-bark: #3D2B1F;
    --color-walnut: #5C4033;
    --color-pine: #D4B896;

    --color-cream: #F5EDE4;
    --color-cream-dark: #E8DFD3;
    --color-warm-white: #FBF8F4;

    --color-accent-gold: #B8956E;
    --color-accent-copper: #A67C52;

    --color-text-primary: #2C1810;
    --color-text-secondary: #5C493D;
    --color-text-light: #8B7766;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-soft: 0 2px 12px rgba(44, 24, 16, 0.06);
    --shadow-medium: 0 8px 30px rgba(44, 24, 16, 0.1);
    --shadow-strong: 0 16px 50px rgba(44, 24, 16, 0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-warm-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

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

/* ===================================
   Utilities
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--color-accent-gold);
    margin-bottom: var(--space-xs);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    -webkit-tap-highlight-color: transparent;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--color-wood-dark);
    color: var(--color-cream);
    box-shadow: 0 2px 8px rgba(74, 50, 40, 0.25);
}

.btn-primary:hover {
    background: var(--color-wood-medium);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(74, 50, 40, 0.3);
}

/* ===================================
   Header (Mobile Base)
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    background: rgba(44, 24, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
    background: rgba(44, 24, 16, 0.95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.15);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    width: 22px;
    height: 22px;
    color: var(--color-accent-gold);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-cream);
}

.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    list-style: none;
    background: rgba(44, 24, 16, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-xs) var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    color: var(--color-cream);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem var(--space-sm);
    display: block;
    transition: var(--transition-fast);
}

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

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn span {
    width: 24px;
    height: 1.5px;
    background: var(--color-cream);
    transition: var(--transition-fast);
    border-radius: 1px;
}

/* ===================================
   Hero (Mobile Base)
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(170deg, #e6ddd4 0%, #d4c9bc 40%, #c2b5a6 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 70%, rgba(139, 107, 76, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(166, 139, 107, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--space-md);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(74, 50, 40, 0.08);
    border: 1px solid rgba(74, 50, 40, 0.12);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.hero-badge i {
    width: 14px;
    height: 14px;
    color: var(--color-accent-gold);
}

.hero-title {
    font-size: 2.75rem;
    color: var(--color-wood-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-wood-dark);
    font-weight: 400;
    margin-bottom: var(--space-lg);
    letter-spacing: 0.5px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-light);
    opacity: 0.4;
    animation: gentleBounce 2.5s ease-in-out infinite;
}

.scroll-indicator i {
    width: 20px;
    height: 20px;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ===================================
   Process Carousel (Mobile Base)
   =================================== */
.process {
    padding: var(--space-xl) 0;
    background: var(--color-wood-darkest);
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(61, 43, 31, 0.5) 0%, rgba(92, 64, 51, 0.3) 100%);
    pointer-events: none;
}

.process .section-header {
    margin-bottom: var(--space-md);
    position: relative;
}

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

.process .section-header p {
    color: var(--color-pine);
}

.process .section-tag {
    color: var(--color-accent-gold);
}

.carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carousel-track-container {
    overflow: hidden;
    -webkit-overflow-scrolling: auto;
    border-radius: var(--radius-lg);
    flex: 1;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
    height: 70vw; /* ~4:3 on mobile */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    pointer-events: none;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem var(--space-sm) var(--space-sm);
    background: linear-gradient(0deg, rgba(44, 24, 16, 0.92) 0%, rgba(44, 24, 16, 0.5) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.carousel-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: var(--color-accent-gold);
    color: var(--color-wood-darkest);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50%;
}

.carousel-caption h3 {
    color: var(--color-cream);
    font-size: 1rem;
    margin-bottom: 2px;
}

.carousel-caption p {
    color: var(--color-pine);
    font-size: 0.85rem;
    margin: 0;
}

.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-cream);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    -webkit-tap-highlight-color: transparent;
}

.carousel-btn i {
    width: 18px;
    height: 18px;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-accent-gold);
    color: var(--color-accent-gold);
}

.carousel-btn:active {
    transform: scale(0.93);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-sm);
    padding: var(--space-xs) 0;
    position: relative;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.carousel-dot.active {
    background: var(--color-accent-gold);
    width: 24px;
    border-radius: 4px;
}

/* ===================================
   Section Header (Mobile Base)
   =================================== */
.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto var(--space-lg);
}

.section-header h2 {
    font-size: 1.75rem;
    color: var(--color-wood-dark);
    margin-bottom: var(--space-xs);
}

.section-header p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===================================
   Gallery (Mobile Base)
   =================================== */
.gallery {
    padding: var(--space-xl) 0;
    background: var(--color-warm-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
    gap: var(--space-sm);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-item:hover {
    box-shadow: var(--shadow-medium);
}

.gallery-item.large,
.gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm);
    background: linear-gradient(0deg, rgba(44, 24, 16, 0.85) 0%, transparent 100%);
    transition: var(--transition-smooth);
}

.gallery-item-overlay h3 {
    color: var(--color-cream);
    font-size: 1rem;
    margin-bottom: 2px;
}

.gallery-item-overlay p {
    color: var(--color-pine);
    font-size: 0.8rem;
}

/* ===================================
   Features (Mobile Base)
   =================================== */
.features {
    padding: var(--space-xl) 0;
    background: var(--color-cream);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    position: relative;
}

.feature-card {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: var(--color-warm-white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 24, 16, 0.06);
    transition: var(--transition-smooth);
}

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

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(184, 149, 110, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.feature-icon i {
    width: 24px;
    height: 24px;
    color: var(--color-accent-gold);
    stroke-width: 1.5;
}

.feature-card h3 {
    color: var(--color-wood-dark);
    font-size: 1.05rem;
    margin-bottom: var(--space-xs);
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* ===================================
   Contact (Mobile Base)
   =================================== */
.contact {
    padding: var(--space-xl) 0;
    background: var(--color-warm-white);
}

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

.contact-content h2 {
    font-size: 1.75rem;
    color: var(--color-wood-dark);
    margin-bottom: var(--space-xs);
}

.contact-content > p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-cream);
    border: 1px solid rgba(44, 24, 16, 0.08);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    text-align: left;
}

.contact-phone:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
    border-color: var(--color-accent-gold);
}

.contact-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--color-wood-dark);
    border-radius: var(--radius-md);
}

.contact-phone-icon i {
    width: 20px;
    height: 20px;
    color: var(--color-cream);
}

.contact-phone strong {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-phone span {
    color: var(--color-wood-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===================================
   Footer (Mobile Base)
   =================================== */
.footer {
    background: var(--color-wood-darkest);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .logo-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent-gold);
}

.footer-brand .logo-text {
    font-size: 1.15rem;
}

.footer-brand p {
    color: var(--color-wood-pale);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--color-wood-pale);
    font-size: 0.9rem;
    padding: var(--space-xs);
    transition: var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
}

.footer-bottom p {
    color: rgba(166, 139, 107, 0.6);
    font-size: 0.8rem;
}

/* ===================================
   Responsive: 375px+
   =================================== */
@media (min-width: 375px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
}

/* ===================================
   Responsive: 480px+
   =================================== */
@media (min-width: 480px) {
    :root {
        --space-md: 1.75rem;
        --space-lg: 3rem;
    }

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

    .hero-title {
        font-size: 3.25rem;
    }

    .carousel-slide {
        height: 55vw; /* ~16:10 */
    }

    .carousel-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .carousel-step {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 1.1rem;
    }

    .carousel-caption h3 {
        font-size: 1.1rem;
    }

    .gallery-grid {
        grid-auto-rows: 230px;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* ===================================
   Responsive: 768px+
   =================================== */
@media (min-width: 768px) {
    :root {
        --space-md: 2rem;
        --space-lg: 4rem;
        --space-xl: 6rem;
    }

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

    /* Desktop nav */
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        backdrop-filter: none;
        padding: 0;
        gap: 0.25rem;
        border: none;
    }

    .nav-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        border-radius: var(--radius-sm);
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .mobile-menu-btn {
        display: none;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }

    .logo-text {
        font-size: 1.35rem;
    }

    .header {
        padding: var(--space-sm) 0;
    }

    .nav {
        padding: 0 var(--space-md);
    }

    .hero-title {
        font-size: clamp(3.5rem, 7vw, 5rem);
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.9rem 2rem;
    }

    /* Carousel */
    .carousel {
        gap: var(--space-sm);
    }

    .carousel-track-container {
        border-radius: var(--radius-xl);
    }

    .carousel-slide {
        height: 45vw; /* ~16:9 */
        max-height: 540px;
    }

    .carousel-caption {
        padding: 4rem var(--space-md) var(--space-md);
        gap: var(--space-sm);
    }

    .carousel-step {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.2rem;
    }

    .carousel-caption h3 {
        font-size: 1.25rem;
        margin-bottom: 4px;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .carousel-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .carousel-btn i {
        width: 20px;
        height: 20px;
    }

    .carousel-btn:hover {
        transform: scale(1.08);
    }

    .carousel-dots {
        margin-top: var(--space-md);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 260px;
        gap: var(--space-sm);
    }

    .gallery-item {
        border-radius: var(--radius-lg);
    }

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

    .gallery-item.tall {
        grid-row: span 2;
    }

    .gallery-item:hover {
        transform: translateY(-4px);
    }

    .gallery-item-overlay {
        opacity: 0;
        transform: translateY(8px);
    }

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

    .gallery-item-overlay h3 {
        font-size: 1.15rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .feature-card {
        padding: var(--space-lg) var(--space-md);
    }

    .feature-icon {
        width: 56px;
        height: 56px;
    }

    .feature-icon i {
        width: 28px;
        height: 28px;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    /* Contact */
    .contact-content h2 {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }

    .contact-content > p {
        font-size: 1.1rem;
    }

    .contact-phone {
        padding: var(--space-md) var(--space-lg);
    }

    .contact-phone span {
        font-size: 1.25rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-brand .logo-icon {
        width: 22px;
        height: 22px;
    }

    .footer-brand .logo-text {
        font-size: 1.25rem;
    }

    .footer-links {
        gap: 0.25rem;
    }

    .footer-links a {
        padding: 0.5rem 0.75rem;
    }

    /* Section headers */
    .section-header h2 {
        font-size: clamp(2rem, 4vw, 2.6rem);
    }

    .section-header p {
        font-size: 1.05rem;
    }

    .section-tag {
        font-size: 0.8rem;
        letter-spacing: 3px;
        margin-bottom: var(--space-xs);
    }
}

/* ===================================
   Responsive: 1024px+
   =================================== */
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 280px;
    }
}
