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

:root {
    /* Golden earth tone palette inspired by Traditions */
    --charcoal: #2A2622;
    --slate: #524843;
    --clay: #A68B6F;
    --golden-clay: #C4A574;
    --bronze: #8B7355;
    --sand: #E8DDD3;
    --warm-gray: #968B7F;
    --cream: #FAF6F2;
    --deep-bronze: #6B5D4F;
    --champagne: #D4BC9C;
    
    /* Functional colors */
    --text-primary: var(--charcoal);
    --text-secondary: var(--slate);
    --text-light: var(--warm-gray);
    --bg-primary: #FFFFFF;
    --bg-secondary: var(--cream);
    --accent: var(--golden-clay);
}

html {
    scroll-behavior: smooth;
    /* FIX: Prevent horizontal scroll */
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    /* FIX: Prevent horizontal scroll */
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* FIX: Prevent container overflow */
    width: 100%;
    overflow: hidden;
}

/* Typography - Mobile First */
h1, h2, h3 {
    font-weight: 300;
    letter-spacing: -0.02em;
}

/* Navigation - Mobile First */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    box-shadow: 0 1px 20px rgba(42, 38, 34, 0.08);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    /* FIX: Set explicit height for mobile */
    min-height: 54px;
}

.nav-brand {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-brand:hover {
    opacity: 0.7;
}

/* Mobile Menu */
.nav-menu {
    position: fixed;
    right: -100%;
    /* FIX: Match actual navbar height (54px padding + content) */
    top: 54px;
    flex-direction: column;
    background: white;
    width: 100%;
    padding: 2rem;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    list-style: none;
}

.nav-menu.active {
    right: 0;
}

.nav-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 0;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 30px;
}

/* Hamburger - Mobile */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    /* FIX: Add padding to prevent X cutoff */
    padding: 4px;
    margin: -4px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    margin: 4px 0;
    transition: 0.3s;
    /* FIX: Set transform origin for cleaner rotation */
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    /* FIX: Adjusted transform to prevent cutoff */
    transform: rotate(45deg) translateY(9.5px);
}

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

.hamburger.active span:nth-child(3) {
    /* FIX: Adjusted transform to prevent cutoff */
    transform: rotate(-45deg) translateY(-9.5px);
}

/* Hero Section - Mobile First */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 50%, #F5EDE5 100%);
    padding: 100px 0 60px;
    /* FIX: Prevent overflow */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(250,246,242,0.3) 100%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    /* FIX: Prevent content overflow */
    width: 100%;
    max-width: 100%;
}

.hero-logo {
    width: 250px;
    max-width: 80vw;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInDown 1s ease forwards;
}

.hero-title {
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
    /* FIX: Prevent text overflow */
    word-wrap: break-word;
}

.hero-line {
    width: 60px;
    height: 1px;
    background: var(--champagne);
    margin: 1.5rem auto;
    opacity: 0;
    animation: expandWidth 1s ease 0.4s forwards;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    /* FIX: Prevent text overflow */
    word-wrap: break-word;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--golden-clay);
    color: white;
    text-decoration: none;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.cta-button:hover {
    background: var(--bronze);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 165, 116, 0.3);
}

/* About Section - Mobile First */
.about {
    padding: 60px 0;
    background: var(--bg-primary);
    /* FIX: Prevent overflow */
    overflow: hidden;
}

.about-header {
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--champagne);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-content {
    margin-bottom: 3rem;
}

.about-image {
    position: relative;
    margin-bottom: 2rem;
}

.about-image img {
    width: 100%;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(42, 38, 34, 0.08);
    transition: box-shadow 0.3s;
}

.about-image:hover img {
    box-shadow: 0 6px 30px rgba(42, 38, 34, 0.12);
}

.image-accent {
    display: none;
}

.lead-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.expertise-icon {
    color: var(--champagne);
    font-size: 0.7rem;
}

/* Stats - Mobile First */
.stats-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 5rem 2rem;
    background: var(--bg-secondary);
    margin-top: 3rem;
    /* FIX: Prevent overflow */
    overflow: hidden;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    white-space: nowrap;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--golden-clay);
    letter-spacing: -0.02em;
}

.stat-suffix {
    font-size: 1.75rem;
    font-weight: 200;
    color: var(--golden-clay);
    margin-left: 0.125rem;
}

.stat-label {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    display: block;
}

.stat-divider {
    display: none;
}

/* Contact Section - Mobile First */
.contact {
    padding: 60px 0;
    background: var(--bg-secondary);
    /* FIX: Prevent overflow */
    overflow: hidden;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group.full-width {
    margin-bottom: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid rgba(82, 72, 67, 0.2);
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-light);
    transition: all 0.3s;
    pointer-events: none;
    font-size: 1rem;
}

.form-group input:focus,
.form-group input:valid,
.form-group select:focus,
.form-group select:valid,
.form-group textarea:focus,
.form-group textarea:valid {
    outline: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -0.5rem;
    font-size: 0.85rem;
    color: var(--champagne);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--champagne);
    transition: width 0.3s;
}

