/* Main Styles for Dr. Richard Murdoch Montgomery's Neurologist Website */

/* Global Styles */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #7f8c8d;
    --accent-color: #c0392b;
    --light-bg: #f9f7f2;
    --dark-text: #333;
    --light-text: #fff;
    --header-font: 'Georgia', serif;
    --body-font: 'Arial', sans-serif;
}

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

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    margin-bottom: 20px;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 2rem;
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
    margin-top: 40px;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 20px;
    text-align: justify;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 20px 0;
}

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

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

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo-text {
    font-family: var(--header-font);
}

.logo-text h1 {
    font-size: 1.8rem;
    margin: 0;
    text-align: left;
    color: var(--light-text);
}

.logo-text p {
    font-size: 1rem;
    margin: 0;
    color: var(--light-text);
    opacity: 0.8;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--light-text);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 80px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.hero h2 {
    font-size: 2.5rem;
    border: none;
    padding: 0;
    margin-bottom: 20px;
    color: var(--light-text);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: left;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #a93226;
    color: var(--light-text);
}

/* Main Content */
main {
    padding: 60px 0;
}

.section {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    display: inline-block;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    border-left: none;
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-content {
    padding: 25px;
}

.service-card h3 {
    margin-top: 0;
}

.service-card .btn {
    margin-top: 15px;
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* History Section */
.history-section {
    background-color: #f5f5f5;
    padding: 60px 0;
    margin: 60px 0;
}

.history-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.history-text {
    flex: 1;
}

.history-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.history-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Manuscript Section */
.manuscript-section {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
}

.manuscript-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    background-color: #f5f5f5;
    padding: 60px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    margin-top: 0;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--body-font);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form .btn {
    border: none;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    font-family: var(--header-font);
    font-size: 1.5rem;
}

.footer-links ul {
    display: flex;
    list-style: none;
}

.footer-links ul li {
    margin-left: 20px;
}

.footer-links ul li a {
    color: var(--light-text);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Timeline Styles for Heritage Page */
.timeline-section {
    margin: 60px 0;
    padding: 20px 0;
    position: relative;
}

.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-event {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    box-sizing: border-box;
}

.timeline-event.left {
    left: 0;
    padding-right: 40px;
}

.timeline-event.right {
    left: 50%;
    padding-left: 40px;
}

.event-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.event-content:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    top: 20px;
}

.timeline-event.left .event-content:after {
    right: -50px;
}

.timeline-event.right .event-content:after {
    left: -50px;
}

.event-year {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.event-title {
    margin: 5px 0;
    color: var(--primary-color);
}

.event-description {
    margin: 10px 0 0;
    font-size: 0.95em;
}

/* Image Placeholders */
.image-placeholder {
    background-color: #e8e8e8;
    border: 1px dashed var(--secondary-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.image-placeholder h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.1em;
}

.image-placeholder p {
    font-style: italic;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .history-content {
        flex-direction: column;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 20px;
        justify-content: center;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .services {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Timeline */
    .timeline-line {
        left: 40px;
    }
    
    .timeline-event {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-event.left, .timeline-event.right {
        left: 0;
    }
    
    .timeline-event.left .event-content:after,
    .timeline-event.right .event-content:after {
        left: -50px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        display: none;
    }
    
    nav.active {
        display: block;
    }
}
