/* ============================================
   COXIE LLC — Custom Styles
   Classic & Elegant · Forest Green + Off-White
   ============================================ */

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

body {
    overflow-x: hidden;
}

::selection {
    background: #1B4332;
    color: #F0F0E8;
}

/* ---- Navigation ---- */
.nav-header {
    background: rgba(253, 253, 249, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

.nav-header.scrolled {
    border-bottom-color: rgba(27, 67, 50, 0.1);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #1B4332;
    transition: width 0.3s ease;
}

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

/* ---- Mobile Menu ---- */
.mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-link {
    font-family: 'Playfair Display', Georgia, serif;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }

/* ---- Hero ---- */
.clip-hero-bg {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-word {
    transform: translateY(100%);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-word:nth-child(1) { animation-delay: 0.1s; }
.hero-word:nth-child(2) { animation-delay: 0.2s; }
.hero-word:nth-child(3) { animation-delay: 0.3s; }
.hero-word:nth-child(4) { animation-delay: 0.4s; }
.hero-word:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideUp {
    to { transform: translateY(0); }
}

.hero-tagline {
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ---- Scroll Indicator ---- */
.scroll-line {
    animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -50%; }
    100% { top: 150%; }
}

/* ---- Buttons ---- */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    transition: all 0.3s ease;
}

/* ---- Section Labels ---- */
.section-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #1B4332;
    font-weight: 500;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ---- Service Cards ---- */
.service-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(27, 67, 50, 0.15);
}

/* ---- Approach Steps ---- */
.approach-step {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.approach-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.approach-step:nth-child(1) { transition-delay: 0.1s; }
.approach-step:nth-child(2) { transition-delay: 0.2s; }
.approach-step:nth-child(3) { transition-delay: 0.3s; }
.approach-step:nth-child(4) { transition-delay: 0.4s; }

/* ---- Input Fields ---- */
.input-field {
    background: #FDFDF9;
    border: 1px solid #E8E6D8;
    border-radius: 6px;
    padding: 12px 16px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #1A1A1A;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    width: 100%;
}

.input-field::placeholder {
    color: #BFB89A;
}

.input-field:focus {
    border-color: #1B4332;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.08);
}

.input-field:hover:not(:focus) {
    border-color: #8fb894;
}

/* ---- Reveal Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.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; }

/* ---- Image hover ---- */
img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
    .clip-hero-bg {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-word {
        font-size: 2.5rem !important;
    }

    @media (min-width: 640px) {
        .hero-word {
            font-size: 3rem !important;
        }
    }
}

/* ---- Print ---- */
@media print {
    .nav-header, .mobile-menu, #menu-toggle { display: none; }
    body { background: white; }
}
