/* ===== Font Face Declarations ===== */
@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis-Regular.woff2') format('woff2'),
         url('../fonts/Metropolis-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis-Medium.woff2') format('woff2'),
         url('../fonts/Metropolis-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis-SemiBold.woff2') format('woff2'),
         url('../fonts/Metropolis-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis-Bold.woff2') format('woff2'),
         url('../fonts/Metropolis-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== CSS Variables ===== */
:root {
    --primary-red: #D32F2F;
    --dark-grey: #2C2C2C;
    --medium-grey: #5A5A5A;
    --light-grey: #E8E8E8;
    --white: #FFFFFF;
    --black: #000000;
    
    --font-family-body: 'Inter', sans-serif;
    --font-family-heading: 'Metropolis', sans-serif;
    
    --transition-speed: 0.3s;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family-body);
    color: var(--dark-grey);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-grey);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 400;
}

/* How We Work Section - specific font size */
.how-we-work p {
    font-size: 18px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all var(--transition-speed) var(--transition-smooth);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-grey);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-brand .logo {
    height: 40px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--medium-grey);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width var(--transition-speed) var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-grey);
    transition: all var(--transition-speed);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-speed) var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background: #B71C1C;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
    background: var(--dark-grey);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-outline:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F5F5F5 0%, #E0E0E0 100%);
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/consensusmedical_banner.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 0.5rem;
    color: var(--dark-grey);
}

.hero-subtitle {
    font-family: var(--font-family-heading);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--primary-red);
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--medium-grey);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--medium-grey);
    border-radius: 20px;
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--medium-grey);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.scroll-indicator p {
    font-size: 0.875rem;
    color: var(--medium-grey);
    font-weight: 500;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* ===== Introduction Section ===== */
.introduction {
    padding: 100px 0;
    background: var(--white);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    color: var(--medium-grey);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.intro-text strong {
    color: var(--dark-grey);
    font-weight: 600;
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 2rem;
}

.section-title::before,
.section-title::after {
    content: '';
    width: 80px;
    height: 3px;
    background: var(--primary-red);
}

@media (max-width: 768px) {
    .section-title::before,
    .section-title::after {
        width: 40px;
    }
    
    .section-title {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title::before,
    .section-title::after {
        width: 25px;
    }
    
    .section-title {
        gap: 0.75rem;
    }
}

.section-intro {
    max-width: 800px;
    margin: 2rem auto 0;
    font-size: 1.125rem;
    color: var(--medium-grey);
}

.subsection-title {
    margin-bottom: 1.5rem;
    color: var(--dark-grey);
}

.subsection-title.center {
    text-align: center;
    margin-bottom: 3rem;
}

/* ===== How We Work Section ===== */
.how-we-work {
    padding: 100px 0;
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
}

.work-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.work-list {
    list-style: none;
    margin: 2rem 0;
}

.work-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 1rem;
    color: var(--medium-grey);
}

.work-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--primary-red);
    border-radius: 50%;
}

.work-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.work-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--transition-smooth);
}

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

/* ===== Medical Experts Section ===== */
.medical-experts {
    padding: 100px 0;
    background: var(--white);
}

.expertise-grid {
    margin: 4rem 0;
}

.expertise-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.expertise-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) var(--transition-smooth);
    border: 1px solid var(--light-grey);
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(211, 47, 47, 0.15);
    border-color: var(--primary-red);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--primary-red);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.expertise-card h4 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--dark-grey);
}

/* Professional Enquiry */
.professional-enquiry {
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
    border-radius: 20px;
    padding: 4rem;
    margin-top: 4rem;
    text-align: center;
}

.enquiry-content {
    max-width: 700px;
    margin: 0 auto;
}

.enquiry-email {
    font-size: 1.25rem;
    margin: 1.5rem 0;
    font-weight: 500;
}

.enquiry-email a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.enquiry-email a:hover {
    color: #B71C1C;
}

/* ===== About Us Section ===== */
.about-us {
    padding: 100px 0;
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--transition-smooth);
}

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

.about-text p {
    color: var(--medium-grey);
    margin-bottom: 1.5rem;
}

.experience-section {
    margin-top: 6rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.experience-item {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) var(--transition-smooth);
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(211, 47, 47, 0.15);
}

.experience-icon {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.experience-icon.icon-text {
    font-size: 3rem;
}

.experience-icon svg {
    width: 48px;
    height: 48px;
}

.experience-item p {
    color: var(--medium-grey);
    font-size: 1rem;
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-company {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-grey);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-red);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-item p {
    color: var(--medium-grey);
    margin-bottom: 0.25rem;
}

.contact-email {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.contact-email:hover {
    color: #B71C1C;
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    height: 100%;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

#map {
    width: 100%;
    height: 100%;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-grey);
    color: var(--white);
    padding: 3rem 0 2rem;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light-grey);
    text-decoration: none;
    font-weight: 400;
    transition: color var(--transition-speed);
}

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

.footer-info {
    margin-bottom: 1.5rem;
}

.footer-info p {
    color: var(--light-grey);
    margin-bottom: 0.5rem;
}

.footer-copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    color: var(--light-grey);
    font-size: 0.875rem;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-smooth);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .navbar .container {
        padding: 1rem 20px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: left var(--transition-speed) var(--transition-smooth);
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        min-height: 90vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        margin-bottom: 3rem;
    }

    .scroll-indicator {
        display: none;
    }

    .work-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .about-image {
        order: -1;
    }

    .expertise-cards {
        grid-template-columns: 1fr;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .professional-enquiry {
        padding: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}
