/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600;700&family=Lato:wght@300;400;700&display=swap');

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

:root {
    --color-primary: #4FB3BF;
    --color-primary-dark: #3A8C96;
    --color-primary-light: #E8F5F7;
    --color-beige: #E8E1D5;
    --color-tan: #C9B896;
    --color-charcoal: #3D3D3D;
    --color-gray: #6B6B6B;
    --color-white: #FFFFFF;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--color-gray);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--color-charcoal);
    font-weight: 400;
}

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

/* Header */
.site-header {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-section {
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.logo-section img {
    max-width: 220px;
    height: auto;
}

.logo-section a {
    display: block;
}

.header-contact {
    text-align: right;
}

.header-contact h2 {
    font-size: 26px;
    color: var(--color-primary);
    margin-bottom: 3px;
    font-weight: 600;
}

.header-contact .subtitle {
    font-size: 15px;
    color: var(--color-gray);
    margin-bottom: 8px;
}

.header-contact .phone {
    font-size: 22px;
    color: var(--color-charcoal);
    font-weight: 700;
    margin-bottom: 10px;
}

.header-contact .phone a {
    color: var(--color-charcoal);
    text-decoration: none;
}

.header-contact .appointment-link {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-radius: 3px;
    transition: all 0.3s;
}

.header-contact .appointment-link:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* Navigation */
.main-nav {
    background: var(--color-white);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 18px 22px;
    color: var(--color-gray);
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    transition: all 0.3s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 60%;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 48px;
    font-weight: 300;
}

/* Logo Bar */
.logo-bar {
    background: #f8f8f8;
    padding: 40px 0;
}

.logo-bar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    align-items: center;
}

.logo-bar-grid img {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    display: block;
    opacity: 0.7;
    transition: all 0.3s;
    filter: grayscale(100%);
}

.logo-bar-grid img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Footer Content Block */
.footer-content-block {
    background: var(--color-primary);
    padding: 50px 0;
    text-align: center;
}

.footer-content-block p {
    color: white;
    font-size: 18px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    background: var(--color-white);
    color: var(--color-gray);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section h4,
.footer-form h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 25px;
    font-weight: 400;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
}

.footer-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

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

.footer-section a:hover {
    color: var(--color-primary-dark);
}

.footer-map {
    margin-top: 30px;
}

.footer-map img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}

.footer-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-form input,
.footer-form textarea {
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.footer-form input:focus,
.footer-form textarea:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(79, 179, 191, 0.3);
    transform: translateY(-2px);
}

.footer-form button {
    padding: 15px 40px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(79, 179, 191, 0.3);
}

.footer-form button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 179, 191, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    color: var(--color-gray);
}

/* About Page Styles */
.about-content-section {
    padding: 80px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 25px;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.about-features li {
    padding: 15px 0 15px 35px;
    position: relative;
    font-size: 16px;
    line-height: 1.8;
    border-bottom: 1px solid #f0f0f0;
}

.about-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 20px;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

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

/* Responsive */
@media (max-width: 768px) {
    .logo-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-contact {
        text-align: center;
        margin-top: 20px;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-bar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Prosthodontist Page Styles */
.prosthodontist-content-section {
    padding: 80px 0;
    background: white;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper p {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 25px;
}

.content-wrapper h3 {
    font-size: 32px;
    color: var(--color-charcoal);
    margin: 40px 0 25px;
    font-weight: 400;
}

.prosthodontist-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.prosthodontist-features > li {
    padding: 15px 0 15px 40px;
    position: relative;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.prosthodontist-features > li:before {
    content: '•';
    position: absolute;
    left: 10px;
    top: 15px;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 24px;
    line-height: 1;
}

.prosthodontist-features .sub-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 20px;
}

.prosthodontist-features .sub-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    font-size: 15px;
    line-height: 1.8;
}

.prosthodontist-features .sub-list li:before {
    content: '◦';
    position: absolute;
    left: 10px;
    top: 8px;
    color: var(--color-primary);
    font-size: 18px;
    line-height: 1;
}

/* Dr. Loukaitis Page Styles */
.doctor-bio-section {
    padding: 80px 0;
    background: white;
}

.doctor-bio-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
    align-items: start;
}

.bio-text p {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 25px;
}

.bio-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

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

.credentials-section {
    padding: 80px 0;
    background: white;
}

.credentials-section h2 {
    font-size: 42px;
    color: var(--color-charcoal);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 400;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.credential-box {
    background: white;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.credential-box h3 {
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: 25px;
    font-weight: 400;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 15px;
}

.credential-item {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.credential-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.credential-item h4 {
    font-size: 18px;
    color: var(--color-charcoal);
    margin-bottom: 8px;
    font-weight: 600;
}

.credential-item .years {
    font-size: 15px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.credential-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-gray);
}

.honors-list,
.awards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.honors-list li,
.awards-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-gray);
    border-bottom: 1px solid #f0f0f0;
}

.honors-list li:last-child,
.awards-list li:last-child {
    border-bottom: none;
}

.honors-list li:before,
.awards-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 18px;
}

@media (max-width: 768px) {
    .doctor-bio-grid {
        grid-template-columns: 1fr;
    }
    
    .credentials-grid {
        grid-template-columns: 1fr;
    }
}

/* Services Page Styles */
.services-intro-section {
    padding: 0;
    background: white;
}

.services-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}

