/* ═══════════════════════════════════════════
   APS PARTNERS — SHARED STYLES
   Design: Bridge × Quiet Confidence × Global
   ═══════════════════════════════════════════ */

:root {
  /* ── Logo-matched color palette ── */
  --teal:       #007383;   /* exact APS logo teal */
  --teal-dark:  #004E5C;   /* dark teal for hero/CTA backgrounds */
  --teal-deeper:#003840;   /* deepest – footer, overlay */
  --teal-mid:   #4AB8C8;   /* mid teal accent */
  --teal-light: #D8F2F5;   /* pale teal backgrounds */
  --teal-pale:  #A8D8E2;   /* muted teal text on dark */
  --amber:      #DF9A31;   /* exact APS logo amber */
  --amber-light:#F5D48C;   /* light amber hover */
  --amber-mid:  #B07A20;   /* mid amber */
  --amber-dark: #7A4F08;   /* dark amber text */
  --canvas:     #F5F4EF;
  --white:      #FFFFFF;
  --text-primary:   #1C2B2E;
  --text-secondary: #3A4A4D;
  --text-muted:     #607276;
  --border:     rgba(0,0,0,0.09);
  --border-md:  rgba(0,0,0,0.14);
  --nav-h:      64px;
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  12px;
  --max-w:      1280px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ── Section backgrounds ── */
.section-white  { background: var(--white); }
.section-canvas { background: var(--canvas); }
.section-dark   { background: var(--teal-dark); }

/* ── Section padding ── */
section { padding: 20px 0; }
@media (max-width: 768px) { section { padding: 72px 0; } }

/* ── Typography ── */
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; line-height: 1.28; letter-spacing: -0.01em; }
h3 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; line-height: 1.4; }
h4 { font-size: 18px; font-weight: 500; line-height: 1.45; }
p  { line-height: 1.8; }

.body-text { font-size: 17px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 18px; }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--teal-mid);
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}
.eyebrow-dark { color: var(--teal); }

/* ── Section header ── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 12px; }
.section-lead {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  margin-bottom: 32px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: #005E6E; transform: translateY(-1px); }

.btn-amber {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: var(--amber);
  color: var(--amber-dark);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-amber:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 400;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.7); color: white; }

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--teal-pale);
  font-size: 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost-light:hover { border-color: var(--teal-pale); color: white; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--teal); color: white; }

.link-arrow {
  font-size: 14px;
  color: var(--teal);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}
.link-arrow:hover { text-decoration: underline; }

.section-cta-row { text-align: center; margin-top: 24px; }

/* ── NAVBAR ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 0.5px solid var(--border);
  backdrop-filter: blur(8px);
  height: var(--nav-h);
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.07); }

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 120px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Hide text labels when using real logo image */
.nav-logo .nav-logo-text { display: none; }
.nav-logo-text { display: flex; flex-direction: column; gap: 1px; }
.nav-logo-name { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1; }
.nav-logo-sub  { font-size: 10px; color: var(--text-muted); line-height: 1; font-family: 'Noto Sans JP', sans-serif; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 15px;
  color: #1C2B2E;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  font-weight: 400;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }
.nav-links a.active { color: var(--teal); font-weight: 500; }
.nav-links .nav-cta,
.nav-links .nav-cta.active { color: #FFFFFF !important; }
.nav-links .nav-cta {
  background: var(--teal);
  color: white;
  padding: 7px 16px;
  font-weight: 500;
}
.nav-links .nav-cta:hover { background: #005E6E; color: white; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 12px 20px 20px;
    border-bottom: 0.5px solid var(--border);
    gap: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a { width: 100%; text-align: left; padding: 10px 12px; }
  .nav-links .nav-cta { text-align: center; margin-top: 8px; }
}

/* Page offset for fixed nav */
body > *:not(.nav):first-child,
main:first-child > section:first-child,
.hero, .page-hero { padding-top: calc(var(--nav-h) + 0px); }

/* ── CLIENT LOGOS ── */
.clients {
  padding: 40px 0;
}
.clients-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
}
.clients-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.client-logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.03em;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.client-logo:hover { opacity: 0.9; }
.client-logo small { display: block; font-size: 10px; font-weight: 400; }

/* ── CTA SECTION ── */
.cta-section {
  background: var(--teal-dark);
  padding: 50px 0;
  color: white;
}
.cta-inner {
  text-align: center;
}
.cta-inner h2 { color: white; margin-bottom: 12px; }
.cta-inner p { color: var(--teal-pale); font-size: 14px; margin-bottom: 28px; }
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.5);
  padding: 48px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
/* Footer logo text adjustment */
.footer-logo .nav-logo-mark {
  width: 100px;
  height: 100px;
  background: #FFFFFF;
  padding: 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo .nav-logo-text { display: none; }
.footer-col-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}
@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; gap: 4px; padding: 16px 20px; }
}

/* ── NEWS CARDS ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  display: block;
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
}
.news-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); transform: translateY(-2px); }
.news-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--teal-light);
  color: var(--teal);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.news-card h4 { font-size: 15px; margin-bottom: 10px; line-height: 1.5; }
.news-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.news-date { font-size: 11px; color: var(--text-muted); font-family: 'Inter', sans-serif; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.12s; }
.fade-up-3 { animation-delay: 0.19s; }
.fade-up-4 { animation-delay: 0.26s; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--teal-dark);
  color: white;
  padding: 80px 0 20px;
  margin-top: 0;
}
.page-hero-inner { max-width: 820px; }
.page-hero .eyebrow { color: var(--teal-mid); margin-bottom: 10px; }
.page-hero h1 { color: white; margin-bottom: 16px; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.35; }
.page-hero p { color: var(--teal-pale); font-size: 15px; max-width: 600px; line-height: 1.75; }

/* ── Footer tagline (re-added) ── */
.footer-tagline {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  max-width: 320px;
}

/* ── CTA section uses correct dark teal ── */
.cta-section { background: var(--teal-dark); }

/* ── Larger client logo text ── */
.client-logo {
  font-size: 17px !important;
  font-weight: 700 !important;
  opacity: 0.65;
}
.client-logo small { font-size: 12px !important; }

/* ── Larger news date ── */
.news-date { font-size: 13px !important; }
.news-tag  { font-size: 12px !important; padding: 4px 10px !important; }

/* ── btn-outline hover uses correct teal ── */
.btn-outline:hover { background: var(--teal); color: white; }

/* ── Teal light now uses new palette ── */
.team-tags span { background: var(--teal-light); color: var(--teal); }
.news-tag { background: var(--teal-light); color: var(--teal); }
.qualifier-title { color: var(--teal); }

/* ── Global mobile overflow prevention ── */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .container { overflow-x: hidden; }
}