/* --- Enhanced CSS for BestCare Physiotherapy --- */

/* --- Variables & Base --- */
:root {
    --primary-color: #3A8DDE; /* A calming, professional blue */
    --secondary-color: #6C757D; /* Muted grey for secondary text/elements */
    --accent-color: #5DC9A8; /* A fresh, modern green for accents */
    --bg-color: #FFFFFF;
    --surface-bg-color: #F8F9FA; /* Slightly off-white for cards/sections */
    --text-color: #343F52; /* Dark grey for body text - softer than black */
    --heading-color: #1A2E4C; /* Darker, richer blue for headings */
    --light-text-color: #FFFFFF;
    --border-color: #E3E8EE;
    --success-color: #28a745;
    --error-color: #dc3545;

    --font-family-sans-serif: 'Poppins', sans-serif;
    --font-family-serif: 'Merriweather', serif;

    --box-shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
    --box-shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.08);
    --box-shadow-strong: 0 12px 35px rgba(58, 141, 222, 0.15); /* Primary color shadow */

    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;

    --transition-speed: 0.3s;
    --transition-ease: ease-in-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-family-sans-serif);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex-grow: 1;
}

.container {
    width: 90%;
    max-width: 1200px; /* Slightly wider container */
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-sm); /* Default rounded corners for images */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) var(--transition-ease);
}

a:hover {
    color: darken(var(--primary-color), 15%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-sans-serif); /* Using Poppins for headings too for modern feel */
    color: var(--heading-color);
    margin-bottom: 0.75em;
    line-height: 1.3;
    font-weight: 600; /* Bolder headings */
}

h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 700;} /* Responsive font size */
h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700;}
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1.25em;
    color: var(--text-color);
}

ul {
    list-style: none;
}

.section-padding {
    padding: 80px 0;
}
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

.bg-light {
    background-color: var(--surface-bg-color);
}

.text-center {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 500; /* Medium weight */
    text-align: center;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-ease);
    border: 2px solid transparent;
    letter-spacing: 0.5px;
    text-transform: uppercase; /* More prominent CTAs */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    box-shadow: 0 4px 12px rgba(58, 141, 222, 0.3);
}
.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-strong);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    box-shadow: 0 4px 12px rgba(93, 201, 168, 0.3);
}
.btn-secondary:hover {
    background-color: darken(var(--accent-color), 10%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(93, 201, 168, 0.4);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-tertiary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--light-text-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-light:hover {
    background-color: var(--surface-bg-color); /* Slightly off-white */
    color: darken(var(--primary-color), 5%);
    transform: translateY(-2px);
}

.btn-full-width {
    display: block;
    width: 100%;
}

/* --- Header & Navigation --- */
.sticky-header {
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent for depth */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.sticky-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    color: var(--heading-color);
    font-weight: 700;
    font-size: 1.6rem;
}
.logo {
    height: 110px; /* Slightly larger logo */
    margin-right: 12px;
}
.logo-text {
    font-family: var(--font-family-sans-serif); /* Consistent font */
}

.nav-links {
    display: flex;
    align-items: center;
}

nav.container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo left, nav links right */
    flex-wrap: nowrap; /* keeps nav links in one line */
}

.nav-links li {
    margin-left: 40px; /* Increased spacing */
    white-space: nowrap;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 4px; /* More padding for easier click */
    position: relative;
    letter-spacing: 0.3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; /* Underline effect */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) var(--transition-ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Ensure it's above other elements */
}

.hamburger {
    display: block;
    width: 28px; /* Slightly larger hamburger */
    height: 3px;
    background-color: var(--heading-color);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.3s var(--transition-ease); /* Smoother animation */
    border-radius: 2px;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: var(--heading-color);
    left: 0;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}
.hamburger::before { top: -9px; }
.hamburger::after { top: 9px; }

.nav-open .hamburger { background-color: transparent; transform: rotate(180deg); }
.nav-open .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-open .hamburger::after { transform: rotate(-45deg); top: 0; }


/* --- Hero Section --- */
.hero {
    background: linear-gradient(45deg, rgba(58, 141, 222, 0.85), rgba(93, 201, 168, 0.75)), url('../images/hero-image.jpg') no-repeat center center/cover;
    color: var(--light-text-color);
    padding: 150px 0; /* More padding */
    text-align: center;
    min-height: 80vh; /* Taller hero */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* For potential pseudo-element shapes */
}
/* Optional: Add a subtle shape overlay */
.hero::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 150px; /* Adjust height of the curve */
    background-color: var(--bg-color);
    clip-path: ellipse(70% 100% at 50% 100%); /* Creates a gentle curve */
    z-index: 0;
}