.intro-text-box {
    background: linear-gradient(135deg, #2d5f7a 0%, #1e4a5f 100%);
    padding: 80px 60px;
    display: flex;
    align-items: center;
}

.intro-text-box p {
    font-size: 18px;
    line-height: 1.9;
    color: white;
    margin: 0;
}

.intro-image-box {
    overflow: hidden;
}

.intro-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services-list-section {
    padding: 80px 0;
    background: white;
}

.service-item {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid #e8e8e8;
}

.service-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.service-item.reverse {
    grid-template-columns: 1fr 400px;
}

.service-item.reverse .service-image {
    order: 2;
}

.service-item.reverse .service-content {
    order: 1;
}

.service-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 3px solid var(--color-primary);
}

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

.service-content h2 {
    font-size: 36px;
    color: var(--color-charcoal);
    margin-bottom: 20px;
    font-weight: 400;
}

.service-content p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--color-gray);
    margin-bottom: 18px;
}

.service-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .services-intro-grid {
        grid-template-columns: 1fr;
    }
    
    .intro-text-box {
        padding: 50px 30px;
    }
    
    .service-item,
    .service-item.reverse {
        grid-template-columns: 1fr;
    }
    
    .service-item.reverse .service-image {
        order: 1;
    }
    
    .service-item.reverse .service-content {
        order: 2;
    }
}


/* ========================================
   TABBED CREDENTIALS SECTION
   ======================================== */

.bio-section {
    padding: 80px 0;
    background: white;
}

.bio-content {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
    align-items: start;
}

.credentials-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}

/* Tab Navigation */
.tabs-nav {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #ddd;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 1em;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-family: 'Lato', sans-serif;
}

.tab-button:hover {
    color: #5DADE2;
}

.tab-button.active {
    color: #fff;
    background-color: #2E7D9C;
    border-bottom: 3px solid #2E7D9C;
}

/* Tab Content */
.tabs-content {
    min-height: 400px;
    background: white;
    padding: 20px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

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

/* Credentials Table */
.credentials-table {
    width: 100%;
    border-collapse: collapse;
    background: #f9f9f9;
}

.credentials-table tbody tr {
    border-bottom: 1px solid #ddd;
}

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

.credentials-table td {
    padding: 20px;
    vertical-align: top;
}

.credentials-table td:nth-child(1) {
    font-weight: 600;
    color: #333;
    width: 40%;
}

.credentials-table td:nth-child(2) {
    color: #666;
    width: 20%;
}

.credentials-table td:nth-child(3) {
    color: #555;
    width: 40%;
}

/* Honors Grid */
.section-subtitle {
    font-size: 2em;
    margin: 40px 0 30px;
    text-align: center;
    color: #333;
}

.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.honor-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.honor-logo {
    margin-bottom: 20px;
}

.honor-logo img {
    max-width: 100%;
    height: auto;
}

.honor-card p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
}

/* Awards Grid */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.award-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.award-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.award-card p {
    font-size: 0.95em;
    color: #555;
    font-weight: 600;
}

