/* ============================================================
   Asian Group Holding — colors taken from the official logo.
   Red #D00D0D / #8E1016, charcoal #34353A, silver #9EA3BB,
   paper #F8F9FC. Edit these tokens to retune the site.
   ============================================================ */
:root {
  --ink: #34353a;
  --charcoal: #1c1d22;
  --navy: #1c1d22;
  --navy-2: #2a2b31;
  --ivory: #f8f9fc;
  --paper: #ffffff;
  --stone: #e6e7ee;
  --silver: #9ea3bb;
  --bronze: #d00d0d;
  --bronze-2: #c8cad4;
  --red: #d00d0d;
  --red-deep: #8e1016;
  --muted: #5e6170;
  --line: rgba(52, 53, 58, 0.14);
  --line-light: rgba(248, 249, 252, 0.18);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
  --header: 84px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --shadow: 0 24px 60px rgba(28, 29, 34, 0.1);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; height: 100%; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3, .biz-num, .logo-name {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.55rem, 2vw, 2rem); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 42rem;
}

.prose p + p { margin-top: 1rem; }

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

::selection { background: #f0cfd1; color: var(--ink); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  height: calc(var(--header) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(248, 249, 252, 0.94);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(248, 249, 252, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

section, .page-head, [id] {
  scroll-margin-top: calc(var(--header) + env(safe-area-inset-top, 0px) + 8px);
}

.header-inner {
  height: 100%;
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  margin-left: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.logo-mark { height: 56px; width: auto; max-width: none; flex: none; }
.logo-word { height: 24px; width: auto; max-width: none; flex: none; }
.site-footer .logo { align-items: center; margin-bottom: 16px; }
.site-footer .logo-mark { height: 76px; }
.site-footer .logo-word { height: 32px; }

.header-tools { display: flex; align-items: center; gap: 8px; }

.lang {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lang a {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.lang a[aria-current="true"] { color: var(--red); }
.lang a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px 14px;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--red); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }

/* Hero ------------------------------------------------------ */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(28px, 5vw, 72px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}

.hero-copy h1 { max-width: 100%; }
.hero-copy .lede { margin-top: 1.25rem; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 1915 / 988;
  object-fit: cover;
}
.hero-figure figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-deep); }
.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.btn-light { background: #fff; color: var(--charcoal); }
.btn-light:hover { background: var(--stone); }
.btn-lg { min-height: 56px; padding-inline: 26px; font-size: 1rem; }

/* Sections -------------------------------------------------- */
.overview, .businesses, .page-section, .map-block { padding: clamp(64px, 9vw, 120px) 0; }

.overview { background: var(--paper); border-block: 1px solid var(--line); }

.overview-grid, .split, .letter-grid, .contact-grid, .map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.section-head { max-width: 36rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 + .lede, .page-head .lede { margin-top: 1rem; }

.businesses { background: var(--ivory); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.biz-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.25s ease;
}
.biz-card:hover { border-color: var(--bronze); transform: translateY(-3px); }
.biz-media { overflow: hidden; background: var(--stone); }
.biz-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.biz-card:hover .biz-media img { transform: scale(1.045); }
.biz-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.biz-num {
  font-size: 1.1rem;
  color: var(--bronze);
  letter-spacing: 0.08em;
}
.biz-body h3 { font-size: 1.85rem; }
.biz-body p { color: var(--muted); font-size: 0.98rem; }
.more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}
.more::after { content: " →"; }

/* CEO letter ------------------------------------------------ */
.letter {
  background: var(--navy);
  color: var(--ivory);
  padding: clamp(72px, 10vw, 130px) 0;
}
.letter-grid {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: start;
}
.letter .eyebrow { color: var(--bronze-2); }
.letter h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); max-width: 12ch; }
.role { margin-top: 14px; color: rgba(248, 249, 252, 0.72); font-size: 0.95rem; }
.portrait {
  margin-top: 22px;
  margin-bottom: 22px;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 12%;
  border: 1px solid rgba(248, 249, 252, 0.22);
}
.letter blockquote { margin: 0; }
.letter blockquote p {
  font-family: var(--serif);
  font-weight: 460;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.letter blockquote p + p { margin-top: 1.1rem; }
.sign {
  margin-top: 1.6rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--bronze-2);
}

