/* Global Styles */
:root {
    --primary-color: #FF8C00;
    --primary-gradient: linear-gradient(135deg, #FF8C00 0%, #FF5500 100%);
    --secondary-color: #333333;
    --text-color: #444;
    --light-grey: #f4f6f8;
    --white: #ffffff;
    --dark-bg: #222222;
    --font-main: 'Roboto', sans-serif;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(255, 140, 0, 0.15);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CGB Top Bar */
.topbar {
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.9rem;
    padding: 8px 0;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar-text {
    color: #f0f0f0;
}

.topbar-text strong {
    color: #fff;
}

.topbar-link {
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

.topbar-link:hover {
    color: #ffb14d;
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary-color);
}

.logo-img {
    height: 74px;
    width: auto;
    margin-right: 16px;
    border-radius: 4px;
    object-fit: contain;
}

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

.primary-nav ul {
    display: flex;
    gap: 26px;
    list-style: none;
    align-items: center;
}

.primary-nav a {
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
}

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

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

.nav-cgb a {
    color: var(--primary-color);
    font-weight: 700;
}

/* Burger toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 13px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 20px;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
    border-color: transparent;
}

/* Hero Section */
.hero-section {
    position: relative;
    background:
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.68)),
        url('hero_bg.png');
    background-size: cover;
    background-position: center;
    padding: 52px 0 62px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 440px;
    height: 78%;
    background-image: url('logo.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.12;
    z-index: 0;
}

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

.hero-section h1 {
    font-size: 2.15rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 800;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.hero-sub {
    font-size: 1.12rem;
    margin-bottom: 1.7rem;
    color: #555;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-row {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-button {
    background: var(--primary-gradient);
    color: white;
    padding: 15px 38px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(255, 140, 0, 0.4);
}

.cta-secondary {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 50px;
    border: 2px solid rgba(51, 51, 51, 0.15);
}

.cta-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Sections General */
.section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 3.5rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.section-cta {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.05rem;
}

.section-cta a {
    color: var(--primary-color);
    font-weight: 600;
}

.section-cta a:hover {
    text-decoration: underline;
}

/* About Section */
.content-block {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border-top: 5px solid var(--primary-color);
}

.content-block p {
    font-size: 1.12rem;
    color: #555;
}

.about-links {
    margin-top: 1.4rem;
    font-size: 1rem !important;
    color: #666 !important;
}

.about-links a {
    color: var(--primary-color);
    font-weight: 600;
}

.about-links a:hover {
    text-decoration: underline;
}

/* Studies block */
.studies-block {
    max-width: 1000px;
    display: flex;
    gap: 40px;
    align-items: center;
    text-align: left;
    flex-direction: row-reverse;
}

.studies-text {
    flex: 1;
}

.studies-h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.studies-img {
    flex: 1;
    max-width: 400px;
}

.studies-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    display: block;
}

/* Procedures Grid */
.procedures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.procedure-card {
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.procedure-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.procedure-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.procedure-card h3 {
    color: var(--secondary-color);
    margin-bottom: 14px;
    font-size: 1.35rem;
}

.procedure-card p {
    font-size: 1rem;
    color: #666;
}

.media-box {
    width: 100%;
    height: 220px;
    background-color: #f0f0f0;
    display: block;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #eee;
}

.procedure-card img,
.procedure-card video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.procedure-card img:hover {
    transform: scale(1.05);
    opacity: 0.95;
}

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

.faq-item {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.12rem;
    color: var(--secondary-color);
    list-style: none;
    position: relative;
    padding-right: 50px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    content: '\2013';
}

.faq-answer {
    padding: 0 24px 22px;
}

.faq-answer p {
    color: #555;
    font-size: 1.02rem;
}

.faq-answer a {
    color: var(--primary-color);
    font-weight: 600;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from { transform: scale(0) }
    to { transform: scale(1) }
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    cursor: pointer;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 260px);
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

@media (min-width: 1250px) {
    .team-grid {
        grid-template-columns: repeat(4, 260px);
    }
}

.team-card {
    display: block;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    width: 260px;
    max-width: 260px;
    margin: 0 auto;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 140, 0, 0.4);
}

.team-link {
    display: block;
    margin-top: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
}

.team-card:hover .team-link {
    text-decoration: underline;
}

.team-card img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    object-position: top center;
    display: block;
    margin: 0 auto 5px auto;
    border-radius: 4px;
}

.team-card h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
    height: 4.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0 10px;
}

.team-card p {
    color: var(--primary-color);
    font-weight: 500;
}

/* Contact */
.bg-dark {
    background-color: var(--dark-bg);
    color: white;
}

.text-white {
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    color: #eee;
    font-size: 1.1rem;
}

.contact-col p {
    margin-bottom: 12px;
}

.contact-col a {
    color: var(--primary-color);
}

.contact-col a:hover {
    text-decoration: underline;
}

.contact-col .cta-button {
    color: #fff;
    margin-top: 6px;
}

.contact-cgb-links {
    margin-top: 20px;
    font-size: 0.98rem;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #cfcfcf;
    padding: 55px 0 20px;
    font-size: 0.98rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.footer-head {
    color: #fff;
    font-weight: 600;
    margin-bottom: 12px;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #cfcfcf;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 18px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .studies-block {
        flex-direction: column;
        text-align: center;
    }

    .studies-img {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 90px 30px 30px;
        transition: right 0.35s ease;
        z-index: 1500;
    }

    .primary-nav.open {
        right: 0;
    }

    .primary-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        width: 100%;
    }

    .primary-nav ul a {
        font-size: 1.2rem;
    }

    .lang-btn {
        margin-left: 0;
        margin-top: 30px;
    }

    .nav-toggle {
        z-index: 1600;
    }

    body.nav-open {
        overflow: hidden;
    }

    .hero-section {
        padding: 70px 0 80px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.9rem;
        margin-bottom: 2.5rem;
    }

    .content-block {
        padding: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .topbar {
        font-size: 0.8rem;
    }

    .topbar-content {
        justify-content: center;
        text-align: center;
    }
}
