/* Vital Intestino — editorial light theme (digestive wellness) */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
    --ink: #1a2421;
    --ink-muted: #4a5c56;
    --paper: #f6f3ed;
    --paper-2: #ebe6dc;
    --coral: #d4654a;
    --coral-dark: #b84a32;
    --teal: #1f6f64;
    --teal-soft: #c5e4de;
    --sage: #8faa9e;
    --line: #d4cec3;
    --shadow: 0 18px 50px rgba(26, 36, 33, 0.08);
    --shadow-sm: 0 6px 20px rgba(26, 36, 33, 0.06);
    --radius: 14px;
    --radius-lg: 22px;
    --font-body: "Source Sans 3", system-ui, sans-serif;
    --font-display: "Fraunces", Georgia, serif;
    --max: 1120px;
    --narrow: 720px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    background-image:
        linear-gradient(165deg, rgba(197, 228, 222, 0.35) 0%, transparent 42%),
        linear-gradient(300deg, rgba(212, 101, 74, 0.06) 0%, transparent 38%);
    background-attachment: fixed;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--teal);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--coral-dark);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
}

/* ——— Site chrome ——— */
.site-top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 243, 237, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-top__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.site-logo span {
    color: var(--coral);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    align-items: center;
}

.site-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--ink-muted);
}

.site-nav a:hover {
    color: var(--teal);
}

.sponsored-ribbon {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--teal-soft);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--line);
}

/* ——— Layout ——— */
.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.wrap--narrow {
    max-width: var(--narrow);
}

/* ——— Hero (home) ——— */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3.5rem 0 4rem;
}

@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        padding-top: 2rem;
    }
}

.hero-kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral-dark);
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    background: #fff;
    border-radius: 999px;
    border: 1px solid var(--line);
}

.hero-title {
    font-size: clamp(2rem, 4.2vw, 3.15rem);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--ink-muted);
    margin: 0 0 1.5rem;
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.95rem 1.75rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
    background: var(--coral);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background: var(--coral-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn--ghost {
    background: #fff;
    color: var(--teal);
    border: 2px solid var(--teal);
}

.btn--ghost:hover {
    background: var(--teal-soft);
    color: var(--ink);
}

.hero-note {
    font-size: 0.88rem;
    color: var(--ink-muted);
    margin: 0.75rem 0 0;
}

.book-stage {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.book-stage::before {
    content: "";
    position: absolute;
    inset: 10% 5%;
    background: linear-gradient(135deg, var(--teal-soft), #fff);
    border-radius: var(--radius-lg);
    z-index: 0;
    border: 1px solid var(--line);
}

.book-cover {
    position: relative;
    z-index: 1;
    max-width: 280px;
    border-radius: 4px 12px 12px 4px;
    box-shadow:
        0 25px 60px rgba(26, 36, 33, 0.18),
        0 0 0 1px rgba(0, 0, 0, 0.04);
}

.author-card {
    margin-top: 2rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.author-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--teal-soft);
    flex-shrink: 0;
}

.author-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
}

.author-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink-muted);
}

.badge-soft {
    display: inline-block;
    margin-top: 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal);
    background: var(--teal-soft);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

/* ——— Sections ——— */
.section {
    padding: 4rem 0;
}

.section--band {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section--dark {
    background: var(--ink);
    color: #e8ebe9;
}

.section--dark h2,
.section--dark h3 {
    color: #fff;
}

.section--dark p {
    color: #b8c4bf;
}

.section-head {
    max-width: 38rem;
    margin-bottom: 2.5rem;
}

.section-head h2 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    margin: 0 0 0.75rem;
}

.section-head p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 1.05rem;
}

/* ——— Grids ——— */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 700px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.35rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.tile:hover {
    border-color: var(--sage);
    transform: translateY(-3px);
}

.tile__icon {
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.tile h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.tile p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--ink-muted);
}

/* ——— Spec table ——— */
.spec-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.spec-cell {
    background: var(--paper-2);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
}

.spec-cell dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0 0 0.35rem;
}

.spec-cell dd {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

/* ——— Topics list ——— */
.topic-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.topic-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    font-size: 0.98rem;
}

.topic-list li::before {
    content: "✓";
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-soft);
    color: var(--teal);
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 6px;
}

/* ——— Quote / pull ——— */
.pull-quote {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--teal);
    border-left: 4px solid var(--coral);
    padding: 0.5rem 0 0.5rem 1.25rem;
    margin: 2rem 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
}

/* ——— FAQ ——— */
.faq {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
}

.faq-item h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.faq-item p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.98rem;
}

