/* --- CSS STYLES --- */

/* 1. Global Styles & Variables */
:root {
    --primary-blue: #0077b6;
    --secondary-green: #2d6a4f;
    --accent-orange: #f77f00;
    --light-bg: #f8f9fa;
    --dark-text: #343a40;
    --light-text: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--light-bg);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-orange);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
    background-color: #e07100;
    transform: translateY(-3px);
}

/* 2. Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.logo i {
    color: var(--accent-orange);
    margin-right: 5px;
}

.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

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

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

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.burger-menu {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary-blue);
}

/* 3. Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/main.jpg') no-repeat center center/cover;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* 4. Services Section (Immigration) */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.2);
}

.card .icon {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    color: var(--secondary-green);
}

.card .description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-details {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.service-details li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.service-details .fa-check {
    color: var(--secondary-green);
    margin-right: 10px;
}

.card .btn {
    background-color: var(--secondary-green);
    font-size: 0.9rem;
    align-self: center;
}

.card .btn:hover {
    background-color: #255a43;
}

/* 5. Property Services Section */
h3.section-subtitle {
    text-align: center;
    font-size: 2rem;
    color: var(--secondary-green);
    margin-top: 50px;
    margin-bottom: 30px;
    position: relative;
}

h3.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-orange);
}

h3.section-subtitle:first-of-type {
    margin-top: 0;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.property-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.property-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.property-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-card h4 {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.property-card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
    flex-grow: 1;
}

.property-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-green);
    margin-bottom: 20px;
}

.property-card .btn {
    background: var(--primary-blue);
    width: 100%;
}

.property-card .btn:hover {
    background: #005f8c;
}

/* --- Real Estate & Translation Accordion Styles --- */
.accordion-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.accordion-item {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease-in-out;
    background: #fff; /* Default background */
}

.accordion-header {
    width: 100%;
    padding: 25px 30px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius);
    transition: all 0.3s ease-in-out;
}

.accordion-title-group {
    display: flex;
    align-items: center;
}

.accordion-title-group i {
    font-size: 1.8rem;
    margin-right: 20px;
    width: 40px;
    text-align: center;
    transition: transform 0.3s ease;
}

.accordion-title-group h4 {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin: 0;
}

.accordion-icon {
    font-size: 1.8rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    line-height: 1;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 30px;
}

.accordion-content p {
    padding-bottom: 30px;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Accordion Active State */
.accordion-item.active .accordion-icon {
    transform: rotate(45deg); /* Turns '+' into 'x' */
}
#faq .accordion-item.active .accordion-icon i {
     transform: rotate(180deg);
}

.accordion-item.active .accordion-title-group i {
    transform: scale(1.1);
}

/* Accordion Color & Glow Themes */
.accordion-item-green {
    background-color: rgba(45, 106, 79, 0.05);
    box-shadow: 0 0 15px -5px rgba(45, 106, 79, 0.0);
}
.accordion-item-green:hover {
    box-shadow: 0 0 25px -5px rgba(45, 106, 79, 0.4);
}
.accordion-item-green i { color: var(--secondary-green); }

.accordion-item-orange {
    background-color: rgba(247, 127, 0, 0.05);
    box-shadow: 0 0 15px -5px rgba(247, 127, 0, 0.0);
}
.accordion-item-orange:hover {
    box-shadow: 0 0 25px -5px rgba(247, 127, 0, 0.4);
}
.accordion-item-orange i { color: var(--accent-orange); }

.accordion-item-blue {
    background-color: rgba(0, 119, 182, 0.05);
    box-shadow: 0 0 15px -5px rgba(0, 119, 182, 0.0);
}
.accordion-item-blue:hover {
    box-shadow: 0 0 25px -5px rgba(0, 119, 182, 0.4);
}
.accordion-item-blue i { color: var(--primary-blue); }

