/* ── Fontes ─────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Lato:wght@400;700&display=swap');

/* ── Variáveis ──────────────────────────────────────────────────────────── */
:root {
    --bg:           #eef4fb;
    --bg2:          #ddeaf7;
    --surface:      #ffffff;
    --surface2:     #e4eef8;
    --line:         #b8d0ee;
    --primary:      #1a3a6b;
    --primary-dark: #0f2548;
    --accent:       #4a90d9;
    --accent-light: #a8c8f0;
    --text:         #0d1e35;
    --muted:        #4a6080;
    --green:        #1f7a53;
    --danger:       #8d2f2f;
    --shadow:       0 4px 24px rgba(26,58,107,.10);
    --radius:       6px;
}

/* ── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Lato', sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
main { min-height: calc(100vh - 180px); }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.15; margin-top: 0; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section    { padding: 56px 0; }
.mt-24      { margin-top: 24px; }

/* ── Header & Nav ───────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(26,58,107,.07);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0; position: relative; }

/* Logo */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-svg { width: 64px; height: 44px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.brand-logo {
    position: relative;
    width: 200px; height: 120px;
    flex-shrink: 0;
}
.brand-b, .brand-c {
    position: absolute;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 110px; font-weight: 700;
    color: var(--primary); line-height: 1;
}
.brand-b { left: 0;   top: 0; }
.brand-c { left: 98px; top: 14px; }
.brand-faixa {
    position: absolute;
    left: 0; right: 0; top: 55px;
    height: 26px;
    background: #fff;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 10px; letter-spacing: 3.5px;
    color: var(--primary); white-space: nowrap;
}
.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem; font-weight: 700;
    color: var(--primary); white-space: nowrap;
}

/* Nav links */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 8px 14px; font-weight: 700; font-size: .9rem; color: var(--muted); border-radius: var(--radius); border: 1px solid transparent; transition: .15s; }
.main-nav a:hover { background: var(--surface2); color: var(--primary); border-color: var(--line); }
.main-nav a.nav-admin { color: var(--primary); border-color: var(--line); background: var(--surface2); }

/* Hamburguer */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; height: 2px; background: var(--primary); border-radius: 2px; transition: .2s; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 72vh; display: flex; align-items: center; overflow: hidden; }
.hero-home .hero-media { position: absolute; inset: 0; background: url('../assets/img/hero-costura.png') center/cover no-repeat; opacity: .32; }
.hero-home .hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,37,72,.82) 0%, rgba(26,58,107,.55) 50%, rgba(26,58,107,.18) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 700px; padding: 72px 0; color: #fff; }
.hero h1, .page-banner h1 { margin: 14px 0; line-height: 1.05; font-size: clamp(2.2rem, 4.8vw, 4rem); }
.hero p { font-size: 1.05rem; max-width: 580px; color: rgba(255,255,255,.88); }

/* Page banner */
.page-banner { padding: 44px 0 20px; background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%); border-bottom: 1px solid var(--line); }
.page-banner h1 { color: var(--primary); }
.page-banner p  { color: var(--muted); max-width: 620px; }
.small-banner h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.eyebrow { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.85); font-weight: 700; font-size: .82rem; color: var(--primary); letter-spacing: .04em; border-radius: 99px; }
.eyebrow.dark { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.35); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ── Botões ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer; padding: 12px 20px; font-weight: 700; font-size: .95rem; border-radius: var(--radius); transition: .17s ease; font-family: 'Lato', sans-serif; }
.btn:hover { transform: translateY(-1px); }
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface2); }
.btn-outline   { background: transparent; border-color: var(--line); }
.btn-outline:hover { background: var(--surface2); }
.btn-danger    { background: #fff0f0; color: var(--danger); border-color: #e6bcbc; }
.btn-block     { width: 100%; }
.small         { padding: 8px 12px; font-size: .88rem; }
.text-link     { color: var(--accent); font-weight: 700; }

/* ── Cards & Panels ─────────────────────────────────────────────────────── */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--primary); }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--primary); margin-bottom: 24px; }
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.panel { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 24px; }
.accent-panel { background: linear-gradient(180deg, var(--surface2) 0%, #d4e7f7 100%); }
.product-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.product-image-wrap { aspect-ratio: 4/3; background: var(--surface2); }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); }
.product-info { padding: 18px; display: grid; gap: 10px; }
.product-info h3 { margin: 0; color: var(--primary); }
.product-info p  { margin: 0; color: var(--muted); }
.product-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.products-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.empty-card { text-align: center; }
.price-tag { color: var(--primary); font-weight: 700; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-bottom: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 18px; }
.card-body h3 { margin: 0 0 8px; color: var(--primary); }