/* Map + strip ---------------------------------------------- */
.map-block { background: var(--paper); }
.map-frame {
  border: 1px solid var(--line);
  background: var(--stone);
  min-height: 320px;
  height: 100%;
}
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }
.address-list { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.address-list li { margin-top: 0.35rem; }
.address-list a { color: var(--navy); }

.contact-strip {
  background: var(--navy-2);
  color: var(--ivory);
  padding: 28px 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px 32px;
}
.contact-strip .eyebrow { margin-bottom: 6px; color: var(--bronze-2); }
.contact-strip a { color: var(--ivory); }
.contact-strip p { font-size: 0.98rem; }

/* Inner pages ---------------------------------------------- */
.page-head {
  padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.page-head h1 { max-width: 22ch; text-wrap: balance; }

.page-section { background: var(--ivory); }
.page-section.alt { background: var(--paper); border-block: 1px solid var(--line); }

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.figure-frame { margin: 0; }
.figure-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.figure-frame figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.principles { list-style: none; margin: 0; padding: 0; }
.principles li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li div strong { display: block; margin-bottom: 4px; }
.principles li div span { color: var(--muted); }
.idx {
  font-family: var(--serif);
  color: var(--bronze);
  font-size: 1.25rem;
}

.cta-band {
  background: var(--navy);
  color: var(--ivory);
  padding: clamp(48px, 8vw, 88px) 0;
}
.cta-band .lede { color: rgba(248, 249, 252, 0.78); margin: 1rem 0 1.5rem; }
.cta-band .domain {
  display: block;
  margin-top: 12px;
  color: var(--bronze-2);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

/* Contact form --------------------------------------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  border-radius: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--bronze); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #8c2f2f; }
.form-status { min-height: 1.4em; margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Footer ---------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--ivory);
  padding: clamp(48px, 7vw, 80px) 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
}
.site-footer .logo-name { font-size: 1.45rem; }
.site-footer p { color: rgba(248, 249, 252, 0.74); font-size: 0.95rem; }
.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bronze-2);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--bronze-2); }
.legal {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(248, 249, 252, 0.55);
  font-size: 0.82rem;
}

/* Language gate (cPanel homepage) -------------------------- */
.gate {
  min-height: 100vh;
  background: var(--ivory);
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 32px var(--gutter);
}
.gate-inner { width: min(860px, 100%); }
.gate .logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}
.gate .logo-mark { height: 108px; }
.gate .logo-word { height: 36px; }
.gate h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 14ch; }
.gate-lead { margin: 16px 0 32px; max-width: 36rem; color: var(--muted); }
.gate-langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gate-langs a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 140px;
  padding: 18px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
}
.gate-langs a:hover { border-color: var(--red); }
.gate-langs small { color: var(--red); letter-spacing: 0.14em; font-size: 0.72rem; }
.gate-langs strong { font-family: var(--serif); font-size: 1.8rem; font-weight: 520; margin-top: 16px; }
.gate-foot { margin-top: 28px; color: var(--muted); font-size: 0.85rem; }

/* Motion ---------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s ease forwards;
}
[data-reveal]:nth-child(2) { animation-delay: 0.08s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; animation: none; }
  .biz-card, .biz-media img, .btn { transition: none; }
  .biz-card:hover { transform: none; }
}

/* Responsive ------------------------------------------------ */
@media (max-width: 980px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    display: none;
    position: fixed;
    z-index: 80;
    top: calc(var(--header) + env(safe-area-inset-top, 0px));
    right: env(safe-area-inset-right, 0px);
    bottom: 0;
    left: env(safe-area-inset-left, 0px);
    background: #1c1d22;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 28px var(--gutter) calc(36px + env(safe-area-inset-bottom, 0px));
    gap: 2px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 7vw, 2.4rem);
    font-weight: 520;
    line-height: 1.15;
    color: var(--ivory);
    white-space: normal;
    width: 100%;
    padding: 12px 0;
    box-shadow: none !important;
  }
  .site-nav a[aria-current="page"] { color: #fb4141; }
  .site-nav a:hover { color: #fff; }
  .hero-grid, .overview-grid, .split, .split.reverse, .letter-grid, .contact-grid, .map-grid, .card-grid, .footer-grid, .strip-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .gate-langs { grid-template-columns: 1fr; }
  .hero-copy h1, .page-head h1, .letter h2 { max-width: none; }
  .portrait { width: 168px; max-width: 168px; }
  .map-frame iframe { height: 280px; width: 100%; }
  .logo-sub { letter-spacing: 0.08em; }
  .legal { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 700px) and (max-width: 980px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gate-langs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .header-end { gap: 6px; }
  .lang a { min-width: 32px; min-height: 44px; }
  .site-header .logo { gap: 8px; }
  .site-header .logo-mark { height: 44px; }
  .site-header .logo-word { height: 16px; }
  .hero-actions .btn, .cta-band .btn, .page-section .btn-lg { width: 100%; }
  h1 { font-size: clamp(2.15rem, 11vw, 3rem); }
  .overview, .businesses, .page-section, .map-block { padding: 48px 0; }
  .letter { padding: 56px 0; }
  .page-head { padding-top: 36px; }
  .field input, .field textarea { font-size: 16px; }
}
