/* ==========================================================================
   NAAI ENTERPRISE INC. — Design System
   Professional / corporate holding company theme
   ========================================================================== */

:root {
  /* Palette */
  --navy-900: #0c1626;
  --navy-800: #10203a;
  --navy-700: #16304f;
  --navy-600: #1f3f66;
  --gold-500: #c9a227;
  --gold-400: #d8b652;

  /* Per-vertical accent colors */
  --re: #e08a1e; /* Real Estate — amber */
  --ai: #7c3aed; /* AI Governance — violet */
  --id: #2563eb; /* Identity — blue */
  --it: #0d9488; /* IT — teal */
  --lv: #e11d48; /* Low Voltage — rose */
  --slate-500: #5c6b80;
  --slate-300: #98a6b8;
  --ink: #16202e;
  --paper: #ffffff;
  --paper-alt: #f5f7fa;
  --paper-alt2: #eef1f6;
  --line: #e2e7ee;

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1160px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(12, 22, 38, 0.08);
  --shadow-lg: 0 24px 60px rgba(12, 22, 38, 0.14);
  --transition: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; color: var(--navy-900); font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1rem; }
a { color: var(--navy-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-500); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section--alt { background: var(--paper-alt); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--slate-500); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Eyebrow / label */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 16px;
}

.section-head { max-width: 720px; margin-bottom: 54px; }
.center.section-head { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: 6px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
}
.btn--primary { background: var(--gold-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--gold-400); color: var(--navy-900); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }

/* ===================== Header / Nav ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 7px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400); display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  border: 1px solid rgba(201,162,39,0.4);
}
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--navy-900); letter-spacing: 0.01em; line-height: 1.1; }
.brand__name span { display: block; font-family: var(--sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em; color: var(--slate-500); text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav__links a { font-size: 0.96rem; font-weight: 500; color: var(--navy-800); }
.nav__links a.active { color: var(--gold-500); }
.nav__links a:hover { color: var(--gold-500); }
.nav__cta { margin-left: 6px; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: var(--transition); }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(201,162,39,0.14), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 120px 0 130px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 900px; }
.hero .lead { color: var(--slate-300); font-size: 1.28rem; margin-top: 22px; max-width: 660px; }
.hero__actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero .eyebrow { color: var(--gold-400); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 70px; position: relative; z-index: 2; }
.stat__num { font-family: var(--serif); font-size: 2.5rem; color: var(--gold-400); font-weight: 700; }
.stat__label { color: var(--slate-300); font-size: 0.92rem; letter-spacing: 0.02em; }
.hero .stat__label { color: var(--slate-300); }

/* ===================== Cards / Grids ===================== */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201,162,39,0.5); }
.card__icon {
  width: 48px; height: 48px; border-radius: 9px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400); display: grid; place-items: center; font-size: 1.35rem;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate-500); margin-bottom: 0; font-size: 0.98rem; }

/* Vertical list item */
.vertical {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color var(--transition), box-shadow var(--transition);
}
.vertical:hover { border-color: rgba(201,162,39,0.5); box-shadow: var(--shadow); }
.vertical__tag {
  flex: none; width: 54px; height: 54px; border-radius: 9px;
  background: var(--navy-800); color: var(--gold-400);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
}
.vertical h3 { margin-bottom: 6px; font-size: 1.2rem; }
.vertical p { color: var(--slate-500); margin: 0; font-size: 0.96rem; }

/* Split content */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.media-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
  display: grid; place-items: center; color: var(--gold-400); position: relative;
}
.media-frame::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.media-frame__label { position: relative; text-align: center; font-family: var(--serif); }
.media-frame__label .big { font-size: 3rem; display: block; }
.media-frame__label .small { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate-300); }

/* Value / bullet list */
.checklist { list-style: none; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 16px; color: var(--slate-500); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(201,162,39,0.15); color: var(--gold-500);
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700;
}
.checklist li strong { color: var(--ink); }

/* CTA band */
.cta-band {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff; border-radius: 16px; padding: 64px; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--slate-300); max-width: 560px; margin: 14px auto 32px; }

/* ===================== Page header (inner pages) ===================== */
.page-header {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 80px 0 70px; position: relative; overflow: hidden;
}
.page-header::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: #fff; }
.page-header p { color: var(--slate-300); max-width: 640px; margin-top: 14px; font-size: 1.15rem; }
.page-header .eyebrow { color: var(--gold-400); }
.breadcrumb { font-size: 0.85rem; color: var(--slate-300); margin-bottom: 18px; }
.breadcrumb a { color: var(--slate-300); }
.breadcrumb a:hover { color: var(--gold-400); }

