/* Páginas internas */

body.inner-page #header {
    position: relative;
    background-color: #c0a558;
    background: linear-gradient(
        180deg,
        #7a6530 0%,
        #9a8448 45%,
        #c0a558 100%
    );
}

body.inner-page .top-menu li a {
    color: rgba(255, 255, 255, 0.9);
}

body.inner-page .top-menu li a:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.22);
}

body.inner-page .top-menu li.current-menu-item a {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.28);
}

body.inner-page .top-menu li.current-menu-item a:hover {
    background-color: rgba(0, 0, 0, 0.36);
}

body.inner-page .hamburger i,
body.inner-page .hamburger i::before,
body.inner-page .hamburger i::after {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Banner das páginas */
.page-hero {
    background-color: #c0a558;
    padding: 25px 0 60px;
    text-align: center;
}

.page-hero-title {
    font-size: 59px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -3px;
    color: #fff;
    margin-bottom: 9.6px;
}

.page-hero-title b { font-weight: 700; }

.page-hero-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
}

/* Conteúdo */
.page-content {
    padding: 70px 0;
    background: #fff;
}

body.inner-page .page-content {
    background: #FDFBF7;
}

.page-content.gray-bg {
    background: #f7f7f7;
}

body.inner-page .page-content.gray-bg {
    background: #FAF8F4;
}

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

.content-block--left {
    max-width: none;
    margin: 0 0 50px;
}

.content-block--center {
    text-align: center;
}

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

.content-block h2 {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -1px;
    color: #303030;
    margin-bottom: 20px;
    line-height: 1.2;
}

.content-block p {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 16px;
}

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

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.content-split h2 {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -1px;
    color: #303030;
    margin-bottom: 20px;
    line-height: 1.2;
}

.content-split p {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 16px;
}

.content-split img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Cards de destaque */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.feature-card .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: #A5821C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #303030;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

/* Números / stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: #f7f7f7;
    border-radius: 8px;
}

body.inner-page .stat-item {
    background: #e2ce96;
}

.stat-item .number {
    font-size: 48px;
    font-weight: 700;
    color: #A5821C;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item .label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quem-somos-gallery {
    margin: 50px 0;
}

.gallery-carousel {
    position: relative;
    width: 100%;
}

.gallery-carousel-viewport {
    overflow: hidden;
    border-radius: 8px;
}

.gallery-carousel-track {
    display: flex;
    gap: 10px;
    transition: transform 0.45s ease;
}

.gallery-carousel-slide {
    flex: 0 0 calc((100% - 20px) / 3);
    min-width: 0;
}

.gallery-carousel-slide a {
    display: block;
}

.gallery-carousel-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #e2ce96;
    color: #303030;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
    z-index: 2;
}

.gallery-carousel-btn:hover {
    background: #c0a558;
    color: #fff;
}

.gallery-carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.gallery-carousel-prev { left: 12px; }
.gallery-carousel-next { right: 12px; }

.gallery-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.gallery-carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #d4c4a0;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.gallery-carousel-dot.is-active {
    background: #A5821C;
    transform: scale(1.15);
}

/* Especialidades */
.specialty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.specialty-card {
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    border-left: 4px solid #E29600;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: border-color 0.3s;
}

.specialty-card:hover { border-left-color: #A5821C; }

.specialty-card h3 {
    font-size: 22.5px;
    font-weight: 600;
    color: #303030;
    margin-bottom: 10px;
}

.specialty-card p {
    font-size: 17.5px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 12px;
}

.specialty-card .doctors {
    font-size: 16.25px;
    color: #A5821C;
    font-weight: 600;
}

/* Consultórios */
.office-filter {
    max-width: 640px;
    margin: 0 auto 36px;
}

.office-filter-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #303030;
    margin-bottom: 10px;
    text-align: center;
}

.office-filter-field {
    position: relative;
}

.office-filter-field .fa-search {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #A5821C;
    font-size: 16px;
    pointer-events: none;
}

.office-search-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 15px;
    font-family: inherit;
    background: #fafafa;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.office-search-input:focus {
    outline: none;
    border-color: #E29600;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(226, 150, 0, 0.15);
}

.office-search-input::-webkit-search-cancel-button {
    cursor: pointer;
}

.office-filter-result {
    margin-top: 12px;
    font-size: 14px;
    color: #777;
    text-align: center;
}

.office-empty {
    text-align: center;
    padding: 40px 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.office-empty p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.office-card[hidden] {
    display: none;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.office-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.office-photo-btn {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}

.office-photo-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 180px;
    transition: transform 0.35s ease;
}

.office-photo-btn:hover img,
.office-photo-btn:focus-visible img {
    transform: scale(1.05);
}

.office-photo-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 24, 0, 0.45);
    color: #fff;
    font-size: 28px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.office-photo-btn:hover .office-photo-hint,
.office-photo-btn:focus-visible .office-photo-hint {
    opacity: 1;
}

