/* ============================================
   Furniture By Douglas — Brand Styles
   Palette: Terracotta (#B85D44) + Sand (#F5F0EB)
   Fonts: Playfair Display + Inter
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --terracotta: #B85D44;
    --terracotta-dark: #9A4B35;
    --terracotta-light: #D4826A;
    --sand: #F5F0EB;
    --sand-dark: #E8DFD5;
    --sand-darker: #D4C9BC;
    --charcoal: #2A2420;
    --charcoal-light: #4A403A;
    --warm-gray: #6B5F55;
    --white: #FDFCFA;
    --cream: #FAF7F3;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --nav-height: 72px;
    --container-max: 1280px;
    --container-padding: clamp(1.25rem, 4vw, 3rem);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal);
    background-color: var(--sand);
    overflow-x: hidden;
}

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

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn--primary:hover {
    background-color: var(--terracotta-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(184, 93, 68, 0.3);
}

.btn--ghost {
    background-color: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--charcoal);
}

.btn--ghost:hover {
    background-color: var(--charcoal);
    color: var(--white);
}

.btn--full {
    width: 100%;
}

/* ============================================
   Section Eyebrow & Headline
   ============================================ */
.section__eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1rem;
}

.section__headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.section__headline--light {
    color: var(--sand);
}

.section__headline--dark {
    color: var(--charcoal);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background-color: rgba(245, 240, 235, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(42, 36, 32, 0.08);
    transition: all 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 2px 24px rgba(42, 36, 32, 0.08);
}

.nav__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.nav__logo-icon {
    color: var(--terracotta);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--charcoal-light);
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--terracotta);
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: var(--charcoal);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background-color: var(--terracotta);
    color: var(--white) !important;
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background-color: var(--terracotta-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle-line {
    width: 22px;
    height: 2px;
    background-color: var(--charcoal);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav__toggle.active .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu__link {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--charcoal);
    transition: color 0.2s ease;
}

.mobile-menu__link:hover {
    color: var(--terracotta);
}

.mobile-menu__link--cta {
    margin-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--terracotta);
    color: var(--white) !important;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 500;
}

.mobile-menu__contact {
    margin-top: 1rem;
}

.mobile-menu__phone {
    font-size: 1.125rem;
    color: var(--terracotta);
    font-weight: 500;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    min-height: 100vh;
    padding-top: var(--nav-height);
    background-color: var(--sand);
    display: flex;
    align-items: center;
}

.hero__grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    width: 100%;
}

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1.5rem;
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.hero__sub {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--warm-gray);
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--warm-gray);
    letter-spacing: 0.02em;
}

.hero__dot {
    color: var(--terracotta-light);
}

.hero__image {
    position: relative;
}

.hero__img-wrap {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(42, 36, 32, 0.12);
}

.hero__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__accent {
    position: absolute;
    bottom: -24px;
    left: -24px;
    width: 80px;
    height: 80px;
    background-color: var(--terracotta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0.9;
}

/* ============================================
   Marquee
   ============================================ */
.marquee {
    background-color: var(--charcoal);
    padding: 1rem 0;
    overflow: hidden;
}

.marquee__track {
    display: flex;
    gap: 2rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee__track span {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sand-dark);
    white-space: nowrap;
}

.marquee__sep {
    color: var(--terracotta) !important;
    font-size: 0.625rem !important;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   About
   ============================================ */
.about {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background-color: var(--sand);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.about__text {
    max-width: 520px;
}

.about__body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: 1.25rem;
}

.about__image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(42, 36, 32, 0.1);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Services
   ============================================ */
.services {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background-color: var(--white);
}

.services__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

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

.service-card {
    background-color: var(--sand);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(42, 36, 32, 0.08);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    background-color: var(--terracotta);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.service-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-card__desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--warm-gray);
}

/* ============================================
   Work Gallery
   ============================================ */
.work {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background-color: var(--sand);
}

.work__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.work__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 1.25rem;
}

.work__item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.work__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work__item:hover img {
    transform: scale(1.04);
}

