/* ============================================
   TerapiasRio - Tema Wellness
   Cores: sage green + terracota + creme
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --sage: #2d4a3e;
    --sage-dark: #1f382e;
    --sage-light: #5c8571;
    --sage-softer: #e8efe9;
    --cream: #faf7f2;
    --cream-dark: #f1ebdf;
    --terracotta: #c97b5a;
    --terracotta-dark: #b5694a;
    --terracotta-soft: #f5d9c9;
    --gold: #c9a961;
    --text: #2d3e35;
    --text-muted: #6b7c70;
    --border: #f1ebdf;
    --shadow-sm: 0 1px 3px rgba(45, 62, 53, 0.08);
    --shadow: 0 4px 12px rgba(45, 62, 53, 0.10);
    --shadow-lg: 0 20px 40px -20px rgba(45, 62, 53, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 999px;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cream);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    letter-spacing: -0.02em;
    color: var(--sage);
    margin: 0 0 .5em;
    font-weight: 500;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p  { margin: 0 0 1em; }
a  { color: var(--sage); text-decoration: none; transition: color 200ms ease; }
a:hover { color: var(--terracotta); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 1.25rem; }

/* Helpers */
.bg-sage { background-color: var(--sage); }
.bg-cream { background-color: var(--cream); }
.bg-cream-dark { background-color: var(--cream-dark); }
.bg-terracotta { background-color: var(--terracotta); }
.bg-sage-softer { background-color: var(--sage-softer); }
.text-white { color: #fff; }
.text-sage { color: var(--sage); }
.text-terracotta { color: var(--terracotta); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem } .mt-2 { margin-top: 1rem } .mt-3 { margin-top: 1.5rem } .mt-4 { margin-top: 2rem }
.mb-1 { margin-bottom: .5rem } .mb-2 { margin-bottom: 1rem } .mb-3 { margin-bottom: 1.5rem } .mb-4 { margin-bottom: 2rem }
.font-serif { font-family: 'Fraunces', Georgia, serif; }
.italic { font-style: italic; }

/* Eyebrow label */
.eyebrow {
    display: inline-block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--terracotta);
    font-weight: 600;
    margin-bottom: .85rem;
}

/* ============= HEADER ============= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: transparent;
    transition: background 300ms ease, box-shadow 300ms ease;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

/* === AJUSTE PARA A HOME (MENU BRANCO SOBRE A FOTO) === */
body.home .site-header:not(.scrolled) .logo-text strong,
body.home .site-header:not(.scrolled) .main-nav a,
body.home .site-header:not(.scrolled) .btn-link,
body.home .site-header:not(.scrolled) .menu-toggle {
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
body.home .site-header:not(.scrolled) .logo-text small {
    color: rgba(255,255,255,0.85) !important;
}
body.home .site-header:not(.scrolled) .logo-mark {
    background: #ffffff !important;
    color: var(--sage) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
body.home .site-header:not(.scrolled) .main-nav a:hover,
body.home .site-header:not(.scrolled) .btn-link:hover {
    color: var(--terracotta-soft) !important;
}
/* ===================================================== */

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 1rem;
}

.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--sage); }
.logo:hover { color: var(--sage); }
.logo-mark {
    width: 40px; height: 40px;
    background: var(--sage); color: var(--cream);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    transition: transform 200ms ease;
}
.logo-mark.light { background: var(--cream); color: var(--sage); }
.logo:hover .logo-mark { transform: scale(1.06); }
.logo-text strong { display: block; font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 600; line-height: 1; }
.logo-text strong em { color: var(--terracotta); font-style: normal; }
.logo-text small { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--sage-light); margin-top: 2px; }
.logo-light .logo-text strong { color: #fff; }

.main-nav { display: flex; gap: .25rem; }
.main-nav a {
    padding: .55rem .9rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--sage);
    border-radius: var(--radius-full);
    transition: background 200ms ease, color 200ms ease;
}
.main-nav a:hover { color: var(--terracotta); }
.main-nav a.active { background: var(--terracotta-soft); color: var(--terracotta); }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.btn-link {
    color: var(--sage);
    font-size: .9rem;
    font-weight: 500;
    padding: .5rem .8rem;
    border-radius: var(--radius-full);
}
.btn-link:hover { color: var(--terracotta); }

