/* ============================================
   Camp Marine — Custom Styles
   ============================================ */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFFF9;
}
::-webkit-scrollbar-thumb {
    background: #A5D6A7;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #66BB6A;
}

/* Selection */
::selection {
    background: #C8E6C9;
    color: #1B4332;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(27, 67, 50, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
    position: relative;
}

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

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

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-nav:hover {
    background: white;
    color: #1B4332;
    border-color: white;
}

/* Mobile menu */
.mobile-nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   Hero
   ============================================ */
#hero {
    position: relative;
}

/* ============================================
   Section Styles
   ============================================ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #40916C;
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #40916C, #A5D6A7);
    border-radius: 2px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    color: #1B4332;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2D6A4F;
    opacity: 0.7;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: #1B4332;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 100px;
    border: 2px solid #1B4332;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #2D6A4F;
    border-color: #2D6A4F;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 67, 50, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 100px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: white;
    color: #1B4332;
    border-color: white;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: transparent;
    color: #1B4332;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 100px;
    border: 2px solid #1B4332;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background: #1B4332;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 67, 50, 0.2);
}

/* ============================================
   Product Cards
   ============================================ */
.card {
    background: white;
    border-radius: 1.25rem;
    padding: 0;
    border: 1px solid rgba(27, 67, 50, 0.06);
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(27, 67, 50, 0.04);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(27, 67, 50, 0.12);
}

/* ============================================
   Service Cards (dark section)
   ============================================ */
.service-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

/* ============================================
   Form Inputs
   ============================================ */
.input-field {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #FDFFF9;
    border: 1.5px solid #E8F5E9;
    border-radius: 0.75rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.95rem;
    color: #1B4332;
    transition: all 0.3s ease;
    outline: none;
}

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

.input-field:focus {
    border-color: #40916C;
    background: white;
    box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.1);
}

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

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .btn-primary, .btn-secondary, .btn-outline {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
