/* ==========================================================================
   Dr. Mădălina — Design System
   Pediatric-friendly palette: warm cream background, brand red accent
   (from her own marketing materials) used everywhere, WhatsApp green
   reserved exclusively for WA CTAs.

   --color-teal* kept as the variable names for the secondary/accent role
   (buttons, borders, badges, etc.) but now hold the same red as
   --color-coral* — the two used to differ but the client wants a single
   red accent throughout.
   ========================================================================== */

:root {
    --color-bg: #FBF8F3;
    --color-bg-alt: #F3ECE1;
    --color-surface: #FFFFFF;
    --color-teal: #C91D1B;
    --color-teal-dark: #A11616;
    --color-teal-light: #FBE3E2;
    --color-coral: #C91D1B;
    --color-coral-dark: #A11616;
    --color-text: #2E3532;
    --color-text-muted: #6B756F;
    --color-border: #E7E0D3;
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #1DA851;
    --color-green-logo: #164649;
    --font-heading: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(46, 53, 50, 0.08);
    --shadow-lg: 0 20px 50px rgba(46, 53, 50, 0.14);
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-text);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { color: var(--color-text-muted); }

.highlight { color: var(--color-coral); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

header.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 200;
}

nav.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    line-height: 1.1;
}

.logo-img {
    height: 68px;
    width: auto;
    display: block;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

.logo .highlight { color: var(--color-coral); }

.logo-tagline {
    font-size: 0.72rem;
    color: var(--color-coral-dark);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: color 0.2s;
}

.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--color-teal);
}

.has-dropdown .dropdown-caret {
    font-size: 0.6rem;
    transition: transform 0.2s;
}

.has-dropdown:hover .dropdown-caret {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    list-style: none;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.dropdown li a:hover {
    background: var(--color-teal-light);
    color: var(--color-teal-dark);
}

.dropdown li .dropdown-item-sub {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-top: 0.1rem;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--color-text);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
    background: var(--color-coral);
    color: #fff;
    box-shadow: 0 4px 12px rgba(201, 29, 27, 0.16);
}

.btn-primary:hover { background: var(--color-coral-dark); }

.btn-teal {
    background: var(--color-teal);
    color: #fff;
    box-shadow: 0 4px 12px rgba(201, 29, 27, 0.16);
}

.btn-teal:hover { background: var(--color-teal-dark); }

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.18);
}

.btn-whatsapp:hover { background: var(--color-whatsapp-dark); }

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-teal);
    color: var(--color-teal-dark);
}

