/* ============================================================
   AAYI.AI — Shared Brand CSS v1.0
   Import this on every page: <link rel="stylesheet" href="/css/aayi.css">
   ============================================================ */


/* Font metric overrides — makes fallback fonts match web font metrics to eliminate CLS */
@font-face {
  font-family: 'Inter Fallback';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: local('Arial');
  ascent-override: 90.20%;
  descent-override: 22.48%;
  line-gap-override: 0%;
  size-adjust: 107.40%;
}
@font-face {
  font-family: 'Playfair Fallback';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: local('Georgia');
  ascent-override: 128.00%;
  descent-override: 35.00%;
  line-gap-override: 0%;
  size-adjust: 92.00%;
}

:root {
  --coral:        #E86B52;
  --coral-dark:   #C94A35;
  --coral-light:  #F08070;
  --coral-pale:   #FFF0EE;
  --coral-muted:  #FDE8E4;
  --maroon:       #2A1008;
  --maroon-mid:   #3D1810;
  --maroon-light: #5A2820;
  --amber:        #F0A030;
  --amber-pale:   #FFF8E8;
  --ink:          #1A0E08;
  --ink-80:       #3D2820;
  --ink-60:       #6B5548;
  --ink-40:       #7A6458;
  --ink-10:       #EDE5E0;
  --bg-cream:     #FAF7F4;
  --bg-warm:      #F5EEE8;
  --bg-blush:     #FFF0EE;
  --success:      #2D9E5F;
  --success-pale: #E8F7EE;
  --grad-hero:    linear-gradient(135deg, #2A1008 0%, #4A1E14 60%, #3D1810 100%);
  --grad-coral:   linear-gradient(135deg, #E86B52 0%, #C94A35 100%);
  --grad-cta:     linear-gradient(135deg, #E86B52 0%, #F0A030 100%);
  --shadow-sm:    0 2px 8px rgba(42,16,8,0.08);
  --shadow-md:    0 4px 16px rgba(42,16,8,0.10), 0 2px 4px rgba(42,16,8,0.06);
  --shadow-lg:    0 8px 32px rgba(42,16,8,0.12), 0 4px 8px rgba(42,16,8,0.06);
  --shadow-coral: 0 8px 28px rgba(232,107,82,0.28);
  --radius-md:    0.75rem;
  --radius-lg:    1rem;
  --radius-xl:    1.5rem;
  --radius-2xl:   2rem;
  --radius-pill:  9999px;
  --font:         'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg-cream); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--coral); }

/* ── LAYOUT ── */
.container  { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.mx-auto    { margin-left: auto; margin-right: auto; }

/* ── TYPOGRAPHY ── */
.section-title       { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--maroon); margin-bottom: 10px; letter-spacing: -0.3px; line-height: 1.2; }
.section-title-white { color: #fff; }
.section-sub         { font-size: 16px; color: var(--ink-60); max-width: 580px; line-height: 1.7; margin-bottom: 48px; }
.section-sub-white   { color: rgba(255,255,255,0.6); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--coral-pale); color: #8A2A14;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; padding: 7px 16px;
  border-radius: var(--radius-pill); margin-bottom: 20px;
}
.eyebrow-dark { background: #8A2A14; border: 1px solid rgba(255,255,255,0.25); color: #fff; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; text-decoration: none;
  border-radius: var(--radius-pill); transition: all .22s ease; white-space: nowrap;
}
.btn-primary { background: var(--grad-coral); color: #fff; padding: 13px 28px; box-shadow: var(--shadow-coral); }
.btn-primary:hover { background: var(--grad-cta); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(232,107,82,0.35); color: #fff; }
.btn-outline { background: transparent; color: var(--coral); border: 2px solid var(--coral); padding: 11px 26px; }
.btn-outline:hover { background: var(--coral); color: #fff; transform: translateY(-2px); }
.btn-ghost-white { background: rgba(0,0,0,0.25); border: 1.5px solid rgba(255,255,255,0.5); color: #ffffff; padding: 13px 28px; }
.btn-ghost-white:hover { background: rgba(0,0,0,0.35); transform: translateY(-2px); }
.btn-dark { background: var(--maroon); color: #fff; padding: 13px 28px; }
.btn-dark:hover { background: var(--maroon-mid); transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.btn-sm { font-size: 13px; padding: 9px 20px; }
.btn-lg { font-size: 17px; padding: 16px 36px; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ink-10);
  box-shadow: 0 2px 12px rgba(42,16,8,0.07);
}
/* Single-row on desktop: logo left | links right */
.nav-inner { display: flex; flex-direction: row; align-items: center; padding: 10px 0; gap: 20px; }
.nav-top { display: flex; align-items: center; flex-shrink: 0; }
/* Logo */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-icon { display: block; width: 44px; height: 44px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-wordmark { font-size: 32px; font-weight: 900; line-height: 1; letter-spacing: -1.5px; }
.logo-sub { display: none; }
/* Pills + CTA row — takes remaining space, right-aligned */
.nav-bottom { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.nav-links { display: flex; gap: 6px; list-style: none; flex-wrap: nowrap; }
.nav-links a {
  display: inline-block; white-space: nowrap;
  font-size: 13px; font-weight: 700; text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
}
.nav-links a:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(42,16,8,0.18); }
.nav-links li:nth-child(1) a { background: #FFF0EE; color: #A33322; }
.nav-links li:nth-child(2) a { background: #FFF3DC; color: #7A4D00; }
.nav-links li:nth-child(3) a { background: #EEF2E3; color: #3D5010; }
.nav-links li:nth-child(4) a { background: #FBE9EF; color: #8A2844; }
.nav-links li:nth-child(5) a { background: #E4F2F0; color: #1A5C54; }
.nav-links li:nth-child(6) a { background: #EFEAF8; color: #4A3080; }
.nav-links li:nth-child(7) a { background: #FDEBDD; color: #8A3C10; }
.nav-links li:nth-child(8) a { background: #E3F0FF; color: #0E4E96; }
.nav-links li:nth-child(9) a { background: var(--grad-coral); color: #fff; box-shadow: 0 3px 10px rgba(232,107,82,0.35); }
.nav-links li:nth-child(1) a:hover { background: #E86B52; }
.nav-links li:nth-child(2) a:hover { background: #D98E1B; }
.nav-links li:nth-child(3) a:hover { background: #7C8C46; }
.nav-links li:nth-child(4) a:hover { background: #C9506F; }
.nav-links li:nth-child(5) a:hover { background: #35948A; }
.nav-links li:nth-child(6) a:hover { background: #7C5DB8; }
.nav-links li:nth-child(7) a:hover { background: #C77435; }
.nav-links li:nth-child(8) a:hover { background: #2B82D9; }
/* CTA */
.nav-cta { display: flex; flex-direction: row; gap: 8px; align-items: center; flex-shrink: 0; }
.nav-cta .btn { font-size: 13px; padding: 9px 18px; text-align: center; }
/* Hamburger kicks in at ≤1100px (tablets + phones) */
@media (max-width: 1100px) {
  .nav-inner { flex-direction: column; align-items: stretch; padding-top: 10px; padding-bottom: 10px; gap: 4px; }
  .nav-top { justify-content: space-between; }
  .logo-icon { width: 38px; height: 38px; }
  .logo-wordmark { font-size: 26px; letter-spacing: -1px; }
  .logo { gap: 8px; }
}

/* ── CARDS ── */
.card {
  background: #fff; border-radius: var(--radius-xl); padding: 32px 28px;
  border: 1px solid var(--ink-10); box-shadow: var(--shadow-md);
  transition: transform .22s, box-shadow .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-coral { position: relative; overflow: hidden; }
.card-coral::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-coral); }
.card:hover.card-coral { box-shadow: var(--shadow-coral); }

.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--coral-pale); color: var(--coral); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.card-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.card-body  { font-size: 14px; color: var(--ink-60); line-height: 1.7; }

.glass-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-xl); padding: 28px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ── GRID HELPERS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

/* ── DARK SECTION ── */
.dark-section { background: var(--grad-hero); color: #fff; position: relative; overflow: hidden; }
.dark-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(232,107,82,0.1) 0%, transparent 70%); }
.dark-inner { position: relative; z-index: 1; }

/* ── TAGS ── */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.tag-coral   { background: var(--coral-pale); color: var(--coral-dark); }
.tag-amber   { background: var(--amber-pale); color: #a06010; }
.tag-success { background: var(--success-pale); color: var(--success); }
.tag-dark    { background: var(--maroon); color: #fff; }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-80); margin-bottom: 6px; }
.form-input, .form-select {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--ink-10); border-radius: 10px;
  font-family: var(--font); font-size: 15px; color: var(--ink);
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; appearance: none;
}
.form-input:focus, .form-select:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(232,107,82,0.14); }
.form-input::placeholder { color: var(--ink-40); }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: var(--grad-hero); padding: 80px 0 72px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(232,107,82,0.12) 0%, transparent 65%); }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: #fff; line-height: 1.1; letter-spacing: -0.8px; margin-bottom: 16px; }
.page-hero-title .accent { color: var(--coral-light); }
.page-hero-sub { font-size: 17px; color: rgba(255,255,255,0.65); line-height: 1.75; max-width: 560px; margin-bottom: 32px; }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 20px; list-style: none; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.breadcrumb a:hover { color: var(--coral-light); }
.breadcrumb .sep { opacity: 0.4; }

/* ── FAQ (shared) ── */
.faq-item { background: #fff; border: 1px solid var(--ink-10); border-radius: var(--radius-xl); margin-bottom: 12px; box-shadow: var(--shadow-md); overflow: hidden; }
.faq-question { padding: 22px 28px; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color .15s; list-style: none; }
.faq-question:hover { color: var(--coral); }
.faq-question::marker, .faq-question::-webkit-details-marker { display: none; }
details[open] .faq-question { color: var(--coral); border-bottom: 1px solid var(--ink-10); }
.faq-chevron { font-size: 18px; transition: transform .2s; flex-shrink: 0; }
details[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 20px 28px; font-size: 15px; color: var(--ink-60); line-height: 1.8; }

/* ── FOOTER ── */
.footer { background: var(--maroon); color: rgba(255,255,255,0.55); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 13px; line-height: 1.8; max-width: 260px; margin-top: 12px; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.85); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color .15s; }
.footer-col ul li a:hover { color: var(--coral-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-legal a:hover { color: var(--coral-light); }

/* ── WHATSAPP BUTTON ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  text-decoration: none; transition: transform .2s, box-shadow .2s;
  animation: wa-pulse 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 10px 32px rgba(37,211,102,0.5); color: #fff; }
.wa-tooltip {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: var(--maroon); color: #fff; font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.wa-float:hover .wa-tooltip { opacity: 1; }
.wa-tooltip::after { content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left-color: var(--maroon); }
@keyframes wa-pulse { 0%,100%{box-shadow:0 6px 24px rgba(37,211,102,0.4)} 50%{box-shadow:0 6px 32px rgba(37,211,102,0.65)} }

/* ── BLOG CARD ── */
.blog-card {
  background: #fff; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--ink-10); box-shadow: var(--shadow-md);
  transition: transform .22s, box-shadow .22s; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-coral); }
.blog-card-img { height: 180px; background: var(--grad-hero); display: flex; align-items: center; justify-content: center; font-size: 56px; }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag { font-size: 11px; font-weight: 700; color: var(--coral); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.blog-card-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 8px; }
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--coral); }
.blog-card-excerpt { font-size: 13px; color: var(--ink-60); line-height: 1.7; flex: 1; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ink-10); font-size: 12px; color: var(--ink-40); }

/* ── ARTICLE ── */
.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { font-size: 1.5rem; font-weight: 700; color: var(--maroon); margin: 40px 0 16px; line-height: 1.3; }
.article-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
.article-body p  { font-size: 16px; color: var(--ink-80); line-height: 1.85; margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { font-size: 15px; color: var(--ink-80); line-height: 1.75; margin-bottom: 8px; }
.article-body blockquote { border-left: 3px solid var(--coral); padding: 16px 24px; background: var(--coral-pale); border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 28px 0; font-size: 16px; color: var(--ink-80); font-style: italic; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-callout { background: var(--bg-warm); border: 1px solid var(--ink-10); border-radius: var(--radius-xl); padding: 28px 32px; margin: 32px 0; }

/* ── ANIMATION ── */
/* .js-anim is added by js/aayi.js, so content stays visible without JS */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.js-anim .animate-on-scroll { opacity:0; }
.js-anim .animate-on-scroll.visible { animation: fadeInUp 0.55s cubic-bezier(0.16,1,0.3,1) forwards; }

/* ── MOBILE NAV ── */
.nav-burger {
  display: none;
  align-items: center; justify-content: center;
  background: var(--coral-pale);
  border: 1.5px solid rgba(232,107,82,0.28);
  border-radius: 10px;
  color: var(--coral-dark);
  cursor: pointer;
  flex-shrink: 0;
  min-width: 44px; min-height: 44px;
  padding: 10px;
  transition: background .18s, color .18s, border-color .18s;
}
.nav-burger:active { background: var(--coral); color: #fff; border-color: var(--coral); }
.nav.nav-open .nav-burger { background: var(--coral); color: #fff; border-color: var(--coral); }

/* ── HAMBURGER NAV (tablets + phones ≤1100px) ── */
@media (max-width: 1100px) {
  .nav-bottom { display: none; flex: none; }
  .nav-burger { display: flex; }
  .nav.nav-open .nav-bottom {
    display: flex; flex-direction: column; gap: 0; flex: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 999;
    background: #fff; padding: 12px 20px 20px;
    border-bottom: 1px solid var(--ink-10);
    box-shadow: 0 12px 24px rgba(42,16,8,0.12);
  }
  .nav.nav-open .nav-links {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 14px; width: 100%;
  }
  .nav.nav-open .nav-links li { width: 100%; }
  .nav.nav-open .nav-links a {
    border-radius: 10px; padding: 13px 16px; font-size: 15px; font-weight: 700;
    display: flex; align-items: center; width: 100%; box-sizing: border-box;
  }
  .nav.nav-open .nav-cta {
    display: flex; gap: 8px; border-top: 1px solid var(--ink-10); padding-top: 14px;
  }
  .nav.nav-open .nav-cta .btn { flex: 1; justify-content: center; }
}
/* ── MOBILE LAYOUT (≤768px) ── */
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .page-hero { padding: 60px 0 52px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-sm { padding: 36px 0; }
  .page-hero { padding: 48px 0 40px; }
  .page-hero-title { font-size: 1.7rem; }
  .page-hero-sub { font-size: 15px; }
  .section-sub { font-size: 14px; margin-bottom: 32px; }
  .card { padding: 24px 20px; }
  .btn-lg { font-size: 15px; padding: 14px 26px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.5px; padding: 6px 12px; }
}

/* ── PERFORMANCE: GPU compositing ── */
.nav, .btn { will-change: transform; }
