/* ============================================
   NoLimits Asia v0.9 — Shared Stylesheet
   ============================================ */

:root {
  --yellow: #DAAA00;
  --sun: #EBC75E;
  --ink: #3F4651;
  --paper: #FAFAF7;
  --pure: #FFFFFF;
  --mist: #E8E7E2;
  --stone: #8A8A82;
  --harbour: #1E5A6B;

  --heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --content-max: 1200px;
  --content-narrow: 880px;
  --section-pad: 80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--heading);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: 56px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 40px; font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

p { max-width: 65ch; margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

ul, ol { margin-bottom: 16px; padding-left: 24px; }
li { margin-bottom: 8px; max-width: 60ch; }
li:last-child { margin-bottom: 0; }

a {
  color: var(--harbour);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}
a:hover { color: var(--ink); }

em, i { font-style: italic; }
strong, b { font-weight: 600; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow {
  max-width: var(--content-narrow);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  border-bottom: 1px solid var(--mist);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(250, 250, 247, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--content-max);
  margin: 0 auto;
  gap: 24px;
}

.logo {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.logo:hover { color: var(--ink); }
.logo .no { color: var(--sun); }
.logo .limits { color: var(--ink); }
.logo .asia {
  font-weight: 400;
  font-size: 14px;
  color: var(--stone);
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--mist);
  letter-spacing: 0.02em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav li { margin-bottom: 0; }

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 150ms ease;
  white-space: nowrap;
}

nav a:hover { color: var(--harbour); }

nav a.current {
  color: var(--harbour);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 4px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

/* ============================================
   HERO (HOME)
   ============================================ */

.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero-bg-mark {
  position: absolute;
  right: -80px;
  top: 40px;
  font-family: var(--heading);
  font-size: 480px;
  font-weight: 800;
  color: var(--sun);
  opacity: 0.18;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
  display: inline-block;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--yellow);
  vertical-align: middle;
  margin-right: 12px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .accent {
  color: var(--yellow);
}

.hero-lede {
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 32px;
  max-width: 60ch;
}

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--pure);
  padding: 14px 28px;
  text-decoration: none;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 15px;
  border-radius: 2px;
  transition: all 200ms ease;
  border: 0;
  cursor: pointer;
}

.button:hover {
  background: var(--yellow);
  color: var(--ink);
}

/* ============================================
   INNER PAGE HERO
   ============================================ */

.inner-hero {
  background: var(--ink);
  color: var(--pure);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.inner-hero .eyebrow {
  color: var(--sun);
}

.inner-hero .eyebrow::before {
  background: var(--sun);
}

.inner-hero h1 {
  color: var(--pure);
  max-width: 720px;
  margin-bottom: 20px;
}

.inner-hero .hero-lede {
  color: var(--mist);
  max-width: 60ch;
}

.inner-hero-mark {
  position: absolute;
  right: -40px;
  bottom: -120px;
  font-family: var(--heading);
  font-size: 380px;
  font-weight: 800;
  color: var(--harbour);
  opacity: 0.4;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ============================================
   GENERIC CONTENT SECTIONS
   ============================================ */

section {
  padding: var(--section-pad) 0;
}

section.alt-bg {
  background: var(--pure);
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
}

.section-head {
  margin-bottom: 48px;
  max-width: 720px;
}

.section-head h2 {
  margin-bottom: 16px;
}

.section-body {
  max-width: 720px;
}

.section-body p { margin-bottom: 18px; }
.section-body p:last-child { margin-bottom: 0; }

.section-close {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--mist);
  color: var(--stone);
  font-size: 16px;
}

.section-close p { color: var(--stone); }

/* ============================================
   PREVIEW TILES (HOME)
   ============================================ */

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tile {
  background: var(--paper);
  border: 1px solid var(--mist);
  padding: 40px 32px;
  transition: border-color 200ms ease, transform 200ms ease;
  display: flex;
  flex-direction: column;
}

.tile:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.tile-marker {
  width: 32px;
  height: 4px;
  background: var(--yellow);
  margin-bottom: 24px;
}

.tile h3 { margin-bottom: 12px; }

.tile p {
  font-size: 16px;
  color: var(--stone);
  margin-bottom: 24px;
  flex-grow: 1;
}

.tile-link {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--harbour);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: auto;
}

.tile-link::after {
  content: " →";
  display: inline-block;
  margin-left: 4px;
  transition: transform 200ms ease;
}

.tile:hover .tile-link::after { transform: translateX(4px); }

/* ============================================
   AI TOOLS CALLOUT (HOME)
   ============================================ */

.callout {
  padding: var(--section-pad) 0;
  background: var(--paper);
}

.callout-inner {
  background: var(--pure);
  border: 1px solid var(--mist);
  border-left: 4px solid var(--yellow);
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.callout-inner h2 { margin-bottom: 16px; }
.callout-inner p { color: var(--ink); max-width: 60ch; margin-bottom: 0; }

/* ============================================
   TESTIMONIAL
   ============================================ */

.testimonial-section {
  padding: var(--section-pad) 0;
  background: var(--paper);
}

.testimonial {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.testimonial blockquote {
  font-size: 26px;
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 24px;
  border-left: 3px solid var(--yellow);
  padding-left: 32px;
  max-width: none;
}

.testimonial blockquote p {
  font-size: inherit;
  line-height: inherit;
  font-style: inherit;
  margin-bottom: 0;
  max-width: none;
}

.attribution {
  font-size: 14px;
  color: var(--stone);
  padding-left: 35px;
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.attribution .role {
  font-weight: 400;
  color: var(--stone);
  display: block;
  margin-top: 4px;
}

/* ============================================
   BIO BLOCK (ABOUT)
   ============================================ */

.bio-block {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--mist);
}

.bio-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.bio-block h3 {
  margin-bottom: 20px;
}

.bio-block h3 .role {
  display: block;
  font-family: var(--heading);
  font-weight: 400;
  font-size: 16px;
  color: var(--stone);
  letter-spacing: 0.01em;
  margin-top: 4px;
}

.bio-block p {
  margin-bottom: 16px;
  max-width: 75ch;
}

.bio-block p:last-child { margin-bottom: 0; }

/* ============================================
   CLIENT WALL
   ============================================ */

.client-wall {
  background: var(--pure);
  border: 1px solid var(--mist);
  padding: 40px;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.client-grid li {
  margin: 0;
  padding: 18px 12px;
  font-family: var(--heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  border: 1px solid var(--mist);
  margin: -1px 0 0 -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  max-width: none;
  letter-spacing: 0.01em;
  transition: background 150ms ease;
}

.client-grid li:hover {
  background: var(--paper);
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-info p { margin-bottom: 12px; }

.contact-info .label {
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 4px;
}

.contact-info .value {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 24px;
  display: block;
}

form { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }

label {
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--mist);
  background: var(--pure);
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 150ms ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: 0;
  border-color: var(--harbour);
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--body);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--ink);
  color: var(--pure);
  padding: 64px 0 32px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sun);
  margin-bottom: 16px;
  font-weight: 600;
}

footer p, footer li {
  color: var(--mist);
  font-size: 15px;
  margin-bottom: 8px;
  max-width: none;
}

footer ul { list-style: none; padding: 0; }

footer a {
  color: var(--mist);
  text-decoration: none;
}

footer a:hover { color: var(--sun); }

.footer-bottom {
  border-top: 1px solid rgba(232, 231, 226, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-size: 13px;
  color: var(--stone);
  flex-wrap: wrap;
}

.footer-credits {
  font-size: 12px;
  color: var(--stone);
  max-width: 700px;
  margin-top: 16px;
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1023px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .hero-bg-mark { font-size: 320px; right: -60px; }
  .inner-hero-mark { font-size: 280px; }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .callout-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 767px) {
  :root { --section-pad: 56px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  body { font-size: 16px; }
  .container { padding: 0 24px; }
  .header-inner { padding: 16px 24px; }
  .logo { font-size: 20px; }
  .logo .asia { display: none; }

  /* Mobile nav: hidden by default, shown when active */
  nav { 
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--mist);
    display: none;
  }
  nav.open { display: block; }
  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 16px 24px 24px;
  }
  nav li { width: 100%; }
  nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--mist);
  }
  nav li:last-child a { border-bottom: 0; }

  .nav-toggle { display: block; }

  .hero { padding: 64px 0 56px; }
  .hero-bg-mark { font-size: 220px; right: -40px; top: 80px; opacity: 0.12; }
  .hero-lede { font-size: 17px; }

  .preview-grid { grid-template-columns: 1fr; gap: 20px; }
  .tile { padding: 32px 24px; }

  .testimonial blockquote { font-size: 20px; padding-left: 20px; }
  .attribution { padding-left: 23px; }

  .inner-hero { padding: 64px 0 56px; }
  .inner-hero-mark { font-size: 200px; bottom: -60px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }

  .client-wall { padding: 16px; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid li { font-size: 13px; min-height: 56px; padding: 12px 8px; }

  .bio-block p { max-width: none; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