.office-card .office-body {
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.office-card h3 {
    font-size: 22.5px;
    font-weight: 600;
    color: #303030;
    margin-bottom: 6px;
}

.office-card .floor {
    font-size: 13px;
    color: #E29600;
    font-weight: 600;
    margin-bottom: 10px;
}

.office-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 12px;
}

.office-card .office-meta {
    font-size: 13px;
    color: #888;
}

/* Modal de consultório */
.office-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.office-modal[hidden] {
    display: none;
}

.office-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.72);
}

.office-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.office-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #303030;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, transform 0.2s;
}

.office-modal-close:hover {
    background: #fff;
    transform: scale(1.05);
}

.office-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
}

.office-modal-media {
    background: #f3f3f3;
    min-height: 100%;
    overflow: hidden;
    border-radius: 16px 0 0 16px;
}

.office-modal-media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.office-modal-body {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.office-modal-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: #303030;
    line-height: 1.2;
    margin-bottom: 8.4px;
}

.office-modal-specialty {
    display: inline-block;
    background: #f0f0f0;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: none;
}

.office-modal-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.office-modal-tags[hidden] {
    display: none;
}

.office-modal-floor {
    font-size: 14px;
    color: #E29600;
    font-weight: 600;
}

.office-modal-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0;
}

.office-modal-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.office-modal-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.office-modal-phone .fa-phone {
    color: #A5821C;
    font-size: 15px;
}

.office-modal-phone a {
    color: #303030;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.office-modal-phone a:hover {
    color: #E29600;
}

.office-modal-cta {
    flex-shrink: 0;
    font-size: 10.6px;
    padding: 12.5px 22.5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.11);
}

/* Blog listing */
.page-content .blog-grid {
    margin-top: 0;
}

/* Artigo */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-meta {
    font-size: 14px;
    color: #7a7a7a;
    margin-bottom: 30px;
}

.article-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img { width: 100%; }

.article-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: #303030;
    margin: 32px 0 16px;
    line-height: 1.3;
}

.article-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.article-back {
    margin-top: 50px;
    text-align: center;
}

/* CTA */
.page-cta {
    background: #f7f7f7;
    padding: 50px 0;
    text-align: center;
}

body.inner-page .page-cta {
    background: #FAF8F4;
}

.page-cta h2 {
    font-size: 36px;
    font-weight: 500;
    color: #303030;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.page-cta p {
    font-size: 17px;
    color: #555;
    margin-bottom: 28px;
}

/* Contato — página dedicada (fundo claro) */
.contact-section--light {
    background: #fff;
    padding: 60px 0 80px;
}

.contact-section--light::before {
    display: none;
}

.contact-section--light .contact-title {
    color: #303030;
}

.contact-section--light .contact-list-item {
    color: #444;
}

.contact-section--light .contact-icon {
    background: rgba(165, 130, 28, 0.12);
    color: #A5821C;
}

.contact-section--light .contact-text a {
    color: #A5821C;
}

.contact-section--light .contact-text a:hover {
    color: #8B6914;
    opacity: 1;
}

.contact-section--light .contact-form-wrap {
    border: 1px solid #eee;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Responsivo */
@media (max-width: 1024px) {
    .page-hero-title { font-size: 44px; }
    .feature-grid,
    .specialty-grid,
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .content-split { grid-template-columns: 1fr; gap: 30px; }
    .gallery-carousel-slide {
        flex: 0 0 calc((100% - 10px) / 2);
    }
}

@media (max-width: 767px) {
    .page-hero { padding: 20px 0 50px; }
    .page-hero-title { font-size: 36px; letter-spacing: 0; }
    .page-content { padding: 50px 0; }
    .feature-grid,
    .specialty-grid,
    .stats-grid,
    .office-grid { grid-template-columns: 1fr; }
    .office-card { grid-template-columns: 1fr; }
    .office-photo-btn { border-radius: 8px 8px 0 0; }
    .office-photo-btn img { min-height: 200px; }
    .office-card .office-body { padding: 24px; }
    .office-modal-grid { grid-template-columns: 1fr; }
    .office-modal-media { border-radius: 16px 16px 0 0; }
    .office-modal-media img { min-height: 240px; }
    .office-modal-body { padding: 28px 24px 32px; }
    .office-modal-body h2 { font-size: 24px; }
    .gallery-carousel-slide { flex: 0 0 100%; }
    .gallery-carousel-slide img { height: 260px; }
}

/* Cadastro público de consultório */
.office-submit-section {
    padding: 50px 0 80px;
}

.office-submit-intro {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
    color: #555;
    font-size: 17px;
    line-height: 1.6;
}

.office-submit-wrap {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.office-submit-form input[type="file"] {
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
}

.office-submit-form .form-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #777;
}

.page-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.page-cta .btn-outline {
    background: transparent;
    border: 2px solid #E29600;
    color: #E29600;
}

.page-cta .btn-outline:hover {
    background: #E29600;
    color: #fff;
}

@media (max-width: 767px) {
    .office-submit-wrap {
        padding: 28px 20px;
    }
}