.menu-toggle {
    display: none;
    background: transparent; border: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    color: var(--sage); font-size: 1.4rem;
    cursor: pointer;
}
.menu-toggle:hover { background: var(--sage-softer); }

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.mobile-menu a { padding: .85rem 1rem; border-radius: var(--radius); color: var(--sage); font-weight: 500; }
.mobile-menu a:hover { background: var(--sage-softer); }
.mobile-menu hr { border: 0; border-top: 1px solid var(--border); margin: .5rem 0; }
.mobile-menu.open { display: flex; }

@media (max-width: 960px) {
    .main-nav { display: none; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .header-actions .btn-link { display: none; }
}

/* ============= BUTTONS ============= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.4rem;
    font-family: inherit; font-size: .95rem; font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
    text-align: center;
    line-height: 1;
}
.btn-pill { border-radius: var(--radius-full); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: var(--sage-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-terracotta { background: var(--terracotta); color: #fff; }
.btn-terracotta:hover { background: var(--terracotta-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--sage); border-color: var(--sage); }
.btn-outline:hover { background: var(--sage); color: #fff; }

.btn-ghost { background: transparent; color: var(--sage); }
.btn-ghost:hover { background: var(--sage-softer); color: var(--sage); }

.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1fb756; color: #fff; }

/* ============= FORMS ============= */
.form-group { margin-bottom: 1rem; }
.form-label {
    display: block; font-size: .82rem; font-weight: 500;
    color: var(--sage); margin-bottom: .35rem;
}
.form-control, select, textarea, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="search"], input[type="number"], input[type="file"] {
    width: 100%;
    padding: .7rem .9rem;
    font-family: inherit; font-size: .95rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.form-control:focus, select:focus, textarea:focus, input:focus {
    outline: none;
    border-color: var(--sage-light);
    box-shadow: 0 0 0 3px rgba(92, 133, 113, 0.15);
}
textarea { min-height: 120px; resize: vertical; }
.form-help { font-size: .78rem; color: var(--text-muted); margin-top: .35rem; }

.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--sage-light); }
.input-with-icon input, .input-with-icon select { padding-left: 2.4rem; }