.hero-content {
    position: relative; /* To stay above the pseudo-element */
    z-index: 1;
}
.hero-content h1 {
    color: var(--light-text-color); /* Ensure heading is light */
    margin-bottom: 0.6em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2em;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    font-weight: 300;
}
.cta-buttons .btn {
    margin: 10px;
    padding: 16px 35px; /* Larger CTA buttons */
    font-size: 1.05rem;
}

/* --- About Us Preview --- */
.about-preview {
    position: relative; /* For potential overlapping elements */
}
.about-preview h2 {
    text-align: center;
    margin-bottom: 50px;
}
.about-preview-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
}
@media (min-width: 768px) {
    .about-preview-content {
        grid-template-columns: 1fr 1.2fr; /* Image | Text */
        gap: 60px;
    }
}
.about-preview-img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}
.about-preview-img:hover {
    transform: scale(1.03);
    box-shadow: var(--box-shadow-strong);
}
.about-preview .btn {
    display: block;
    width: fit-content;
    margin: 30px auto 0 auto;
}

/* --- Services Overview & Cards --- */
.services-overview h2, .clinic-highlights h2 {
    text-align: center;
    margin-bottom: 50px;
}
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Slightly larger cards */
    gap: 35px;
    margin-bottom: 30px;
}
.service-card {
    background-color: var(--bg-color); /* Use main bg for contrast if section is on --surface-bg-color */
    padding: 35px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-soft);
    text-align: center;
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
    border: 1px solid var(--border-color); /* Subtle border */
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-medium);
}
.service-icon-img {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto;
    /* For SVG icons, you could use filter to change color on hover */
    transition: transform var(--transition-speed) var(--transition-ease);
}
.service-card:hover .service-icon-img {
    transform: scale(1.1);
}
.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}
.services-overview .btn {
    display: block;
    width: fit-content;
    margin: 30px auto 0 auto;
}

/* --- Patient Testimonials Carousel --- */
.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
}
.testimonial-carousel {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--surface-bg-color);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
}
.testimonial-slide { display: none; text-align: center; }
.testimonial-slide.active-slide { display: block; animation: fadeIn 0.7s var(--transition-ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    object-fit: cover;
    border: 3px solid var(--accent-color); /* Accent border */
}
.testimonial-slide p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.15rem;
    color: var(--text-color);
    line-height: 1.8;
}
.testimonial-slide h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: var(--font-family-sans-serif);
}
.testimonial-carousel .prev,
.testimonial-carousel .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 45px; /* Larger buttons */
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -22.5px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 24px;
    transition: all var(--transition-speed) var(--transition-ease);
    border-radius: 50%; /* Circular buttons */
    user-select: none;
    background-color: rgba(255,255,255,0.8);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow-soft);
}
.testimonial-carousel .next { right: 15px; }
.testimonial-carousel .prev { left: 15px; }
.testimonial-carousel .prev:hover,
.testimonial-carousel .next:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--box-shadow-medium);
}

/* --- Clinic Highlights --- */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}
.highlight-item {
    text-align: center;
    padding: 25px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-soft);
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}
.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}
.highlight-item span {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    color: var(--accent-color);
}
.highlight-item h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

/* --- Quick Contact Form & General Form Styling --- */
.quick-contact h2 {
    text-align: center;
    margin-bottom: 50px;
}
.contact-form {
    max-width: 650px;
    margin: 0 auto;
    background: var(--bg-color);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
}
.contact-form.booking-form { max-width: 800px; }

