/* ===========================
   ESPECIALIDADES V2
   Header/Footer: home-v2.css (hv2-*)
   =========================== */

.es-page {
    font-family: 'Montserrat', sans-serif;
    color: #1A1A1A;
    background: #F7F8FA;
    -webkit-font-smoothing: antialiased;
}
.es-page *, .es-page *::before, .es-page *::after { box-sizing: border-box; }
.es-page a { text-decoration: none; }
.es-page img { max-width: 100%; display: block; }

/* ---------- Hero ---------- */
.es-hero {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #00402B;
}
.es-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,64,43,0.96) 0%,
        rgba(0,87,61,0.87) 50%,
        rgba(45,122,79,0.73) 100%);
    z-index: 1;
}
.es-hero__content {
    position: relative;
    z-index: 2;
    padding: 0 80px;
    width: 100%;
}
.es-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 100px;
    font-size: 12px;
    font-weight: 500;
}
.es-hero__breadcrumb a { color: rgba(255,255,255,0.67); transition: color 0.15s; }
.es-hero__breadcrumb a:hover { color: #fff; }
.es-hero__breadcrumb .es-hero__sep { color: rgba(255,255,255,0.4); font-size: 10px; }
.es-hero__breadcrumb .es-hero__current { color: rgba(255,255,255,0.8); }
.es-hero__title-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 40px;
}
.es-hero__accent { width: 4px; height: 52px; background: #91C14D; border-radius: 2px; flex-shrink: 0; margin-top: 4px; }
.es-hero__title { font-size: 40px; font-weight: 800; color: #fff; margin: 0; line-height: 1.1; }
.es-hero__subtitle { font-size: 14px; color: rgba(255,255,255,0.73); margin: 16px 0 0 20px; max-width: 650px; line-height: 1.5; }
.es-hero__icon { position: absolute; z-index: 2; color: #fff; pointer-events: none; }
.es-hero__icon--main { right: 60px; top: -20px; font-size: 300px; opacity: 0.09; }
.es-hero__icon--sec { right: 20px; bottom: -10px; font-size: 100px; opacity: 0.06; transform: rotate(-12deg); }

/* ---------- Search & Stats Bar ---------- */
.es-toolbar {
    background: #fff;
    border-bottom: 1px solid #E8E8E8;
    padding: 16px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 80px;
    z-index: 100;
}
.es-toolbar__left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.es-toolbar__count {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
}
.es-toolbar__count strong {
    color: #00573D;
    font-weight: 800;
}
.es-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    background: #F3F4F6;
    padding: 0 16px;
    gap: 8px;
    flex: 1;
    max-width: 360px;
}
.es-search-form i { color: #aaa; font-size: 14px; flex-shrink: 0; }
.es-search-input {
    border: none;
    background: transparent;
    padding: 9px 0;
    font-size: 12px;
    width: 100%;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    color: #333;
}
.es-search-input::placeholder { color: #aaa; }

/* Alphabet nav */
.es-alpha {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}
.es-alpha__letter {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    background: #F3F4F6;
    transition: all 0.15s;
    cursor: pointer;
}
.es-alpha__letter:hover {
    background: #00573D;
    color: #fff !important;
}
.es-alpha__letter--active {
    background: #00573D !important;
    color: #FFFFFF !important;
}
.es-alpha__letter--disabled {
    color: #ccc;
    cursor: default;
    pointer-events: none;
}

/* ---------- Body ---------- */
.es-body {
    padding: 40px 80px 60px;
    background: #F7F8FA;
}

/* Letter Group */
.es-group {
    margin-bottom: 32px;
}
.es-group__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #00573D;
}
.es-group__letter {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00573D;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    border-radius: 8px;
    flex-shrink: 0;
}
.es-group__count {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

/* Card Grid */
.es-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Specialty Card — inteiro clicavel */
.es-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #EBEBEB;
    padding: 28px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.es-card:hover {
    box-shadow: 0 16px 40px rgba(0,87,61,0.12);
    transform: translateY(-6px);
    border-color: #c8dfd0;
}
.es-card--no-link { cursor: default; }
.es-card--no-link:hover { transform: none; box-shadow: none; }

/* Logo area */
.es-card__logo-area {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}
.es-card__logo {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 12px;
    filter: grayscale(0.2) brightness(1.02);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.es-card:hover .es-card__logo {
    filter: grayscale(0) brightness(1);
    transform: scale(1.08);
}
.es-card__icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00573D;
    font-size: 26px;
    transition: all 0.3s;
}
.es-card:hover .es-card__icon {
    background: #00573D;
    color: #fff;
}

/* Name */
.es-card__name {
    font-size: 12px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.35;
    letter-spacing: 0.1px;
    transition: color 0.2s;
}
.es-card:hover .es-card__name { color: #00573D; }

/* Link label */
.es-card__link {
    font-size: 11px;
    font-weight: 600;
    color: #00573D;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 6px;
    transition: gap 0.3s;
}
.es-card__link i { font-size: 10px; }
.es-card:hover .es-card__link { gap: 8px; }

/* Removed: doctor, tags, email, btn — card now only shows logo + name + link */

/* Empty */
.es-empty {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}
.es-empty i { color: #ddd; margin-bottom: 16px; display: block; }
.es-empty h3 { font-size: 20px; color: #333; margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .es-hero__content { padding: 0 30px; }
    .es-toolbar { padding: 16px 30px; }
    .es-body { padding: 30px; }
    .es-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .es-hero { height: auto; min-height: 240px; }
    .es-hero__breadcrumb { padding-top: 60px; }
    .es-hero__title { font-size: 32px; }
    .es-hero__icon--main, .es-hero__icon--sec { display: none; }
    .es-toolbar { flex-wrap: wrap; }
    .es-alpha { display: none; }
}
@media (max-width: 767px) {
    .es-toolbar { top: 64px; padding: 12px 16px; flex-direction: column; align-items: flex-start; }
    .es-hero__content { padding: 0 20px; }
    .es-hero__breadcrumb { padding-top: 40px; }
    .es-hero__title { font-size: 28px; }
    .es-hero__subtitle { font-size: 13px; margin-left: 0; }
    .es-body { padding: 20px 16px; }
    .es-grid { grid-template-columns: repeat(2, 1fr); }
    .es-search-form { max-width: 100%; width: 100%; }
    .es-group__header { gap: 8px; }
    .es-group__letter { width: 32px; height: 32px; font-size: 16px; }
}
