/* =============================================
   TANITI TOURISM WEBSITE - STYLESHEET
   Color Palette:
   - Ocean Blue: #1a5490
   - Tropical Teal: #20c997
   - Sunshine Yellow: #ffd700
   - Charcoal: #333333
   - Light Gray: #f8f9fa
   ============================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

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

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    background-color: #1a5490;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
}

.logo span {
    color: #20c997;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #20c997;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #20c997;
    transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 84, 144, 0.7) 0%, rgba(32, 201, 151, 0.5) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-small {
    height: 50vh;
    min-height: 350px;
}

.hero-small h1 {
    font-size: 2.75rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #20c997;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1aa87c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #20c997;
    border: 2px solid #20c997;
}

.btn-secondary:hover {
    background-color: #20c997;
    color: #ffffff;
}

/* =============================================
   SECTIONS
   ============================================= */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: #1a5490;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

/* Why Visit Cards */
.why-visit {
    background-color: #f8f9fa;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    color: #1a5490;
    margin-bottom: 0.75rem;
}

.card-content p {
    color: #666;
    font-size: 0.95rem;
}

/* Featured Sections */
.featured-section {
    padding: 4rem 0;
}

.featured-section.blue {
    background-color: #1a5490;
    color: #ffffff;
}

.featured-section.teal {
    background-color: #20c997;
    color: #ffffff;
}

.featured-section h2 {
    color: #ffffff;
    margin-bottom: 2rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.featured-item {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.featured-item:hover {
    transform: scale(1.02);
}

.featured-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.featured-item-content {
    padding: 1rem;
}

.featured-item h4 {
    margin-bottom: 0.5rem;
}

/* Info Banner */
.info-banner {
    background: linear-gradient(135deg, #fffef0 0%, #fff8dc 100%);
    padding: 2rem 0;
    text-align: center;
    border-top: 3px solid #ffd700;
    border-bottom: 3px solid #ffd700;
}

.info-banner .container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-weight: 500;
}

.info-item::before {
    content: '✓';
    color: #20c997;
    font-weight: bold;
    font-size: 1.25rem;
}

/* =============================================
   CONTENT PAGES
   ============================================= */
.content-section {
    padding: 4rem 0;
}

.content-section:nth-child(even) {
    background-color: #f8f9fa;
}

.content-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.content-card-image {
    height: 100%;
    min-height: 250px;
}

.content-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.focus-left {
    object-position: left center;
}

.content-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-card-body h3 {
    color: #1a5490;
    margin-bottom: 1rem;
}

.content-card-body ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.content-card-body li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.content-card-body li::before {
    content: '•';
    color: #20c997;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0.25rem;
}

/* Tip Box */
.tip-box {
    background: linear-gradient(135deg, #e6f9f1 0%, #d4f5e9 100%);
    border-left: 4px solid #20c997;
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
    margin: 2rem 0;
}

.tip-box h4 {
    color: #1a5490;
    margin-bottom: 0.5rem;
}

.tip-box h4::before {
    content: '💡 ';
}

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-category h3 {
    color: #1a5490;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #20c997;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.faq-item p {
    color: #666;
    font-size: 0.95rem;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: #1a5490;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #20c997;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.contact-form h3 {
    color: #1a5490;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #20c997;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background-color: #1a5490;
    color: #ffffff;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #20c997;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #20c997;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 992px) {
    .content-card {
        grid-template-columns: 1fr;
    }
    
    .content-card-image {
        height: 250px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a5490;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-small h1 {
        font-size: 2rem;
    }
    
    h2 { font-size: 1.75rem; }
    
    .info-banner .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}
