/* RDS QC Styles */

@font-face {
    font-family: 'Albertus Nova';
    src: url('/fonts/albertus-nova-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --color-primary: #225a7f;
    --color-secondary: #27b4dd;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #fff;
    --color-bg-light: #f5f5f5;
    --container-width: 1200px;
    --container-padding: 1.5rem;
    --font-heading: 'Albertus Nova', serif;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    padding-top: 80px;
}

html {
    scroll-padding-top: 100px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header */
#header {
    background: var(--color-bg);
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

#main-nav > ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}


#main-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

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

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

.dropdown > a {
    position: relative;
}

.dropdown > a i {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.75rem;
    transition: transform 0.2s;
    vertical-align: middle;
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    list-style: none;
    padding: 0.5rem 1rem 0 1rem;
    margin: 0;
    min-width: 280px;
    z-index: 1000;
    border-radius: 4px;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-secondary);
    text-decoration: none;
    border-bottom: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: bold;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
    text-align: left;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 0;
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    text-shadow: none;
}

.hero .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-text);
    text-shadow: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: white !important;
}

.btn-primary:hover {
    background: var(--color-secondary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Sections */
section {
    padding: 4rem 0;
}

.services-preview {
    background: var(--color-primary);
    padding: 3rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.service-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.service-preview-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.service-preview-item img {
    max-width: 50px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.service-preview-item h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    font-family: var(--font-heading);
}

.service-preview-item p {
    color: white;
    font-size: 19px;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    max-width: 100%;
}

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

.mission-statement {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.mission-statement h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.mission-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text);
}

.doctors-headshots {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.doctor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.doctor-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.2s;
    cursor: pointer;
    color: inherit;
}

.doctor-item a:hover {
    transform: translateY(-4px);
}

.doctor-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-primary);
}

.doctor-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    font-family: var(--font-heading);
}

.doctor-item a:hover .doctor-name {
    color: var(--color-secondary);
}

.commitments {
    max-width: 1200px;
    margin: 0 auto;
}

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

.commitment-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.commitment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.commitment-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: block;
    object-fit: contain;
}

.commitment-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-secondary);
}

.commitment-card p {
    margin: 0;
    line-height: 1.7;
    color: var(--color-text);
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

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

/* Page Content */
.page-content {
    padding: 4rem 0;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
    text-align: center;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.privacy-intro {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    text-align: center;
}

.privacy-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    scroll-margin-top: 100px;
}

#pediatric-dentists,
#orthodontists,
#chris-cannon,
#matthew-cannon,
#brandon-wainwright {
    scroll-margin-top: 100px;
}


.privacy-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.privacy-content p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.privacy-content ul {
    margin: 1rem 0 1.5rem 2rem;
    list-style-type: disc;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

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

.privacy-content a:hover {
    text-decoration: underline;
}

.privacy-content .btn,
.privacy-content .btn-primary {
    color: white !important;
}

.language-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.language-section:last-child {
    border-bottom: none;
}

.language-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.language-section p {
    line-height: 1.8;
    margin: 0;
}

/* Offices Page */
.office-location {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.office-location h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-secondary);
}

.office-location-item {
    margin-bottom: 3rem;
}

.office-location-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.office-group-photo {
    margin-bottom: 2rem;
    text-align: center;
}

.office-group-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.office-map {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.office-map iframe {
    display: block;
    width: 100%;
    border: none;
}

.office-tour {
    margin: 2rem 0;
}

.office-tour h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.office-tour iframe {
    display: block;
    width: 100%;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 600px;
}

.office-info {
    margin-bottom: 2rem;
}

.office-address,
.office-phone {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.office-address i,
.office-phone i {
    color: var(--color-secondary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

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

.office-phone a:hover {
    text-decoration: underline;
}

.office-hours-note {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.office-hours-note p {
    margin: 0;
    line-height: 1.6;
}

.office-hours {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.office-hours li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.office-hours li:last-child {
    border-bottom: none;
}

/* Staff Page */
.staff-member {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.staff-photo {
    flex-shrink: 0;
}

.staff-photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid var(--color-primary);
    margin: 0;
}

.staff-info {
    flex: 1;
}

.staff-info h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    font-family: var(--font-heading);
}

.staff-info p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.staff-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.staff-photo-item {
    text-align: center;
}

.staff-photo-item img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    border: 3px solid var(--color-primary);
    margin-bottom: 0.75rem;
}

.staff-name {
    font-size: 18px;
    color: var(--color-secondary) !important;
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.staff-title {
    font-size: 18px;
    color: var(--color-primary) !important;
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-family: var(--font-heading);
    font-style: italic;
    line-height: 1.2;
}

.contact-info {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
}

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

.contact-info a:hover {
    text-decoration: underline;
}

/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.location-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.location-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Footer */
#footer {
    background: var(--color-primary);
    color: white;
    margin-top: 0;
}

.footer-top {
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

.footer-section h3:not(:first-child) {
    margin-top: 2rem;
}

.office-label {
    color: white;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.footer-address,
.footer-phone {
    color: white;
    margin: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-icon {
    color: var(--color-secondary);
    flex-shrink: 0;
    font-size: 1rem;
}

.footer-phone a {
    color: var(--color-secondary);
    text-decoration: none;
}

.footer-phone a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 1.1rem;
}

.social-icon i {
    color: white;
}

.social-icon:hover {
    background: #1a9bb8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.1);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    color: var(--color-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-content a {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-bottom-content a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    #main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        display: block;
        box-shadow: none;
        background: transparent;
        padding: 0.5rem 0 0.5rem 1rem;
    }

    .dropdown-menu a {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

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

    .hero .lead {
        font-size: 1.25rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .doctors-headshots {
        flex-direction: column;
        gap: 2rem;
    }

    .doctor-item img {
        width: 150px;
        height: 150px;
    }

    .commitments-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .commitment-card {
        padding: 2rem;
    }

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

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 1rem;
    }

    .staff-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .staff-photo img {
        width: 150px;
        height: 150px;
    }

    .staff-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

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

/* UserWay Widget Positioning - Force to lower left corner */
#userway-widget,
div[id*="userway"],
iframe[id*="userway"],
[class*="userway"] {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    top: auto !important;
    right: auto !important;
    z-index: 9999 !important;
}

/* UserWay Panel/Sidebar - Fix vertical rendering to be full height top to bottom */
[class*="userway-panel"],
[class*="userway-menu"],
[class*="userway-sidebar"],
div[id*="userway-panel"],
div[id*="userway-menu"],
div[id*="userway-sidebar"],
iframe[class*="userway"],
iframe[id*="userway"] {
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: translateY(0) !important;
    transform-origin: top !important;
}


