/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #213547;
    background-color: #eef4fb;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

a {
    color: #1d4f91;
    text-decoration: none;
}

section a {
    color: #1d4f91;
    text-decoration: underline;
}

section a:hover {
    color: #0b3d91;
}

/* Header */
header {
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.95) 12%, #1d4f91 100%);
    padding: 1.2rem 1.5rem 1.8rem;
    box-shadow: 0 20px 70px rgba(15, 45, 91, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.contact-info {
    margin: 0 auto;
    padding: 0.85rem 1.4rem;
    max-width: 680px;
    width: min(680px, calc(100% - 2rem));
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
    background-color: rgba(255, 255, 255, 0.96);
    color: #0b3d91;
    border-radius: 999px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(29, 79, 145, 0.12);
    position: relative;
    z-index: 500;
    transform: translateY(-0.4rem);
}

.contact-info p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-info a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    background: linear-gradient(135deg, #1d4f91, #4d8dff);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    min-width: 190px;
    transition: background 0.3s, transform 0.3s;
}

.contact-info a:hover {
    background: linear-gradient(135deg, #0b3d91, #1d4f91);
    transform: translateY(-1px);
}

nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(100%, 1400px);
    max-width: 1400px;
    min-height: 120px;
    padding: 1rem 1.2rem 1rem;
    margin: 0 auto;
    background: rgba(255,255,255,0.96);
    border-radius: 34px;
    box-shadow: 0 18px 45px rgba(15, 45, 91, 0.1);
    border: 1px solid rgba(255,255,255,0.8);
}

.logo {
    position: static;
    transform: none;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.98);
    border-radius: 26px;
    box-shadow: 0 16px 35px rgba(29, 79, 145, 0.08);
    margin-right: 1rem;
}

