/* ============================================================
   ACCESS ASIA — Shared Stylesheet
   accessasia.consulting
   ============================================================ */

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

/* ── VARIABLES ── */
:root {
  --aa-red:        #E63946;
  --aa-red-dark:   #C5313D;
  --aa-charcoal:   #1A1A1A;
  --aa-white:      #FFFFFF;
  --aa-gray-dark:  #666666;
  --aa-gray-light: #E8E8E8;
  --aa-bg-subtle:  #F7F7F7;
  --aa-bg-callout: #F8F8F8;

  --font: 'Inter', 'Helvetica Neue', sans-serif;

  --max-w: 880px;
  --nav-h: 64px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--aa-charcoal);
  background: var(--aa-white);
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAVIGATION ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--aa-charcoal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-brand-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aa-white);
}

.nav-slash {
  color: var(--aa-red);
  font-weight: 700;
  letter-spacing: 0;
}

.nav-brand-sub {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--aa-gray-dark);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--aa-white);
}

.nav-links a.active {
  border-bottom: 1px solid var(--aa-red);
  padding-bottom: 2px;
}

/* ── FOOTER ── */
footer {
  background: var(--aa-charcoal);
  color: var(--aa-gray-dark);
  padding: 2.5rem 2.5rem;
  margin-top: 6rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aa-white);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 12px;
  color: var(--aa-gray-dark);
  font-style: italic;
}

.footer-right {
  font-size: 12px;
  text-align: right;
  line-height: 1.8;
}

.footer-right a {
  color: var(--aa-gray-dark);
  transition: color 0.2s;
}

.footer-right a:hover { color: var(--aa-white); }

/* ── PAGE WRAPPER ── */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2.5rem 2rem;
}

/* ── TYPOGRAPHY ── */
h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--aa-charcoal);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--aa-charcoal);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--aa-red);
  display: inline-block;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--aa-red);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--aa-charcoal);
  margin-bottom: 1.25rem;
  max-width: 680px;
}

p:last-child { margin-bottom: 0; }

/* ── SECTION DIVIDER ── */
.section {
  margin-top: 4rem;
}

.section + .section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--aa-gray-light);
}

/* ── CALLOUT BOX ── */
.callout {
  border-left: 4px solid var(--aa-red);
  border-top: 1px solid var(--aa-red);
  background: var(--aa-bg-callout);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  color: var(--aa-charcoal);
  max-width: 680px;
}

/* ── LABEL ── */
.label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aa-red);
  margin-bottom: 1rem;
}

/* ── DIVIDER LINE ── */
hr {
  border: none;
  border-top: 1px solid var(--aa-gray-light);
  margin: 3rem 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  background: var(--aa-red);
  color: var(--aa-white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn:hover { background: var(--aa-red-dark); }

.btn-ghost {
  background: transparent;
  color: var(--aa-charcoal);
  border: 1px solid var(--aa-charcoal);
}

.btn-ghost:hover {
  background: var(--aa-charcoal);
  color: var(--aa-white);
}

/* ── ENTRY CARDS (Home) ── */
.entry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.entry-card {
  border-top: 2px solid var(--aa-red);
  padding: 1.5rem 0 0;
}

.entry-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aa-gray-dark);
  margin-bottom: 0.75rem;
}

.entry-card h2 {
  font-size: 1rem;
  font-weight: 600;
  border: none;
  padding: 0;
  margin-bottom: 0.5rem;
  display: block;
}

.entry-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--aa-gray-dark);
  margin-bottom: 1rem;
}

.entry-card a.card-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aa-red);
  border-bottom: 1px solid var(--aa-red);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.entry-card a.card-link:hover { opacity: 0.7; }

/* ── AREAS OF PRACTICE (Work) ── */
.practice-areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.practice-area {
  border-top: 2px solid var(--aa-gray-light);
  padding-top: 1rem;
}

.practice-area-name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aa-charcoal);
  margin-bottom: 0.4rem;
}

.practice-area p {
  font-size: 13px;
  color: var(--aa-gray-dark);
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .practice-areas {
    grid-template-columns: 1fr;
  }
}

