/* ===================================
   N&T Services LLC - Custom Styles
   =================================== */

/* Custom Properties */
:root {
    --color-forest: #1B4332;
    --color-dark-green: #081C15;
    --color-emerald: #2D6A4F;
    --color-light-green: #52B788;
    --color-gold: #D4A373;
    --color-off-white: #FAF9F6;
    --color-white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: #374151;
    background-color: var(--color-off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */
.font-montserrat { font-family: var(--font-heading); }
.font-open-sans { font-family: var(--font-body); }

/* ===================================
   Navigation
   =================================== */
.navbar {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.1);
}

.navbar.scrolled {
    background: rgba(250, 249, 246, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--color-forest) !important;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 400px;
}

.mobile-nav-link {
    display: block;
    padding: 8px 0;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
}

.hero-shapes {
    pointer-events: none;
}

/* Hero Animations */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-shape {
    animation: float 6s ease-in-out infinite;
}

.hero-shape:nth-child(2) { animation-delay: -1s; }
.hero-shape:nth-child(3) { animation-delay: -2s; }
.hero-shape:nth-child(4) { animation-delay: -3s; }
.hero-shape:nth-child(5) { animation-delay: -4s; }
.hero-shape:nth-child(6) { animation-delay: -5s; }
.hero-shape:nth-child(7) { animation-delay: -2.5s; }
.hero-shape:nth-child(8) { animation-delay: -3.5s; }

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ===================================
   Section Styles
   =================================== */
.section-label {
    letter-spacing: 0.2em;
}

.section-title {
    letter-spacing: -0.02em;
}

.section-subtitle {
    line-height: 1.8;
}

/* ===================================
   Service Cards
   =================================== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--color-gold);
    transition: height 0.3s ease;
}

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

/* ===================================
   About Section
   =================================== */
.about-image {
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.02);
}

.about-shape-1 {
    animation: float 4s ease-in-out infinite;
}

.about-shape-2 {
    animation: float 5s ease-in-out infinite reverse;
}

/* ===================================
   Why Us Cards
   =================================== */
.why-card {
    transition: transform 0.3s ease;
}

.why-card:hover {
    transform: translateY(-8px);
}

.why-icon {
    transition: all 0.3s ease;
}

/* ===================================
   Contact Section
   =================================== */
.contact-info-card {
    transition: transform 0.3s ease;
}

.contact-info-card:hover {
    transform: translateX(8px);
}

.contact-icon {
    transition: all 0.3s ease;
}

/* Form Styles */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--color-forest);
    box-shadow: 0 0 0 4px rgba(27, 67, 50, 0.1);
}

.form-input::placeholder {
    color: #9CA3AF;
}

.success-message {
    animation: fadeInUp 0.5s ease forwards;
}

/* ===================================
   Footer
   =================================== */
footer a {
    text-decoration: none;
}

/* ===================================
   Scroll Animations
   =================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Staggered animation delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.6s; }

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .about-stats-card {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: 1rem;
    }
    
    .about-shape-1,
    .about-shape-2 {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-forestgreen { color: var(--color-forest); }
.text-darkgreen { color: var(--color-dark-green); }
.bg-forestgreen { background-color: var(--color-forest); }
.bg-darkgreen { background-color: var(--color-dark-green); }
.bg-offwhite { background-color: var(--color-off-white); }
.text-[#D4A373] { color: var(--color-gold); }
.bg-\[\#D4A373\] { background-color: var(--color-gold); }
.bg-\[\#D4A373\]\/20 { background-color: rgba(212, 163, 115, 0.2); }
.bg-\[\#D4A373\]\/10 { background-color: rgba(212, 163, 115, 0.1); }
.bg-\[\#D4A373\]\/30 { background-color: rgba(212, 163, 115, 0.3); }
.hover\:bg-\[\#D4A373\]:hover { background-color: var(--color-gold); }
.hover\:text-\[\#D4A373\]:hover { color: var(--color-gold); }