/* ── Dois colunas ───────────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.service-layout { align-items: start; }
.side-info p   { color: var(--muted); }
.list-clean    { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-clean li { display: grid; gap: 4px; background: var(--surface2); border: 1px solid var(--line); padding: 12px; border-radius: var(--radius); }
.list-clean span { color: var(--muted); font-size: .9rem; }

/* ── Formulários ────────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid label { display: grid; gap: 6px; font-weight: 700; font-size: .93rem; color: var(--text); }
.form-grid small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.form-grid input[type="text"],
.form-grid input[type="number"],
.form-grid input[type="password"],
.form-grid input[type="file"],
.form-grid textarea,
.form-grid select { width: 100%; border: 1px solid var(--line); background: var(--bg); padding: 10px 13px; font: inherit; color: var(--text); border-radius: var(--radius); transition: border-color .15s; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { outline: none; border-color: var(--accent); }
.form-grid textarea { resize: vertical; }
.form-grid .full { grid-column: 1 / -1; }
.measure-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.service-form h2 { color: var(--primary); margin-bottom: 20px; }
.service-single { max-width: 860px; }
.measures-box { border-top: 1px solid var(--line); padding-top: 10px; }
.subheading { margin: 6px 0 12px; font-size: 1rem; color: var(--primary); }
.hint { margin: 0; color: var(--muted); font-size: .9rem; }
.measure-field { display: grid; gap: 6px; border: 1px solid var(--line); background: var(--surface2); padding: 12px; border-radius: var(--radius); }
.measure-field span { font-weight: 700; font-size: .9rem; }
.measure-field input { border: 1px solid var(--line); background: var(--surface); padding: 8px 10px; font: inherit; color: var(--text); border-radius: var(--radius); width: 100%; }
.full-width { grid-column: 1 / -1; }
.alert { padding: 13px 16px; margin-bottom: 16px; font-weight: 700; border: 1px solid; border-radius: var(--radius); }
.alert.success { background: #ecf7f1; color: #1d5f42; border-color: #bdddcf; }
.alert.error   { background: #fff1f1; color: #8b2d2d; border-color: #e0bbbb; }

/* ── Resumo do pedido ───────────────────────────────────────────────────── */
.quote-layout { display: grid; grid-template-columns: 1fr; }
.quote-card   { max-width: 900px; }
.quote-grid   { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.quote-grid div { border: 1px solid var(--line); background: var(--surface2); padding: 14px; display: grid; gap: 4px; border-radius: var(--radius); }
.quote-grid strong { color: var(--primary); font-size: .85rem; }
.measure-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.quote-notes  { margin: 0; color: var(--muted); }
.summary-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.summary-item { border: 1px solid var(--line); padding: 18px; background: var(--surface); margin-bottom: 16px; border-radius: var(--radius); }
.summary-item.current-item { border-color: var(--accent); background: var(--surface2); }
.summary-item-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.summary-badge, .summary-tag { display: inline-flex; align-items: center; padding: 5px 12px; background: var(--surface2); color: var(--primary); font-weight: 700; border: 1px solid var(--line); border-radius: 99px; font-size: .85rem; }
.stacked-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 20px; }
.stacked-actions form { width: 100%; margin: 0; }
.stacked-actions .btn { width: 100%; }
.confirm-actions form { margin: 0; }
.quote-card .hero-actions { align-items: center; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--primary-dark); border-top: 1px solid rgba(255,255,255,.08); padding: 40px 0 90px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.site-footer h3, .site-footer h4 { margin-top: 0; color: var(--accent-light); font-family: 'Playfair Display', serif; }
.site-footer p, .site-footer a { color: rgba(168,200,240,.75); display: block; margin: 8px 0; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom small { color: rgba(168,200,240,.5); }
.footer-note { display: inline-block; color: var(--muted); }

/* ── WhatsApp flutuante ─────────────────────────────────────────────────── */
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 60px; height: 60px; display: grid; place-items: center; background: #25d366; color: #fff; border-radius: 50%; box-shadow: 0 8px 24px rgba(37,211,102,.35); border: 3px solid rgba(255,255,255,.9); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ── Admin ──────────────────────────────────────────────────────────────── */
.admin-body { background: var(--bg); }
.admin-login-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, var(--surface2), var(--bg2)); }
.admin-login-card { width: min(460px, 100%); background: var(--surface); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--primary-dark); padding: 24px 16px; display: flex; flex-direction: column; gap: 6px; }
.admin-sidebar h2 { color: var(--accent-light); font-family: 'Playfair Display', serif; margin: 0 0 20px; font-size: 1.1rem; }
.admin-sidebar a { padding: 11px 14px; color: rgba(168,200,240,.75); font-weight: 700; border-radius: var(--radius); border: 1px solid transparent; font-size: .9rem; transition: .15s; }
.admin-sidebar a:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.12); }
.admin-main   { padding: 28px; }
.admin-topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 24px; }
.admin-topbar h1 { margin: 0; color: var(--primary); font-size: 1.6rem; }
.big-number   { font-size: 2.4rem; color: var(--primary); font-family: 'Playfair Display', serif; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .93rem; }
th { color: var(--primary); font-weight: 700; background: var(--surface2); }
.thumb { width: 60px; height: 60px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.preview-large { max-width: 260px; border: 1px solid var(--line); border-radius: var(--radius); }

/* ── Responsividade ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cards.three, .products-grid, .cards-grid, .two-col, .footer-grid, .measure-grid, .quote-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: 1; }
    .section-head { flex-direction: column; align-items: flex-start; }

    .nav-toggle { display: flex; }
    .main-nav { display: none; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 16px; gap: 4px; box-shadow: 0 8px 24px rgba(26,58,107,.1); z-index: 99; }
    .main-nav.open { display: flex; }
    .main-nav a { text-align: left; }

    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { flex-direction: row; flex-wrap: wrap; padding: 10px 16px; gap: 6px; position: sticky; top: 0; z-index: 50; }
    .admin-sidebar h2 { display: none; }
    .admin-sidebar a  { padding: 7px 11px; font-size: .82rem; }
    .admin-main { padding: 16px; }
    .admin-topbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .hero { min-height: 60vh; }
    .hero-content { padding: 48px 0; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .summary-head, .summary-item-head { flex-direction: column; align-items: flex-start; }
    .whatsapp-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
    .whatsapp-float svg { width: 26px; height: 26px; }
    .stacked-actions .btn { font-size: .9rem; padding: 11px 16px; }
}

/* ── Página inicial: vitrine de serviços ────────────────────────────────── */
.home-services { background: var(--surface); }
.home-services-head { text-align: center; margin-bottom: 48px; }
.home-services-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--primary); margin: 10px 0 12px; }
.home-services-head p  { color: var(--muted); max-width: 520px; margin: 0 auto; font-size: 1.05rem; }