/* ── GENERATION SECTIONS (Work) ── */
.gen-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--aa-gray-light);
}

.gen-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aa-red);
  margin-bottom: 0.5rem;
}

.gen-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  padding: 0;
  margin-bottom: 1rem;
  display: block;
}

/* ── FRAMEWORK LIST (Thinking) ── */
.framework-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.framework-item {
  border-left: 3px solid var(--aa-gray-light);
  padding-left: 1.25rem;
}

.framework-item h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aa-charcoal);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
}

.framework-item p {
  font-size: 14px;
  color: var(--aa-gray-dark);
  margin-bottom: 0;
}

/* ── SERIES LIST (Thinking) ── */
.series-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.series-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.series-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--aa-red);
  min-width: 20px;
  padding-top: 2px;
}

.series-item-text h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aa-charcoal);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.2rem;
}

.series-item-text p {
  font-size: 13px;
  color: var(--aa-gray-dark);
  margin-bottom: 0;
}

/* ── WHITEPAPER GATE (Thinking) ── */
.gate-box {
  background: var(--aa-bg-subtle);
  border: 1px solid var(--aa-gray-light);
  padding: 2rem 2rem;
  margin-top: 2rem;
  max-width: 560px;
}

.gate-box p {
  font-size: 13px;
  color: var(--aa-gray-dark);
  margin-bottom: 1.25rem;
}

.gate-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gate-form input[type="email"],
.gate-form input[type="text"] {
  flex: 1;
  min-width: 180px;
  font-family: var(--font);
  font-size: 14px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--aa-gray-light);
  background: var(--aa-white);
  color: var(--aa-charcoal);
  outline: none;
  transition: border-color 0.2s;
}

.gate-form input:focus {
  border-color: var(--aa-red);
}

.gate-form .btn {
  white-space: nowrap;
}

/* ── CONTACT FORM ── */
.contact-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aa-gray-dark);
}

.form-row input,
.form-row textarea,
.form-row select {
  font-family: var(--font);
  font-size: 14px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--aa-gray-light);
  background: var(--aa-white);
  color: var(--aa-charcoal);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--aa-red);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

/* ── THANK-YOU ── */
.thankyou-box {
  text-align: left;
  max-width: 580px;
  padding: 4rem 0;
}

.thankyou-box h1 {
  margin-bottom: 1rem;
}

.thankyou-box p {
  margin-bottom: 2rem;
}

/* ── HERO (Home) ── */
.hero {
  padding: 5rem 0 3rem;
  max-width: 720px;
}

.hero-claim {
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--aa-charcoal);
  margin-bottom: 1.75rem;
}

.hero-claim span {
  color: var(--aa-red);
}

.hero-sub {
  font-size: 16px;
  line-height: 1.75;
  color: var(--aa-gray-dark);
  max-width: 600px;
  margin-bottom: 0;
}

/* ── HOME ACCENT IMAGE ── */
.home-image-band {
  width: 100%;
  height: 320px;
  margin: 3.5rem 0;
  overflow: hidden;
  position: relative;
}

.home-image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
  filter: saturate(0.85) brightness(0.95);
}

/* ── WORK HERO IMAGE ── */
.work-hero-img {
  width: 100%;
  height: 280px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.work-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: saturate(0.75) brightness(0.97);
}

/* ── ABOUT PHOTO LAYOUT ── */
.about-principal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1.5rem;
}

.about-photo-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.about-photo-wrap img {
  width: 100%;
  display: block;
  filter: saturate(0.9);
}

.about-photo-caption {
  font-size: 11px;
  color: var(--aa-gray-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.75rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav {
    padding: 0 1.25rem;
  }

  .nav-links {
    gap: 1.1rem;
  }

  .nav-links a {
    font-size: 12px;
  }

  .page {
    padding: 3.5rem 1.25rem 1.5rem;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero-claim {
    font-size: 1.55rem;
  }

  .entry-cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    text-align: left;
  }

  .gate-form {
    flex-direction: column;
  }

  .about-principal-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-photo-wrap {
    position: static;
    max-width: 220px;
  }

  .home-image-band {
    height: 220px;
  }

  .work-hero-img {
    height: 200px;
  }
}
