/* Albion Dental Care - Responsive Stylesheet */

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2c3e50;
    line-height: 1.6;
    background: #fff;
}

a {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #3498db;
    text-decoration: underline;
}

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

ul {
    list-style: none;
}

h1, h2, h3 {
    color: #1a5276;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 0.3em;
}

p {
    margin-bottom: 1em;
}

/* === Layout === */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
.site-header {
    background: #fff;
    border-bottom: 3px solid #1a5276;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 8px;
}

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

.header-phones {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-phone {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a5276;
    white-space: nowrap;
}

.header-phone:hover {
    color: #2980b9;
    text-decoration: none;
}

/* === Navigation === */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: #1a5276;
    height: 3px;
    width: 26px;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    top: -8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

.main-nav ul {
    display: flex;
    gap: 4px;
}

.main-nav a {
    display: block;
    padding: 8px 14px;
    color: #1a5276;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: capitalize;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
    background: #1a5276;
    color: #fff;
    text-decoration: none;
}

/* === Hero / Page Header Section === */
.page-hero {
    background: linear-gradient(135deg, #eaf2f8 0%, #d4e6f1 100%);
    padding: 40px 0;
    margin-bottom: 30px;
}

.page-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.3em;
}

.page-hero .tagline {
    font-size: 1.1rem;
    color: #34495e;
}

/* === Home Hero === */
.home-hero {
    background: linear-gradient(135deg, #1a5276 0%, #0e3a5c 100%);
    padding: 64px 0;
    margin-bottom: 30px;
}

.home-hero h1 {
    font-size: 2.6rem;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-sub {
    font-size: 1.15rem;
    color: #aed6f1;
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    align-items: center;
}

.home-hero .btn-primary {
    background: #2980b9;
}

.home-hero .btn-primary:hover {
    background: #2471a3;
}

.home-hero .btn-secondary {
    border-color: rgba(255,255,255,0.4);
    color: #ffffff;
    background: transparent;
}

.home-hero .btn-secondary:hover {
    border-color: #ffffff;
    background: rgba(255,255,255,0.1);
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: #2980b9;
    color: #fff;
}

.btn-primary:hover {
    background: #2471a3;
    color: #fff;
}

.btn-secondary {
    border: 2px solid #1a5276;
    background: #eaf2f8;
    color: #1a5276;
}

.btn-secondary:hover {
    background: #d4e6f1;
}

/* === Content Sections === */
.content-section {
    padding: 30px 0;
}

/* === Section Headings === */
.section-heading {
    text-align: center;
    margin-bottom: 4px;
}

.section-sub {
    text-align: center;
    color: #666;
    margin-bottom: 28px;
}

.section-link {
    text-align: center;
    margin-top: 16px;
}

.section-link a {
    color: #2980b9;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95em;
}

.section-link a:hover {
    text-decoration: underline;
}

/* === Stats Bar === */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0 40px;
    text-align: center;
}

.stat-item {
    background: #eaf2f8;
    border-radius: 8px;
    padding: 20px 12px;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: #1a5276;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Services Grid === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px 24px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 2em;
    margin-bottom: 12px;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.15em;
    margin: 0 0 10px 0;
    color: #1a5276;
}

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

/* === Home Services Grid === */
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-service-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-service-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.home-service-card h3 {
    font-size: 1.1em;
    color: #1a5276;
    margin: 0 0 8px 0;
}

.home-service-card p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* === Doctor / Leader Card === */
.doctor-card {
    background: #eaf2f8;
    border-radius: 8px;
    padding: 32px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin: 32px 0;
}

.doctor-photo img {
    width: 180px;
    height: auto;
    border-radius: 8px;
}

.doctor-info h3 {
    font-size: 1.3em;
    color: #1a5276;
    margin: 0 0 2px 0;
}

.doctor-title {
    font-size: 0.9em;
    color: #2980b9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
}

.doctor-info > p {
    font-size: 0.95em;
    color: #444;
    line-height: 1.7;
}

.doctor-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.doctor-expertise span {
    background: #d4e6f1;
    color: #1a5276;
    font-size: 0.8em;
    padding: 4px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Large doctor card for about page */
.doctor-card-large {
    max-width: 100%;
}

.doctor-card-large .doctor-photo img {
    width: 220px;
}

/* === Location Cards === */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.location-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px 24px;
    transition: box-shadow 0.2s ease;
}

.location-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.location-card h3 {
    font-size: 1.15em;
    color: #1a5276;
    margin: 0 0 12px 0;
}

.location-card p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.location-card a {
    color: #2980b9;
    font-weight: 600;
}

.location-card .location-phone {
    font-size: 1.1em;
    font-weight: 700;
    color: #1a5276;
}

/* Location cards on locations page with map */
.location-detail-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.location-detail-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.location-detail-content {
    padding: 28px 24px;
}

.location-detail-card h3 {
    font-size: 1.2em;
    color: #1a5276;
    margin: 0 0 12px 0;
}

.location-detail-card p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.location-detail-card .location-phone {
    font-size: 1.1em;
    font-weight: 700;
    color: #1a5276;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.9em;
}

.hours-table td {
    padding: 4px 8px 4px 0;
    color: #555;
}

.hours-table td:first-child {
    font-weight: 600;
    color: #1a5276;
    white-space: nowrap;
}

.location-map {
    width: 100%;
    height: 250px;
    border: none;
    display: block;
}

/* === CTA Banner === */
.cta-banner {
    background: linear-gradient(135deg, #1a5276 0%, #0e3a5c 100%);
    padding: 48px 0;
    text-align: center;
    margin-top: 48px;
}

.cta-banner h2 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 8px;
    border: none;
}

.cta-banner p {
    color: #aed6f1;
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.cta-banner .btn-primary {
    background: #2980b9;
    font-size: 1rem;
    padding: 14px 32px;
}

.cta-banner .btn-primary:hover {
    background: #3498db;
}

/* === Patient Forms === */
.forms-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.forms-list li {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s ease;
}

.forms-list li:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.forms-list a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    color: #1a5276;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
}

.forms-list a:hover {
    color: #2980b9;
    text-decoration: none;
}

.form-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.form-label .form-desc {
    display: block;
    font-weight: 400;
    font-size: 0.85em;
    color: #666;
    margin-top: 2px;
}

/* === Contact Layout === */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.contact-form-wrap {
    position: relative;
}

/* === Contact Form === */
.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a5276;
    font-size: 0.9em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.95em;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    border-color: #2980b9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(41, 128, 185, 0.15);
}

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

.contact-form .form-checkbox {
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-form .form-checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9em;
    color: #555;
}

.contact-form .form-actions {
    margin-top: 20px;
}

.contact-form .form-actions .btn-primary {
    padding: 12px 32px;
    font-size: 1rem;
}

.required {
    color: #e04040;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #f5c6c6;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.form-success-message {
    text-align: center;
    padding: 48px 0;
}

.form-success-message h2 {
    color: #1a5276;
    margin-bottom: 12px;
}

.form-success-message p {
    color: #555;
    font-size: 1.05em;
    margin-bottom: 8px;
}

.form-success-message .btn {
    margin-top: 16px;
}

.required-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 12px;
}