/* ——— CTA band ——— */
.cta-band {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: linear-gradient(120deg, var(--teal) 0%, #2a8a7c 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.cta-band h2 {
    color: #fff;
    margin: 0 0 0.75rem;
}

.cta-band p {
    margin: 0 auto 1.5rem;
    max-width: 32rem;
    opacity: 0.95;
}

.cta-band .btn--primary {
    background: #fff;
    color: var(--teal);
}

.cta-band .btn--primary:hover {
    background: var(--paper);
    color: var(--ink);
}

/* ——— Disclaimer callout ——— */
.callout-warn {
    background: #fff8f5;
    border: 1px solid #f0d4c8;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    font-size: 0.95rem;
    color: var(--ink-muted);
}

.callout-warn strong {
    color: var(--coral-dark);
}

.age-gate {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px dashed var(--coral);
    margin-bottom: 1.5rem;
}

.age-gate strong {
    display: block;
    color: var(--coral-dark);
    margin-bottom: 0.35rem;
}

/* ——— Footer ——— */
.site-footer {
    background: var(--ink);
    color: #aeb8b4;
    padding: 3rem 0 2rem;
    margin-top: 2rem;
}

.site-footer a {
    color: #c5e4de;
}

.site-footer h3 {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 1rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.legal-block {
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.6;
}

.legal-block h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.legal-block p {
    margin: 0.4rem 0;
}

.vat-tag {
    display: inline-block;
    background: rgba(197, 228, 222, 0.2);
    color: #e8ebe9;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.footer-grid {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    text-decoration: none;
}

.research-box {
    font-size: 0.9rem;
    line-height: 1.55;
}

.research-box ul {
    margin: 0.75rem 0 0;
    padding-left: 1.1rem;
}

.research-box li {
    margin-bottom: 0.45rem;
}

.ad-disclosure {
    max-width: var(--max);
    margin: 2rem auto 0;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    line-height: 1.55;
    color: #8a9691;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* ——— Legal inner pages ——— */
.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-main {
    flex: 1;
    padding: 2.5rem 1.5rem 4rem;
}

.legal-card {
    max-width: 46rem;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
}

.legal-card .badge-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--teal-soft);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.legal-card h1 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 0.75rem;
}

.legal-card .muted {
    color: var(--ink-muted);
    margin: 0 0 2rem;
    font-size: 1rem;
}

.legal-card .content h2 {
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
    color: var(--teal);
}

.legal-card .content p,
.legal-card .content li {
    color: var(--ink-muted);
    font-size: 0.98rem;
}

.legal-card .content ul {
    margin: 0.5rem 0 1rem 1.2rem;
}

.btn-back {
    display: inline-block;
    margin-top: 2.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--coral-dark);
}

.btn-back:hover {
    color: var(--teal);
}

.footnote {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--sage);
}

.page-footer-min {
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--paper-2);
    border-top: 1px solid var(--line);
}

.page-footer-min .footer-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ——— Contact page ——— */
.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
    padding: 2rem 0 4rem;
}

@media (max-width: 850px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.form-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.form-panel > p {
    margin: 0 0 1.5rem;
    color: var(--ink-muted);
    font-size: 0.98rem;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--teal-soft);
    border-color: var(--teal);
}

.btn-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.95rem;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 999px;
    background: var(--teal);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-submit:hover {
    background: #164a42;
}

.success-message {
    display: none;
    padding: 1rem;
    background: var(--teal-soft);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--teal);
}

.success-message.show {
    display: block;
}

.info-stack {
    display: grid;
    gap: 1rem;
}

.info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
}

.info-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.info-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink-muted);
}

.info-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-hero-simple {
    padding: 2.5rem 0 1rem;
    text-align: center;
}

.page-hero-simple h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin: 0 0 0.75rem;
}

.page-hero-simple p {
    margin: 0 auto;
    max-width: 36rem;
    color: var(--ink-muted);
}

/* ——— Disclaimer dedicated ——— */
.disclaimer-page {
    padding: 2rem 0 4rem;
}

.disclaimer-page .page-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin: 0 0 0.5rem;
}

.disclaimer-page .page-subtitle {
    color: var(--ink-muted);
    margin: 0 0 2rem;
}

.disclaimer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.disclaimer-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem;
}

.disclaimer-card .disclaimer-icon {
    font-size: 1.35rem;
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.disclaimer-card strong {
    display: block;
    color: var(--coral-dark);
    margin-bottom: 0.65rem;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.disclaimer-card p,
.disclaimer-card ul {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink-muted);
}

.disclaimer-card ul {
    margin-top: 0.5rem;
    padding-left: 1.1rem;
}

.panel-muted {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--paper-2);
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.panel-muted ul {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
    color: var(--ink-muted);
}

.emergency-box {
    margin-top: 2rem;
    padding: 1.35rem 1.5rem;
    background: #fff5f3;
    border-left: 4px solid var(--coral);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.emergency-box strong {
    color: var(--coral-dark);
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

.back-link {
    display: inline-block;
    margin-top: 2.5rem;
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
}

.back-link:hover {
    color: var(--coral-dark);
}

/* Definition list (legal page) */
.definition-list {
    margin: 0 0 1.5rem;
}
.definition-list dt {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 1rem;
}
.definition-list dt:first-child {
    margin-top: 0;
}
.definition-list dd {
    margin: 0.35rem 0 0;
    font-size: 1rem;
}

/* Legacy class hooks used in JS / old markup */
.fade-in-up {
    animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
