/* 
   Cardiologists.London - Main Stylesheet
   Color scheme: Navy blue and white
*/

/* ===== GLOBAL STYLES ===== */
:root {
    --navy: #0a2463;
    --navy-dark: #061a47;
    --navy-light: #1e3a8a;
    --accent: #3e92cc;
    --light-gray: #f5f7fa;
    --mist-blue: rgba(62, 146, 204, 0.18);
    --arc-blue: rgba(10, 36, 99, 0.12);
    --text-dark: #333;
    --text-light: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--navy);
}

section .container > h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 0.6rem;
}

section .container > h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 58%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(62, 146, 204, 0.15));
    border-radius: 999px;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--navy);
}

ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--light-gray);
    background-image:
        radial-gradient(900px 520px at 95% -10%, var(--mist-blue), transparent 60%),
        radial-gradient(700px 420px at 5% 110%, var(--arc-blue), transparent 62%);
}

.bg-arc {
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.bg-arc::before,
.bg-arc::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.bg-arc::before {
    width: 520px;
    height: 520px;
    border: 1px solid rgba(62, 146, 204, 0.2);
    top: -260px;
    right: -180px;
}

.bg-arc::after {
    width: 640px;
    height: 640px;
    border: 1px solid rgba(10, 36, 99, 0.12);
    bottom: -320px;
    left: -220px;
}

.bg-arc .container,
.bg-light .container {
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--navy);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--navy-dark);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
}

.btn-outline:hover {
    background-color: var(--navy);
    color: var(--text-light);
}

/* ===== HEADER ===== */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(10, 36, 99, 0.08);
    overflow: hidden;
}

header .container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -12deg,
        rgba(10, 36, 99, 0.05) 0px,
        rgba(10, 36, 99, 0.05) 1px,
        transparent 1px,
        transparent 14px
    );
    opacity: 0.35;
    pointer-events: none;
}

header::after {
    content: '';
    position: absolute;
    top: -160px;
    right: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(62, 146, 204, 0.16);
    pointer-events: none;
}

header::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(62, 146, 204, 0.35), rgba(62, 146, 204, 0.05));
    opacity: 0.7;
    pointer-events: none;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--navy-dark);
    letter-spacing: 1px;
    font-weight: 600;
}

.logo span {
    color: #2f7db4;
    font-weight: 600;
}

nav ul {
    display: flex;
    margin-bottom: 0;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

nav ul li a:hover {
    color: var(--navy);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--navy);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.nav-cta {
    background-color: var(--navy);
    color: var(--text-light);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    box-shadow: 0 6px 16px rgba(10, 36, 99, 0.18);
}

nav ul li a.nav-cta::after {
    display: none;
}

nav ul li a.nav-cta:hover {
    color: var(--text-light);
    background-color: var(--navy-dark);
    transform: translateY(-1px);
}

/* ===== HERO SECTION ===== */
#hero {
    padding: 0;
    margin-top: 80px;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 80vh;
    max-height: 800px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 36, 99, 0.8) 0%, rgba(10, 36, 99, 0.4) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    width: 80%;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===== WE TREAT SECTION ===== */
#we-treat {
    text-align: center;
    background-image:
        radial-gradient(520px 320px at 8% 18%, rgba(62, 146, 204, 0.12), transparent 60%),
        radial-gradient(620px 360px at 92% 90%, rgba(10, 36, 99, 0.08), transparent 62%);
    position: relative;
    overflow: hidden;
}

#we-treat::after {
    content: '';
    position: absolute;
    width: 820px;
    height: 820px;
    border-radius: 50%;
    border: 1px solid rgba(62, 146, 204, 0.18);
    top: -320px;
    left: 50%;
    transform: translateX(-50%) rotate(-18deg);
    -webkit-mask-image: conic-gradient(from 210deg, transparent 0deg 40deg, #000 40deg 140deg, transparent 140deg);
    mask-image: conic-gradient(from 210deg, transparent 0deg 40deg, #000 40deg 140deg, transparent 140deg);
    pointer-events: none;
}

#we-treat .container {
    position: relative;
    z-index: 1;
}

#doctors.bg-arc::before {
    top: -260px;
    left: 55%;
    right: auto;
    transform: translateX(-50%);
}

#doctors.bg-arc::after {
    bottom: -320px;
    left: 45%;
    transform: translateX(-50%);
}

#about.bg-arc::before {
    top: -260px;
    left: 58%;
    right: auto;
    transform: translateX(-50%);
}

