/* ============================================
   ISLAND CUSTOMS — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(27, 67, 50, 0.15);
    color: #1B4332;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F5F5F0;
}
::-webkit-scrollbar-thumb {
    background: #b5ccb7;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fb591;
}

/* --- Navigation --- */
.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%;
}

#navbar {
    background: rgba(250, 250, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(181, 204, 183, 0.3);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.06);
}

/* Mobile menu button */
.menu-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 1.5px;
    background: #1B4332;
    transition: all 0.3s ease;
}
.menu-btn.active .menu-line:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    top: 5px;
}
.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-btn.active .menu-line:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
    top: 5px;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* --- Hero --- */
.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.9s ease forwards 0.2s;
}
.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.7s ease forwards 0.1s;
}
.hero-body {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.7s ease forwards 0.35s;
}
.hero-ctas {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.7s ease forwards 0.5s;
}
.hero-trust {
    opacity: 0;
    transform: translateY(15px);
    animation: heroReveal 0.7s ease forwards 0.65s;
}
.hero-img-wrapper {
    opacity: 0;
    transform: translateX(30px);
    animation: heroImgReveal 1s ease forwards 0.3s;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes heroImgReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- CTA Buttons --- */
.cta-primary {
    box-shadow: 0 4px 20px rgba(27, 67, 50, 0.2);
}
.cta-primary:hover {
    box-shadow: 0 8px 30px rgba(27, 67, 50, 0.25);
    transform: translateY(-1px);
}
.cta-secondary:hover {
    transform: translateY(-1px);
}

/* --- Section Labels & Titles --- */
.section-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8fb591;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: #1B4332;
}

/* --- Divider --- */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(27, 67, 50, 0.15), transparent);
}

/* --- Service Cards --- */
.service-card {
    background: #FAFAF7;
    transition: background 0.5s ease;
}

/* --- Why Items --- */
.why-item {
    transition: background 0.3s ease;
}
.why-item:hover {
    background: rgba(27, 67, 50, 0.02);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Image Hover --- */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.6s ease;
}
.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.02);
}

/* --- Form Inputs --- */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.08);
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-img-wrapper {
        animation-name: heroImgRevealMobile;
    }
    @keyframes heroImgRevealMobile {
        to { opacity: 1; transform: translateY(0); }
    }
    .hero-img-wrapper {
        transform: translateY(30px);
    }
}
