/* ============================================
   Aloe First — aloefirst.ro — styles.css (v3)
   ============================================ */

:root {
  --brand-blue-dark: #12274A;      /* dark navy — backgrounds only (header bar, CTA fill) */
  --brand-blue: #2F6FE0;           /* lighter, readable blue — text accents + buttons */
  --brand-blue-hover: #4C86EE;
  --accent-green: #3E9A5C;
  --accent-green-dark: #2F7A47;
  --bg-cream: #FBFAF7;
  --bg-white: #FFFFFF;
  --text-dark: #1A1D1F;
  --text-muted: #5B6570;
  --border-soft: #E6E4DD;
  --whatsapp-green: #25D366;
  --whatsapp-green-dark: #1DA851;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --shadow-soft: 0 10px 30px -15px rgba(47, 111, 224, 0.45);
  --shadow-card: 0 16px 40px -20px rgba(0, 0, 0, 0.18);
  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif; font-weight: 800; letter-spacing: -0.01em; color: var(--text-dark); }
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.brand-name { color: var(--brand-blue); white-space: nowrap; }
/* On the dark hero video, add a touch of glow so the lighter blue never gets lost */
.hero h1 .brand-name { text-shadow: 0 0 20px rgba(47,111,224,0.65), 0 2px 8px rgba(0,0,0,0.4); }

.section-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(62, 154, 92, 0.12); color: var(--accent-green-dark); font-weight: 700; font-size: 0.85rem; padding: 6px 14px; border-radius: var(--radius-full); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.98rem; cursor: pointer; border: 2px solid transparent; transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, background 0.25s ease; white-space: nowrap; overflow: hidden; isolation: isolate; }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary { background: var(--brand-blue); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--brand-blue-hover); }

.btn-whatsapp { background: var(--whatsapp-green); color: #fff; box-shadow: 0 10px 26px -14px rgba(37,211,102,0.6); }
.btn-whatsapp:hover { background: var(--whatsapp-green-dark); }

.btn-primary::after, .btn-whatsapp::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg); animation: btn-shine 3.2s ease-in-out infinite; animation-delay: 1s;
}
@keyframes btn-shine { 0% { left: -60%; } 35% { left: 130%; } 100% { left: 130%; } }
.btn-pulse { animation: btn-pulse-glow 2.6s ease-in-out infinite; }
@keyframes btn-pulse-glow { 0%, 100% { box-shadow: 0 10px 30px -15px rgba(47,111,224,0.55); } 50% { box-shadow: 0 10px 36px -8px rgba(47,111,224,0.85); } }

/* ---------- Scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(.2,.7,.3,1), transform 0.8s cubic-bezier(.2,.7,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.3,1); }
.reveal-scale.in-view { opacity: 1; transform: scale(1); }
.reveal-delay-1.in-view { transition-delay: 0.1s; } .reveal-delay-2.in-view { transition-delay: 0.2s; }
.reveal-delay-3.in-view { transition-delay: 0.3s; } .reveal-delay-4.in-view { transition-delay: 0.4s; }

/* ---------- Compliance header — trimmed to name+ID only, centered, ≤2 lines ---------- */
.compliance-bar { background: var(--brand-blue-dark); color: rgba(255,255,255,0.94); font-size: 0.76rem; padding: 8px 16px; text-align: center; line-height: 1.5; }
.compliance-bar strong { color: #fff; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; background: var(--brand-blue-dark); }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Stronger, reliable darkening so text is readable regardless of the video's own brightness */
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(8,14,28,0.86) 0%, rgba(8,14,28,0.64) 48%, rgba(8,14,28,0.30) 100%); }

.hero-cutout { position: absolute; right: 0; bottom: 4%; width: min(72vw, 780px); max-width: 92%; z-index: 2; filter: drop-shadow(0 25px 35px rgba(0,0,0,0.4)); will-change: transform; pointer-events: none; }
@media (max-width: 780px) { .hero-cutout { width: 88vw; bottom: 2%; } }