.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--heading-color);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px; /* More padding */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: var(--font-family-sans-serif);
    color: var(--text-color);
    background-color: var(--surface-bg-color); /* Light bg for inputs */
    transition: border-color var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 141, 222, 0.2); /* Focus ring */
    background-color: var(--bg-color);
}
.form-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* --- Footer --- */
footer {
    background-color: var(--heading-color); /* Darker footer bg */
    color: rgba(255,255,255,0.8); /* Lighter text for contrast */
    padding: 60px 0 30px;
    margin-top: auto;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-section h4 {
    color: var(--light-text-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}
/* Underline for footer headings */
.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}
.footer-section p,
.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.8;
}
.footer-section ul li a:hover {
    color: var(--light-text-color);
    text-decoration: none; /* Remove underline, rely on color change */
    padding-left: 5px; /* Slight indent on hover */
}
.social-media-links a {
    display: inline-flex; /* For centering icon inside */
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: background-color var(--transition-speed) var(--transition-ease), transform var(--transition-speed) var(--transition-ease);
}
.social-media-links img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1) opacity(0.7); /* Make icons white and slightly transparent */
}
.social-media-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}
.social-media-links a:hover img {
    filter: brightness(0) invert(1) opacity(1);
}
.footer-bottom-text {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

/* --- Page Header (for inner pages) --- */
.page-header {
    background-color: var(--primary-color);
    /* Or use a gradient:
    background-image: linear-gradient(120deg, var(--primary-color) 0%, var(--accent-color) 100%);
    */
    color: var(--light-text-color);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Optional: Add a subtle pattern or shapes to page header */
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 10%, transparent 60%);
    transform: rotate(15deg);
    opacity: 0.5;
}
.page-header h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    margin-bottom: 15px;
    color: var(--light-text-color);
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.page-header p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* --- About Us Page Specifics --- */
.mission-vision-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}
@media (min-width: 768px) {
    .mission-vision-content { grid-template-columns: 1fr 1fr; }
}
.mission h2, .vision h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 12px;
    display: inline-block;
    margin-bottom: 20px;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.value-item {
    background: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-soft);
    border-left: 5px solid var(--accent-color); /* Accent border */
}
.value-item h3 { color: var(--primary-color); margin-bottom: 10px; }
.team-preview h2 { text-align: center; margin-bottom: 40px; }
.team-members-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}
.team-member-card-small {
    text-align: center;
    max-width: 220px;
    background-color: var(--surface-bg-color);
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-soft);
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}
.team-member-card-small:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}
.team-member-photo-small {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    box-shadow: 0 0 0 5px var(--bg-color), 0 0 0 7px var(--accent-color); /* Ring effect */
}
.team-preview .btn { display: block; width: fit-content; margin: 30px auto 0 auto; }

/* --- Services Page Specifics --- */
.services-list .service-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 35px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) var(--transition-ease);
    border-radius: var(--border-radius-md); /* For hover effect */
    margin-bottom: 10px; /* Space between items */
}
.services-list .service-item:hover {
    background-color: var(--surface-bg-color); /* Highlight on hover */
    padding-left: 20px; /* Add padding for visual effect on hover */
    padding-right: 20px;
}
.services-list .service-item:last-child { border-bottom: none; }
.service-item-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    /* background-color: var(--accent-color-light); /* Optional light bg for icon */
    /* padding: 10px; */
    border-radius: var(--border-radius-sm);
    transition: transform var(--transition-speed) var(--transition-ease);
}
.services-list .service-item:hover .service-item-icon {
    transform: rotate(-5deg) scale(1.05);
}
.service-item-content h3 { color: var(--primary-color); margin-bottom: 10px; }
.cta-banner {
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--light-text-color);
    border-radius: var(--border-radius-lg);
    padding: 60px 40px; /* More padding */
}
.cta-banner h2 { color: var(--light-text-color); margin-bottom: 15px; }
.cta-banner p { margin-bottom: 30px; font-size: 1.15rem; opacity: 0.9; }

/* --- Meet Our Team Page Specifics --- */
.team-grid .team-member {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: flex-start;
    padding: 40px 20px; /* Add some padding */
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-soft);
    margin-bottom: 30px; /* Space between team members */
    transition: box-shadow var(--transition-speed) var(--transition-ease);
}
.team-grid .team-member:hover {
    box-shadow: var(--box-shadow-medium);
}
.team-grid .team-member:last-child { border-bottom: none; }
@media (min-width: 768px) {
    .team-grid .team-member {
        grid-template-columns: 220px 1fr; /* Image and then info */
        gap: 40px;
        padding: 40px;
    }
}
.team-member-photo {
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius-md); /* Slightly squared circle */
    object-fit: cover;
    box-shadow: var(--box-shadow-medium);
    margin: 0 auto 20px auto;
    transition: transform var(--transition-speed) var(--transition-ease);
}
.team-grid .team-member:hover .team-member-photo {
    transform: scale(1.05);
}
@media (min-width: 768px) { .team-member-photo { margin: 0; } }
.team-member-info h3 { color: var(--primary-color); font-size: 1.8rem; }
.team-member-info h4 {
    color: var(--accent-color); /* Use accent for role */
    font-size: 1.15rem;
    font-style: normal; /* Remove italic if not desired */
    font-weight: 500;
    margin-bottom: 15px;
}
.team-member-info p strong { color: var(--heading-color); }

