
:root{
    --green:#064d32;
    --green2:#0f6b45;
    --soft:#f4f8f1;
    --cream:#fbf8ef;
    --text:#12261d;
    --muted:#5c6f65;
    --border:#dfe8df;
    --shadow:0 18px 50px rgba(5,55,35,.10);
}
*{box-sizing:border-box}
body{
    margin:0;
    font-family:Inter,Arial,sans-serif;
    color:var(--text);
    background:linear-gradient(180deg,#fbfdf9,#f4f8f1);
}
.topbar{
    background:linear-gradient(90deg,#064d32,#0d6a44);
    color:#fff;
    text-align:center;
    padding:9px 12px;
    font-size:14px;
}
.header{
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:10;
}
.container{
    width:min(1180px,92%);
    margin:auto;
}
.nav-wrap{
    height:86px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
}
.logo{
    display:flex;
    align-items:center;
    gap:13px;
    text-decoration:none;
    color:var(--green);
}
.logo-mark{
    width:54px;height:54px;border-radius:50%;
    border:3px solid var(--green);
    display:flex;align-items:center;justify-content:center;
    font-size:27px;
}
.logo strong{display:block;font-size:24px;letter-spacing:.8px}
.logo small{font-weight:800;font-size:12px;letter-spacing:2px}
.nav a{
    color:#111;
    text-decoration:none;
    margin:0 12px;
    font-weight:700;
    font-size:14px;
}
.nav a.active{color:var(--green);border-bottom:3px solid var(--green);padding-bottom:10px}
.btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    border:0;
    border-radius:10px;
    padding:14px 22px;
    background:var(--green);
    color:#fff;
    text-decoration:none;
    font-weight:800;
    box-shadow:0 14px 28px rgba(6,77,50,.22);
    cursor:pointer;
}
.btn.outline{
    background:#fff;
    color:var(--green);
    border:1px solid var(--green2);
    box-shadow:none;
}
.hero{
    min-height:610px;
    background:
      radial-gradient(circle at 80% 40%,rgba(15,107,69,.25),transparent 30%),
      linear-gradient(90deg,rgba(251,248,239,.98) 0%,rgba(251,248,239,.88) 40%,rgba(239,247,235,.50) 100%),
      url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?auto=format&fit=crop&w=1600&q=70');
    background-size:cover;
    background-position:center right;
}
.hero-inner{
    min-height:610px;
    display:grid;
    grid-template-columns:1.05fr .95fr;
    align-items:center;
    gap:40px;
}
.eyebrow{
    font-size:14px;
    font-weight:900;
    color:var(--green);
    letter-spacing:2px;
    text-transform:uppercase;
}
.hero h1{
    font-family:Georgia,serif;
    font-size:58px;
    line-height:1.05;
    margin:16px 0;
    color:#0b3d2b;
    max-width:590px;
}
.hero p{
    color:#18392c;
    line-height:1.8;
    font-size:17px;
    max-width:560px;
}
.actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:28px}
.hero-badges{
    display:flex;
    gap:26px;
    flex-wrap:wrap;
    margin-top:35px;
}
.hero-badges span{
    display:flex;
    align-items:center;
    gap:10px;
    color:#2c4a3c;
    font-size:13px;
}
.quote-card{
    margin-left:auto;
    max-width:260px;
    background:rgba(255,255,255,.88);
    border:1px solid rgba(255,255,255,.8);
    border-radius:18px;
    padding:30px;
    box-shadow:var(--shadow);
}
.quote-card b{
    color:var(--green);
    font-size:40px;
}
.quote-card p{
    font-family:Georgia,serif;
    font-size:22px;
    line-height:1.35;
}
.section{padding:70px 0}
.section-title{text-align:center;margin-bottom:35px}
.section-title h2{font-family:Georgia,serif;font-size:38px;margin:0;color:#0b3d2b}
.grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
}
.card{
    background:rgba(255,255,255,.88);
    border:1px solid var(--border);
    border-radius:18px;
    padding:30px;
    text-align:center;
    box-shadow:0 10px 35px rgba(0,0,0,.04);
}
.icon{
    width:58px;height:58px;border-radius:50%;
    background:linear-gradient(135deg,var(--green),#0d7d4f);
    color:#fff;
    display:flex;align-items:center;justify-content:center;
    margin:0 auto 18px;
    font-size:24px;
}
.card h3{font-family:Georgia,serif;color:#0b3d2b}
.card p{color:#44564d;line-height:1.65;font-size:14px}
.about-box{
    background:#fff;
    border:1px solid var(--border);
    border-radius:24px;
    padding:40px;
    box-shadow:var(--shadow);
}
.protected{
    user-select:none;
    -webkit-user-select:none;
}
.form-wrap{
    background:#fff;
    border:1px solid var(--border);
    border-radius:24px;
    padding:34px;
    box-shadow:var(--shadow);
    margin:35px 0;
}
.form-section{
    border-top:1px solid var(--border);
    padding-top:25px;
    margin-top:25px;
}
.form-section h2{
    color:var(--green);
    font-size:22px;
}
.form-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}
.field label{
    display:block;
    font-weight:800;
    font-size:14px;
    margin-bottom:8px;
}
input,select,textarea{
    width:100%;
    border:1px solid #d7e4d8;
    border-radius:12px;
    padding:13px 14px;
    font:inherit;
    background:#fbfdfb;
}
.check-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}
.check{
    background:#f5faf5;
    border:1px solid #dcebdd;
    border-radius:14px;
    padding:14px;
    display:flex;
    align-items:center;
    gap:9px;
    font-weight:700;
}
.check input{width:auto}
textarea{min-height:120px}
.footer{
    background:linear-gradient(90deg,#073d29,#075a3a);
    color:#fff;
    padding:52px 0 18px;
}
.footer-grid{
    display:grid;
    grid-template-columns:1.3fr 1fr 1fr 1fr;
    gap:30px;
}
.footer a{color:#fff;text-decoration:none;display:block;margin:7px 0;opacity:.9}
.footer small{opacity:.75}
.footer-bottom{
    border-top:1px solid rgba(255,255,255,.12);
    margin-top:35px;
    padding-top:16px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:12px;
}
.admin-link{opacity:.42;color:#fff!important;font-size:12px}
.whatsapp{
    position:fixed;
    right:22px;
    bottom:22px;
    background:#22c55e;
    color:#fff;
    padding:15px 22px;
    border-radius:40px;
    text-decoration:none;
    font-weight:900;
    box-shadow:0 14px 30px rgba(0,0,0,.2);
}
@media(max-width:900px){
    .nav-wrap{height:auto;padding:16px 0;flex-direction:column}
    .hero-inner{grid-template-columns:1fr}
    .hero h1{font-size:40px}
    .grid,.footer-grid,.form-grid,.check-grid{grid-template-columns:1fr}
    .quote-card{margin:0}
}


/* Accordion premium - página Serviços */
.protocol-page{
    padding-top:60px;
}
.protocol-intro{
    max-width:820px;
    margin:0 auto 36px;
    text-align:center;
    color:var(--muted);
    line-height:1.8;
}
.protocol-accordion{
    max-width:1080px;
    margin:0 auto;
    display:grid;
    gap:22px;
}
.protocol-item{
    background:rgba(255,255,255,.92);
    border:1px solid var(--border);
    border-radius:24px;
    box-shadow:var(--shadow);
    overflow:hidden;
}
.protocol-toggle{
    width:100%;
    border:0;
    background:linear-gradient(90deg,#ffffff,#f5faf5);
    padding:28px 32px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    text-align:left;
    color:var(--text);
}
.protocol-title{
    display:flex;
    align-items:center;
    gap:18px;
}
.protocol-icon{
    width:62px;
    height:62px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--green),#0d7d4f);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    flex:0 0 62px;
    box-shadow:0 14px 30px rgba(6,77,50,.18);
}
.protocol-title h2{
    margin:0 0 6px;
    font-family:Georgia,serif;
    font-size:26px;
    color:#0b3d2b;
}
.protocol-title p{
    margin:0;
    color:var(--muted);
    font-size:15px;
    line-height:1.5;
}
.protocol-arrow{
    width:40px;
    height:40px;
    border-radius:50%;
    background:#edf7ef;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--green);
    font-weight:900;
    transition:.25s;
    flex:0 0 40px;
}
.protocol-item.open .protocol-arrow{
    transform:rotate(180deg);
    background:var(--green);
    color:#fff;
}
.protocol-content{
    display:none;
    padding:0 32px 34px;
}
.protocol-item.open .protocol-content{
    display:block;
}
.protocol-inner{
    border-top:1px solid var(--border);
    padding-top:28px;
}
.protocol-block{
    margin-bottom:28px;
    background:#fbfdfb;
    border:1px solid #e3eee4;
    border-radius:18px;
    padding:24px;
}
.protocol-block h3{
    margin:0 0 14px;
    color:var(--green);
    font-size:20px;
}
.protocol-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px 18px;
    padding:0;
    margin:0;
    list-style:none;
}
.protocol-list li{
    position:relative;
    padding-left:24px;
    line-height:1.55;
    color:#30463b;
}
.protocol-list li:before{
    content:"✓";
    position:absolute;
    left:0;
    color:var(--green);
    font-weight:900;
}
.phase-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}
.phase-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:22px;
    box-shadow:0 8px 26px rgba(0,0,0,.04);
}
.phase-card h4{
    margin:0 0 12px;
    color:#0b3d2b;
    font-family:Georgia,serif;
    font-size:19px;
}
.notice{
    background:#fff7e8;
    border:1px solid #f1d9a8;
    border-radius:16px;
    padding:18px 20px;
    color:#65470a;
    line-height:1.65;
}
.protocol-cta{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top:24px;
}
@media(max-width:900px){
    .protocol-toggle{padding:22px}
    .protocol-title{align-items:flex-start}
    .protocol-title h2{font-size:22px}
    .protocol-content{padding:0 22px 28px}
    .protocol-list,.phase-grid{grid-template-columns:1fr}
}


/* Admin Premium Dashboard Teramaje */
.admin-body{
    background:
      radial-gradient(circle at top left, rgba(6,77,50,.12), transparent 35%),
      linear-gradient(135deg,#f6fbf5 0%,#eef7ee 100%);
    min-height:100vh;
}
.admin-shell{
    display:grid;
    grid-template-columns:280px 1fr;
    min-height:100vh;
}
.admin-sidebar{
    background:linear-gradient(180deg,#063d29,#075a3a);
    color:#fff;
    padding:28px 22px;
    position:sticky;
    top:0;
    height:100vh;
}
.admin-brand{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:34px;
}
.admin-brand-icon{
    width:48px;
    height:48px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.75);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
}
.admin-brand strong{
    display:block;
    font-size:22px;
    letter-spacing:.8px;
}
.admin-brand small{
    opacity:.75;
    font-weight:700;
    letter-spacing:1.4px;
}
.admin-menu{
    display:grid;
    gap:8px;
}
.admin-menu a{
    color:#fff;
    text-decoration:none;
    padding:14px 16px;
    border-radius:14px;
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:800;
    opacity:.82;
}
.admin-menu a:hover,
.admin-menu a.active{
    background:rgba(255,255,255,.13);
    opacity:1;
}
.admin-main{
    padding:32px;
}
.admin-top{
    background:rgba(255,255,255,.86);
    border:1px solid var(--border);
    border-radius:24px;
    padding:26px;
    box-shadow:var(--shadow);
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:center;
    margin-bottom:26px;
}
.admin-top h1{
    margin:0 0 8px;
    font-size:34px;
    color:#062f22;
}
.admin-top p{
    margin:0;
    color:var(--muted);
}
.admin-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}
.admin-stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
    margin-bottom:26px;
}
.admin-stat-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    padding:22px;
    box-shadow:0 12px 32px rgba(6,77,50,.07);
}
.admin-stat-card span{
    display:block;
    color:var(--muted);
    font-size:13px;
    font-weight:800;
    margin-bottom:8px;
}
.admin-stat-card strong{
    font-size:32px;
    color:var(--green);
}
.admin-search{
    background:#fff;
    border:1px solid var(--border);
    border-radius:24px;
    padding:24px;
    box-shadow:0 12px 32px rgba(6,77,50,.06);
    margin-bottom:26px;
}
.admin-search-row{
    display:grid;
    grid-template-columns:1fr auto;
    gap:14px;
    align-items:end;
}
.admin-section-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:28px 0 16px;
}
.admin-section-title h2{
    margin:0;
    font-size:25px;
    color:#062f22;
}
.admin-list{
    display:grid;
    gap:16px;
}
.admin-anamnese-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:24px;
    padding:22px;
    box-shadow:0 12px 32px rgba(6,77,50,.07);
    display:grid;
    grid-template-columns:1fr auto;
    gap:20px;
    align-items:center;
    transition:.22s;
}
.admin-anamnese-card:hover{
    transform:translateY(-2px);
    box-shadow:0 20px 45px rgba(6,77,50,.11);
}
.patient-line{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:12px;
}
.patient-avatar{
    width:54px;
    height:54px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--green),#0d7d4f);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    font-weight:900;
}
.patient-line h3{
    margin:0 0 4px;
    font-size:20px;
    color:#0b3d2b;
}
.patient-line small{
    color:var(--muted);
}
.admin-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.admin-pill{
    background:#f2f8f2;
    border:1px solid #dfeee1;
    color:#29493a;
    border-radius:999px;
    padding:8px 12px;
    font-size:13px;
    font-weight:800;
}
.admin-card-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}
.admin-empty{
    background:#fff7e8;
    border:1px solid #f1d9a8;
    border-radius:20px;
    padding:22px;
    color:#65470a;
    font-weight:700;
}
@media(max-width:1050px){
    .admin-shell{grid-template-columns:1fr}
    .admin-sidebar{height:auto;position:relative}
    .admin-stats{grid-template-columns:repeat(2,1fr)}
    .admin-anamnese-card{grid-template-columns:1fr}
    .admin-card-actions{justify-content:flex-start}
}
@media(max-width:650px){
    .admin-main{padding:18px}
    .admin-top{flex-direction:column;align-items:flex-start}
    .admin-stats{grid-template-columns:1fr}
    .admin-search-row{grid-template-columns:1fr}
}


