.map-embed {
    border: 0;
    border-radius: 12px;
    width: 100%;
    height: 400px;
    filter: grayscale(20%) sepia(15%) hue-rotate(145deg) saturate(140%) contrast(110%);
}

@media (max-width: 768px) {
    .map-embed {
        height: 320px;
    }
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00625b;
    --primary-dark: #004a45;
    --secondary-color: #007b73;
    --accent-color: #cbbba0;
    --text-color: #333;
    --text-light: #666;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --teal-main: #00625b;
    --teal-light: #007b73;
    --gold-accent: #cbbba0;
    
    /* Typography Scale */
    --heading-1: 3.5rem;
    --heading-2: 2.2rem;
    --heading-3: 1.5rem;
    --text-large: 1.3rem;
    --text-regular: 1.1rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--teal-main);
    padding-top: var(--header-height, 80px);
}

main {
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

p {
    font-family: 'Barlow', sans-serif;
    margin-bottom: 1rem;
    font-size: var(--text-regular);
}

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

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 0;
    background: transparent;
    color: var(--primary-color);
}

.btn-primary {
    background: transparent;
    color: var(--primary-color);
    border: 0;
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 0;
}

.btn-secondary:hover {
    background: transparent;
    color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 0;
}

.btn-outline:hover {
    background: transparent;
    color: var(--primary-dark);
}

.btn-outline-light {
    background: transparent;
    color: var(--primary-color);
    border: 0;
}

.btn-outline-light:hover {
    background: transparent;
    color: var(--primary-dark);
}

.btn-outline-white {
    background: transparent;
    color: var(--primary-color);
    border: 0;
}

.btn-outline-white:hover {
    background: transparent;
    color: var(--primary-dark);
}

.btn-white {
    background: transparent;
    color: var(--primary-color);
    border: 0;
}

.btn-white:hover {
    background: transparent;
    color: var(--primary-dark);
}

/* Keep link-style buttons readable on the teal hero */
.hero-centered .btn,
.hero-centered .btn-primary,
.hero-centered .btn-secondary,
.hero-centered .btn-outline,
.hero-centered .btn-white,
.hero-centered .btn-outline-white,
.hero-centered .btn-outline-light {
    color: var(--white);
}

.hero-centered .btn:hover,
.hero-centered .btn-primary:hover,
.hero-centered .btn-secondary:hover,
.hero-centered .btn-outline:hover,
.hero-centered .btn-white:hover,
.hero-centered .btn-outline-white:hover,
.hero-centered .btn-outline-light:hover {
    color: var(--gold-accent);
}

/* Header and Navigation */
header {
    background-color: var(--teal-main);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transform: translateY(0);
    transition: transform 0.25s ease;
    will-change: transform;
}

