/* Rosero Sax - Rustic/Vintage Personal Brand Theme */

:root {
    /* Color Palette */
    --color-maroon: #5D001E;
    /* Deep Burgundy */
    --color-maroon-dark: #3a0012;
    --color-cream: #F5F5DC;
    /* Parchment/Cream */
    --color-tan: #D2B48C;
    /* Warm Tan */
    --color-gray-warm: #4a4a4a;
    /* Warm Gray text */
    --color-white-soft: #faf9f6;
    --color-black-soft: #1a1a1a;

    /* Fonts */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Libre Baskerville', serif;
    --font-accent: 'Allura', cursive;

    /* Effects */
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.15);
    --shadow-rustic: 2px 2px 5px rgba(0, 0, 0, 0.25);
    --border-radius-card: 4px;
    /* Slight rounding, not too much for rustic feel */
    --transition-speed: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-gray-warm);
    line-height: 1.6;
    overflow-x: hidden;
    /* NOTE: texture-grain.png might be missing, but for production safety relative path should be correct if it exists or use images/ */
    /* Actually user asked for /images/. Since css is in assets/css, local relative is ../../images. But absolute /images/ is better for root deploy */
    background-image: url('/images/texture-grain.png');
    background-blend-mode: overlay;
}

/* Typography map */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-maroon);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: var(--color-maroon);
    color: var(--color-cream);
    border-color: var(--color-maroon);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-maroon);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-cream);
    /* Often on dark bg */
    border-color: var(--color-cream);
}

.btn-secondary:hover {
    background-color: var(--color-cream);
    color: var(--color-maroon);
}

/* Rustic Texture Overlay (CSS only option if image missing) */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 1px, #000 1px, #000 2px),
        repeating-linear-gradient(90deg, transparent, transparent 1px, #000 1px, #000 2px);
    background-size: 4px 4px;
}

/* Header/Nav */
header {
    position: absolute;
    /* Transparent overlap */
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-cream);
    /* Assuming dark hero */
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--color-cream);
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-tan);
}

.nav-cta {
    background-color: var(--color-tan);
    color: var(--color-maroon);
    border: none;
}

.nav-cta:hover {
    background-color: var(--color-cream);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--color-black-soft);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Darken for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: left;
    /* Or center based on layout pref */
}

.hero-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-tan);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 span {
    display: block;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--color-cream);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Polaroid Collage - Absolute/Layered */
.hero-collage {
    position: absolute;
    right: 5%;
    bottom: -10%;
    width: 400px;
    height: 500px;
    z-index: 3;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

.polaroid {
    background: #fff;
    padding: 10px 10px 40px 10px;
    /* Classic polaroid bottom heavy */
    box-shadow: var(--shadow-rustic);
    transform: rotate(-5deg);
    position: absolute;
    width: 200px;
    transition: transform 0.5s ease;
}

.polaroid img {
    width: 100%;
    height: auto;
    filter: sepia(0.3) contrast(1.1);
    /* Rustic photo filter */
}

.polaroid:nth-child(1) {
    top: 0;
    right: 0;
    transform: rotate(5deg);
    z-index: 2;
}

.polaroid:nth-child(2) {
    top: 150px;
    left: 0;
    transform: rotate(-8deg);
    z-index: 1;
}

.polaroid:nth-child(3) {
    top: 50px;
    left: 80px;
    transform: rotate(2deg);
    z-index: 3;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-maroon);
    margin: 15px auto 0;
}

/* About Preview */
.about-preview .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-maroon);
    z-index: -1;
}

/* Footer */
footer {
    background-color: var(--color-maroon-dark);
    color: var(--color-cream);
    padding: 60px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-icons a {
    color: var(--color-tan);
    font-size: 1.5rem;
    margin: 0 10px;
}

/* Scroll Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .mobile-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        /* Above nav links */
    }

    .mobile-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--color-tan);
        transition: all 0.3s ease;
    }

    /* Animate Hamburger */
    .mobile-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background-color: var(--color-maroon-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-cta {
        display: none;
        /* Hide button in header, maybe add to menu if needed, but keeping simple */
    }

    /* Other Mobile Adjustments */
    .hero-collage {
        display: none;
    }

    .about-preview .container {
        grid-template-columns: 1fr;
    }

    .about-content,
    .services-list .service-row {
        grid-template-columns: 1fr;
        flex-direction: column !important;
        /* Force stack */
    }

    .service-img {
        width: 100%;
    }
}

/* Hide toggle on desktop */
.mobile-toggle {
    display: none;
}