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

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Outfit', 'Work Sans', system-ui, sans-serif;
  background: #ffffff;
  color: #000000;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scroll margin for anchored sections ── */
article[id] { scroll-margin-top: 110px; }

/* ── Page Wrapper ── */
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ══════════════════════════════════════
   ASIDE / TOPBAR / NAV
══════════════════════════════════════ */
.site-aside {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #000;
  border-bottom: 1px solid #222;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  height: 60px;
  position: relative;
}

.topbar-brand { display: flex; align-items: center; }

.brand-link { display: flex; align-items: center; gap: 0.5rem; }

.logo-img { height: 36px; width: auto; object-fit: contain; }

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.burger-btn {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s, opacity 0.25s;
}

.burger-btn[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Fullscreen Menu */
.fullscreen-nav {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 999;
}

.fullscreen-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.fullscreen-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.fullscreen-nav ul li a {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.2s;
}

.fullscreen-nav ul li a:hover { color: #ccc; }

.close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 1.4rem;
  color: #fff;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.close-btn:hover { color: #ccc; }

/* ── Anchor Bar ── */
.anchor-bar {
  position: sticky;
  top: 60px;
  z-index: 900;
  background: #fff;
  border-bottom: 1px solid #000;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.anchor-nav { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.anchor-nav ul {
  display: flex;
  gap: 0;
  white-space: nowrap;
}

.anchor-nav ul li { flex-shrink: 0; }

.anchor-link {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  height: 44px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #000;
  border-right: 1px solid #000;
  transition: background 0.2s, color 0.2s;
}

.anchor-nav ul li:first-child .anchor-link { border-left: 1px solid #000; }

.anchor-link:hover { background: #000; color: #fff; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero-section {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 3rem;
  margin-top: 104px;
  background: #fff;
  text-align: center;
  border-bottom: 2px solid #000;
}

.hero-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-icon { display: flex; align-items: center; justify-content: center; }
.hero-mark { width: 72px; height: 72px; object-fit: contain; }

.hero-h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #000;
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  color: #333;
  max-width: 500px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 2rem;
  background: #000;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 0.22s, color 0.22s;
}

.hero-cta:hover { background: #333; }

/* ══════════════════════════════════════
   MAIN / ARTICLE / SECTION
══════════════════════════════════════ */
.site-main { flex: 1; }

.content-article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-section {
  padding: 4rem 0;
}

/* ── Content sections from page.content ── */
.content-section article {
  padding: 3rem 0;
  border-bottom: 1px solid #e8e8e8;
}

.content-section article:last-child { border-bottom: none; }

.content-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.content-section h2 span { display: inline; }

.content-section h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 0.85rem;
  margin-top: 1.5rem;
}

.content-section h3 span { display: inline; }

.content-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: #222;
  margin-bottom: 1rem;
  max-width: 72ch;
}

.content-section ul, .content-section ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.content-section li {
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
  margin-bottom: 0.4rem;
}

.content-section a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.content-section a:hover { color: #555; }

.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.content-section th, .content-section td {
  padding: 0.65rem 0.85rem;
  border: 1px solid #000;
  text-align: left;
}

.content-section th {
  background: #000;
  color: #fff;
  font-weight: 600;
}

.content-section tr:nth-child(even) td { background: #f5f5f5; }

/* ── Glass card style for any card inside content ── */
.content-section .card,
.content-section [class*="card"] {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 4px;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: #000;
  color: #fff;
  margin-top: 2rem;
}

.footer-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-bottom: 1px solid #222;
  gap: 1rem;
}

.footer-cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #fff;
}

.footer-cta-title span { display: inline; }

.footer-cta-sub {
  font-size: 0.95rem;
  color: #aaa;
  max-width: 480px;
  line-height: 1.65;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 2rem;
  background: #fff;
  color: #000;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.22s, color 0.22s;
}

.footer-cta-btn:hover { background: #ddd; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #333;
}

.footer-col-title span { display: inline; }

.footer-col ul { display: flex; flex-direction: column; gap: 0.4rem; }

.footer-col ul li a,
.footer-contact-links li a {
  font-size: 0.875rem;
  color: #aaa;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  min-height: 40px;
  line-height: 1.4;
}

.footer-col ul li a:hover,
.footer-contact-links li a:hover { color: #fff; }

.footer-about-text {
  font-size: 0.875rem;
  color: #aaa;
  line-height: 1.65;
}

address {
  font-style: normal;
  margin-bottom: 0.75rem;
}

address p { font-size: 0.875rem; color: #aaa; }
address a {
  color: #aaa;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
address a:hover { color: #fff; }

.footer-contact-links { display: flex; flex-direction: column; gap: 0.4rem; }

.footer-bottom {
  border-top: 1px solid #222;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #555;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero-section { padding: 4rem 1rem 2.5rem; margin-top: 104px; }
  .content-article { padding: 0 1rem; }
  .content-section { padding: 2.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1rem; }
  .footer-cta-block { padding: 2.5rem 1rem; }
  .anchor-link { padding: 0 0.65rem; font-size: 0.72rem; }
  .content-section table { font-size: 0.82rem; }
  .content-section th, .content-section td { padding: 0.45rem 0.5rem; }
}

@media (max-width: 400px) {
  .logo-text { font-size: 0.95rem; }
  .anchor-link { padding: 0 0.5rem; font-size: 0.68rem; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fullscreen-nav { transition: none; }
  .burger-line { transition: none; }
  * { transition-duration: 0.01ms !important; }
}