header.header-hidden {
    transform: translateY(-110%);
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    color: var(--gold-accent);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-name {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--gold-accent);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    font-family: 'Barlow', sans-serif;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.nav-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0 6rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.hero-centered {
    grid-template-columns: 1fr;
    text-align: left;
    background: var(--teal-main);
    min-height: calc(100vh - var(--header-height, 80px));
    padding: 4rem 0;
    margin: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

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

.hero-centered .hero-content,
.hero-centered h1,
.hero-centered .hero-subtitle {
    text-align: left;
}

.hero.hero-centered h1,
.hero-centered h1 {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.hero.hero-centered .hero-subtitle,
.hero-centered .hero-subtitle {
    color: var(--white);
    opacity: 0.9;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.hero-centered .hero-buttons {
    justify-content: center;
}

.hero-centered .btn {
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    border: 2px solid transparent;
}

.hero-centered .btn-primary {
    background: transparent;
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.hero-centered .btn-primary:hover {
    background: transparent;
    background-color: var(--gold-accent);
    color: var(--primary-color);
    border-color: var(--gold-accent);
}

.hero-centered .btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.hero-centered .btn-outline:hover {
    background: transparent;
    background-color: var(--white);
    color: var(--primary-color);
}

.hero-content h1 {
    font-size: var(--heading-1);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--text-large);
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-placeholder {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: linear-gradient(135deg, var(--teal-main) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
}

/* Sections */
.section {
    padding: 5rem 0;
}

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

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

.section-title {
    font-size: var(--heading-2);
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: var(--text-regular);
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* About Intro */
.about-intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro-text h2 {
    font-size: var(--heading-2);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-intro-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: var(--text-regular);
}

.about-intro-text .btn {
    margin-top: 1rem;
}

/* Images */
.hero-img, .about-image, .doctor-portrait, .service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.about-image {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.doctor-portrait {
    border-radius: 20px;
    max-height: 500px;
}

.service-image {
    border-radius: 0;
    min-height: 350px;
}

/* Image placeholders (fallback) */
.image-placeholder {
    background: linear-gradient(135deg, var(--teal-main) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    min-height: 400px;
    max-height: 400px;
}

.image-placeholder .subtitle {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.image-placeholder.large {
    height: 500px;
    min-height: 500px;
    max-height: 500px;
}

/* Services Cards */
.services-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: var(--heading-3);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    font-size: var(--text-regular);
    margin-bottom: 1.5rem;
}

.card-link {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--teal-main) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
}

.cta-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cta-card {
    background: rgba(255,255,255,0.1);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    color: var(--white);
}

.cta-card.accent {
    background: var(--gold-accent);
    color: var(--primary-color);
}

.cta-card.accent h3 {
    color: var(--primary-color);
}

.cta-card h3 {
    font-size: var(--heading-3);
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-card p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Features/Why Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.feature h4 {
    font-size: var(--text-regular);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-light);
    font-size: var(--text-regular);
}

/* Contact Section (Home) */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-box h2 {
    font-size: var(--heading-2);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: var(--text-regular);
}

.contact-icon {
    font-size: 1.3rem;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
}

.contact-list a {
    color: var(--text-color);
}

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

.map-placeholder {
    background: var(--light-bg);
    border-radius: 16px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-family: 'Source Sans 3', sans-serif;
}

.map-placeholder.large {
    height: 400px;
}

.map-wrapper {
    position: relative;
}

.map-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    text-indent: -9999px;
    background: transparent;
}

/* Page Header */
.page-header {
    background: var(--teal-main);
    color: var(--white);
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: var(--heading-1);
    margin-bottom: 0.5rem;
    color: var(--white);
}

.breadcrumb {
    font-size: 0.95rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--white);
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
}

/* Page Intro */
.intro-text {
    max-width: 1200px;
    margin: 0 auto;
    text-align: justify;
}

.intro-text p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: var(--heading-3);
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.page-intro {
    max-width: 900px;
    margin: 0 auto;
}

.page-intro .lead {
    font-size: var(--text-regular);
    color: var(--primary-color);
    font-weight: 500;
}

.page-intro p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: var(--text-regular);
}

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

.intro-text .lead {
    font-size: var(--text-regular);
    color: var(--text-color);
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    height: fit-content;
}

.about-text h2 {
    font-size: var(--heading-2);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.bio-content h2 {
    font-size: var(--heading-2);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.bio-content .lead {
    font-size: var(--text-regular);
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.bio-text p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: var(--text-regular);
}

/* Memberships */
.memberships-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.membership-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.membership-card h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.membership-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Services Page */
.services-cards.large {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-card-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.service-card-large.reverse {
    direction: rtl;
}

.service-card-large.reverse > * {
    direction: ltr;
}

.service-card-image .image-placeholder {
    border-radius: 0;
    height: 100%;
    min-height: 400px;
    max-height: 450px;
    width: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-content {
    padding: 3rem;
}

.service-card-content h2 {
    font-size: var(--heading-2);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: var(--text-regular);
}

/* Procedures */
.procedures-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.procedure-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.procedure-card h3 {
    font-size: var(--heading-3);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.procedure-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: var(--text-regular);
}

.procedure-card p:last-child {
    margin-bottom: 0;
}

/* Info Box */
.info-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 2px solid var(--accent-color);
}

.info-box h4 {
    font-size: var(--text-regular);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.info-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Price Tables */
.pricing-section {
    padding-bottom: 3rem;
}

.price-category {
    margin-bottom: 3rem;
}

.price-category h2 {
    font-size: var(--heading-2);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 0;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    border-top: 1px solid var(--border-color);
}

.price-table.full {
    margin-bottom: 0;
}

.price-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.price-table tbody tr:last-child {
    border-bottom: none;
}

.price-table tbody tr:hover {
    background-color: transparent;
}

.price-table td {
    padding: 1rem 1.5rem;
    font-size: var(--text-regular);
}

.price-table td:first-child {
    width: 70%;
    color: var(--text-color);
}

.price-table td.price {
    text-align: right;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.price-preview {
    max-width: 800px;
    margin: 0 auto;
}

.price-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Page CTA */
.page-cta {
    text-align: center;
}

.page-cta .btn,
.page-cta .btn-primary,
.page-cta .btn-secondary,
.page-cta .btn-outline,
.page-cta .btn-white,
.page-cta .btn-outline-white,
.page-cta .btn-outline-light {
    color: var(--white);
}

.page-cta .btn:hover,
.page-cta .btn-primary:hover,
.page-cta .btn-secondary:hover,
.page-cta .btn-outline:hover,
.page-cta .btn-white:hover,
.page-cta .btn-outline-white:hover,
.page-cta .btn-outline-light:hover {
    color: var(--gold-accent);
}

.page-cta h2 {
    font-size: var(--heading-2);
    margin-bottom: 1rem;
    color: var(--white);
}

.page-cta p {
    font-size: var(--text-regular);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Page */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details h2 {
    font-size: var(--heading-2);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info-items {
    margin-top: 2rem;
}

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

.contact-info-item .contact-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-info-item .contact-icon svg {
    width: 28px;
    height: 28px;
}

.contact-info-item h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    margin: 0;
    color: var(--text-light);
    font-size: var(--text-regular);
}

.contact-info-item a {
    color: var(--text-color);
}

.contact-info-item a:hover {
    color: var(--primary-color);
}

/* Booking Form */
.booking-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.booking-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.form-submit {
    text-align: center;
    margin-top: 1rem;
}

.form-submit .btn {
    padding: 14px 40px;
}

/* Footer */
footer.site-footer {
    background: var(--primary-dark);
    color: var(--white);
}

/*
   Layout goals:
   - Logo stays bottom-left inside the footer.
   - Footer content never overlaps the logo.
   - Responsive: content stacks above logo on small screens.
*/
.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(180px, 30vw) 1fr;
    align-items: end;
}

.site-footer-logo {
    align-self: end;
    justify-self: start;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

footer .footer-logo-sticky {
    position: static;
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 360px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
}

.footer-logo-line {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.footer-logo-gold {
    color: var(--accent-color);
}

.footer-logo-white {
    color: var(--white);
}

.footer-logo-info {
    margin-top: 1rem;
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    line-height: 1.3;
}

.footer-logo-info p {
    margin: 0.15rem 0;
    color: var(--white);
}

.footer-logo-info a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-logo-info a:hover {
    color: var(--accent-color);
}

.site-footer-body {
    padding: 4rem 20px 3rem;
    display: flex;
    justify-content: flex-end;
}

.site-footer-body-inner {
    width: fit-content;
    max-width: min(1200px, 100%);
    margin: 0 2rem 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: max-content max-content;
    column-gap: 3rem;
    row-gap: 1.25rem;
    justify-content: end;
    align-items: start;
    width: fit-content;
    max-width: 100%;
}

.footer-nav {
    justify-self: start;
    text-align: left;
}

.footer-nav ul {
    list-style: none;
    text-align: left;
}

.footer-nav li {
    margin-bottom: 0.35rem;
    text-align: left;
}

.footer-nav a {
    text-align: left;
    display: inline-block;
}

.footer-nav a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-legal {
    justify-self: start;
    text-align: left;
    color: rgba(255,255,255,0.7);
}

.footer-legal ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal li {
    margin-bottom: 0.35rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--white);
}

.footer-brand .logo-text {
    color: var(--accent-color);
}

.footer-brand .logo-name {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-top: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: var(--text-regular);
    color: var(--white);
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

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

.footer-contact p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}

.footer-contact {
    max-width: 24rem;
}

.footer-contact p,
.footer-contact a {
    overflow-wrap: anywhere;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
    color: var(--white);
}

@media (max-width: 1024px) {
    .site-footer-grid {
        grid-template-columns: minmax(160px, 32vw) 1fr;
    }
}

@media (max-width: 640px) {
    .site-footer-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "body"
            "logo";
    }

    .site-footer-body {
        grid-area: body;
        padding: 3rem 20px 2rem;
    }

    .site-footer-logo {
        grid-area: logo;
        padding: 0 0 0 20px;
    }

    footer .footer-logo-sticky {
        width: min(240px, 60vw);
        max-width: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        justify-content: start;
        text-align: left;
    }

    .footer-legal {
        justify-self: start;
        text-align: left;
    }

    .footer-nav {
        justify-self: start;
        text-align: left;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

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

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

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    /* footer responsive handled in Footer section */

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

    .memberships-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card-large {
        grid-template-columns: 1fr;
    }

    .service-card-large.reverse {
        direction: ltr;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--teal-main);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li > a {
        display: block;
        padding: 1rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

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

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

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

    /* footer responsive handled in Footer section */

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .price-table td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}
