/* ========================================
   FARE Rental Huahine - Stylesheet
   ======================================== */

:root {
    --primary: #2D8B4E;
    --primary-dark: #1e6e3a;
    --primary-light: #4CAF50;
    --accent: #F5B731;
    --accent-dark: #d9a029;
    --tropical-green: #1B5E20;
    --tropical-lime: #8BC34A;
    --tropical-yellow: #FFD54F;
    --tropical-orange: #FF8F00;
    --dark: #1a2e1a;
    --dark-light: #2d442d;
    --gray: #5f7060;
    --gray-light: #f0f5ee;
    --white: #ffffff;
    --cream: #FFFDE7;
    --facebook: #1877F2;
    --messenger: #006AFF;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 55px;
    width: auto;
    border-radius: 50%;
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.navbar.scrolled .nav-links a {
    color: var(--dark);
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--dark) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: var(--transition);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--accent-dark) !important;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .menu-toggle span {
    background: var(--dark);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(245, 183, 49, 0.4);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 183, 49, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-facebook {
    background: var(--facebook);
    color: var(--white);
    margin-top: 12px;
    padding: 12px 24px;
    font-size: 0.9rem;
}

.btn-facebook:hover {
    background: #1565d8;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a2810 0%, #1B5E20 50%, #2E7D32 100%);
    background-image: url('farerental_bg1_2048.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 40, 16, 0.75) 0%,
        rgba(27, 94, 32, 0.5) 50%,
        rgba(45, 139, 78, 0.35) 100%
    );
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    padding: 120px 0 80px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(135deg, var(--tropical-yellow), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.hero-scroll a:hover {
    color: var(--white);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   Section Common
   ======================================== */

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Services
   ======================================== */

.services {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--tropical-lime);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--tropical-green), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.service-icon svg {
    stroke: var(--white);
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   Gallery
   ======================================== */

.galerie {
    padding: 100px 0;
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-item-large {
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

/* ========================================
   Why Us
   ======================================== */

.why-us {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--tropical-green) 100%);
    color: var(--white);
}

.why-us .section-title {
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--tropical-yellow), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========================================
   Info Section
   ======================================== */

.infos {
    padding: 100px 0;
    background: var(--white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.info-card {
    background: var(--gray-light);
    padding: 36px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.info-card:hover {
    border-bottom-color: var(--accent);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    color: var(--tropical-green);
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

.info-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.info-card a {
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.info-card a:hover {
    color: var(--primary-dark);
}

.info-card a.btn-facebook {
    color: var(--white);
}

.info-card a.btn-facebook:hover {
    color: var(--white);
}

.info-card-highlight {
    background: linear-gradient(135deg, #EBF5FF, #E8F4FD);
    border: 2px solid rgba(24, 119, 242, 0.15);
    border-bottom: 3px solid var(--facebook);
}

.info-card-highlight .info-icon {
    color: var(--facebook);
}

/* ========================================
   CTA Section
   ======================================== */

.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--tropical-orange) 100%);
    text-align: center;
    color: var(--dark);
}

.cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background: var(--tropical-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.cta .btn-primary .btn-icon {
    fill: var(--white);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
    border-top: 4px solid var(--accent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    height: 70px;
    width: auto;
    border-radius: 50%;
}

.footer-brand p {
    margin-top: 8px;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-social {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transition: var(--transition);
}

.footer-social svg {
    width: 22px;
    height: 22px;
}

.footer-social:first-child:hover {
    background: var(--facebook);
}

.footer-social:last-child:hover {
    background: var(--messenger);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

/* ========================================
   Animations (scroll reveal)
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item-large {
        grid-row: span 2;
    }

    .gallery-item-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    }

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

    .nav-links a {
        color: rgba(255,255,255,0.9) !important;
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .gallery-item-large {
        grid-row: span 1;
    }

    .gallery-item-wide {
        grid-column: span 1;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 14px 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content {
        padding: 100px 0 60px;
    }

    .services,
    .galerie,
    .why-us,
    .infos,
    .cta {
        padding: 70px 0;
    }
}
