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

:root {
    --cream: #faf8f4;
    --warm-white: #f5f1eb;
    --sage: #7a8b6f;
    --sage-light: #d4dcc9;
    --blush: #d4a0a0;
    --blush-light: #f0dede;
    --charcoal: #2c2c2c;
    --text: #3a3a3a;
    --text-light: #6b6b6b;
    --gold: #b8976a;
    --white: #ffffff;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: 0.02em;
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    transition: color 0.3s ease;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--warm-white);
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(250, 248, 244, 0.35);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
}

.hero-content .btn {
    width: 240px;
    text-align: center;
    margin: 6px;
    padding-left: 16px;
    padding-right: 16px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.6);
}

.hero-tagline {
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 40px;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.8);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 40px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--sage);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--charcoal);
}

.btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--sage);
    margin-left: 12px;
}

.btn-secondary:hover {
    background: var(--sage);
    color: var(--white);
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--warm-white);
}

.section-dark {
    background: var(--charcoal);
    color: var(--white);
}

.section-dark .section-title {
    color: var(--white);
}

.section-dark .section-text {
    color: rgba(255, 255, 255, 0.7);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    color: var(--charcoal);
    margin-bottom: 48px;
}

.section-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* ===== Portfolio Grid ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

/* ===== Contact Form ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--sage-light);
}

.contact-form .btn {
    align-self: flex-start;
}

.section-dark .btn-primary {
    background: var(--sage-light);
    color: var(--charcoal);
}

.section-dark .btn-primary:hover {
    background: var(--white);
}

/* ===== Footer ===== */
.footer {
    padding: 32px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    border-top: 1px solid var(--sage-light);
    background: var(--cream);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: right 0.4s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .section {
        padding: 72px 0;
    }
}