/* ============= FLASH ============= */
.flash {
    max-width: 1200px; margin: 1rem auto;
    padding: .85rem 1.2rem;
    border-radius: var(--radius);
    font-size: .92rem;
    display: flex; align-items: center; gap: .5rem;
}
.flash-success { background: #dcefe1; color: #1f5132; }
.flash-error { background: #fbe1d8; color: #8b3a1f; }

/* ============= FOOTER ============= */
.site-footer {
    background: var(--sage); color: #b7c7ba;
    margin-top: 5rem;
    padding-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .5rem; font-size: .9rem; }
.site-footer ul li a { color: #b7c7ba; }
.site-footer ul li a:hover { color: var(--terracotta); }
.site-footer p { color: #b7c7ba; font-size: .9rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .55rem; }
.contact-list i { color: var(--terracotta); margin-top: 3px; }

.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a {
    width: 36px; height: 36px;
    border: 1px solid var(--sage-light); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    transition: background 200ms ease, border-color 200ms ease;
}
.socials a:hover { background: var(--terracotta); border-color: var(--terracotta); }

.footer-bottom {
    border-top: 1px solid #3f5c4f;
    padding: 1.25rem 0;
}
.footer-bottom .container {
    display: flex; justify-content: space-between; align-items: center;
    color: #b7c7ba; font-size: .85rem;
    flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a { color: #b7c7ba; margin-left: 1rem; }
.footer-bottom a:hover { color: var(--terracotta); }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============= HERO ============= */
.hero {
    position: relative;
    min-height: 720px;
    margin-top: -80px;
    padding: 8rem 0 4rem;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(26,46,35,0.7) 0%, rgba(26,46,35,0.4) 50%, var(--cream) 100%);
    z-index: 1;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-tag {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    padding: .4rem 1rem; border-radius: var(--radius-full);
    font-size: .88rem; margin-bottom: 1.5rem;
}
.hero-tag i { color: var(--terracotta-soft); }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em { color: var(--terracotta-soft); font-style: italic; }
.hero p.lead { color: rgba(255,255,255,.92); font-size: 1.1rem; max-width: 540px; }

.search-bar {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: .65rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: .4rem;
    margin-top: 2rem;
}
.search-field {
    padding: .65rem .9rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 200ms ease;
    display: flex; align-items: center; gap: .65rem;
}
.search-field:hover { background: var(--cream); }
.search-field i { color: var(--terracotta); font-size: 1.1rem; }
.search-field-content { flex: 1; }
.search-field label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sage-light); font-weight: 500; margin-bottom: 2px; }
.search-field select, .search-field input {
    border: 0; padding: 0; font-size: .92rem; font-weight: 500; color: var(--sage); background: transparent; width: 100%;
}
.search-field select:focus, .search-field input:focus { box-shadow: none; }
.search-bar button[type=submit] {
    background: var(--sage); color: #fff;
    border: 0; border-radius: var(--radius);
    padding: 0 1.6rem;
    font-weight: 500; cursor: pointer;
    display: inline-flex; align-items: center; gap: .5rem;
    transition: background 200ms ease;
}
.search-bar button[type=submit]:hover { background: var(--sage-dark); }

@media (max-width: 768px) {
    .search-bar { grid-template-columns: 1fr; }
    .search-bar button[type=submit] { padding: .9rem; justify-content: center; }
    .hero { min-height: 620px; padding-top: 7rem; }
}

.hero-suggestions { margin-top: 1rem; font-size: .88rem; color: rgba(255,255,255,.85); }
.hero-suggestions a { color: #fff; text-decoration: underline; text-decoration-color: rgba(245,217,201,.4); text-underline-offset: 4px; margin-left: .5rem; }
.hero-suggestions a:hover { color: var(--terracotta-soft); }

/* ============= STATS STRIP ============= */
.stats-strip {
    position: relative; z-index: 5;
    margin-top: -3rem;
}
.stats-strip-inner {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 1.75rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.stat-item { text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: 0; }
.stat-item .num { font-family: 'Fraunces', serif; font-size: 1.8rem; color: var(--sage); font-weight: 600; }
.stat-item .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sage-light); }
@media (max-width: 600px) {
    .stats-strip-inner { grid-template-columns: 1fr 1fr; }
    .stat-item:nth-child(2n) { border-right: 0; }
    .stat-item:nth-child(-n+2) { padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
}

/* ============= SECTIONS ============= */
section { padding: 4rem 0; }
section.section-soft { background: rgba(232, 239, 233, 0.5); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }
.section-head h2 { margin: 0; }
.section-head .link { color: var(--sage-light); font-weight: 500; }
.section-head .link:hover { color: var(--terracotta); }

/* ============= CARDS ============= */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .cards-grid-3 { grid-template-columns: 1fr; } }

/* Profile card */
.profile-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 300ms ease, box-shadow 300ms ease;
}
.profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.profile-card .pc-cover { position: relative; aspect-ratio: 4/3; background: var(--sage-softer); overflow: hidden; }
.profile-card .pc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.profile-card:hover .pc-cover img { transform: scale(1.05); }
.pc-badge { position: absolute; top: .75rem; left: .75rem; background: var(--terracotta); color: #fff; font-size: .7rem; font-weight: 600; padding: .35rem .7rem; border-radius: var(--radius-full); display: inline-flex; align-items: center; gap: .25rem; }
.pc-badge.premium { background: var(--gold); }
.pc-views { position: absolute; bottom: .75rem; right: .75rem; background: rgba(255,255,255,.95); color: var(--sage); font-size: .72rem; font-weight: 500; padding: .25rem .6rem; border-radius: var(--radius-full); }
.profile-card .pc-body { padding: 1.25rem; position: relative; }
.pc-avatar { position: absolute; top: -32px; left: 1.25rem; width: 56px; height: 56px; border-radius: 50%; border: 4px solid #fff; object-fit: cover; box-shadow: var(--shadow); background: #fff; }
.pc-bairro { font-size: .75rem; color: var(--sage-light); display: flex; align-items: center; gap: .25rem; margin-top: 1.5rem; }
.pc-name { font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--sage); margin: .25rem 0; font-weight: 600; }
.pc-bio { font-size: .85rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.tag { background: var(--sage-softer); color: var(--sage); font-size: .72rem; padding: .25rem .6rem; border-radius: var(--radius-full); }
.pc-foot { display: flex; justify-content: space-between; align-items: center; padding-top: .85rem; margin-top: .85rem; border-top: 1px solid var(--border); font-size: .85rem; }
.pc-rating { display: flex; align-items: center; gap: .25rem; color: var(--gold); }
.pc-rating strong { color: var(--sage); }
.pc-rating small { color: var(--text-muted); }
.pc-price { color: var(--terracotta); font-weight: 600; }

/* Category card */
.cat-card {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    display: block;
    transition: transform 300ms ease, box-shadow 300ms ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.cat-card:hover img { transform: scale(1.08); }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,46,35,.92), rgba(26,46,35,.3) 60%, transparent); }
.cat-card-content { position: absolute; inset: auto 0 0 0; padding: 1.5rem; z-index: 2; }
.cat-card-content small { color: var(--terracotta-soft); font-size: .75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.cat-card-content h3 { color: #fff; margin: .25rem 0 .25rem; font-size: 1.8rem; }
.cat-card-content p { color: rgba(255,255,255,.85); font-size: .9rem; margin-bottom: .85rem; }
.cat-card-content span.go { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 500; padding-bottom: 2px; border-bottom: 1px solid var(--terracotta); }

/* ============= LISTING PAGE ============= */
.listing-banner {
    position: relative;
    height: 280px;
    background: var(--sage); color: #fff;
    overflow: hidden;
    display: flex; align-items: flex-end; padding-bottom: 2.5rem;
}
.listing-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.listing-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(45,74,62,.5), var(--sage)); }
.listing-banner .container { position: relative; z-index: 1; }
.listing-banner h1 { color: #fff; }
.listing-banner small { color: rgba(255,255,255,.8); }

.listing-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}
.filters-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky; top: 100px;
}
.filters-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: .4rem; margin-bottom: 1rem; }
.filters-clear { color: var(--terracotta); font-size: .8rem; cursor: pointer; }
@media (max-width: 900px) { .listing-grid { grid-template-columns: 1fr; } .filters-card { position: static; } }

.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.results-head .count strong { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--sage); }
.results-head .count small { color: var(--text-muted); }