.btn-block { width: 100%; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ==========================================================================
   Sections / Cards
   ========================================================================== */

section { padding: 4rem 0; }
section.tight { padding: 2.5rem 0; }
section.alt { background: var(--color-bg-alt); }

.section-eyebrow {
    display: inline-block;
    color: var(--color-green-logo);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.section-heading { margin-bottom: 1rem; }
.section-subheading { max-width: 620px; margin-bottom: 2.5rem; font-size: 1.05rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.grid {
    display: grid;
    gap: 1.8rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--color-teal-light);
    color: var(--color-teal-dark);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-coral {
    background: #FBE3E2;
    color: var(--color-coral-dark);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    padding: 3.5rem 0 4rem;
    background: linear-gradient(160deg, var(--color-teal-light) 0%, var(--color-bg) 55%);
    position: relative;
    overflow: hidden;
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: -2%;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(5rem, 17vw, 13rem);
    letter-spacing: -2px;
    color: var(--color-green-logo);
    opacity: 0.06;
    white-space: nowrap;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 { margin-bottom: 1.1rem; }
.hero p.lead { font-size: 1.15rem; margin-bottom: 1.8rem; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image-wrap {
    position: relative;
}

.hero-image-wrap img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-top: 2.2rem;
}

.trust-strip .trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer.site-footer {
    background: #21322F;
    color: #DCE6E3;
    margin-top: auto;
    padding: 3.5rem 0 1.5rem;
}

footer.site-footer a { text-decoration: none; color: #DCE6E3; }
footer.site-footer a:hover { color: #fff; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 0.6rem;
}

.footer-logo .highlight { color: #FF7A76; }

.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; font-size: 0.9rem; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: #9FB0AB;
}

.footer-bottom a { color: #9FB0AB; }
.footer-legal-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ==========================================================================
   Sticky WhatsApp button
   ========================================================================== */

.wa-sticky {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--color-whatsapp);
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wa-sticky:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3);
}

.wa-sticky svg { width: 22px; height: 22px; flex-shrink: 0; }

@media (max-width: 640px) {
    .wa-sticky span { display: none; }
    .wa-sticky { padding: 0.9rem; border-radius: 50%; }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group { margin-bottom: 1.2rem; }

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-teal);
}

.form-note { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.5rem; }
.form-message { padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-weight: 600; }
.form-message.success { background: var(--color-teal-light); color: var(--color-teal-dark); }
.form-message.error { background: #FDE8E4; color: #C0392B; }

/* ==========================================================================
   Shop
   ========================================================================== */

.product-card { display: flex; flex-direction: column; }
.product-card img { border-radius: var(--radius-sm); margin-bottom: 1rem; aspect-ratio: 1/1; object-fit: cover; }
.product-card .brand-tag { font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; color: var(--color-coral-dark); margin-bottom: 0.3rem; }
.product-card h3 { margin-bottom: 0.4rem; }
.product-card .price-row { display: flex; align-items: baseline; gap: 0.6rem; margin: 0.8rem 0 1rem; }
.price-now { font-size: 1.4rem; font-weight: 900; color: var(--color-teal-dark); }
.price-compare { text-decoration: line-through; color: var(--color-text-muted); font-size: 0.95rem; }

.product-gallery img { width: 100%; border-radius: var(--radius); margin-bottom: 0.8rem; }
.product-thumbs { display: flex; gap: 0.6rem; }
.product-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.product-thumbs img.active { border-color: var(--color-teal); }

.testimonial-card { background: var(--color-teal-light); border-radius: var(--radius-sm); padding: 1.2rem; margin-top: 0.6rem; }
.testimonial-card p { color: var(--color-text); font-style: italic; }
.testimonial-card .author { display: block; margin-top: 0.6rem; font-weight: 700; font-style: normal; font-size: 0.85rem; color: var(--color-teal-dark); }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 0.8rem; text-transform: uppercase; color: var(--color-text-muted); padding-bottom: 0.8rem; border-bottom: 1px solid var(--color-border); }
.cart-table td { padding: 1rem 0; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.cart-item-info { display: flex; align-items: center; gap: 1rem; }
.cart-item-info img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-qty-controls { display: flex; align-items: center; border: 1.5px solid var(--color-border); border-radius: 999px; width: fit-content; }
.cart-qty-controls button { width: 32px; height: 32px; border: none; background: none; font-size: 1rem; cursor: pointer; }
.cart-qty-controls span { min-width: 28px; text-align: center; font-weight: 700; }
.cart-remove { background: none; border: none; color: var(--color-coral-dark); font-weight: 700; cursor: pointer; font-size: 0.85rem; }
.cart-summary { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.6rem; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 0.8rem; }
.cart-summary .row.total { font-size: 1.2rem; font-weight: 900; border-top: 1px solid var(--color-border); padding-top: 0.8rem; margin-top: 0.8rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; }

/* Pricing card (subscription) */
.pricing-card {
    background: var(--color-surface);
    border: 2px solid var(--color-teal);
    border-radius: var(--radius);
    padding: 2.2rem;
    box-shadow: var(--shadow-lg);
    max-width: 460px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-teal-dark);
    margin: 0.6rem 0 0.2rem;
}

.pricing-card .price span { font-size: 1.1rem; color: var(--color-text-muted); font-weight: 600; }

.feature-list { list-style: none; margin: 1.5rem 0; }
.feature-list li { display: flex; gap: 0.6rem; margin-bottom: 0.8rem; font-weight: 600; font-size: 0.95rem; }
.feature-list li::before { content: "✓"; color: var(--color-teal); font-weight: 900; }

.schedule-box {
    background: var(--color-teal-light);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    margin: 1.2rem 0;
    font-weight: 700;
    color: var(--color-teal-dark);
}

/* Embedded checkout */
#checkout-container { margin-top: 1.5rem; min-height: 400px; }

/* Blog */
.blog-card img { border-radius: var(--radius-sm); aspect-ratio: 16/10; object-fit: cover; margin-bottom: 1rem; }
.blog-meta { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
article.post-body { max-width: 760px; margin: 0 auto; }
article.post-body h2 { margin-top: 2rem; margin-bottom: 0.8rem; }
article.post-body p { margin-bottom: 1.2rem; font-size: 1.02rem; }
article.post-body ul, article.post-body ol { margin: 0 0 1.2rem 1.4rem; color: var(--color-text-muted); }

/* Legal pages */
.legal-body { max-width: 820px; margin: 0 auto; }
.legal-body h2 { margin-top: 2rem; margin-bottom: 0.8rem; }
.legal-body p, .legal-body li { margin-bottom: 0.9rem; color: var(--color-text-muted); }
.legal-body ul { margin-left: 1.4rem; }

/* Map / contact */
.map-embed { width: 100%; height: 340px; border-radius: var(--radius); border: 1px solid var(--color-border); overflow: hidden; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Utility */
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Service cards — unified icon treatment (no emoji) */
.svc-card { display: flex; flex-direction: column; }
.svc-card .svc-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--color-teal-light);
    color: var(--color-teal-dark);
    margin-bottom: 1rem;
}
.svc-card .svc-icon svg { width: 26px; height: 26px; }
.svc-card h3 { margin-bottom: 0.5rem; }
.svc-card p { flex: 1; }
.svc-card .svc-action { margin-top: 1.2rem; }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.2rem; }
.steps li { display: flex; gap: 1rem; }
.steps li .step-num {
    flex-shrink: 0;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--color-teal); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.95rem;
}
.steps li strong { display: block; margin-bottom: 0.2rem; color: var(--color-text); }
.steps li p { margin: 0; }

/* Pricing table (consultatii) */
.tarife-group { margin-bottom: 2rem; }
.tarife-group h3 { margin-bottom: 0.2rem; }
.tarife-group .tarife-note { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0.8rem; }
.tarife-table { width: 100%; border-collapse: collapse; max-width: 460px; }
.tarife-table td { padding: 0.7rem 0; border-bottom: 1px solid var(--color-border); }
.tarife-table td:last-child { text-align: right; font-weight: 800; color: var(--color-teal-dark); white-space: nowrap; }

/* Info note */
.info-note {
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 1.2rem 0;
}
.quote-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-teal);
    border-radius: var(--radius-sm);
    padding: 1.2rem 1.4rem;
    text-align: left;
    margin: 1.5rem auto 0;
    max-width: 520px;
}
.quote-box p { margin-bottom: 0.6rem; font-size: 0.92rem; }
.quote-box p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-image-wrap { order: -1; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-links {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1rem 5% 1.5rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-links.open { display: flex; }
    .nav-links > li { width: 100%; }
    .nav-links > li > a { padding: 0.9rem 0; width: 100%; justify-content: space-between; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; width: 100%; padding: 0 0 0 0.8rem; }
    .has-dropdown.open .dropdown { display: block; }
    .nav-toggle { display: block; }
    .nav-cta .btn span { display: none; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    section { padding: 2.6rem 0; }
}
