/* =========================================================
   Health Tech Associates — Design System
   Palette: evergreen + teal + warm clay + sand
   Type: Fraunces (display) / Hanken Grotesk (body)
   ========================================================= */

:root {
  /* Brand — deep navy + blue + cool slate (substantial, not light, not flashy) */
  --navy: #14304b;        /* primary, anchors the identity */
  --navy-600: #1f4f7a;    /* medium blue, buttons hover / avatars */
  --blue: #2f6ea8;        /* controlled accent blue, links / highlights */
  --blue-soft: #e3edf6;   /* pale blue tint backgrounds */
  --bronze: #bd8638;      /* tiny warm micro-accent only */
  --bronze-soft: #d6a14f;
  --bronze-tint: #f2e9d6;

  /* Neutrals — cool slate-grey family */
  --ink: #16222f;
  --muted: #53616f;
  --muted-2: #7a8693;
  --line: #dbe2ea;
  --bg: #eef2f7;          /* cool page background */
  --mist: #e6ecf3;        /* cool alt-section background */
  --white: #ffffff;

  /* Legacy aliases → new palette (so existing var() references keep resolving) */
  --evergreen: var(--navy);
  --evergreen-700: var(--navy-600);
  --teal: var(--blue);
  --teal-soft: var(--blue-soft);
  --clay: var(--bronze);
  --clay-soft: var(--bronze-soft);
  --clay-tint: var(--bronze-tint);
  --sand: var(--bg);
  --cream: var(--mist);

  /* Effects */
  --shadow-sm: 0 4px 14px rgba(17, 38, 60, 0.07);
  --shadow: 0 18px 50px rgba(17, 38, 60, 0.14);
  --shadow-lg: 0 34px 80px rgba(14, 32, 52, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw: 1180px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  background: var(--sand);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 520px at 88% -8%, rgba(47, 110, 168, 0.12), transparent 60%),
    radial-gradient(760px 480px at -8% 8%, rgba(189, 134, 56, 0.06), transparent 55%);
  background-attachment: fixed;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--teal); color: #fff; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------- Layout helpers ---------------- */
.wrap { width: min(var(--maxw), calc(100% - 44px)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tight { padding: clamp(46px, 6vw, 76px) 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--clay);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--clay);
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(40px, 6vw, 70px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.18; }

.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }

.section-head { max-width: 720px; margin-bottom: clamp(34px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .kicker { margin-bottom: 16px; }
.section-head p { margin: 18px 0 0; color: var(--muted); font-size: 18px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  color: #fff;
  background: var(--evergreen);
  box-shadow: 0 14px 28px rgba(20, 48, 75, 0.26);
}
.btn--primary:hover { background: #0e2840; transform: translateY(-2px); box-shadow: 0 18px 34px rgba(20, 48, 75, 0.32); }
.btn--accent {
  color: #fff;
  background: var(--clay);
  box-shadow: 0 14px 28px rgba(189, 134, 56, 0.26);
}
.btn--accent:hover { background: #a4732c; transform: translateY(-2px); }
.btn--ghost { color: var(--ink); background: var(--white); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--evergreen); transform: translateY(-2px); }
.btn--outline { color: #fff; background: transparent; border-color: rgba(255,255,255,0.5); }
.btn--outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; }

.btn--whatsapp { color: #fff; background: #1faa55; box-shadow: 0 14px 28px rgba(31, 170, 85, 0.26); }
.btn--whatsapp:hover { background: #178a45; transform: translateY(-2px); }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.82);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid rgba(27, 36, 32, 0.07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.brand-name span { color: var(--clay); }
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--clay);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--evergreen); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-2px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 7vw, 88px) 0 clamp(50px, 6vw, 80px);
}
.hero h1 { max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--evergreen-700); }
.hero-copy .lead { margin: 24px 0 0; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
  max-width: 560px;
}
.hero-stats .stat {
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.hero-stats dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--evergreen);
}
.hero-stats dd { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr)) auto;
  gap: 14px;
}
.hero-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-gallery img.hero-gallery-wide {
  grid-column: 1 / -1;
  aspect-ratio: 2.2 / 1;
}
.hero-badge {
  position: absolute;
  left: -14px; bottom: 26px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.hero-badge .dot { width: 42px; height: 42px; border-radius: 12px; background: var(--clay-tint); color: var(--clay); display: grid; place-items: center; }
.hero-badge strong { font-family: var(--font-display); font-size: 18px; }
.hero-badge span { display: block; font-size: 12px; color: var(--muted); }

/* ---------------- Marquee / trust strip ---------------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
}
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 30px; padding: 26px 0;
}
.trust-row span {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--muted);
  font-weight: 500;
}
.trust-row span b { color: var(--evergreen); }

/* ---------------- About / split ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-media .frame {
  position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.about-list { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center;
}
.check svg { width: 16px; height: 16px; }

/* ---------------- Services preview cards ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.s-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.s-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(47,110,168,0.45); }
.s-card-img { position: relative; height: 178px; overflow: hidden; }
.s-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.s-card:hover .s-card-img img { transform: scale(1.06); }
.s-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.s-card-icon {
  position: absolute; top: -26px; left: 22px;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--evergreen); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.s-card-icon svg { width: 26px; height: 26px; }
.s-card-body { padding-top: 36px; }
.s-card h3 { font-size: 21px; }
.s-card p { margin: 0; color: var(--muted); font-size: 15px; }
.s-card .more {
  margin-top: auto; padding-top: 8px;
  color: var(--clay); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 7px;
}
.s-card .more svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.s-card:hover .more svg { transform: translateX(4px); }

/* ---------------- Projects band ---------------- */
.band-dark {
  background:
    radial-gradient(600px 360px at 85% 10%, rgba(47,110,168,0.45), transparent 60%),
    var(--navy);
  color: #fff;
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .kicker { color: var(--clay-soft); }
.band-dark .kicker::before { background: var(--clay-soft); }
.projects-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
}
.projects-copy p { color: rgba(255,255,255,0.8); margin: 20px 0 28px; font-size: 18px; }
.projects-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 10px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
}

