/* ============================================
   S.A.S Sharpening — Custom Styles
   Color Palette: Burgundy + Blush
   ============================================ */

:root {
    --burgundy: #722F37;
    --burgundy-dark: #5A252C;
    --burgundy-deep: #3D1A1F;
    --blush: #F5E6E0;
    --blush-light: #FBF7F5;
    --blush-mid: #F0DDD6;
    --cream: #FFFBF8;
    --charcoal: #2A2424;
    --text-dark: #1E1A1A;
    --text-body: #3D3636;
    --text-muted: #7A6E6E;
    --text-light: #A89898;
    --white: #FFFFFF;
    --border: #E8DCD8;
    --border-light: #F0E8E4;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

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

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

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

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-body);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 251, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(114, 47, 55, 0.06);
}

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

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.15em;
    text-decoration: none;
}

.logo-mark {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--burgundy);
    letter-spacing: 0.08em;
}

.logo-wordmark {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--charcoal);
    letter-spacing: 0.04em;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--charcoal);
    transition: var(--transition);
    transform-origin: center;
}

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

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

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

/* Main nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.nav-list a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--burgundy);
    transition: width var(--transition);
}

.nav-list a:hover {
    color: var(--burgundy);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--burgundy);
    transition: color var(--transition);
}

.nav-cta:hover {
    color: var(--burgundy-dark);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(61, 26, 31, 0.88) 0%,
        rgba(114, 47, 55, 0.82) 50%,
        rgba(90, 37, 44, 0.78) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px var(--space-md) 80px;
    width: 100%;
}

.hero-line {
    width: 60px;
    height: 1px;
    background: var(--blush);
    margin-bottom: var(--space-md);
    opacity: 0.7;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: var(--space-sm);
    opacity: 0.85;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-md);
    max-width: 800px;
    letter-spacing: -0.01em;
}

.hero-headline em {
    font-style: italic;
    color: var(--blush);
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 230, 224, 0.8);
    max-width: 520px;
    margin-bottom: var(--space-lg);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.9em 2em;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(114, 47, 55, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(245, 230, 224, 0.4);
}

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

.btn-ghost-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--blush);
    opacity: 0.5;
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ============================================
   SECTION COMMON
   ============================================ */
.section-header {
    margin-bottom: var(--space-lg);
}

.section-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.section-line {
    width: 40px;
    height: 1px;
    background: var(--burgundy);
    margin-top: var(--space-md);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: var(--space-2xl) 0;
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border);
}

.service-card {
    background: var(--cream);
    padding: var(--space-lg) var(--space-md);
    transition: all var(--transition);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--burgundy);
    transition: width var(--transition);
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    background: var(--blush-light);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--burgundy);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.service-desc {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.service-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--burgundy);
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    transition: gap var(--transition);
}

.service-link:hover {
    gap: 0.7em;
}

.service-link .arrow {
    font-size: 1rem;
    transition: transform var(--transition);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

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

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--burgundy);
    opacity: 0.2;
    z-index: -1;
}

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

.about-text {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-body);
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--burgundy);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================
   APPROACH
   ============================================ */
.approach {
    padding: var(--space-2xl) 0;
    background: var(--blush-light);
}

.approach-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-lg);
    align-items: start;
}

.approach-text {
    position: sticky;
    top: 120px;
}

.approach-desc {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-body);
    margin-top: var(--space-md);
}

.approach-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.step {
    padding: var(--space-md);
    border: 1px solid var(--border);
    background: var(--white);
    transition: all var(--transition);
}

.step:hover {
    border-color: var(--burgundy);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(114, 47, 55, 0.08);
}

.step-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--burgundy);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: var(--space-sm);
    opacity: 0.7;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.step-desc {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: var(--space-2xl) 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

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

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(61, 26, 31, 0.9) 0%,
        rgba(114, 47, 55, 0.85) 100%
    );
}

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

.cta-content .section-eyebrow {
    color: var(--blush);
    opacity: 0.85;
}

.cta-content .section-title {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 230, 224, 0.8);
    margin-bottom: var(--space-lg);
}

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

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-lg);
}

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

.contact-desc {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-body);
    margin-top: var(--space-md);
    margin-bottom: var(--space-lg);
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--burgundy);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.2em;
}

.contact-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.6;
}

.contact-item a {
    color: var(--text-dark);
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--burgundy);
}

/* Contact form */
.contact-form-wrapper {
    background: var(--blush-light);
    border: 1px solid var(--border);
    padding: var(--space-lg);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.form-group label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid var(--border);
    padding: 0.8em 1em;
    outline: none;
    transition: border-color var(--transition);
    border-radius: 0;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

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

.form-group select {
    cursor: pointer;
}

/* Form success */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-lg);
    gap: var(--space-sm);
}

.form-success svg {
    color: var(--burgundy);
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-dark);
}

.form-success p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--charcoal);
    color: rgba(245, 230, 224, 0.7);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(245, 230, 224, 0.1);
}

.footer-brand .logo-mark {
    color: var(--blush);
}

.footer-brand .logo-wordmark {
    color: var(--white);
}

.footer-tagline {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.8;
    margin-top: var(--space-sm);
    color: rgba(245, 230, 224, 0.5);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: var(--space-sm);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.footer-links a {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(245, 230, 224, 0.5);
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 0.3em;
}

.footer-contact a {
    color: rgba(245, 230, 224, 0.5);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--blush);
}

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

.footer-bottom p {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(245, 230, 224, 0.3);
    letter-spacing: 0.05em;
}

/* ============================================
   SCROLL REVEAL (below-fold only, progressive enhancement)
   ============================================ */
.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.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

    .approach-content {
        grid-template-columns: 1fr;
    }

    .approach-text {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
}

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

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 251, 248, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-lg) var(--space-md);
        gap: var(--space-md);
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: var(--space-sm);
        width: 100%;
    }

    .nav-list a {
        font-size: 0.9rem;
        padding: 0.5em 0;
    }

    .nav-list a::after {
        display: none;
    }

    .nav-cta {
        margin-top: var(--space-sm);
        font-size: 0.9rem;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-actions {
        flex-direction: column;
    }

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

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

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

    .about-image-wrapper img {
        height: 350px;
    }

    .about-image-accent {
        display: none;
    }

    .approach-steps {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

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

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

@media (max-width: 480px) {
    .header-inner {
        padding: 0 var(--space-sm);
    }

    .hero-content {
        padding: 100px var(--space-sm) 60px;
    }

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .scroll-indicator {
        animation: none;
        opacity: 0.3;
    }
}