/* Footer Tagline */
.footer-tagline {
    background: linear-gradient(135deg, #5DADE2 0%, #3498DB 100%);
    padding: 60px 0;
    text-align: center;
}

.footer-tagline p {
    color: #fff;
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* Page Content Styles */
.page-content {
    padding: 80px 0;
    background: white;
}

.content-section {
    max-width: 900px;
    margin: 0 auto 50px;
}

.content-section h2 {
    font-size: 32px;
    color: var(--color-charcoal);
    margin-bottom: 25px;
    font-weight: 400;
}

.content-section p {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 25px;
}

.content-section ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.content-section ul li {
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.8;
    text-indent: -25px;
    margin-left: 25px;
}

.content-section a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.content-section a:hover {
    color: var(--color-primary-dark);
}

/* Office Tour Page Styles */
.covid-notice {
    background-color: #fff;
    border-left: 4px solid #dc3545;
    padding: 20px 30px;
    margin-bottom: 40px;
    border-radius: 4px;
}

.covid-notice p {
    color: #dc3545;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}

.office-gallery {
    margin: 40px 0;
}

.gallery-main {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    max-height: 450px;
}

.gallery-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--color-primary);
    font-size: 48px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
}

.gallery-arrow:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--color-primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow-left {
    left: 20px;
}

.gallery-arrow-right {
    right: 20px;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-thumbnails img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
}

.gallery-thumbnails img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-color: #4fa9b8;
}

/* Referrals Page Styles */
.referrals-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
    margin: 60px 0;
}

.referral-form-preview {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
}

.referral-form-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.referral-text {
    padding-top: 20px;
}

.referral-text p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.referral-text a {
    color: var(--color-primary);
    text-decoration: none;
}

.referral-text a:hover {
    color: var(--color-primary-dark);
}

.download-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--color-primary);
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(79, 179, 191, 0.3);
}

.download-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 179, 191, 0.4);
}

@media (max-width: 768px) {
    .referrals-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* Button Styles */
.button-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #4a9d9c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.button-primary:hover {
    background-color: #3a8d8c;
    color: white;
}

/* Content with Image Layout */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

.text-content {
    padding-right: 20px;
}

.side-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

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

/* Contact Form Styles */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 179, 191, 0.1);
}

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

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
    padding: 60px 0;
    border-top: 1px solid #e0e0e0;
}

.contact-info-item {
    text-align: center;
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-info-item h3 {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.contact-info-item p {
    font-size: 15px;
    line-height: 1.8;
}

.contact-info-item a {
    color: var(--color-gray);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .content-with-image {
        grid-template-columns: 1fr;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Main navigation - Full width darker teal bar */
    .main-nav {
        position: relative;
        background: #1a6a6e;
        padding: 12px 0;
        width: 100%;
        margin: 0;
    }
    
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex !important;
        background: transparent;
        padding: 0;
    }
    
    .mobile-menu-toggle span {
        background: white;
    }
    
    .main-nav ul {
        display: none !important;
        flex-direction: column;
        flex-wrap: nowrap !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        z-index: 1000;
        margin: 0;
        padding: 0;
    }
    
    .main-nav ul.active {
        display: flex !important;
    }
    
    .main-nav ul li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-nav ul a {
        padding: 15px 20px;
        text-align: left;
    }
    
    /* Header adjustments */
    .header-contact h2 {
        font-size: 20px;
    }
    
    .header-contact .phone {
        font-size: 18px;
    }
    
    .header-contact .appointment-link {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    /* Page header */
    .page-header h1 {
        font-size: 36px;
    }
    
    /* Touch-friendly buttons */
    .button-primary {
        min-height: 44px;
        padding: 12px 25px;
    }
    
    /* Content with image layout */
    .content-with-image {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .side-image {
        order: -1; /* Move image above text on mobile */
    }
    
    /* Contact info grid */
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Doctor bio grid */
    .doctor-bio-grid {
        grid-template-columns: 1fr;
    }
    
    /* About grid */
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    /* Services page */
    .service-item {
        grid-template-columns: 1fr !important;
    }
    
    .service-item.reverse {
        grid-template-columns: 1fr !important;
    }
    
    .service-image {
        order: -1;
    }
    
    /* Office tour gallery */
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Logo bar */
    .logo-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .logo-section img {
        max-width: 180px;
    }
    
    .header-contact h2 {
        font-size: 18px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo-bar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