.service-showcase { display: flex; flex-direction: column; gap: 64px; max-width: 640px; margin: 0 auto; }

.service-showcase-item { text-align: center; }

.service-showcase-img {
    width: 100%; border-radius: 18px; overflow: hidden;
    margin-bottom: 24px; aspect-ratio: 16/9;
    background: var(--surface2);
    box-shadow: 0 8px 32px rgba(26,58,107,.12);
}
.service-showcase-img svg,
.service-showcase-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.service-showcase-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary); margin: 0 0 12px;
}
.service-showcase-item p {
    color: var(--muted); font-size: 1rem;
    max-width: 480px; margin: 0 auto 20px; line-height: 1.7;
}

/* ── Como funciona ──────────────────────────────────────────────────────── */
.home-how { background: var(--bg2); }
.how-steps {
    display: flex; align-items: flex-start;
    gap: 0; max-width: 800px; margin: 0 auto;
}
.how-step { flex: 1; text-align: center; padding: 0 16px; }
.how-step-num {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--primary); color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.how-step h3 { font-size: 1.1rem; color: var(--primary); margin: 0 0 8px; }
.how-step p  { color: var(--muted); font-size: .92rem; margin: 0; }
.how-step-divider {
    flex-shrink: 0; width: 40px; height: 2px;
    background: var(--line); margin-top: 26px; align-self: flex-start;
}

@media (max-width: 700px) {
    .how-steps { flex-direction: column; align-items: center; gap: 32px; }
    .how-step-divider { width: 2px; height: 32px; margin: 0; }
    .service-showcase { gap: 48px; }
    .service-showcase-img { border-radius: 12px; }
}
/* ── LOGO ───────────────────────────────────────── */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo span {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* ── CARDS (VERSÃO AJUSTADA) ───────────────── */

.card {
    background: var(--surface2); /* antes era branco */
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    
    padding: 12px;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(26,58,107,.15);
}

/* Conteúdo interno */
.card-body {
    background: transparent; /* remove branco */
    border-radius: 10px;
    padding: 22px;
}

/* Título */
.card-body h3 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 20px;
}

/* Texto */
.card-body p {
    margin-bottom: 15px;
}

/* Botões dentro do card */
.card-body .btn {
    margin-top: 10px;
}

/* Mapa */
.card-body iframe {
    margin-top: 12px;
    border-radius: 10px;
    width: 100%;
    height: 250px;
    border: none;
}

/* ── BOTÃO MAPS ───────────────────────────────── */
.btn-maps {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: 0.2s;
}

.btn-maps:hover {
    background-color: var(--primary-dark);
}

/* ── MAPA ─────────────────────────────────────── */
.card-body iframe {
    margin-top: 12px;
    border-radius: 10px;
}

/* ── WHATSAPP BOTÃO ───── */
.card-body .btn {
    margin-top: 10px;
}
body {
    background: var(--bg);
}

.home-services {
    background: var(--bg2);
}

.site-header {
    background: rgba(238,244,251,.95);
}