/* === Contact Sidebar === */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: #eaf2f8;
    border-radius: 8px;
    padding: 24px;
}

.contact-info-card h3 {
    color: #1a5276;
    font-size: 1em;
    margin: 0 0 12px 0;
}

.contact-info-card p {
    color: #555;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

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

.contact-info-card a {
    color: #2980b9;
    text-decoration: none;
}

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

.sidebar-badges {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.sidebar-badges img {
    height: 40px;
    width: auto;
}

/* === Mission / Approach Sections === */
.mission-section {
    background: #eaf2f8;
    border-radius: 8px;
    padding: 32px;
    margin: 32px 0;
    text-align: center;
}

.mission-section h2 {
    border: none;
    margin-bottom: 12px;
}

.mission-section p {
    font-size: 1.05em;
    line-height: 1.7;
    color: #444;
    max-width: 700px;
    margin: 0 auto;
}

.approach-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.approach-card {
    background: #f7f9fc;
    border-radius: 8px;
    padding: 24px;
}

.approach-card h4 {
    color: #1a5276;
    margin: 0 0 10px 0;
    font-size: 1.05em;
}

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

/* === Credential Badges === */
.credentials-section {
    text-align: center;
    margin: 32px 0;
}

.credentials-section h2 {
    border: none;
}

.credential-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 16px;
    align-items: center;
}

.credential-badges img {
    height: 60px;
    width: auto;
}

/* === Footer === */
.site-footer {
    background: #1a5276;
    padding: 40px 0 30px;
    margin-top: 40px;
    color: #aed6f1;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.footer-col p {
    font-size: 0.85em;
    line-height: 1.6;
    margin-bottom: 4px;
    color: #aed6f1;
}

.footer-col a {
    color: #d4e6f1;
}

.footer-col a:hover {
    color: #fff;
}

.footer-badges {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.footer-badges img {
    height: 40px;
    width: auto;
    opacity: 0.85;
}

.footer-nav {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 16px;
    margin-bottom: 12px;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.footer-nav a {
    color: #d4e6f1;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: #fff;
}

.copyright {
    font-size: 0.85rem;
    color: #85b8d4;
    text-align: center;
}

/* === Two Column Layout === */
.two-column {
    display: flex;
    gap: 50px;
}

.col-left {
    flex: 1;
    min-width: 0;
}

.col-right {
    flex: 1.4;
    min-width: 0;
}

/* === Responsive === */

/* Tablet */
@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
    }

    .header-phones {
        display: none;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 3px solid #1a5276;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-toggle:checked ~ .main-nav {
        max-height: 400px;
    }

    .nav-toggle:checked ~ .nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 20px;
        gap: 0;
    }

    .main-nav a {
        padding: 12px 14px;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .two-column {
        flex-direction: column;
        gap: 25px;
    }

    .page-hero h1 {
        font-size: 1.6rem;
    }

    .home-hero h1 {
        font-size: 1.8rem;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .doctor-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .doctor-expertise {
        justify-content: center;
    }

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

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

    .contact-sidebar {
        order: -1;
    }

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

/* Small mobile */
@media (max-width: 480px) {
    .header-inner {
        min-height: 60px;
    }

    .logo img {
        height: 48px;
    }

    .page-hero {
        padding: 25px 0;
    }

    .page-hero h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.3rem;
    }

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

    .credential-badges {
        flex-direction: column;
        gap: 16px;
    }
}

/* Medium breakpoint for service grids */
@media (max-width: 900px) and (min-width: 769px) {
    .services-grid,
    .home-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === Home Hero with Background Image === */
.home-hero[style*='background-image'] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.home-hero[style*='background-image']::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 82, 118, 0.88) 0%, rgba(10, 46, 92, 0.92) 100%);
    z-index: 0;
}

.home-hero .container {
    position: relative;
    z-index: 1;
}

/* === Hero height boost === */
.home-hero {
    padding: 80px 0 72px;
}

/* === Credential badges on homepage === */
.home-credentials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin: 40px 0 0;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
}

.home-credentials img {
    height: 56px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.home-credentials img:hover {
    opacity: 1;
}