/* ===================== Contact ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.contact-info .info-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.contact-info .info-item .ic {
  flex: none; width: 44px; height: 44px; border-radius: 9px;
  background: var(--navy-800); color: var(--gold-400); display: grid; place-items: center; font-size: 1.1rem;
}
.contact-info .info-item h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 4px; }
.contact-info .info-item a, .contact-info .info-item p { font-size: 1.1rem; color: var(--navy-900); font-weight: 500; margin: 0; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow); }
.form .field { margin-bottom: 20px; }
.form label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--navy-800); margin-bottom: 7px; }
.form input, .form select, .form textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 7px; background: var(--paper-alt); color: var(--ink);
  transition: border-color var(--transition), background var(--transition);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--gold-500); background: #fff;
}
.form textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--slate-500); margin-top: 6px; }
.form-success { display: none; background: rgba(201,162,39,0.12); border: 1px solid var(--gold-500); color: var(--navy-900); padding: 14px 18px; border-radius: 7px; margin-bottom: 20px; font-weight: 500; }

/* ===================== Footer ===================== */
.site-footer { background: var(--navy-900); color: var(--slate-300); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 46px; margin-bottom: 46px; }
.site-footer .brand__name { color: #fff; }
.site-footer p { color: var(--slate-300); font-size: 0.95rem; }
.footer-col h4 { font-family: var(--sans); color: #fff; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--slate-300); font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: var(--slate-500); }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 48px 28px; }

  .nav__links {
    position: fixed; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 24px 20px; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform var(--transition); z-index: 40;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--paper-alt2); }
  .nav__cta { margin: 12px 0 0; }
  .nav__toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .form { padding: 26px; }
}

/* ==========================================================================
   Colorful vertical media tiles + richer palette (added iteration)
   ========================================================================== */

/* More color in the hero: soft colored blobs */
.hero {
  background:
    radial-gradient(760px 420px at 82% -8%, rgba(124,58,237,0.30), transparent 60%),
    radial-gradient(700px 420px at 8% 108%, rgba(13,148,136,0.28), transparent 60%),
    radial-gradient(900px 500px at 50% 120%, rgba(225,29,72,0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
}

/* Colorful gradient divider */
.color-rule { height: 5px; border: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--re), var(--ai), var(--id), var(--it), var(--lv));
}

/* Vertical media tiles */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.vtile {
  --a: var(--navy-700);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 22px rgba(12,22,38,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.vtile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.vtile__accent { height: 5px; background: var(--a); }

.vtile__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  /* Colored fallback shown if the photo fails to load */
  background: linear-gradient(150deg, var(--a), var(--navy-800));
}
.vtile__code {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 3.4rem;
  color: rgba(255,255,255,0.85);
}
.vtile__media img {
  position: relative; z-index: 2;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.06);
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}
.vtile:nth-child(2) .vtile__media img { animation-delay: -6s; }
.vtile:nth-child(3) .vtile__media img { animation-delay: -12s; }
.vtile:nth-child(4) .vtile__media img { animation-delay: -3s; }
.vtile:nth-child(5) .vtile__media img { animation-delay: -9s; }
.vtile:hover .vtile__media img { animation-play-state: paused; transform: scale(1.16); transition: transform 1.2s ease; }

/* Video background layer */
.vtile__video {
  position: relative; z-index: 2;
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: transparent;
  transition: transform 1.2s ease;
}
.vtile:hover .vtile__video { transform: scale(1.06); }

.vtile__media::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(180deg, rgba(12,22,38,0) 30%, rgba(12,22,38,0.86) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 60%, var(--a) 240%);
  mix-blend-mode: normal;
}
.vtile__label { position: absolute; z-index: 4; left: 18px; bottom: 14px; right: 18px; }
.vtile__chip {
  display: inline-block; font-family: var(--sans); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  background: var(--a); padding: 5px 11px; border-radius: 30px; margin-bottom: 9px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.vtile__title { color: #fff; font-size: 1.35rem; line-height: 1.1; }

.vtile__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.vtile__body p { color: var(--slate-500); font-size: 0.97rem; margin-bottom: 16px; }
.vtile__more {
  margin-top: auto; font-weight: 600; font-size: 0.9rem; color: var(--a);
  display: inline-flex; align-items: center; gap: 7px;
}
.vtile__more::after { content: "→"; transition: transform var(--transition); }
.vtile:hover .vtile__more::after { transform: translateX(4px); }

/* Accent assignment */
.vtile--re { --a: var(--re); }
.vtile--ai { --a: var(--ai); }
.vtile--id { --a: var(--id); }
.vtile--it { --a: var(--it); }
.vtile--lv { --a: var(--lv); }
.vtile--more { --a: var(--gold-500); }
.vtile--more .vtile__media { background: linear-gradient(150deg, var(--gold-500), var(--navy-800)); }

/* Colorful card icons on Home "What we do" */
.card__icon--re { background: linear-gradient(135deg, var(--re), #b56b12); color: #fff; }
.card__icon--ai { background: linear-gradient(135deg, var(--ai), #5b21b6); color: #fff; }
.card__icon--it { background: linear-gradient(135deg, var(--it), #0f766e); color: #fff; }

/* Colored stat numbers */
.stat:nth-child(1) .stat__num { color: var(--gold-400); }
.stat:nth-child(2) .stat__num { color: #a78bfa; }
.stat:nth-child(3) .stat__num { color: #5eead4; }
.stat:nth-child(4) .stat__num { color: #fda4af; }

@keyframes kenburns {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.18) translate(-2.5%, -2%); }
}
@media (prefers-reduced-motion: reduce) {
  .vtile__media img { animation: none; }
}

@media (max-width: 900px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vgrid { grid-template-columns: 1fr; } }

