/* ========================================
   REVEL LOGGING — Brand Styles
   Palette: Terracotta + Sand
   ======================================== */

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

:root {
    --color-terracotta: #B85C38;
    --color-terracotta-dark: #9A4B2C;
    --color-terracotta-light: #D4845E;
    --color-sand: #F5F0E8;
    --color-sand-dark: #E8DFD0;
    --color-sand-light: #FAF7F2;
    --color-charcoal: #2A2420;
    --color-text: #3D3530;
    --color-text-light: #6B5E56;
    --color-white: #FFFFFF;
    --color-border: #E0D6C8;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 3px rgba(42, 36, 32, 0.08);
    --shadow-md: 0 4px 16px rgba(42, 36, 32, 0.1);
    --shadow-lg: 0 8px 32px rgba(42, 36, 32, 0.12);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-sand-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-charcoal);
}

.nav__logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-terracotta);
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.nav__logo-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition);
    position: relative;
}

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

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

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

.nav__link--cta {
    padding: 8px 20px;
    background: var(--color-terracotta);
    color: var(--color-white) !important;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

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

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

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav__toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-charcoal);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

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

.mobile-menu__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.mobile-menu__link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--color-charcoal);
    transition: color var(--transition);
}

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

.mobile-menu__link--cta {
    margin-top: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 12px 32px;
    background: var(--color-terracotta);
    color: var(--color-white);
    border-radius: var(--radius-sm);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn--primary:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn--ghost:hover {
    border-color: var(--color-terracotta);
    color: var(--color-terracotta);
}

.btn--white {
    background: var(--color-white);
    color: var(--color-terracotta);
    font-weight: 600;
}

.btn--white:hover {
    background: var(--color-sand);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn--outline-white {
    background: transparent;
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-white);
}

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

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-charcoal);
    letter-spacing: -0.02em;
}

.section-header--centered {
    text-align: center;
}

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

.hero__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: calc(100vh - 72px);
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3xl) var(--space-xl);
    max-width: 640px;
}

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

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-charcoal);
    letter-spacing: -0.025em;
    margin-bottom: var(--space-md);
}

.hero__sub {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.hero__image {
    position: relative;
    overflow: hidden;
}

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

/* Decorative accent */
.hero__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(184, 92, 56, 0.15) 100%);
    pointer-events: none;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.section-header {
    margin-bottom: var(--space-xl);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.service-card {
    padding: var(--space-lg);
    background: var(--color-sand-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-terracotta-light);
}

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

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: var(--space-xs);
}

.service-card__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    padding: var(--space-3xl) 0;
    background: var(--color-sand-light);
}

.about__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about__image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about__content {
    padding: var(--space-lg) 0;
}

.about__content .section-title {
    margin-bottom: var(--space-md);
}

.about__body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.about__stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.stat__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-terracotta);
    line-height: 1;
    margin-bottom: 4px;
}

.stat__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ========================================
   WHY US
   ======================================== */
.why-us {
    padding: var(--space-3xl) 0;
    background: var(--color-charcoal);
}

.why-us .section-eyebrow {
    color: var(--color-terracotta-light);
}

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

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.why-card {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(184, 92, 56, 0.4);
    transform: translateY(-2px);
}

.why-card__num {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-terracotta-light);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.why-card__title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.why-card__text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
    padding: var(--space-3xl) 0;
    background: var(--color-sand);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.testimonial {
    background: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

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

.testimonial__text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--color-text);
    flex: 1;
    margin-bottom: var(--space-md);
}

.testimonial__footer {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-sm);
}

.testimonial__author {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 500;
    color: var(--color-text-light);
}

/* ========================================
   CTA
   ======================================== */
.cta {
    padding: var(--space-3xl) 0;
    background: var(--color-terracotta);
}

.cta__inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-sm);
}

.cta__headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-white);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.cta__body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-lg);
}

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

/* ========================================
   CONTACT
   ======================================== */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.contact__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact__info .section-title {
    margin-bottom: var(--space-md);
}

.contact__body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact__detail {
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.contact__detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact__detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-terracotta);
    margin-bottom: 4px;
}

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

.contact__detail-value a {
    color: var(--color-text);
    transition: color var(--transition);
}

.contact__detail-value a:hover {
    color: var(--color-terracotta);
}

/* Form */
.contact__form-wrapper {
    background: var(--color-sand-light);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-light);
    opacity: 0.6;
}

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

.form-note {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-align: center;
    margin-top: var(--space-xs);
}

/* Success State */
.form-success {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.form-success__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-terracotta);
    border-radius: 50%;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.form-success__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-charcoal);
}

.form-success__text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-charcoal);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__brand .nav__logo-mark {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
}

.footer__brand-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
}

.footer__tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 240px;
    line-height: 1.6;
}

.footer__nav {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer__nav a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
}

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

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
}

.footer__bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer__bottom a {
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition);
}

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

/* ========================================
   SCROLL REVEAL (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal.is-visible {
        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) {
    .hero__split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero__content {
        padding: var(--space-2xl) var(--space-md);
        order: 2;
    }

    .hero__image {
        order: 1;
        min-height: 400px;
    }

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

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

    .about__image-wrapper {
        order: -1;
    }

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

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

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

@media (max-width: 768px) {
    .nav__menu {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__content {
        padding: var(--space-xl) var(--space-md);
    }

    .hero__actions {
        flex-direction: column;
    }

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

    .about__stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .cta__actions {
        flex-direction: column;
        align-items: center;
    }

    .cta__actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .footer__top {
        flex-direction: column;
        gap: var(--space-md);
    }

    .footer__nav {
        gap: var(--space-sm);
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4rem;
        --space-3xl: 5rem;
    }

    .hero__image {
        min-height: 300px;
    }

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

    .contact__form-wrapper {
        padding: var(--space-md);
    }
}