.work__item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(42, 36, 32, 0.8) 0%, transparent 100%);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.work__item--large {
    grid-column: span 7;
}

.work__item:not(.work__item--large) {
    grid-column: span 5;
}

/* ============================================
   Process
   ============================================ */
.process {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background-color: var(--charcoal);
}

.process__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

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

.process__step {
    position: relative;
}

.process__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -1rem;
    width: 2rem;
    height: 1.5px;
    background-color: rgba(245, 240, 235, 0.2);
}

.process__step-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--terracotta);
    line-height: 1;
    margin-bottom: 1rem;
}

.process__step-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sand);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.process__step-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(245, 240, 235, 0.6);
}

/* ============================================
   Testimonial
   ============================================ */
.testimonial {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background-color: var(--terracotta);
    position: relative;
    overflow: hidden;
}

.testimonial__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.testimonial__quote {
    color: rgba(253, 252, 250, 0.25);
    margin-bottom: 2rem;
}

.testimonial__text {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--white);
    margin-bottom: 2rem;
}

.testimonial__attribution {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial__name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}

.testimonial__role {
    font-size: 0.875rem;
    color: rgba(253, 252, 250, 0.7);
}

/* ============================================
   Contact
   ============================================ */
.contact {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background-color: var(--sand);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.contact__info {
    max-width: 480px;
}

.contact__body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: 2.5rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact__detail svg {
    color: var(--terracotta);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact__detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-bottom: 0.25rem;
}

.contact__detail-value {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.contact__phone {
    color: var(--terracotta);
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact__phone:hover {
    color: var(--terracotta-dark);
}

/* Form */
.contact__form-wrap {
    background-color: var(--white);
    border-radius: 12px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 8px 32px rgba(42, 36, 32, 0.06);
}

.form__group {
    margin-bottom: 1.25rem;
}

.form__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--charcoal-light);
    margin-bottom: 0.5rem;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--sand-darker);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--charcoal);
    background-color: var(--sand);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--sand-darker);
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(184, 93, 68, 0.1);
    background-color: var(--white);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background-color: rgba(184, 93, 68, 0.08);
    border-radius: 6px;
    color: var(--terracotta-dark);
    font-size: 0.9375rem;
    margin-top: 1rem;
}

.form__success.visible {
    display: flex;
}

.form__success svg {
    color: var(--terracotta);
    flex-shrink: 0;
}

/* ============================================
   Map
   ============================================ */
.map {
    background-color: var(--sand-dark);
}

.map iframe {
    filter: grayscale(0.4) contrast(1.05);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--charcoal);
    padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

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

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sand);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer__logo-icon {
    color: var(--terracotta);
}

.footer__tagline {
    font-size: 0.9375rem;
    color: rgba(245, 240, 235, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__links a {
    font-size: 0.9375rem;
    color: rgba(245, 240, 235, 0.6);
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--terracotta-light);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__phone {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--terracotta-light);
    transition: color 0.2s ease;
}

.footer__phone:hover {
    color: var(--terracotta);
}

.footer__address {
    font-size: 0.9375rem;
    color: rgba(245, 240, 235, 0.5);
    line-height: 1.6;
}

.footer__bottom {
    border-top: 1px solid rgba(245, 240, 235, 0.08);
    padding-top: 2rem;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: rgba(245, 240, 235, 0.3);
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process__steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .process__step:not(:last-child)::after {
        display: none;
    }

    .work__item--large {
        grid-column: span 12;
    }

    .work__item:not(.work__item--large) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        display: none;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .hero__image {
        order: -1;
    }

    .hero__img-wrap {
        border-radius: 6px;
    }

    .hero__accent {
        display: none;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .about__grid {
        grid-template-columns: 1fr;
    }

    .about__text {
        max-width: 100%;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .work__grid {
        grid-template-columns: 1fr;
    }

    .work__item--large,
    .work__item:not(.work__item--large) {
        grid-column: span 1;
    }

    .work__item img {
        min-height: 280px;
    }

    .process__steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero__trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .hero__trust .hero__dot {
        display: none;
    }
}