#about.bg-arc::after {
    bottom: -320px;
    left: 35%;
    transform: translateX(-50%);
}

#we-treat h2 {
    margin-bottom: 3rem;
}

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.treatment-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.treatment-card:hover {
    transform: translateY(-10px);
}

.treatment-card h3 {
    color: var(--navy);
    font-size: 1.15rem;
    letter-spacing: 0.2px;
    font-weight: 600;
}

/* ===== SERVICES WE OFFER SECTION ===== */
#services-we-offer {
    text-align: center;
    background-color: var(--light-gray);
    background-image:
        linear-gradient(rgba(245, 247, 250, 0.92), rgba(245, 247, 250, 0.9)),
        url('img/hammersmith_hospital.avif');
    background-size: cover;
    background-position: center;
}

#services-we-offer h2 {
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.94);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(62, 146, 204, 0.18);
    transition: transform 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.15rem;
    letter-spacing: 0.2px;
    font-weight: 600;
}

/* ===== DOCTORS SECTION ===== */
#doctors .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.doctor-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-10px);
}

.doctor-image {
    height: 300px;
    width: 300px;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid var(--navy);
    margin: 0 auto;
    position: relative;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Special styling for Dr. Howard's image with zoom */
.doctor-image.dr-howard-image img {
    transform: scale(1.5);
    object-position: center 50%;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

/* Prevent the zoom effect on hover for Dr. Howard's already zoomed image */
.doctor-card:hover .doctor-image.dr-howard-image img {
    transform: scale(1.5);
}

.doctor-info {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.doctor-info .btn {
    margin-top: auto;
    align-self: center;
}

.doctor-title {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* ===== EXPERTISE SECTION ===== */
#expertise {
    text-align: center;
}

#expertise h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.expertise-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
    text-align: left;
}

.expertise-card h3 {
    color: var(--navy);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.expertise-card h4 {
    color: var(--navy-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ABOUT SECTION ===== */
#about h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.doctor-profile {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.doctor-profile h3 {
    color: var(--navy);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
}

.doctor-profile h4 {
    color: var(--navy);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 0.5rem;
}

.profile-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.profile-content ul li {
    margin-bottom: 0.5rem;
}

.doctify-micro {
    margin: 0.2rem 0 1.2rem;
    display: flex;
    justify-content: center;
}

.doctify-widget-wrap {
    margin: 2rem auto 2.5rem;
    max-width: 680px;
}

/* New profile layout styles */
.profile-intro {
    margin-bottom: 2.5rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.expertise-box, .research-box {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.expertise-box h4, .research-box h4 {
    color: var(--navy-dark);
}

/* Responsive styles for profile grid */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .expertise-box, .research-box {
        padding: 1.2rem;
    }
}

/* ===== HOSPITAL SECTION ===== */
.bg-image {
    background-image: linear-gradient(rgba(10, 36, 99, 0.8), rgba(10, 36, 99, 0.8)), url('img/hammersmith_hospital.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    text-align: center;
}

.hospital-content {
    max-width: 700px;
    margin: 0 auto;
}

.hospital-content h2 {
    color: var(--text-light);
}

/* ===== BOOKING SECTION ===== */
.booking-section .booking-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.booking-section .section-intro {
    margin-bottom: 0;
}

.booking-embed {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.contact-method {
    text-align: center;
}

.contact-label {
    display: block;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-value {
    font-size: 1.5rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--accent);
}

@media (max-width: 576px) {
    .contact-value {
        font-size: 1.25rem;
    }
    .booking-embed {
        padding: 2rem 1.5rem;
    }
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--navy-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    font-family: 'Playfair Display', serif;
    color: var(--text-light);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.footer-logo span {
    color: var(--accent);
    font-weight: 500;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a,
.footer-contact a {
    color: #ccc;
}

.footer-links ul li a:hover,
.footer-contact a:hover {
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-image {
        height: 70vh;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    nav ul li {
        margin-left: 1rem;
    }
    
    .hero-content {
        width: 90%;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .treatment-grid,
    #doctors .container {
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #fff;
        width: 100%;
        padding: 1rem 0;
        box-shadow: var(--shadow);
        display: none;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
        padding: 0.8rem 0;
    }
    
    .hero-image {
        height: 60vh;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .doctor-image {
        height: 250px;
    }
    
    .doctor-info {
        padding: 1.5rem;
    }
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--navy);
}

@media (max-width: 576px) {
    .menu-toggle {
        display: block;
    }
}
