/* ICOIN (IPA Community Initiatives) Static Restoration Stylesheet
   Palette: Primary Warm Orange (#f38411), Burgundy Accent (#900500), Slate Text (#1e293b)
*/
:root {
  --primary: #f38411;
  --primary-hover: #d97008;
  --accent-burgundy: #900500;
  --accent-burgundy-light: #fbebee;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --border-color: #e2e8f0;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-height: 76px;
  --container-max: 1140px;
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Accessibility helper */
.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;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: auto;
  height: 48px;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary);
  background-color: #fff7ed;
}

.nav-contact-btn {
  background-color: var(--primary);
  color: #ffffff !important;
  border-radius: 6px;
  padding: 8px 16px !important;
}

.nav-contact-btn:hover,
.nav-contact-btn:focus {
  background-color: var(--primary-hover) !important;
  color: #ffffff !important;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-main);
  line-height: 1;
}

.menu-toggle:focus {
  outline: 2px solid var(--primary);
}

/* Main Content Layout */
main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section:last-of-type {
  border-bottom: none;
}

.section-alt {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.badge-tag {
  display: inline-block;
  background-color: var(--accent-burgundy-light);
  color: var(--accent-burgundy);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Hero Section */
.hero {
  padding: 80px 0 72px;
  background: linear-gradient(180deg, #fffaf5 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-subtitle {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

h1.hero-title {
  font-size: 3.1rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--primary);
}

.hero-lead {
  font-size: 1.25rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border-color);
  background-color: #ffffff;
  color: var(--text-main);
}

.btn-outline:hover,
.btn-outline:focus {
  border-color: var(--primary);
  color: var(--primary);
  background-color: #fff7ed;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-pill {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Cards & Grids */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: #fff7ed;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Mission & Vision Highlight Boxes */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.vm-box {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 40px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.vm-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}

.vm-vision::before {
  background-color: var(--primary);
}

.vm-mission::before {
  background-color: var(--accent-burgundy);
}

.vm-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
}

.vm-statement {
  font-size: 1.15rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 20px;
  line-height: 1.5;
}

.vm-detail {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.target-groups {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.target-groups-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-burgundy);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.target-groups-list {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Cultural History Banner */
.history-banner {
  background: linear-gradient(135deg, #2b1116 0%, #1a080c 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 48px;
  margin: 12px 0;
}

.history-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fca5a5;
  letter-spacing: -0.01em;
}

.quote-highlight {
  font-size: 1.25rem;
  line-height: 1.7;
  font-style: italic;
  color: #f1f5f9;
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin-bottom: 24px;
}

.history-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #cbd5e1;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #fff7ed;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.contact-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.contact-item-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
}

.contact-item-value a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-item-value a:hover,
.contact-item-value a:focus {
  text-decoration: underline;
  color: var(--primary-hover);
}

.social-links-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background-color: var(--bg-page);
}

.social-link-item:hover,
.social-link-item:focus {
  background-color: #fff7ed;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(4px);
}

.social-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Footer & Historical Notice */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 56px 0 32px;
  border-top: 1px solid #1e293b;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 32px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 440px;
  color: #94a3b8;
}

.footer-col h4 {
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--primary);
}

/* Discreet Historical Reconstruction Notice IN FOOTER */
.footer-reconstruction-notice {
  background-color: #1e293b;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  padding: 18px 24px;
  margin-bottom: 28px;
}

.notice-title {
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.notice-text {
  color: #cbd5e1;
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #64748b;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .vision-mission-grid,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  h1.hero-title {
    font-size: 2.2rem;
  }

  .hero-lead {
    font-size: 1.1rem;
  }

  .section {
    padding: 52px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .history-banner {
    padding: 32px 24px;
  }

  .quote-highlight {
    font-size: 1.1rem;
  }
}