/* ---------------- Projects gallery (real photos) ---------------- */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.project-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.project-card:hover img { transform: scale(1.06); }
.project-card .p-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 4px; padding: 18px;
  background: linear-gradient(to top, rgba(8,20,33,0.9) 6%, rgba(8,20,33,0.4) 42%, rgba(8,20,33,0) 70%);
}
.project-card .p-tag {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff; background: rgba(47,110,168,0.85);
  backdrop-filter: blur(2px);
}
.project-card h3 { color: #fff; font-size: 18px; line-height: 1.15; }
.project-card p { margin: 0; color: rgba(255,255,255,0.78); font-size: 13px; display: flex; align-items: center; gap: 5px; }
.project-card p svg { width: 13px; height: 13px; color: var(--bronze-soft); }

/* ---------------- Indoor games feature ---------------- */
.indoor { scroll-margin-top: 100px; }
.game-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.game-tile {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.game-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); }
.game-tile span { padding: 13px 12px; font-size: 14px; font-weight: 700; text-align: center; color: var(--ink); }
.game-tile span small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------------- Projects gallery page ---------------- */
.gproject {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  scroll-margin-top: 100px;
}
.gproject + .gproject {
  margin-top: clamp(46px, 6vw, 80px);
  padding-top: clamp(46px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.gproject-info .kicker { margin-bottom: 14px; }
.gproject-info h2 { font-size: clamp(26px, 3vw, 38px); }
.gproject-info .gloc {
  display: flex; align-items: center; gap: 7px;
  margin: 12px 0 0; color: var(--blue); font-weight: 600; font-size: 15px;
}
.gproject-info .gloc svg { width: 16px; height: 16px; }
.gproject-info .gblurb { margin: 16px 0 0; color: var(--muted); font-size: 16px; }
.gproject-info .gcount {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px; padding: 7px 14px;
  border-radius: 999px; background: var(--blue-soft); color: var(--navy);
  font-size: 13px; font-weight: 700;
}
.gproject-info .gcount svg { width: 15px; height: 15px; }

.gproject-media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gproject-media.is-single { grid-template-columns: 1fr; }
.gphoto {
  display: block; width: 100%; padding: 0; border: 0; margin: 0;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--mist); box-shadow: var(--shadow-sm);
  position: relative;
}
.gphoto::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(20, 48, 75, 0); transition: background 0.25s ease;
}
.gphoto:hover::after { background: rgba(20, 48, 75, 0.12); }
.gphoto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.55s ease; }
.gproject-media.is-single .gphoto img { aspect-ratio: 16 / 9; }
.gphoto:hover img { transform: scale(1.05); }
.gphoto .zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(251, 248, 242, 0.92); color: var(--navy);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.gphoto:hover .zoom { opacity: 1; transform: none; }
.gphoto .zoom svg { width: 17px; height: 17px; }

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(8, 18, 30, 0.94);
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; animation: lbfade 0.25s ease; }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { position: relative; max-width: 1100px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lb-img {
  max-width: 100%; max-height: 78vh;
  border-radius: var(--radius); object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  background: #0e2336;
}
.lb-bar { display: flex; align-items: center; gap: 16px; color: #fff; }
.lb-caption { font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.lb-counter { font-size: 14px; color: rgba(255,255,255,0.66); }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.12); color: #fff;
  display: grid; place-items: center;
  transition: background 0.2s ease;
}
.lb-btn:hover { background: var(--blue); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-prev { left: -6px; }
.lb-next { right: -6px; }
.lb-close {
  position: absolute; top: -6px; right: -6px;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.12); color: #fff;
  display: grid; place-items: center; transition: background 0.2s ease;
}
.lb-close:hover { background: var(--bronze); }
.lb-close svg { width: 22px; height: 22px; }

/* ---------------- Why grid ---------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.why-item {
  padding: 26px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-ic {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--clay-tint); color: var(--clay);
  display: grid; place-items: center; margin-bottom: 16px;
}
.why-ic svg { width: 26px; height: 26px; }
.why-item h3 { font-size: 19px; margin-bottom: 6px; }
.why-item p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------------- Testimonials ---------------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.testi {
  display: flex; flex-direction: column; gap: 16px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.testi .quote-mark { font-family: var(--font-display); font-size: 56px; line-height: 0.4; color: var(--teal); height: 26px; }
.testi p { margin: 0; font-size: 17px; color: var(--ink); }
.testi-by { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: #fff; background: var(--evergreen-700);
}
.testi-by cite { font-style: normal; font-weight: 700; font-size: 15px; }
.testi-by cite span { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }

/* ---------------- Google reviews ---------------- */
.greviews { background: var(--cream); }
.greview-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.greview-score { text-align: center; }
.greview-score .num { font-family: var(--font-display); font-weight: 700; font-size: 52px; line-height: 1; color: var(--ink); }
.greview-score .stars { color: #f6a609; letter-spacing: 2px; font-size: 18px; margin-top: 4px; }
.greview-score .count { font-size: 13px; color: var(--muted); margin-top: 4px; }
.greview-mid { display: flex; align-items: center; gap: 12px; }
.glogo { width: 30px; height: 30px; flex: none; }
.greview-mid p { margin: 0; font-size: 15px; color: var(--muted); }
.greview-mid strong { display: block; font-family: var(--font-display); font-size: 19px; color: var(--ink); font-weight: 600; }

.greview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.greview {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.greview-head { display: flex; align-items: center; gap: 12px; }
.greview-head .avatar { width: 42px; height: 42px; font-size: 16px; }
.greview-head .who { font-weight: 700; font-size: 15px; }
.greview-head .who span { display: block; font-weight: 500; font-size: 12px; color: var(--muted-2); }
.greview-head .g { margin-left: auto; width: 20px; height: 20px; }
.greview .stars { color: #f6a609; letter-spacing: 1px; font-size: 15px; }
.greview p { margin: 0; color: var(--muted); font-size: 14.5px; }
.greview-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ---------------- CTA band ---------------- */
.cta-band { position: relative; overflow: hidden; }
.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 30px;
  align-items: center;
  padding: clamp(38px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(47,110,168,0.5), transparent 60%),
    var(--navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-card h2 { color: #fff; max-width: 16ch; }
.cta-card p { margin: 14px 0 0; color: rgba(255,255,255,0.82); font-size: 18px; max-width: 46ch; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; min-width: 240px; }

/* ---------------- Page hero (sub pages) ---------------- */
.page-hero {
  background:
    radial-gradient(700px 380px at 88% -20%, rgba(47,110,168,0.18), transparent 60%),
    var(--mist);
  border-bottom: 1px solid var(--line);
}
.page-hero-inner { padding: clamp(46px, 6vw, 78px) 0; max-width: 760px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--clay); }
.breadcrumb span { color: var(--muted-2); }
.page-hero p { margin: 20px 0 0; font-size: 19px; color: var(--muted); }

/* ---------------- Services detail rows ---------------- */
.svc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
  scroll-margin-top: 100px;
}
.svc + .svc { margin-top: clamp(56px, 7vw, 96px); }
.svc:nth-child(even) .svc-media { order: 2; }
.svc-media { position: relative; }
.svc-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.svc-media .tag {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px;
  background: rgba(251,248,242,0.92); backdrop-filter: blur(4px);
  font-size: 13px; font-weight: 700; color: var(--evergreen);
  box-shadow: var(--shadow-sm);
}
.svc-media .tag svg { width: 16px; height: 16px; color: var(--clay); }
.svc-ic {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 18px;
}
.svc-ic svg { width: 28px; height: 28px; }
.svc-body h2 { font-size: clamp(26px, 3vw, 36px); }
.svc-body > p { margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.svc-features { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.svc-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; }
.svc-features .check { width: 22px; height: 22px; }
.svc-features .check svg { width: 14px; height: 14px; }
.svc-body .btn { margin-top: 26px; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.svc-actions .btn { margin-top: 0; }

/* ---------------- Modal (PDF details + brands) ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 110;
  display: none; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 44px);
  background: rgba(8, 18, 30, 0.74);
  backdrop-filter: blur(5px);
}
.modal.open { display: flex; animation: lbfade 0.25s ease; }
.modal-dialog {
  position: relative;
  width: min(940px, 100%);
  max-height: 92vh;
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalpop 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.modal-dialog--wide { width: min(1100px, 100%); }
@keyframes modalpop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: clamp(19px, 2.2vw, 23px); }
.modal-close {
  flex: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.modal-close:hover { background: var(--navy); color: #fff; transform: rotate(90deg); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { flex: 1; min-height: 0; overflow: auto; background: var(--mist); }
.modal-body--flush { overflow: hidden; }

/* PDF tabs + frame */
.pdf-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 24px 0; background: var(--white); }
.pdf-tab {
  min-height: 42px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--muted);
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pdf-tab:hover { border-color: var(--blue); color: var(--evergreen); }
.pdf-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pdf-frame { width: 100%; height: min(66vh, 720px); border: 0; display: block; background: var(--mist); }
.modal-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px 24px; border-top: 1px solid var(--line); background: var(--white);
}
.modal-hint { margin: 0; font-size: 14px; color: var(--muted); }
.modal-foot .btn { margin-left: auto; min-height: 44px; }

/* Brand scroller */
.brand-scroller { position: relative; }
.brand-track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-behavior: smooth;
  padding: 22px clamp(18px, 6vw, 64px);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.brand-track:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.brand-track::-webkit-scrollbar { height: 8px; }
.brand-track::-webkit-scrollbar-track { background: transparent; }
.brand-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.brand-slide {
  flex: 0 0 auto; margin: 0;
  width: min(620px, 84vw);
  height: min(60vh, 440px);
  scroll-snap-align: center;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  background: #0e1f30;
  display: grid; place-items: center;
}
.brand-slide img { width: 100%; height: 100%; object-fit: contain; }
.brand-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; z-index: 2;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.2s ease;
}
.brand-nav:hover { background: var(--blue); }
.brand-nav:disabled { opacity: 0.35; cursor: not-allowed; }
.brand-nav svg { width: 22px; height: 22px; }
.brand-prev { left: 10px; }
.brand-next { right: 10px; }
@media (max-width: 640px) {
  .brand-nav { width: 40px; height: 40px; }
  .brand-prev { left: 4px; }
  .brand-next { right: 4px; }
  .modal-foot .btn { margin-left: 0; width: 100%; }
}

/* ---------------- Contact page ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.form-card {
  padding: clamp(26px, 3vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: 28px; }
.form-card > p { margin: 10px 0 24px; color: var(--muted); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.field label .req { color: var(--clay); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--sand);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(47,110,168,0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form-note { margin: 16px 0 0; font-size: 13px; color: var(--muted-2); display: flex; gap: 8px; align-items: flex-start; }
.form-note.form-status--success { color: var(--evergreen); font-weight: 600; }
.form-note.form-status--error { color: #b42318; font-weight: 600; }
.form-note svg { width: 16px; height: 16px; flex: none; color: var(--teal); margin-top: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.info-card {
  padding: clamp(24px, 3vw, 32px);
  background: var(--evergreen);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.info-card h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.info-card > p { color: rgba(255,255,255,0.75); margin: 0 0 22px; font-size: 15px; }
.info-item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.13); }
.info-item:first-of-type { border-top: none; }
.info-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,0.1); color: var(--clay-soft); display: grid; place-items: center; }
.info-ic svg { width: 20px; height: 20px; }
.info-item .label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay-soft); font-weight: 700; }
.info-item a, .info-item p { color: #fff; margin: 3px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.info-item a:hover { text-decoration: underline; }
.info-card .btn { margin-top: 22px; }

/* ---------------- Maps ---------------- */
.map-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.map-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.map-frame { height: 270px; background: #e6e9e5; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-body { padding: 22px 24px; }
.map-body h3 { font-size: 20px; margin-bottom: 8px; }
.map-body p { margin: 0; color: var(--muted); font-size: 14.5px; }
.map-body a { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--clay); font-weight: 700; font-size: 14px; }
.map-body a:hover { text-decoration: underline; }
.map-body a svg { width: 15px; height: 15px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: #0e2336;
  color: rgba(255,255,255,0.78);
  padding: clamp(54px, 6vw, 76px) 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 38px;
}
.footer-brand .brand-name, .footer-brand .brand-name small { color: #fff; }
.footer-brand p { margin: 18px 0 0; font-size: 15px; color: rgba(255,255,255,0.66); max-width: 32ch; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: #fff; transition: background 0.2s ease, transform 0.2s ease; }
.footer-social a:hover { background: var(--clay); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay-soft); margin: 0 0 18px; font-weight: 800; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a, .footer-col li { font-size: 15px; color: rgba(255,255,255,0.72); }
.footer-col a:hover { color: #fff; }
.footer-locations ol {
  list-style: decimal;
  margin: 8px 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 6px;
}
.footer-locations ol li { padding-left: 4px; }
.footer-bottom {
  margin-top: 46px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13.5px; color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.75); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }

/* ---------------- Floating WhatsApp ---------------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1faa55; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 16px 34px rgba(31,170,85,0.4);
  transition: transform 0.2s ease;
}
.fab:hover { transform: scale(1.07); }
.fab svg { width: 30px; height: 30px; }

/* ---------------- Reveal animation (no-JS safe: hidden only when html.has-reveal) ---------------- */
html.has-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.has-reveal .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
/* Services grid: 5×2 on large screens, 2×5 on tablet & mobile portrait */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px 22px 22px;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }

  .hero-grid, .about-grid, .projects-grid, .contact-grid, .svc { grid-template-columns: 1fr; }
  .hero-gallery { grid-template-rows: repeat(2, minmax(140px, 22vw)) minmax(120px, 18vw); }
  .svc:nth-child(even) .svc-media { order: 0; }
  .cards, .greview-grid { grid-template-columns: repeat(2, 1fr); }
  .project-gallery { grid-template-columns: repeat(3, 1fr); }
  .game-gallery { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gproject { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-actions { min-width: 0; }
  .greview-top { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .greview-mid { justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .testi-grid, .greview-grid, .why-grid, .map-grid, .hero-stats { grid-template-columns: 1fr; }
  .project-gallery, .game-gallery { grid-template-columns: repeat(2, 1fr); }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-btn { width: 44px; height: 44px; }
  .lb-close { top: -2px; right: -2px; }
  .hero-stats { max-width: 100%; }
  .field-row, .svc-features { grid-template-columns: 1fr; }
  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, minmax(120px, 28vw)) minmax(100px, 22vw);
  }
  .hero-badge { left: 0; }
  .about-media .frame { display: none; }
  .trust-row { justify-content: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .btn { width: 100%; }
  .nav-actions .btn { width: auto; }
}

@media (max-width: 480px) {
  .hero-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(150px, 42vw);
  }
  .hero-gallery img.hero-gallery-wide {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  html.has-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
