/* Home365 - Shared Styles */

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

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

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #012169;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: #C8102E;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.nav-links a {
    text-decoration: none;
    color: #012169;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

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

.nav-links .dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.nav-links a:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.login-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #012169;
    font-size: 15px;
    font-weight: 500;
}

.login-link:hover {
    color: #C8102E;
}

.help-link {
    text-decoration: none;
    color: #012169;
    font-size: 15px;
    font-weight: 500;
}

.help-link:hover {
    color: #C8102E;
}

/* Buttons */
.btn-primary {
    background: #C8102E;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: #A00D24;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #012169;
    border: 2px solid #012169;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #012169;
    color: white;
}

.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-icon span {
    width: 24px;
    height: 2px;
    background: #012169;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    overflow-y: auto;
}

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

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mobile-nav-close svg {
    width: 24px;
    height: 24px;
    color: #012169;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-nav-overlay.active {
    opacity: 1;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    margin-bottom: 8px;
}

.mobile-nav ul a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    font-weight: 500;
    color: #012169;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s;
}

.mobile-nav ul a:hover,
.mobile-nav ul a.active {
    color: #C8102E;
}

.mobile-nav .mobile-cta {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.mobile-nav .mobile-cta .btn-primary {
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
}

.mobile-nav .mobile-cta .login-link {
    display: flex;
    justify-content: center;
    padding: 12px;
}

.menu-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.menu-dots span {
    width: 4px;
    height: 4px;
    background: #012169;
    border-radius: 50%;
}

/* Map Section */
.map-section {
    width: 100%;
    height: 450px;
    background: #f0f0f0;
}

.map-section iframe {
    display: block;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    padding: 80px 40px;
    text-align: center;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #012169;
}

.page-hero h1 .highlight {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
}

.page-hero p {
    font-size: 18px;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 80px 40px;
}

.section-light {
    background: #ffffff;
}

.section-grey {
    background: #f8f9ff;
}

.section-dark {
    background: #012169;
    color: white;
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 16px;
}

.section-title .highlight {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
}

.section-subtitle {
    font-size: 18px;
    color: #555;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-dark .section-subtitle {
    color: #a0a0a0;
}

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

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #C8102E 0%, #E8192E 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #012169;
}

.card p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-item svg {
    width: 24px;
    height: 24px;
    color: #C8102E;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item span {
    font-size: 15px;
    color: #555;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

.two-column-image {
    border-radius: 20px;
    width: 100%;
    height: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.two-column-content h2 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #012169;
}

.two-column-content h2 .highlight {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
}

.two-column-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* Location Cards */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.location-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
}

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

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

.location-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.location-card h3 {
    font-size: 20px;
    font-weight: 600;
}

.location-card span {
    font-size: 14px;
    opacity: 0.8;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    padding: 60px 40px;
    background: #012169;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 600;
    color: #C8102E;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 16px;
    color: #a0a0a0;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #012169;
}

.team-card .role {
    font-size: 14px;
    color: #C8102E;
    margin-bottom: 12px;
}

.team-card p {
    font-size: 14px;
    color: #555;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    padding: 24px 0;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #012169;
}

.faq-question:hover {
    color: #C8102E;
}

.faq-question::after {
    content: "+";
    font-size: 24px;
    color: #C8102E;
}

.faq-answer {
    padding: 0 0 24px;
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question::after {
    content: "−";
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #012169;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #C8102E 0%, #A00D24 100%);
    padding: 80px 40px;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 16px;
}

.cta-section h2 .highlight {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
}

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

.cta-section .btn-primary {
    background: white;
    color: #C8102E;
}

.cta-section .btn-primary:hover {
    background: #f5f5f5;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 40px;
    background: #012169;
    color: #a0a0a0;
    font-size: 14px;
}

footer p {
    margin: 4px 0;
}

footer a {
    color: #C8102E;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #E8192E;
}

/* Responsive Design */
@media (max-width: 1024px) {
    header {
        padding: 14px 24px;
    }

    nav {
        display: none;
    }

    .header-right .login-link,
    .header-right .help-link,
    .header-right .btn-primary {
        display: none;
    }

    .menu-icon {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .mobile-nav-overlay {
        display: block;
    }

    .page-hero {
        padding: 60px 24px;
    }

    .page-hero h1 {
        font-size: 36px;
    }

    .section {
        padding: 60px 24px;
    }

    .section-title {
        font-size: 30px;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .two-column.reverse {
        direction: ltr;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 40px 24px;
    }

    .stat-item h3 {
        font-size: 36px;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .map-section {
        height: 350px;
    }

    .map-section iframe {
        height: 350px;
    }
}

@media (max-width: 640px) {
    header {
        padding: 12px 16px;
    }

    .logo {
        font-size: 22px;
    }

    .page-hero {
        padding: 40px 16px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .section {
        padding: 40px 16px;
    }

    .section-title {
        font-size: 26px;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 60px 16px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .contact-form {
        padding: 24px;
    }

    .mobile-nav {
        max-width: 100%;
    }

    .map-section {
        height: 300px;
    }

    .map-section iframe {
        height: 300px;
    }
}