.hero-content { position: relative; z-index: 3; color: #fff; max-width: 640px; padding: 90px 20px 70px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.16); backdrop-filter: blur(6px); padding: 7px 16px; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.35; text-shadow: 1px 0 0 rgba(47,111,224,0.85), -1px 0 0 rgba(47,111,224,0.85), 0 1px 0 rgba(47,111,224,0.85), 0 -1px 0 rgba(47,111,224,0.85), 1px 1px 0 rgba(47,111,224,0.85), -1px -1px 0 rgba(47,111,224,0.85), 1px -1px 0 rgba(47,111,224,0.85), -1px 1px 0 rgba(47,111,224,0.85), 0 4px 22px rgba(0,0,0,0.6); }
.hero p { margin-top: 18px; font-size: clamp(1rem, 2.2vw, 1.15rem); color: rgba(255,255,255,0.95); max-width: 480px; text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

section { padding: 72px 0; }
.section-header { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-header h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-top: 14px; }
.section-header p { color: var(--text-muted); margin-top: 12px; font-size: 1.05rem; }
.bg-cream { background: var(--bg-cream); }

/* ---------- Product section ---------- */
.product-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 60px; } }
.product-image-wrap { position: relative; max-width: 420px; margin: 0 auto; }
.product-image-wrap img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); aspect-ratio: 1/1; object-fit: contain; background: #fff; width: 100%; transition: transform 0.6s ease; }
.product-image-wrap:hover img { transform: scale(1.03); }
.product-badge-float { position: absolute; bottom: -18px; right: -10px; background: var(--brand-blue); color: #fff; padding: 12px 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-card); text-align: center; animation: float-badge 3.5s ease-in-out infinite; }
@keyframes float-badge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.product-badge-float strong { display: block; font-size: 1.5rem; line-height: 1; }
.product-badge-float span { font-size: 0.72rem; opacity: 0.9; }
.product-copy h2 { margin-top: 14px; }
.product-copy p { margin-top: 16px; color: var(--text-muted); font-size: 1.02rem; }
.product-copy .btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- Benefits ---------- */
.benefits-grid { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 700px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit-card { background: #fff; border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-card); transition: transform 0.35s ease, box-shadow 0.35s ease; }
.benefit-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -18px rgba(0,0,0,0.25); }
.benefit-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(62,154,92,0.12); color: var(--accent-green-dark); font-size: 1.4rem; margin-bottom: 16px; }
.benefit-card h3 { font-size: 1.1rem; }
.benefit-card p { margin-top: 8px; color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Use cases ---------- */
.usecases-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
@media (min-width: 900px) { .usecases-grid { grid-template-columns: repeat(4, 1fr); } }
.usecase-card .usecase-img-wrap { aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.usecase-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.3,1); }
.usecase-card:hover img { transform: scale(1.08); }
.usecase-card { text-align: center; }
.usecase-card h3 { font-size: 1rem; margin-top: 14px; }
.usecase-card p { font-size: 0.86rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Emotional / family ---------- */
.emotional-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .emotional-grid { grid-template-columns: 1fr 1fr; } }
.emotional-grid .img-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4/3; order: -1; }
.emotional-grid .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .emotional-grid .img-wrap { order: 2; } }
.emotional-copy h2 { margin-top: 14px; }
.emotional-copy p { margin-top: 14px; color: var(--text-muted); }

/* ---------- Description video section ---------- */
.video-section-inner { max-width: 720px; margin: 40px auto 0; }
.video-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); background: #000; }
.video-frame video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: contain; background: #000; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 800px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 28px 24px; transition: transform 0.3s ease; }
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-green), var(--brand-blue)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; margin-bottom: 14px; }
.testimonial-stars { color: #F5A623; letter-spacing: 2px; margin-bottom: 10px; font-size: 0.95rem; }
.testimonial-card p.quote { font-size: 0.98rem; color: var(--text-dark); font-style: italic; }
.testimonials-note { text-align: center; color: var(--text-muted); font-size: 0.82rem; margin-top: 26px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 40px auto 0; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 20px 4px; font-family: inherit; font-weight: 700; font-size: 1rem; color: var(--text-dark); display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 16px; }
.faq-question .icon { transition: transform 0.25s ease; flex-shrink: 0; color: var(--accent-green-dark); font-size: 1.2rem; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-muted); font-size: 0.95rem; }
.faq-answer p { padding: 0 4px 20px; }
.faq-item.open .faq-answer { max-height: 240px; }

/* ---------- CTA ---------- */
.cta-section { background: var(--brand-blue-dark); color: #fff; text-align: center; }
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.88); max-width: 520px; margin: 14px auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.cta-section .btn-primary { background: var(--brand-blue); }
.cta-note { margin-top: 22px; font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ---------- Footer ---------- */
footer { background: var(--bg-cream); border-top: 1px solid var(--border-soft); padding: 56px 0 110px; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid h4 { font-size: 0.95rem; margin-bottom: 12px; }
.footer-grid p, .footer-grid li { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 6px; }
.footer-grid a:hover { color: var(--brand-blue); }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-soft); font-size: 0.78rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 8px; }
.footer-legal a { text-decoration: underline; }

/* ---------- Floating WhatsApp bubble — fixed bottom-right, always on top ---------- */
.whatsapp-float { position: fixed; right: 20px; bottom: 96px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp-green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px -8px rgba(37,211,102,0.6); font-size: 1.6rem; }
.whatsapp-float .wa-ping { position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp-green); opacity: 0.55; animation: wa-ping 2.2s cubic-bezier(0,0,.2,1) infinite; }
.whatsapp-float .wa-icon { position: relative; z-index: 1; }
@keyframes wa-ping { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.9); opacity: 0; } }
@media (min-width: 721px) { .whatsapp-float { bottom: 28px; } }

/* ---------- Sticky mobile CTA bar ---------- */
.sticky-mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 24px rgba(0,0,0,0.14); }
@media (max-width: 780px), (hover: none) and (pointer: coarse) {
  .sticky-mobile-bar { display: flex; }
  body { padding-bottom: 76px; }
  .whatsapp-float { bottom: 86px; }
}
.sticky-mobile-bar .btn { flex: 1; padding: 13px 10px; font-size: 0.9rem; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--brand-blue-dark); color: #fff; padding: 18px 20px; display: none; }
.cookie-banner.visible { display: block; }
.cookie-banner-inner { max-width: var(--max-width); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.cookie-banner p { font-size: 0.85rem; max-width: 640px; color: rgba(255,255,255,0.9); }
.cookie-banner a { text-decoration: underline; color: #fff; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 10px 18px; font-size: 0.85rem; }
.cookie-banner .btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.5); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; }
}
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-green); outline-offset: 2px; }