.header-logo {
    max-height: 132px;
    width: auto;
    border-radius: 24px;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.35rem;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    flex: 1;
    max-width: 1200px;
    row-gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links li {
    flex: 0 0 auto;
}

.nav-links a {
    color: #0b3d91;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.25s ease;
    padding: 0.5rem 0.85rem;
    border-radius: 14px;
    background-color: rgba(255,255,255,0.96);
    border: 1px solid rgba(29, 79, 145, 0.14);
    box-shadow: 0 10px 22px rgba(29, 79, 145, 0.04);
    white-space: nowrap;
}

.nav-links a:hover {
    color: #fff;
    background-color: #1d4f91;
    border-color: transparent;
    box-shadow: 0 14px 34px rgba(25, 64, 141, 0.16);
}

.hamburger {
    display: none !important;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s;
}

.hamburger:hover {
    transform: scale(1.1);
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero */
.hero {
    background: #ffffff;
    color: #213547;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(15, 45, 91, 0.08);
    margin: 0.8rem auto 0;
    width: min(1080px, calc(100% - 2rem));
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #0b3d91;
    line-height: 1.08;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero h2 {
    font-size: 1.9rem;
    margin-top: 0.8rem;
    font-weight: 600;
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section:nth-child(even) {
    background-color: #f8f9fa;
}

section:nth-child(odd) {
    background-color: #fff;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #1d4f91;
    border-bottom: 2px solid #1d4f91;
    padding-bottom: 0.5rem;
}

/* Services */
.services p {
    text-align: center;
    margin-bottom: 2rem;
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.service {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1 1 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.service h3 {
    margin-bottom: 1rem;
    color: #1d4f91;
}

.service a {
    display: inline;
    margin-top: 1rem;
    color: #1d4f91;
    text-decoration: underline;
    font-size: 1rem;
}

.service a:hover {
    color: #0b3d91;
}

/* About */
.about {
    text-align: center;
}

.about img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 8px;
}

/* Team */
.team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.member {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1 1 250px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.member:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.member h3 {
    color: #2e7d32;
}

/* Structure */
.units {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.unit {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1 1 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.unit img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.unit h3 {
    color: #2e7d32;
}

/* Health Plans */
.plans {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.plans img {
    max-width: 200px;
    height: auto;
}

/* Testimonials */
.testimonial-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.testimonial {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1 1 300px;
    text-align: center;
    font-style: italic;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.testimonial cite {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    font-style: normal;
    color: #2e7d32;
}

/* Resources */
.resources p {
    text-align: center;
    margin-bottom: 2rem;
}

.resource-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.resource {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1 1 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.resource:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.resource h3 {
    margin-bottom: 1rem;
    color: #1d4f91;
}

.resource a {
    display: inline;
    margin-top: 1rem;
    color: #1d4f91;
    text-decoration: underline;
    font-size: 1rem;
}

.resource a:hover {
    color: #0b3d91;
}

/* Blog */
.blog p {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.post {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1 1 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.post h3 {
    margin-bottom: 1rem;
    color: #1d4f91;
}

.post a {
    display: inline;
    margin-top: 1rem;
    color: #1d4f91;
    text-decoration: underline;
    font-size: 1rem;
}

.post a:hover {
    color: #0b3d91;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.faq-item h3 {
    color: #1d4f91;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #213547;
}

/* Contact */
.contact {
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact iframe {
    width: 100%;
    max-width: 640px;
    height: 1344px;
    border: none;
    border-radius: 8px;
    margin: 1rem auto;
    display: block;
}

/* Footer */
footer {
    background: linear-gradient(90deg, #0b3d91, #1d4f91, #eef4fb);
    color: #fff;
    text-align: center;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.footer-socials a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.footer-socials svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.footer-developed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin: 0 auto;
    padding: 0 1rem;
    max-width: min(860px, calc(100% - 2rem));
}

.footer-developed span {
    margin: 0;
    line-height: 1.4;
    color: #fff;
    white-space: nowrap;
    display: inline-block;
}

.footer-robycorp-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-robycorp-logo img {
    display: block;
    height: 140px;
    width: auto;
    max-width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
    nav {
        width: min(100%, calc(100% - 1.5rem));
        padding: 1rem 0.9rem;
        min-height: auto;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .logo {
        margin-right: 0;
    }

    .header-logo {
        max-height: 100px;
    }

    .nav-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: calc(100% + 0.75rem);
        background-color: #fff;
        width: min(100%, 420px);
        max-width: 520px;
        padding: 1rem 0.75rem 1.25rem;
        box-shadow: 0 22px 60px rgba(15, 45, 91, 0.18);
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        border-radius: 24px;
        z-index: 1001;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 1100;
        padding: 0.55rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 14px 28px rgba(15, 45, 91, 0.08);
    }

    .nav-links li,
    .nav-links a {
        width: 100%;
    }

    .nav-links a {
        text-align: center;
        padding: 0.85rem 1rem;
    }

    .contact-info {
        width: min(720px, calc(100% - 2rem));
        padding: 0.85rem 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .service-list,
    .team-members,
    .units {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    section {
        padding: 3rem 1.2rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.85rem 0.9rem;
        border-radius: 24px;
    }

    .logo {
        padding: 0.65rem 0.85rem;
    }

    .header-logo {
        max-height: 90px;
    }

    .hero {
        padding: 2.5rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .contact-info {
        width: min(100%, calc(100% - 2rem));
        padding: 0.75rem 1rem;
        gap: 0.65rem;
    }

    .footer-developed {
        max-width: 100%;
        gap: 0.75rem;
        padding: 0 0.75rem;
    }

    .footer-developed span {
        font-size: 0.95rem;
    }

    .footer-robycorp-logo img {
        height: 100px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.75rem 0.75rem;
    }

    .nav-links {
        width: calc(100% - 1.5rem);
        padding: 0.9rem 0.75rem 1rem;
        top: calc(100% + 0.5rem);
        max-width: none;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 0.75rem 0.85rem;
    }

    .header-logo {
        max-height: 75px;
    }

    .contact-info {
        padding: 0.75rem 0.8rem;
        gap: 0.6rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    section {
        padding: 1.5rem 0.9rem;
    }

    .footer-developed {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .footer-developed span {
        font-size: 0.85rem;
    }

    .footer-robycorp-logo img {
        height: 80px;
    }
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}
