/* ===========================================================================
   VedaClarity — public site styles.
   Lightweight hand-written CSS (no build step). Colours come from the two
   custom properties injected by the layout from admin settings.
   =========================================================================== */

:root {
    --primary: #8c4a27;
    --accent: #c98a2c;
    --primary-dark: #703b1f;
    --ink: #1c1917;
    --ink-soft: #57534e;
    --page: #faf7f2;
    --card: #ffffff;
    --line: #ebe5df;
    --warm: #f7efe3;
    --wa: #1f7a4d;
    --danger: #b91c1c;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(28, 25, 23, .06);
    --shadow-md: 0 14px 32px -20px rgba(140, 74, 39, .45);
    --shadow-lg: 0 24px 60px -30px rgba(140, 74, 39, .5);
    --font-head: 'Lora', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--page);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.22;
    margin: 0;
}

h1 { font-size: clamp(30px, 6vw, 42px); }
h2 { font-size: clamp(25px, 4.4vw, 32px); }
h3 { font-size: 19px; }
p  { margin: 0; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
.container--narrow { max-width: 760px; }
.center { text-align: center; }

.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

/* -------------------------------------------------------------------- buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .12s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline { background: #fff; color: var(--primary); border-color: #d9cfc4; }
.btn-outline:hover { border-color: var(--primary); background: #fdf9f4; }

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #196340; }

.btn-lg { min-height: 54px; padding: 15px 28px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 999px; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn[disabled] { opacity: .65; cursor: not-allowed; }

/* --------------------------------------------------------------------- header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(250, 247, 242, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(140, 74, 39, .1);
    color: var(--primary);
    flex: 0 0 36px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.brand-text small { font-size: 11px; color: var(--ink-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    display: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--primary);
    background: #fff;
    transition: background-color .2s ease, border-color .2s ease;
}
.icon-btn:hover { background: #fdf6ef; border-color: var(--primary); }
.icon-btn--wa { color: var(--wa); }

/* ----------------------------------------------------------------------- hero */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #fdfbf7 0%, #f7efe3 58%, #f3e7d6 100%);
    padding: 40px 0 56px;
}
.hero-glow {
    position: absolute;
    inset: -30% 40% 40% -10%;
    background: radial-gradient(circle at 30% 30%, rgba(201, 138, 44, .22), transparent 62%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    gap: 32px;
    align-items: start;
}
.hero-copy { max-width: 560px; }
.hero-sub {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.62;
    color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--ink-soft);
}
.hero-trust li { position: relative; padding-left: 16px; }
.hero-trust li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.crumbs { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.crumbs span { margin: 0 6px; }

/* ------------------------------------------------------------------ lead form */
.form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow-lg);
    scroll-margin-top: 80px;
}
.form-head h2 { font-size: 25px; }
.form-sub { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.progress {
    height: 6px;
    margin-top: 16px;
    background: #f1ebe3;
    border-radius: 999px;
    overflow: hidden;
}
.progress span {
    display: block;
    height: 100%;
    background: var(--primary);
    transition: width .3s ease;
}

.field { margin-top: 16px; border: 0; padding: 0; }
.field > label,
.field > legend {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}
.req { color: var(--danger); }
.optional { color: var(--ink-soft); font-weight: 400; }

.field input[type=text],
.field input[type=tel],
.field input[type=email],
.field input[type=date],
.field input[type=time],
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    font: inherit;
    font-size: 16px; /* 16px prevents iOS zoom-on-focus */
    color: var(--ink);
    background: #fff;
    border: 1px solid #d9d0c6;
    border-radius: 10px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 74, 39, .14);
    outline: none;
}
.field-row { display: grid; gap: 14px; }
.field-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 5px;
}
.counter { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hint { margin-top: 5px; font-size: 12px; color: var(--ink-soft); }
.field-error { margin-top: 5px; font-size: 13px; color: var(--danger); }

.choice-row { display: grid; gap: 8px; }
.choice {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #d9d0c6;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}
.choice:hover { border-color: var(--primary); }
.choice input { accent-color: var(--primary); width: 18px; height: 18px; }
.choice:has(input:checked) {
    border-color: var(--primary);
    background: rgba(140, 74, 39, .07);
    color: var(--primary);
    font-weight: 500;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.privacy-note,
.trust-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-soft);
}
.privacy-note {
    margin-top: 16px;
    padding: 12px;
    background: #f7f2ea;
    border-radius: 10px;
}
.privacy-note svg, .trust-line svg { color: var(--primary); flex: 0 0 16px; margin-top: 2px; }
.trust-line { margin-top: 14px; font-size: 12px; }

.form-actions { display: flex; gap: 10px; margin-top: 18px; }

/* The sticky mobile CTA bar overlays the bottom of the viewport — reserve space
   so no form control can ever sit permanently underneath it. */
@media (max-width: 899px) {
    body { padding-bottom: 68px; }
    .form-card { scroll-margin-bottom: 80px; }
}

.alert {
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
}
.alert-error { background: #fdeaea; color: #8f1a1a; border: 1px solid #f4cfcf; }
.alert-success { background: #e8f6ee; color: #16603c; border: 1px solid #c6e6d5; }

/* ------------------------------------------------------------------- sections */
.section { padding: 56px 0; }
.section--warm { background: linear-gradient(180deg, #fdfbf7, #f7efe3); }
.section-head { max-width: 640px; margin-bottom: 30px; }
.section-sub { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

.problem-grid { display: grid; gap: 14px; }
.problem-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.problem-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.problem-card.is-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 74, 39, .16);
}
.problem-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    color: inherit;
    cursor: pointer;
}
.problem-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(140, 74, 39, .1);
    color: var(--primary);
}
.problem-card.is-selected .problem-icon { background: var(--primary); color: #fff; }
.problem-name { font-family: var(--font-head); font-size: 17px; font-weight: 600; }
.problem-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.problem-link { margin-top: 12px; font-size: 13px; font-weight: 600; }

.steps-grid, .trust-grid, .testimonial-grid {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.step-card, .trust-card, .testimonial {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin: 0;
}
.step-num {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    margin-bottom: 14px;
}
.step-card h3, .trust-card h3 { margin-bottom: 6px; }
.step-card p, .trust-card p { color: var(--ink-soft); font-size: 15px; }

.testimonial blockquote { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink); }
.testimonial figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--ink-soft);
}
.stars { color: var(--accent); letter-spacing: 1px; }
.demo-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1ebe3;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------------------ faq */
.faq-list {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
    padding: 16px 18px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    color: var(--primary);
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 18px 18px; color: var(--ink-soft); font-size: 15px; }
.faq-note { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }

/* ------------------------------------------------------------------ final cta */
.final-cta {
    position: relative;
    padding: 56px 0;
    background: #f4ece1;
    background-image: radial-gradient(rgba(201, 138, 44, .35) 1px, transparent 1px);
    background-size: 26px 26px;
}
.final-cta > .container { position: relative; }
.final-cta p { margin: 12px auto 0; max-width: 480px; color: var(--ink-soft); }
.final-cta .btn { margin-top: 24px; }

/* --------------------------------------------------------------- thank you --- */
.thanks { padding: 48px 0 64px; }
.thanks-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.thanks-check {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(31, 122, 77, .12);
    color: var(--wa);
}
.thanks-card h1 { font-size: clamp(24px, 4.6vw, 32px); }
.thanks-sub { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }
.thanks-meta { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.thanks-actions {
    display: grid;
    gap: 10px;
    margin: 26px auto 0;
    max-width: 420px;
}
.thanks-note { margin-top: 22px; font-size: 13px; color: var(--ink-soft); }
.back-link { display: inline-block; margin-top: 20px; font-size: 14px; }

/* ------------------------------------------------------------- static pages -- */
.prose-page { padding: 40px 0 60px; }
.prose-page h1 { margin-bottom: 12px; }
.prose-page .lede { font-size: 17px; color: var(--ink-soft); }
.prose-page h2 { font-size: 21px; margin-top: 30px; }
.prose-page p { margin-top: 10px; color: var(--ink-soft); }
.prose-cta {
    margin-top: 36px;
    padding: 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
}
.prose-cta p { margin-bottom: 14px; color: var(--ink); }

.error-page { padding: 72px 0 96px; }
.error-code {
    font-family: var(--font-head);
    font-size: 52px;
    color: var(--accent);
    line-height: 1;
}
.error-page h1 { margin: 8px 0 10px; }
.error-page p { color: var(--ink-soft); }
.error-page .btn { margin-top: 22px; }

/* --------------------------------------------------------------------- footer */
.site-footer {
    border-top: 1px solid var(--line);
    background: #f4ede4;
    padding: 44px 0 96px;
    font-size: 15px;
}
.footer-grid { display: grid; gap: 30px; }
.footer-copy { margin-top: 14px; color: var(--ink-soft); max-width: 460px; }
.footer-contact, .footer-nav ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.footer-contact a, .footer-nav a { color: var(--ink); }
.footer-contact a:hover, .footer-nav a:hover { color: var(--primary); }
.footer-nav h2 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.muted-link { color: var(--ink-soft) !important; font-size: 14px; }
.footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e2d9cd;
    font-size: 12.5px;
    color: var(--ink-soft);
}
.footer-bottom p + p { margin-top: 6px; }

/* ------------------------------------------------------ sticky cta + whatsapp */
.wa-float {
    position: fixed;
    right: 16px;
    bottom: 84px;
    z-index: 50;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4);
    transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }

.sticky-cta {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(250, 247, 242, .97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
}
.sticky-call {
    display: grid;
    place-items: center;
    gap: 1px;
    width: 56px;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
}
.sticky-main { flex: 1; border-radius: 10px; }

/* ------------------------------------------------------------------ responsive */
@media (min-width: 640px) {
    .choice-row { grid-template-columns: repeat(3, 1fr); }
    .field-row { grid-template-columns: 1fr 1fr; }
    .problem-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .form-card { padding: 28px; }
    .thanks-actions { grid-template-columns: 1fr 1fr; max-width: none; }
    .icon-btn { display: grid; }
}

@media (min-width: 900px) {
    .hero { padding: 56px 0 72px; }
    .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: center; }
    .problem-grid { grid-template-columns: repeat(3, 1fr); }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .trust-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .site-footer { padding-bottom: 44px; }
    .wa-float { bottom: 24px; }
    .sticky-cta { display: none; }
    .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
