/* ============================================================
   Dual Skin Demo — layout.css
   Skin-neutral structural rules. Uses CSS custom properties
   defined by whichever skin's tokens.css is loaded.
   No hardcoded colors — all via var(--).
   ============================================================ */

/* ── Body ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* ── Site Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: var(--border);
  padding: 20px 40px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* Header floating state — shadow appears after scroll-up reveal over content */
.site-header.header-floating {
  box-shadow: var(--shadow-md);
}

/* Scroll Progress Bar — position: fixed; top: 0 independent of header z-index */
/* z-index 999: below header (1000) when header visible, visible when header hides */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 999;
  pointer-events: none;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width, 1400px);
  margin: 0 auto;
}

/* ── Logo ── */
.nav-logo,
.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

/* ── Nav Links ── */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0;
  position: relative;
  color: var(--text-muted, var(--text));
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* Active indicator applied via skin's components.css */
.nav-links a.active {
  color: var(--text);
}

/* ── Theme Toggle ── */
.nav-theme-toggle {
  border: var(--border);
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  border-radius: var(--radius);
  background: none;
  color: var(--text);
  cursor: pointer;
}

.theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: inline; }

/* ── Burger ── */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ── Mobile Nav Overlay ── */
body.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

body.nav-open .nav-links a {
  font-size: 1.5rem;
}

body.nav-open .nav-burger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

body.nav-open .nav-burger span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-burger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Site Hero ── */
.site-hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 200px;
  padding-bottom: 80px;
  padding-left: var(--gutter, 40px);
  padding-right: var(--gutter, 40px);
  position: relative;
  overflow: hidden;
}

.site-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  max-width: 900px;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 160px;
  padding-bottom: 60px;
  padding-left: var(--gutter, 40px);
  padding-right: var(--gutter, 40px);
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  max-width: 800px;
}

/* ── Hero Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  border: var(--border);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  color: var(--text-muted, var(--text));
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* ── Hero Tagline ── */
.hero-tagline {
  max-width: 600px;
  font-size: 1.1rem;
  color: var(--text-muted, var(--text));
  margin-top: 1.5rem;
  line-height: 1.75;
}

/* ── Hero CTA ── */
.hero-cta {
  display: inline-block;
  padding: 1rem 2rem;
  border: var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2rem;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

/* ── Hero Stats ── */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, var(--text));
  margin-top: 0.4rem;
}

/* ── Sections ── */
.site-section {
  padding: var(--section-pad, 100px) 0;
}

.container {
  max-width: var(--max-width, 1400px);
  margin: 0 auto;
  padding: 0 var(--gutter, 40px);
}

/* ── Section Header ── */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-top: 0.5rem;
}

.section-desc {
  max-width: 700px;
  color: var(--text-muted, var(--text));
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.75;
}

/* ── Card Grids ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap, 24px);
  margin-top: 2.5rem;
}

.cards-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ── Cards (shared structure) ── */
.service-card,
.sector-card,
.value-card,
.team-card,
.article-card {
  padding: var(--card-padding, 2rem);
  border: var(--border);
  border-radius: var(--radius);
  background: var(--bg-card, var(--bg));
  box-shadow: var(--shadow-card, none);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card h3,
.sector-card h3,
.value-card h3,
.team-card h3,
.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card p,
.sector-card p,
.value-card p,
.team-card p,
.article-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted, var(--text));
}

/* Service card icon */
.service-card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Value card icon */
.value-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Team card (centered) */
.team-card {
  text-align: center;
}

/* Article card layout */
.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.article-card-image {
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface, var(--bg));
}

.article-card-body {
  padding: var(--card-padding, 2rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.article-card-body h3 {
  margin-bottom: 0.75rem;
}

.article-card-body h3 a {
  color: var(--text);
  transition: color 0.2s;
}

.article-card-body h3 a:hover {
  color: var(--accent);
}

.article-meta {
  font-size: 0.78rem;
  color: var(--text-dim, var(--text-muted, var(--text)));
  margin-top: auto;
  padding-top: 1rem;
}

/* ── Team Card Photo ── */
.team-card-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface, var(--accent));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Always circle — exempt from skin radius */
}

.team-role {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ── Mission / Vision ── */
.mission-vision {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap, 24px);
}

.mv-block {
  padding: var(--card-padding, 2rem);
  border: var(--border);
  border-radius: var(--radius);
  background: var(--bg-card, var(--bg));
}

.mv-block h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.mv-block p {
  font-size: 0.95rem;
  color: var(--text-muted, var(--text));
  line-height: 1.75;
}

/* ── Blockquote ── */
.site-blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 2rem 2rem;
  border-left: 4px solid var(--accent);
  color: var(--text-muted, var(--text));
  line-height: 1.5;
}

/* ── Newsletter ── */
.newsletter-section {
  text-align: center;
  background: var(--surface, transparent);
  padding: var(--section-pad, 100px) 0;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 2rem auto 0;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.newsletter-form input::placeholder {
  color: var(--text-dim, var(--text-muted, var(--text)));
}

.newsletter-form button {
  padding: 0.8rem 1.5rem;
  background: var(--text);
  color: var(--bg);
  border: var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  background: var(--surface, transparent);
  padding: var(--section-pad, 100px) 0;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1rem;
  color: var(--text-muted, var(--text));
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

/* ── Footer ── */
.site-footer {
  border-top: var(--border);
  padding: 60px 0 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width, 1400px);
  margin: 0 auto;
  padding: 0 var(--gutter, 40px);
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted, var(--text));
  max-width: 320px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text);
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted, var(--text));
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width, 1400px);
  margin: 40px auto 0;
  padding: 20px var(--gutter, 40px) 0;
  border-top: var(--border);
  font-size: 0.8rem;
  color: var(--text-muted, var(--text));
}

.footer-skin-switcher {
  display: flex;
  gap: 0.5rem;
}

.skin-btn {
  padding: 0.3rem 0.8rem;
  border: var(--border);
  border-radius: var(--radius);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, var(--text));
  background: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.skin-btn.active,
.skin-btn[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

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