/* Pagination */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span {
    padding: .55rem .9rem; border-radius: var(--radius); border: 1px solid var(--border);
    color: var(--sage); font-size: .9rem;
}
.pagination a:hover { background: var(--sage-softer); }
.pagination .current { background: var(--sage); color: #fff; border-color: var(--sage); }

/* ============= PROFILE PAGE ============= */
.profile-gallery { display: grid; grid-template-columns: 1fr 220px; gap: .75rem; margin-top: 1rem; }
.profile-gallery .main-img { aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--sage-softer); }
.profile-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.profile-gallery .thumbs { display: grid; grid-template-rows: 1fr 1fr 1fr; gap: .75rem; }
.profile-gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 768px) { .profile-gallery { grid-template-columns: 1fr; } .profile-gallery .thumbs { grid-template-rows: none; grid-template-columns: 1fr 1fr 1fr; } }

.profile-content { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; margin-top: 2rem; }
@media (max-width: 900px) { .profile-content { grid-template-columns: 1fr; } }

.profile-header { display: flex; gap: 1.25rem; align-items: flex-start; }
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow); object-fit: cover; margin-top: -48px; flex-shrink: 0; background: #fff; }
.profile-meta { padding-top: .5rem; }
.profile-meta .bairro { color: var(--sage-light); font-size: .9rem; display: flex; align-items: center; gap: .35rem; }
.profile-meta h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: .25rem 0 .5rem; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .9rem; color: var(--text-muted); }
.profile-stats .star { color: var(--gold); }

.contact-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky; top: 100px;
}
.contact-card .price { font-family: 'Fraunces', serif; font-size: 1.8rem; color: var(--sage); }
.contact-card .price small { display: block; font-size: .85rem; color: var(--text-muted); font-family: 'Inter', sans-serif; }

.tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--border); margin: 2rem 0 0; }
.tabs button {
    background: transparent; border: 0; cursor: pointer;
    padding: .85rem 0; font-family: inherit; font-size: .95rem; font-weight: 500;
    color: var(--sage); border-bottom: 2px solid transparent;
    transition: color 200ms ease, border-color 200ms ease;
}
.tabs button.active { color: var(--terracotta); border-color: var(--terracotta); }
.tab-content { padding: 1.5rem 0; }
.tab-content[hidden] { display: none; }

