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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

/* Color Variables */
:root {
    --cobalt-blue: #2E5BBA;
    --warm-coral: #FF6B6B;
    --sand: #F4E4BC;
    --charcoal: #333333;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --white: #ffffff;
}

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

/* Header */
.header {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e9ecef" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--cobalt-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--charcoal);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: #666;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.cta-button {
    background: var(--cobalt-blue);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: #1e4599;
}

/* Cost Living Section Images */
.cost-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Digital Nomad Cards */
.nomad-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Insights Section Images */
.insights-image img,
.community-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Placeholder Images */
.placeholder-image {
    background: var(--border-color);
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #888;
    font-weight: 500;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image.small {
    min-height: 100px;
    padding: 1rem;
    font-size: 0.9rem;
}

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

.centered-content {
    text-align: center;
}

.centered-content .cost-content,
.centered-content .insights-content,
.centered-content .community-content {
    text-align: left;
}

.section:nth-child(even) {
    background: var(--light-gray);
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.section > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--border-color);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.feature-card p {
    color: #666;
    line-height: 1.5;
}

/* Cost Living Section */
.cost-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.cost-list {
    list-style: none;
    margin-bottom: 2rem;
}

.cost-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
}

.cost-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--cobalt-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.secondary-button {
    background: var(--warm-coral);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.secondary-button:hover {
    background: #e55555;
}

/* Digital Nomad Grid */
.nomad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.nomad-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--border-color);
}

.nomad-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: var(--charcoal);
}

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

/* Expat Insights */
.insights-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.insight-item {
    margin-bottom: 2rem;
}

.insight-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--cobalt-blue);
}

.insight-item p {
    color: #666;
    line-height: 1.5;
}

/* Premium Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.service-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cobalt-blue);
    margin-bottom: 1.5rem;
}

.service-button {
    background: var(--cobalt-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.service-button:hover {
    background: #1e4599;
}

/* Why Choose Us */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-item {
    text-align: center;
    padding: 1.5rem;
}

.why-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--cobalt-blue);
}

.why-item p {
    color: #666;
    line-height: 1.5;
}

/* Community Section */
.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.community-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.community-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.community-text ul {
    list-style: none;
    margin-bottom: 2rem;
}

.community-text li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.community-text li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--warm-coral);
    font-weight: bold;
    font-size: 1.2rem;
}

.community-button {
    background: var(--warm-coral);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.community-button:hover {
    background: #e55555;
}

/* Contacts Section */
.contacts {
    background: var(--sand);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.contact-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--cobalt-blue);
}

.contact-item p {
    color: #666;
    font-size: 1.1rem;
}

.contact-button {
    background: var(--cobalt-blue);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 2rem auto 0;
}

.contact-button:hover {
    background: #1e4599;
}

/* Footer */
.footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 2rem 0 1rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-brand .footer-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.footer-logo .brand-name {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #555;
}

.footer-bottom p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--charcoal);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--charcoal);
    text-align: center;
}

.order-form {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cobalt-blue);
    box-shadow: 0 0 0 3px rgba(46, 91, 186, 0.1);
}

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

.submit-button {
    background: var(--cobalt-blue);
    color: var(--white);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.submit-button:hover {
    background: #1e4599;
}

/* Advanced Cookie Banner Styles */
.cookie-banner,
.cookie-preferences {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--charcoal);
    color: var(--white);
    padding: 1.5rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--cobalt-blue);
}

.cookie-banner.show,
.cookie-preferences.show {
    transform: translateY(0);
}

.cookie-content,
.preferences-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-text a {
    color: var(--warm-coral);
    text-decoration: none;
    font-weight: 500;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.cookie-btn.accept {
    background: var(--cobalt-blue);
    color: var(--white);
}

.cookie-btn.accept:hover {
    background: #1e4599;
    transform: translateY(-1px);
}

.cookie-btn.reject {
    background: var(--warm-coral);
    color: var(--white);
}

.cookie-btn.reject:hover {
    background: #e55555;
    transform: translateY(-1px);
}

.cookie-btn.customize {
    background: transparent;
    color: var(--white);
    border: 2px solid #666;
}

.cookie-btn.customize:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-1px);
}

/* Cookie Preferences Modal */
.preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #555;
}

.preferences-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--white);
}

.preferences-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preferences-close:hover {
    color: var(--white);
}

.cookie-categories {
    margin-bottom: 2rem;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #555;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.category-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--white);
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .toggle-slider {
    background-color: var(--cobalt-blue);
}

.cookie-toggle input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.cookie-toggle input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.category-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.preferences-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #555;
}

.preferences-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preferences-btn.save {
    background: var(--cobalt-blue);
    color: var(--white);
}

.preferences-btn.save:hover {
    background: #1e4599;
}

.preferences-btn.cancel {
    background: transparent;
    color: #ccc;
    border: 1px solid #555;
}

.preferences-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-image img {
        height: 300px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .cost-content,
    .insights-content,
    .community-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        min-width: 120px;
    }
    
    .preferences-actions {
        flex-direction: column;
    }
    
    .preferences-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section h2 {
        font-size: 1.75rem;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
}