.form-group input:focus ~ .form-line,
.form-group select:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--golden-clay);
    color: white;
    border: none;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2rem;
    width: 100%;
}

.button-arrow {
    fill: currentColor;
    transition: transform 0.3s;
}

.submit-button:hover {
    background: var(--bronze);
}

.submit-button:hover .button-arrow {
    transform: translateX(5px);
}

.form-message {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    font-size: 0.9rem;
}

.form-message.success {
    background: rgba(196, 165, 116, 0.1);
    color: var(--bronze);
    border-left: 3px solid var(--golden-clay);
    opacity: 1;
    transform: translateY(0);
}

.form-message.error {
    background: rgba(139, 115, 85, 0.1);
    color: var(--deep-bronze);
    border-left: 3px solid var(--bronze);
    opacity: 1;
    transform: translateY(0);
}

/* Footer - Mobile First */
.footer {
    padding: 2.5rem 0;
    background: var(--charcoal);
    color: var(--cream);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    font-size: 1rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--champagne);
    margin-bottom: 1.25rem;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--warm-gray);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(30px);
    }
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
}

@keyframes expandWidth {
    to {
        opacity: 1;
        width: 60px;
    }
    from {
        opacity: 0;
        width: 0;
    }
}

/* Scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* TABLET STYLES - 768px and up */
@media (min-width: 768px) {
    .nav-content {
        padding: 1.25rem 0;
        /* Reset min-height for larger screens */
        min-height: auto;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        position: static;
        flex-direction: row;
        width: auto;
        padding: 0;
        box-shadow: none;
        display: flex;
        gap: 2rem;
        background: transparent;
        /* Reset top positioning */
        top: auto;
    }
    
    .nav-link {
        padding: 0;
        font-size: 0.95rem;
    }
    
    .nav-link::after {
        bottom: -5px;
    }
    
    .nav-link:hover::after {
        width: 100%;
    }
    
    .hamburger {
        display: none;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-logo {
        width: 350px;
        max-width: none;
        margin-bottom: 2.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
        letter-spacing: 0.2em;
        margin-bottom: 1.5rem;
    }
    
    .hero-line {
        width: 80px;
        margin: 2rem auto;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 0.1em;
        margin-bottom: 3rem;
    }
    
    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 0.95rem;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-header {
        margin-bottom: 4rem;
    }
    
    .section-label {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
        margin-bottom: 4rem;
    }
    
    .about-image {
        margin-bottom: 0;
    }
    
    .lead-text {
        font-size: 1.2rem;
        line-height: 1.8;
        margin-bottom: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.8;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .expertise-item {
        font-size: 1rem;
    }
    
    .stats-row {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 6rem 3rem;
        gap: 0;
    }
    
    .stat-item {
        flex: 1;
        padding: 0 2rem;
    }
    
    .stat-divider {
        display: block;
        width: 1px;
        height: 60px;
        background: var(--champagne);
        opacity: 0.3;
        flex-shrink: 0;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-suffix {
        font-size: 2rem;
        margin-left: 0.2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .contact {
        padding: 80px 0;
    }
    
    .contact-header {
        margin-bottom: 4rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .form-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .form-group {
        margin-bottom: 0;
    }
    
    .form-group.full-width {
        grid-column: span 2;
    }
    
    .submit-button {
        width: auto;
        padding: 1rem 2.5rem;
    }
    
    .submit-button:hover {
        transform: translateX(5px);
    }
    
    .footer {
        padding: 3rem 0;
    }
    
    .footer-brand {
        font-size: 1.1rem;
    }
    
    .footer-tagline {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
    
    @keyframes expandWidth {
        to {
            opacity: 1;
            width: 80px;
        }
        from {
            opacity: 0;
            width: 0;
        }
    }
    
    .slide-in-left {
        transform: translateX(-50px);
    }
    
    .slide-in-right {
        transform: translateX(50px);
    }
}

/* DESKTOP STYLES - 1024px and up */
@media (min-width: 1024px) {
    .nav-content {
        padding: 1.5rem 0;
    }
    
    .nav-menu {
        gap: 3rem;
    }
    
    .hero-logo {
        width: 450px;
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: clamp(3rem, 5vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .about {
        padding: 100px 0;
    }
    
    .section-title {
        font-size: clamp(2.5rem, 4vw, 3rem);
    }
    
    .about-content {
        grid-template-columns: 1fr 1.2fr;
        gap: 5rem;
        margin-bottom: 5rem;
    }
    
    .image-accent {
        display: block;
        position: absolute;
        top: 30px;
        left: 30px;
        right: -30px;
        bottom: -30px;
        border: 1px solid var(--champagne);
        z-index: -1;
        opacity: 0.5;
    }
    
    .lead-text {
        font-size: 1.25rem;
    }
    
    .contact {
        padding: 100px 0;
    }
}

/* Honeypot field */
.website-url {
    position: absolute;
    left: -9999px;
}