/* ============= AUTH ============= */
.auth-grid { min-height: calc(100vh - 80px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 4rem 1.5rem; }
.auth-form { width: 100%; max-width: 420px; }
.auth-image { position: relative; overflow: hidden; }
.auth-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top right, rgba(45,74,62,.85), rgba(45,74,62,.3)); }
.auth-image .quote { position: absolute; inset: auto 0 0 0; padding: 4rem; color: #fff; max-width: 480px; z-index: 2; }
.auth-image .quote h2 { color: #fff; }
@media (max-width: 900px) { .auth-grid { grid-template-columns: 1fr; } .auth-image { display: none; } }

/* ============= APP SHELL (DASHBOARD/ADMIN) ============= */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--border); padding: 1.5rem; }
.sidebar .logo { margin-bottom: 1.5rem; }
.sidebar-user { background: var(--cream); padding: 1rem; border-radius: var(--radius); display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.avatar-circle { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1rem; flex-shrink: 0; }
.bg-sage { background: var(--sage); }
.sidebar-user strong { display: block; color: var(--sage); font-size: .92rem; }
.sidebar-user small { color: var(--text-muted); font-size: .76rem; display: block; }
.sidebar-nav { display: flex; flex-direction: column; gap: .15rem; }
.sidebar-nav a {
    padding: .75rem 1rem; border-radius: var(--radius);
    color: var(--sage); font-size: .92rem; font-weight: 500;
    display: flex; align-items: center; gap: .65rem;
    transition: background 200ms ease;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--sage-softer); }
.sidebar-nav a:last-child { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); border-radius: 0; }
.app-main { padding: 2.5rem; background: var(--cream); }
@media (max-width: 768px) { .app-shell { grid-template-columns: 1fr; } .sidebar { position: static; } .app-main { padding: 1.5rem; } }

/* Stat boxes */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.stat-box i { font-size: 1.2rem; color: var(--terracotta); margin-bottom: .5rem; display: block; }
.stat-box .num { font-family: 'Fraunces', serif; font-size: 1.8rem; color: var(--sage); font-weight: 500; }
.stat-box .lbl { font-size: .82rem; color: var(--text-muted); }

/* Plan cards */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; } }
.plan-card {
    background: #fff; border: 2px solid var(--border); border-radius: var(--radius-lg);
    padding: 2rem; position: relative; transition: border-color 300ms ease, transform 300ms ease;
}
.plan-card.popular { border-color: var(--terracotta); box-shadow: var(--shadow-lg); transform: translateY(-12px); }
.plan-card .badge-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--terracotta); color: #fff; padding: .25rem .9rem; border-radius: var(--radius-full); font-size: .75rem; font-weight: 600; }
.plan-card .plan-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--sage-light); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.plan-card.popular .plan-icon { background: var(--terracotta); }
.plan-card.gold .plan-icon { background: var(--gold); }
.plan-card .plan-price { font-family: 'Fraunces', serif; font-size: 2.5rem; color: var(--sage); font-weight: 500; }
.plan-card .plan-price small { font-size: .85rem; color: var(--text-muted); font-family: 'Inter', sans-serif; }
.plan-features { list-style: none; padding: 0; margin: 1.5rem 0; }
.plan-features li { display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; padding: .35rem 0; }
.plan-features li i { color: var(--sage-light); margin-top: 3px; }

/* CTA banner */
.cta-banner {
    background: var(--terracotta-soft);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 4rem);
    position: relative; overflow: hidden;
}
.cta-banner h2 { color: var(--sage); }
.cta-banner p { color: var(--text); max-width: 540px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.table th, .table td { padding: .85rem 1rem; text-align: left; font-size: .92rem; }
.table thead { background: var(--cream); color: var(--sage-light); font-size: .78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.table tbody tr { border-top: 1px solid var(--border); }
.table tbody tr:hover { background: var(--cream); }

.badge { display: inline-block; font-size: .72rem; padding: .25rem .65rem; border-radius: var(--radius-full); font-weight: 500; }
.badge-success { background: #dcefe1; color: #1f5132; }
.badge-warn { background: #fff4d6; color: #8a6d10; }
.badge-danger { background: #fbe1d8; color: #8b3a1f; }
.badge-muted { background: var(--cream-dark); color: var(--text-muted); }