/* --- Gallery Page Specifics --- */
.gallery-grid h2.section-subtitle {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.gallery-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-soft);
    background-color: var(--surface-bg-color);
    position: relative; /* For overlay */
}
.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s var(--transition-ease);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item p {
    padding: 15px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 0;
    background-color: rgba(255,255,255,0.9);
    position: absolute; /* Overlay text */
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(100%); /* Initially hidden */
    transition: transform 0.4s var(--transition-ease);
    color: var(--heading-color);
}
.gallery-item:hover p {
    transform: translateY(0);
}

/* --- Blog Page Specifics --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}
.blog-post-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
    border: 1px solid var(--border-color);
}
.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-medium);
}
.blog-post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.blog-post-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-post-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-post-content h3 { font-size: 1.5rem; margin-bottom: 12px; }
.blog-post-content h3 a { color: var(--primary-color); }
.blog-post-content h3 a:hover { text-decoration: underline; color: darken(var(--primary-color),10%);}
.blog-post-content p { flex-grow: 1; margin-bottom: 20px; font-size: 0.95rem; }
.read-more-link {
    font-weight: 600;
    color: var(--accent-color);
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}
.read-more-link:hover { color: darken(var(--accent-color), 10%); }
.pagination { text-align: center; margin-top: 50px; }
.page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}
.page-numbers.current,
.page-numbers:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-color: var(--primary-color);
}

/* --- Contact Page Specifics --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}
@media (min-width: 992px) {
    .contact-layout { grid-template-columns: 1fr 1.3fr; } /* Info | Form */
}
.contact-info h2, .contact-page-form h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
}
.contact-info p { margin-bottom: 18px; line-height: 1.8; }
.contact-info strong { color: var(--heading-color); font-weight: 600; }
.contact-info a { color: var(--primary-color); font-weight: 500; }
.contact-info a:hover { text-decoration: underline; }
.map-embed {
    margin-top: 25px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow-soft);
}
.map-embed iframe { display: block; }
.contact-page-form .contact-form { padding: 0; box-shadow: none; }

/* --- Responsive Design Adjustments --- */
@media (max-width: 991px) {
    .hero-content h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); }
    .hero-content p { font-size: 1.1rem; }
    .about-preview-content { grid-template-columns: 1fr; text-align: center; }
    .about-preview-img { margin: 0 auto 30px auto; }
}

@media (max-width: 767px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: #2A3B50; /* Darker bg for mobile nav */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-links.nav-open { right: 0; }
    .nav-links li { margin: 20px 0; width: 100%; text-align: center; }
    .nav-links a {
        color: var(--light-text-color);
        font-size: 1.3rem;
        display: block;
        padding: 12px 0;
    }
    .nav-links a::after { background-color: var(--accent-color); }
    .nav-links a.active { color: var(--accent-color); }

    .hero { padding: 100px 0; min-height: 70vh; }
    .hero::before { height: 100px; clip-path: ellipse(80% 100% at 50% 100%); }
    .cta-buttons .btn { margin: 10px 0; display: block; }

    .footer-content { grid-template-columns: 1fr; }
    .footer-section { text-align: center; }
    .footer-section h4::after { left: 50%; transform: translateX(-50%); }
    .social-media-links { justify-content: center; display: flex; }

    h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
    h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
    h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }

    .services-list .service-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 15px;
    }
    .services-list .service-item:hover { padding-left: 15px; padding-right: 15px; }
    .service-item-icon { margin-bottom: 20px; }
    .team-grid .team-member { text-align: center; padding: 30px 15px; }
    .team-member-photo { margin: 0 auto 25px auto; }
    .contact-layout { grid-template-columns: 1fr; }
    .map-embed iframe { height: 280px; }
    .contact-form { padding: 30px 25px; }
}

/* --- Utility Classes --- */
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Entrance Animation (Example - apply to sections or elements) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpAnimation 0.8s var(--transition-ease) forwards;
}
@keyframes fadeInUpAnimation {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* You would add class="fade-in-up" to sections in HTML and potentially use JS Intersection Observer for staggered loading */

