/* ==========================================================================
   Vértice Consultoria Contábil — demo site (ShopFront Kit base, re-themed)
   Boutique, traditional accounting/tax consultancy — plum + gold, serif.
   ========================================================================== */
:root {
    --primary: #6B2D5C;
    --primary-dark: #3D1934;
    --accent: #C9973E;
    --accent-light: #F0DFC4;
    --bg: #FBF6F3;
    --bg-alt: #FFFFFF;
    --ink: #2B1F27;
    --ink-dim: #6E5C68;
    --radius: 4px;
    --display: 'Fraunces', serif;
    --body: 'Mulish', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
    .reveal.revealed { opacity: 1; transform: none; }
}

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(251,246,243,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(107,45,92,0.14); }
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-badge { width: 40px; height: 40px; border: 1.5px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.logo-badge .icon { width: 19px; height: 19px; }
.logo-text { font-family: var(--display); font-weight: 600; font-size: 1.24rem; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 0.86rem; color: var(--ink); }
.nav-links a:hover { color: var(--primary); }
.nav-cta { background: var(--primary); color: #fff !important; padding: 10px 24px; border-radius: var(--radius); font-size: 0.8rem !important; }
.lang-toggle { font-family: var(--body); font-size: 0.76rem; font-weight: 600; color: var(--primary); background: transparent; border: 1px solid rgba(107,45,92,0.3); border-radius: var(--radius); padding: 6px 14px; cursor: pointer; }
.lang-toggle:hover { border-color: var(--accent); background: var(--accent-light); }
.nav-mobile-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--primary); cursor: pointer; }
.nav-mobile-menu { display: none; flex-direction: column; padding: 0 28px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.nav-mobile-menu.open { max-height: 240px; padding: 8px 28px 20px; }
.nav-mobile-menu a { padding: 10px 0; font-weight: 600; color: var(--primary); border-bottom: 1px solid rgba(107,45,92,0.1); }
.nav-mobile-menu .lang-toggle { align-self: flex-start; margin: 10px 0; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 108px 28px 88px; text-align: center; }
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-glow { position: absolute; inset: 0; background:
    linear-gradient(180deg, rgba(15,26,48,0.68), rgba(15,26,48,0.85)),
    radial-gradient(circle at 12% 15%, rgba(201,151,62,0.18), transparent 45%);
    pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 20px; border-radius: var(--radius); margin-bottom: 28px; }
.hero-title { font-family: var(--display); font-weight: 600; font-size: clamp(2.3rem, 6.4vw, 3.9rem); color: #fff; line-height: 1.14; margin-bottom: 20px; text-wrap: balance; }
.hero-sub { font-size: 1.08rem; color: rgba(255,255,255,0.85); margin-bottom: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-location { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.7); margin-bottom: 36px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-ghost { font-weight: 600; font-size: 0.9rem; padding: 15px 32px; border-radius: var(--radius); transition: transform 0.2s ease, box-shadow 0.2s ease; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--accent); color: var(--primary-dark); box-shadow: 0 8px 22px -10px rgba(0,0,0,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(0,0,0,0.5); }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #fff; }

.section { padding: 82px 0; }

/* ===== Buzz ===== */
.section-buzz { background: var(--primary); color: #fff; text-align: center; }
.buzz-inner { max-width: 640px; margin: 0 auto; }
.buzz-stats { display: flex; justify-content: center; gap: 46px; flex-wrap: wrap; margin-bottom: 32px; }
.buzz-stat { display: flex; flex-direction: column; }
.buzz-n { font-family: var(--display); font-weight: 600; font-size: 2.2rem; color: var(--accent-light); }
.buzz-l { font-size: 0.72rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-top: 6px; }
.buzz-quote { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.22rem; }
.buzz-quote cite { display: block; font-family: var(--body); font-style: normal; font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 12px; }

/* ===== Story ===== */
.section-story { background: var(--bg-alt); }
.story-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.story-text { font-size: 1.14rem; color: var(--ink-dim); font-family: var(--display); font-style: italic; font-weight: 500; }

/* ===== Section header ===== */
.section-header { text-align: center; max-width: 580px; margin: 0 auto 44px; }
.section-tag { display: inline-block; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-header h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.85rem, 3.5vw, 2.5rem); color: var(--primary); }
.section-header p { color: var(--ink-dim); margin-top: 10px; }

/* ===== Highlights ===== */
.section-highlights { background: var(--bg); }
.highlights-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.highlight-chip { background: #fff; border: 1px solid rgba(107,45,92,0.1); border-radius: var(--radius); padding: 24px 28px; text-align: center; min-width: 160px; box-shadow: 0 4px 16px -14px rgba(61,25,52,0.2); }
.highlight-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 50%; background: var(--accent-light); color: var(--primary); }
.highlight-icon .icon { width: 20px; height: 20px; }
.highlight-name { display: block; font-family: var(--display); font-weight: 600; color: var(--primary); font-size: 0.96rem; }
.highlight-chip-featured { background: var(--primary); border-color: var(--primary); }
.highlight-chip-featured .highlight-icon { background: rgba(255,255,255,0.16); color: var(--accent-light); }
.highlight-chip-featured .highlight-name { color: #fff; }

/* ===== Services / pricing ===== */
.service-group-title { font-family: var(--display); font-weight: 600; font-style: italic; color: var(--primary); font-size: 1.28rem; margin: 40px 0 18px; }
.service-group-title:first-of-type { margin-top: 0; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.service-item { background: var(--bg-alt); border: 1px solid rgba(107,45,92,0.1); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 4px 16px -14px rgba(61,25,52,0.18); }
.service-item-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--primary); margin-bottom: 8px; }
.service-price { color: var(--accent); font-weight: 700; font-size: 0.85rem; }
.service-item p { font-size: 0.88rem; color: var(--ink-dim); }
.addons-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; }
.addons-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed rgba(107,45,92,0.18); font-weight: 500; color: var(--ink); }
.addons-list li span:last-child { color: var(--accent); font-weight: 700; font-size: 0.88rem; }
.service-note { margin-top: 28px; font-size: 0.84rem; color: var(--ink-dim); font-style: italic; text-align: center; }

/* ===== FAQ accordion ===== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid rgba(107,45,92,0.1); border-radius: var(--radius); overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; background: none; border: none; text-align: left; font-family: var(--display); font-weight: 600; font-size: 0.98rem; color: var(--primary); cursor: pointer; }
.faq-question .faq-plus { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: transform 0.25s ease; }
.faq-item.open .faq-question .faq-plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 240px; }
.faq-answer p { padding: 0 22px 18px; font-size: 0.9rem; color: var(--ink-dim); }

/* ===== Gallery ===== */
.section-gallery { background: var(--bg-alt); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.gallery-card { aspect-ratio: 1; border-radius: var(--radius); position: relative; overflow: hidden; border: 1px solid rgba(107,45,92,0.12); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px 12px; background: linear-gradient(to top, rgba(43,35,32,0.78), transparent); font-family: var(--display); font-weight: 600; color: #fff; font-size: 0.88rem; }

/* ===== Contact ===== */
.section-contact { background: var(--primary-dark); color: #fff; text-align: center; position: relative; overflow: hidden; }
.section-contact::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(201,151,62,0.16), transparent 50%); pointer-events: none; }
.contact-highlight { max-width: 520px; margin: 0 auto; position: relative; }
.contact-highlight-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.contact-highlight-icon .icon { width: 25px; height: 25px; }
.section-contact h2 { font-family: var(--display); font-weight: 600; font-size: 2.1rem; margin-bottom: 14px; }
.section-contact p { color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.section-contact .btn-primary { background: var(--accent); color: var(--primary-dark); }
.inquiry-form { text-align: left; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 26px; }
.form-row { display: flex; gap: 12px; margin-bottom: 12px; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { flex: 1; min-width: 0; background: #fff; border: none; border-radius: var(--radius); padding: 12px 14px; font-family: var(--body); font-size: 0.92rem; color: var(--ink); }
.inquiry-form textarea { width: 100%; margin-bottom: 14px; resize: vertical; }
.inquiry-form button { width: 100%; border: none; cursor: pointer; }
.form-note { text-align: center; margin-top: 10px; font-weight: 600; font-size: 0.88rem; color: var(--accent-light); min-height: 1.2em; }
.form-note.error { color: #e8a190; }
.form-consent { text-align: center; margin-top: 10px; font-size: 0.76rem; color: rgba(255,255,255,0.5); }
.form-consent a { color: rgba(255,255,255,0.75); text-decoration: underline; }
.contact-alt { margin-top: 20px; font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.contact-alt a { color: var(--accent-light); font-weight: 600; }

/* ===== Visit ===== */
.section-dark { background: var(--primary); color: #fff; }
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.visit-card h3 { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--accent-light); margin-bottom: 12px; }
.visit-card p { color: rgba(255,255,255,0.72); margin-bottom: 10px; }
.visit-card a { color: var(--accent-light); font-weight: 600; }
.visit-card a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.5); padding: 28px 0; text-align: center; font-size: 0.85rem; }
.footer-credit { margin-top: 4px; font-size: 0.78rem; }
.footer-credit a { color: var(--accent-light); font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }
    .nav-mobile-menu { display: flex; }
    .hero { padding: 80px 22px 60px; }
    .section { padding: 56px 0; }
    .form-row { flex-direction: column; }
}

.hp-wrap { position: absolute; left: -9999px; top: -9999px; }

/* ===== Demo disclosure banner + MuShu CTA widget (added by FromKitchenToCode) ===== */
.demo-banner {
    background: var(--primary-dark);
    color: var(--accent);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 16px;
    position: relative;
    z-index: 300;
}
@keyframes mushuEnter {
    from { opacity: 0; transform: translateY(46px) scale(0.8) rotate(6deg); }
    to { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}
@keyframes mushuFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes signSway {
    0%, 100% { transform: rotate(4deg); }
    50% { transform: rotate(-2deg); }
}
.mushu-promo {
    position: fixed; right: 20px; bottom: 20px; z-index: 400;
    display: flex; align-items: flex-end; gap: 0;
    animation: mushuEnter 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 0.4s;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mushu-promo.dismissed { opacity: 0; transform: translateY(20px) scale(0.9) !important; pointer-events: none; }
.mushu-promo-img {
    width: 96px; height: auto; flex-shrink: 0;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.35));
    animation: mushuFloat 4.5s ease-in-out infinite;
    animation-delay: 1.1s;
    transform-origin: bottom center;
}
.mushu-promo:hover .mushu-promo-img { animation-play-state: paused; transform: translateY(-6px) rotate(-4deg) scale(1.04); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.mushu-promo-sign {
    position: relative; text-decoration: none; color: var(--ink);
    background: linear-gradient(160deg, var(--bg-alt), var(--accent-light) 140%);
    border: 2.5px solid var(--accent); border-radius: 14px;
    padding: 14px 18px 14px 16px; max-width: 175px; margin: 0 -8px 44px 0;
    box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.6);
    animation: signSway 4.5s ease-in-out infinite;
    animation-delay: 1.1s;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: var(--body);
}
.mushu-promo:hover .mushu-promo-sign { animation-play-state: paused; transform: rotate(-2deg) translateY(-4px) scale(1.03); }
.mushu-promo-sign::before {
    content: ""; position: absolute; top: -9px; left: 14px; width: 30px; height: 16px;
    background: color-mix(in srgb, var(--accent) 55%, transparent);
    border-radius: 2px; transform: rotate(-8deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.mushu-promo-sign strong { display: block; font-size: 0.84rem; line-height: 1.32; color: var(--ink); margin-bottom: 5px; font-family: var(--display); font-weight: 600; }
.mushu-promo-sign span { display: block; font-size: 0.72rem; font-weight: 700; color: var(--accent); }
.mushu-promo-close {
    position: absolute; top: -8px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--bg-alt); border: 1.5px solid var(--accent-light); color: var(--ink-dim);
    font-size: 0.75rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
    z-index: 1; transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.mushu-promo-close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
    .mushu-promo, .mushu-promo-img, .mushu-promo-sign { animation: none !important; }
}
@media (max-width: 640px) {
    .mushu-promo { right: 10px; bottom: 10px; }
    .mushu-promo-img { width: 82px; }
    .mushu-promo-sign { max-width: 138px; padding: 11px 14px; margin-bottom: 32px; }
    .mushu-promo-sign strong { font-size: 0.74rem; }
    .mushu-promo-sign span { font-size: 0.66rem; }
}