/* Agenda integrada Teramaje */
.schedule-panel{
    background:#fff;
    border:1px solid var(--border);
    border-radius:24px;
    padding:30px;
    box-shadow:var(--shadow);
    margin:30px auto;
    max-width:1080px;
}
.schedule-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}
.schedule-slots{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}
.slot-option{
    border:1px solid #dbeadc;
    background:#f6fbf6;
    border-radius:16px;
    padding:18px;
    font-weight:900;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:10px;
    color:#12372a;
}
.slot-option input{
    width:auto;
}
.slot-option.unavailable{
    opacity:.45;
    background:#f3f3f3;
    cursor:not-allowed;
}
.consulta-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:24px;
    padding:24px;
    box-shadow:0 12px 32px rgba(6,77,50,.07);
    margin-bottom:18px;
}
.consulta-head{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
    flex-wrap:wrap;
}
.status-badge{
    display:inline-flex;
    border-radius:999px;
    padding:8px 12px;
    font-weight:900;
    font-size:13px;
    background:#eef8ef;
    color:var(--green);
    border:1px solid #dcebdd;
}
.status-confirmada{background:#e9f7ff;color:#075985;border-color:#bae6fd}
.status-realizada{background:#edfdf3;color:#15803d;border-color:#bbf7d0}
.status-cancelada{background:#fff1f2;color:#be123c;border-color:#fecdd3}
.status-nao_compareceu{background:#fff7ed;color:#c2410c;border-color:#fed7aa}
.agenda-day{
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    padding:22px;
    box-shadow:0 12px 32px rgba(6,77,50,.06);
    margin-bottom:20px;
}
.agenda-slot{
    display:grid;
    grid-template-columns:90px 1fr auto;
    gap:14px;
    align-items:center;
    padding:14px 0;
    border-top:1px solid #edf3ed;
}
.agenda-slot:first-of-type{border-top:0}
.time-pill{
    background:var(--green);
    color:#fff;
    border-radius:999px;
    padding:9px 12px;
    text-align:center;
    font-weight:900;
}
@media(max-width:800px){
    .schedule-grid{grid-template-columns:1fr}
    .schedule-slots{grid-template-columns:1fr}
    .agenda-slot{grid-template-columns:1fr}
}

.card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    color: var(--green);
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}

.card a:hover {
    color: var(--green2);
    text-decoration: none;
}