.accordion-item-grey {
    background-color: rgba(52, 58, 64, 0.04);
    box-shadow: 0 0 15px -5px rgba(52, 58, 64, 0.0);
}
.accordion-item-grey:hover {
    box-shadow: 0 0 25px -5px rgba(52, 58, 64, 0.25);
}
.accordion-item-grey i { color: var(--dark-text); }


/* Fee Notice */
.final-fee-notice {
    text-align: center;
    background: #fff;
    border: 2px dashed rgba(247, 127, 0, 0.3);
    padding: 30px;
    margin-top: 50px;
    border-radius: var(--border-radius);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.final-fee-notice p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-text);
}
.final-fee-notice strong {
    color: #c46500;
}

/* 6. Translation Section (uses accordion) */
#translation-services .accordion-container {
    max-width: 900px;
    margin: 0 auto;
}

/* 7. Essential Belize Section */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.category-header:first-of-type {
    margin-top: 0;
}

.category-header h3 {
    color: var(--dark-text);
    margin-bottom: 0;
    font-size: 1.8rem;
}

.see-all-link {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
}

.see-all-link:hover {
    text-decoration: underline;
}

.essential-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.essential-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image-container {
    position: relative;
    width: 100%;
    height: 220px;
}

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

.like-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--dark-text);
    transition: background-color 0.2s;
}
.like-button:hover {
    background: #fff;
}
.like-button .fas { /* Style for a clicked heart */
    color: #ff4d4d;
}

.badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.essential-card .card-content {
    padding: 20px;
}

.essential-card h4 {
    font-size: 1.2rem;
    color: var(--dark-text);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.rating-circles {
    color: #00aa6c; /* TripAdvisor green */
    font-size: 1rem;
    letter-spacing: 1px;
}

.rating-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 8px;
}

.card-category {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 8. FAQ Section */
#faq .accordion-item {
    background: white;
    margin-bottom: 15px;
    border: 1px solid #eee;
}
#faq .accordion-header {
    padding: 20px;
}
#faq .accordion-title-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
}
#faq .accordion-icon i {
    transition: transform 0.3s ease;
    color: var(--primary-blue);
    font-size: 1.1rem;
}
#faq .accordion-content {
    padding: 0 20px;
}
#faq .accordion-content p {
    padding-bottom: 20px;
}

/* 9. Blog Section */
#blog {
    background-color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-card-image {
    height: 220px;
    overflow: hidden; /* Important for the zoom effect */
}

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

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

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Key for equal height cards */
}

.blog-card-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 10px;
    font-weight: 500;
}

.blog-card-date i {
    color: var(--accent-orange);
    margin-right: 8px;
}

.blog-card h3 {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: #555;
    margin-bottom: 25px;
    flex-grow: 1; /* Key for aligning buttons at the bottom */
}

.btn-blog {
    background-color: var(--secondary-green);
    width: fit-content;
    align-self: flex-start; /* Aligns button to the left */
}

.btn-blog:hover {
    background-color: #255a43;
}


/* 10. Footer */
.main-footer {
    background-color: var(--dark-text);
    color: #ccc;
    padding: 50px 0;
    text-align: center;
}

.footer-content h3 {
    color: white;
    margin-bottom: 10px;
}

.footer-content p {
    max-width: 600px;
    margin: 0 auto 20px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: #aaa;
    max-width: 700px;
    margin: 0 auto;
}

.disclaimer a {
    color: #fff;
    text-decoration: underline;
}


/* 11. Responsive Design */
@media (max-width: 992px) {
    h2 {
        font-size: 2.2rem;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px; /* Header height */
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: var(--box-shadow);
        padding: 20px 0;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .nav-links li {
        margin: 15px 20px;
        text-align: center;
    }
    .nav-links a::after {
        display: none;
    }
    .burger-menu {
        display: block;
    }
    .essential-grid, .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .property-grid, .essential-grid, .blog-grid {
        grid-template-columns: 1fr; /* Stack property cards */
    }
    .accordion-title-group h4 {
        font-size: 1.1rem;
    }
    .category-header h3 {
        font-size: 1.5rem;
    }
}