/* ═══════════════════════════════════════════════════════
   AD Meliorael Consulting — admeliorael.com
   AI solutions company. Brand-matched across the ecosystem.
   Responsive mobile → desktop.
   ═══════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap");

:root {
  --green-900:#1f2a1c; --green-850:#243024; --green-800:#2d3d2d;
  --green-700:#354535; --green-600:#3f513e;
  --border:#4a5d4a; --border-lt:#5a6e5a;
  --cream:#f5f3ec; --cream-card:#ffffff; --cream-bd:#e4e1d6;
  --text:#ffffff; --text-muted:#b4c2b2; --text-dim:#8a9c88;
  --ink:#2d3d2d; --ink-muted:#5d6b5b; --success:#5cb85c; --amber:#e0a106;
  --radius:12px; --radius-sm:9px; --radius-pill:999px;
  --shadow:0 12px 30px rgba(0,0,0,.18); --shadow-sm:0 4px 14px rgba(0,0,0,.12);
  --maxw:1140px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  background:var(--green-800); color:var(--text); line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.brand { font-family:"Poppins","Inter",sans-serif; line-height:1.2; }
a { color:inherit; text-decoration:none; }
.container { width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }

/* ── Buttons ── */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 24px; border-radius:var(--radius-pill); border:none; font-family:"Inter",sans-serif; font-size:14px; font-weight:600; cursor:pointer; transition:transform .15s, background .2s; }
.btn:hover{ transform:translateY(-1px); }
.btn-cta{ background:#fff; color:var(--ink); }
.btn-cta:hover{ background:#ececec; }
.btn-ghost{ background:transparent; color:#fff; border:1px solid var(--border-lt); }
.btn-ghost:hover{ background:rgba(255,255,255,.07); }
.btn-disabled{ background:var(--green-600); color:var(--text-dim); cursor:default; }
.btn-disabled:hover{ transform:none; }

/* ── Header / nav ── */
.site-header{ position:sticky; top:0; z-index:60; background:rgba(31,42,28,.85); backdrop-filter:blur(10px); border-bottom:1px solid rgba(255,255,255,.06); }
.nav{ display:flex; align-items:center; justify-content:space-between; height:66px; gap:14px; }
.brand{ display:inline-flex; align-items:center; gap:10px; font-size:20px; font-weight:800; letter-spacing:.2px; }
.brand .logo-dot{ width:11px; height:11px; border-radius:50%; background:var(--success); }
.brand small{ display:block; font-family:"Inter"; font-size:10px; font-weight:500; letter-spacing:1.5px; text-transform:uppercase; color:var(--text-dim); }
.nav-links{ display:flex; align-items:center; gap:26px; }
.nav-links a{ font-size:14px; font-weight:500; color:var(--text-muted); transition:color .2s; }
.nav-links a:hover{ color:#fff; }
/* Animated hamburger → X */
.nav-burger{ display:none; position:relative; width:26px; height:20px; cursor:pointer; }
.nav-burger .bar{
  position:absolute; left:0; width:100%; height:2.5px; border-radius:2px; background:#fff;
  transition:top .3s ease, transform .3s ease, opacity .2s ease;
}
.nav-burger .bar:nth-child(1){ top:3px; }
.nav-burger .bar:nth-child(2){ top:9px; }
.nav-burger .bar:nth-child(3){ top:15px; }
.nav-toggle:checked ~ .nav-burger .bar:nth-child(1){ top:9px; transform:rotate(45deg); }
.nav-toggle:checked ~ .nav-burger .bar:nth-child(2){ opacity:0; }
.nav-toggle:checked ~ .nav-burger .bar:nth-child(3){ top:9px; transform:rotate(-45deg); }

/* ── Page fade-in (pure CSS — never leaves the page blank if JS fails) ── */
body{ animation: pageFade .55s ease both; }
@keyframes pageFade{ from{ opacity:0; } to{ opacity:1; } }

/* ── Logo ── */
.logo-img{ width:34px; height:34px; border-radius:9px; display:block; }
.site-header.scrolled{ box-shadow:0 6px 24px rgba(0,0,0,.28); }
.site-header{ transition:box-shadow .25s ease; }

/* ── Services nav dropdown ── */
.nav-dd{ position:relative; }
.nav-dd-toggle{ display:inline-flex; align-items:center; gap:6px; background:none; border:none; cursor:pointer; font-family:"Inter",sans-serif; font-size:14px; font-weight:500; color:var(--text-muted); transition:color .2s; }
.nav-dd-toggle:hover, .nav-dd-toggle[aria-expanded="true"]{ color:#fff; }
.nav-dd-toggle .caret{ font-size:10px; transition:transform .2s ease; }
.nav-dd-toggle[aria-expanded="true"] .caret{ transform:rotate(180deg); }

.nav-dd-menu{
  position:absolute; top:calc(100% + 14px); left:0; width:300px;
  background:var(--green-700); border:1px solid var(--border);
  border-radius:14px; box-shadow:var(--shadow); padding:8px;
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .22s ease, transform .22s ease, visibility .22s;
}
.nav-dd-menu.open{ opacity:1; visibility:visible; transform:translateY(0); }
.nav-dd-menu::before{ content:""; position:absolute; top:-6px; left:26px; width:12px; height:12px; background:var(--green-700); border-left:1px solid var(--border); border-top:1px solid var(--border); transform:rotate(45deg); }

.dd-item{ display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:10px; transition:background .15s ease; }
.dd-item:hover{ background:var(--green-850); }
.dd-ico{ width:38px; height:38px; flex:none; display:flex; align-items:center; justify-content:center; border-radius:10px; background:var(--green-850); font-size:18px; }
.dd-text{ display:flex; flex-direction:column; line-height:1.25; }
.dd-text strong{ font-size:14px; color:#fff; font-weight:600; }
.dd-text small{ font-size:12px; color:var(--text-dim); }
.dd-badge{ margin-left:auto; font-size:10px; font-weight:600; padding:3px 9px; border-radius:var(--radius-pill); }
.dd-badge.live{ background:rgba(92,184,92,.16); color:var(--success); }
.dd-badge.soon{ background:rgba(224,161,6,.14); color:var(--amber); }

/* ── Hero ── */
.hero{ padding:84px 0 72px; background:linear-gradient(120deg, rgba(92,184,92,.10), transparent 40%), radial-gradient(1100px 480px at 80% -10%, rgba(92,184,92,.12), transparent 62%), var(--green-800); background-size:200% 200%, auto, auto; animation:heroPan 18s ease-in-out infinite; }
@keyframes heroPan{ 0%,100%{ background-position:0% 50%,0 0,0 0; } 50%{ background-position:100% 50%,0 0,0 0; } }
.hero-grid{ display:grid; grid-template-columns:1fr; gap:48px; align-items:center; }
.eyebrow{ display:inline-block; font-size:12px; font-weight:600; letter-spacing:1.8px; text-transform:uppercase; color:var(--success); margin-bottom:18px; }
.hero h1{ font-size:clamp(34px,6vw,54px); font-weight:800; margin:0 0 20px; }
.hero h1 .accent{ color:var(--text-dim); }
.hero p.lead{ font-size:clamp(16px,2vw,19px); color:var(--text-muted); max-width:560px; margin:0 0 30px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; }

/* Rotating word */
.rotator{ display:inline-block; color:var(--success); transition:opacity .28s ease, transform .28s ease; }
.rotator.swap{ opacity:0; transform:translateY(10px); }

/* Hero image */
.hero-visual{ display:flex; justify-content:center; }
.hero-img{ width:100%; max-width:520px; height:auto; border-radius:20px; animation:float 6s ease-in-out infinite; }
@keyframes float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-12px); } }

/* About image */
.about-img{ width:100%; height:auto; border-radius:18px; box-shadow:var(--shadow); }

/* ── Scroll reveal — hide ONLY after JS marks them (.reveal), so if main.js
      never loads, nothing is hidden and the page still shows everything ── */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
[data-reveal][data-delay="1"]{ transition-delay:.08s; }
[data-reveal][data-delay="2"]{ transition-delay:.16s; }
[data-reveal][data-delay="3"]{ transition-delay:.24s; }

/* Card hover lift */
.service{ transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.service:hover{ transform:translateY(-5px); border-color:var(--border-lt); box-shadow:var(--shadow); }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce){
  body{ animation:none; }
  .hero, .hero-img, .rotator{ animation:none !important; transition:none !important; }
  .reveal, .reveal.in{ opacity:1; transform:none; transition:none; }
}

/* ── Sections ── */
.section{ padding:80px 0; }
.section--light{ background:var(--cream); color:var(--ink); }
.section-head{ text-align:center; max-width:640px; margin:0 auto 52px; }
.section-head .eyebrow{ margin-bottom:12px; }
.section-head h2{ font-size:clamp(28px,4vw,40px); font-weight:700; margin-bottom:12px; }
.section-head p{ color:var(--text-muted); font-size:16px; }
.section--light .section-head h2{ color:var(--ink); }
.section--light .section-head p{ color:var(--ink-muted); }

/* ── Services ── */
.services{ display:grid; grid-template-columns:1fr; gap:22px; }
.service{ position:relative; background:var(--green-700); border:1px solid var(--border); border-radius:16px; padding:28px; display:flex; flex-direction:column; }
.service .badge{ position:absolute; top:18px; right:18px; font-size:11px; font-weight:600; padding:4px 11px; border-radius:var(--radius-pill); }
.badge-live{ background:rgba(92,184,92,.16); color:var(--success); border:1px solid rgba(92,184,92,.4); }
.badge-soon{ background:rgba(224,161,6,.14); color:var(--amber); border:1px solid rgba(224,161,6,.35); }
.service .s-icon{ width:50px; height:50px; display:flex; align-items:center; justify-content:center; border-radius:12px; background:var(--green-850); font-size:24px; margin-bottom:16px; }
.service h3{ font-size:20px; margin-bottom:8px; }
.service p{ color:var(--text-muted); font-size:14.5px; flex:1; margin-bottom:18px; }
.service .btn{ align-self:flex-start; }

/* ── About ── */
.about-grid{ display:grid; grid-template-columns:1fr; gap:40px; align-items:center; }
.about-copy h2{ font-size:clamp(26px,4vw,36px); margin-bottom:16px; }
.about-copy p{ color:var(--ink-muted); margin-bottom:14px; }
.about-points{ list-style:none; display:grid; gap:12px; }
.about-points li{ position:relative; padding-left:30px; color:var(--ink); font-weight:500; }
.about-points li::before{ content:"✓"; position:absolute; left:0; color:var(--success); font-weight:700; font-size:18px; }

/* ── Contact ── */
.contact{ text-align:center; }
.contact-card{ max-width:560px; margin:0 auto; background:var(--green-700); border:1px solid var(--border); border-radius:16px; padding:36px; box-shadow:var(--shadow); }
.contact-card h2{ font-size:28px; margin-bottom:10px; }
.contact-card p{ color:var(--text-muted); margin-bottom:22px; }
.contact-rows{ display:grid; gap:12px; margin-bottom:24px; text-align:left; }
.contact-rows .row{ display:flex; gap:10px; align-items:center; font-size:15px; color:var(--text-muted); }
.contact-rows .row a{ color:#fff; }
.contact-rows .ic{ width:34px; height:34px; flex:none; display:flex; align-items:center; justify-content:center; border-radius:9px; background:var(--green-850); }

/* ── Footer ── */
.site-footer{ background:var(--green-900); border-top:1px solid rgba(255,255,255,.06); padding:40px 0; }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.footer-meta{ font-size:13px; color:var(--text-dim); }
.footer-meta a{ color:var(--text-muted); }
.footer-meta a:hover{ color:#fff; }

/* ── Responsive ── */
@media (max-width:719px){
  .nav-links{
    position:absolute; top:66px; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--green-850); border-bottom:1px solid var(--border); padding:8px 0;
    display:flex;
    opacity:0; visibility:hidden; transform:translateY(-10px);
    transition:opacity .28s ease, transform .28s ease, visibility .28s;
  }
  .nav-links a{ padding:12px 24px; color:#fff; }
  .nav-toggle:checked ~ .nav-links{ opacity:1; visibility:visible; transform:translateY(0); }
  .nav-burger{ display:block; }
  /* Dropdown shows inline within the mobile menu */
  .nav-dd-toggle{ width:100%; justify-content:space-between; padding:12px 24px; color:#fff; }
  .nav-dd-menu{ position:static; opacity:1; visibility:visible; transform:none; width:auto; padding:0 16px 8px; background:transparent; border:none; box-shadow:none; }
  .nav-dd-menu::before{ display:none; }
}
@media (min-width:720px){
  .services{ grid-template-columns:repeat(3,1fr); }
  .about-grid{ grid-template-columns:1.1fr .9fr; }
}
@media (min-width:980px){
  .hero{ padding:104px 0 92px; }
  .hero-grid{ grid-template-columns:1.05fr .95fr; }
}
