/* ==========================================================================
   ASSOCIATION JOHN LOGAN - STYLESHEET
   Design Language: Kinetic Swiss Editorial
   Association Loi 1901 - RNA W073002714 - SIREN 828592774
   ========================================================================== */

:root {
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Header Palette */
  --header-bg: #0c1622;
  --header-border: #1e293b;
  --header-text: #f8fafc;
  --header-text-muted: #94a3b8;
  --header-accent: #d97706;

  /* Body Palette */
  --body-bg: #f8fafc;
  --body-surface: #ffffff;
  --body-surface-alt: #f1f5f9;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #475569;
  --border-light: #e2e8f0;
  --border-dark: #cbd5e1;
  --accent-primary: #0f3460;
  --accent-secondary: #b45309;
  --accent-hover: #1e40af;
  --badge-bg: #fef3c7;
  --badge-text: #92400e;

  /* Footer Palette */
  --footer-bg: #070d14;
  --footer-border: #1e293b;
  --footer-text: #e2e8f0;
  --footer-text-muted: #94a3b8;
  --footer-accent: #f59e0b;

  --max-width: 1280px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 1.0625rem;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* ==========================================================================
   TOP UTILITY STRIP
   ========================================================================== */
.utility-strip {
  background-color: #050a0f;
  color: #94a3b8;
  font-size: 0.8125rem;
  padding: 8px 16px;
  border-bottom: 1px solid #1e293b;
  text-align: center;
  letter-spacing: 0.03em;
  font-weight: 500;
}
.utility-strip strong {
  color: #f1f5f9;
}

/* ==========================================================================
   HEADER & NAVIGATION (SWISS EDITORIAL)
   ========================================================================== */
.site-header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.brand-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--header-text);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--header-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-top: 2px;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--header-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-link.active {
  color: var(--header-text);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  border-bottom: 2px solid var(--header-accent);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0f1c2d;
  min-width: 230px;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  padding: 8px 0;
  list-style: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 1010;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 18px;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.dropdown-link:hover {
  color: #ffffff;
  background-color: rgba(217, 119, 6, 0.15);
  padding-left: 22px;
}

/* CTA in Nav */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--header-accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 44px;
  min-width: 100px;
}

.header-cta:hover {
  background-color: #b45309;
}

/* Hamburger button */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 10px 14px;
  font-size: 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

/* ==========================================================================
   LAYOUT STRUCTURE & MAIN CONTAINERS
   ========================================================================== */
main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Breadcrumb & Sub-header */
.page-header-strip {
  background-color: #0f1c2d;
  color: #ffffff;
  padding: 48px 24px;
  border-bottom: 1px solid #1e293b;
}

.page-header-strip .container {
  padding: 0;
}

.page-badge {
  display: inline-block;
  background-color: rgba(217, 119, 6, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(217, 119, 6, 0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.page-main-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-lead {
  font-size: 1.2rem;
  color: #cbd5e1;
  max-width: 780px;
  line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 16px;
  list-style: none;
}
.breadcrumb a {
  color: #cbd5e1;
}
.breadcrumb a:hover {
  color: #f59e0b;
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero-editorial {
  position: relative;
  background-color: #0c1622;
  border-bottom: 1px solid #1e293b;
  color: #ffffff;
}

.hero-editorial-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  border-bottom: 1px solid #1e293b;
}

.hero-editorial-image-wrapper img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.05);
}

.hero-content-box {
  background-color: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  margin-top: -80px;
  position: relative;
  z-index: 10;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

.two-sentence-summary {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 500;
  color: #0f172a;
  border-left: 4px solid var(--accent-secondary);
  padding-left: 20px;
  margin: 24px 0;
  background-color: #fffbeb;
  padding: 18px 24px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   MISSION STATEMENT BLOCK (120+ words exact mandate)
   ========================================================================== */
.mission-statement-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 36px;
  margin: 40px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.mission-statement-card h2 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.mission-statement-text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #334155;
  font-style: normal;
}

/* ==========================================================================
   SWISS EDITORIAL GRID & CARDS
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 32px 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 32px 0;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.editorial-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.editorial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.editorial-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid var(--border-light);
}

.editorial-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.3;
  color: #0f172a;
  margin-bottom: 12px;
}

.card-text {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   BUTTONS & CTA
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
  min-width: 44px;
  text-align: center;
  border: none;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #1e3a8a;
  color: #ffffff;
}

.btn-accent {
  background-color: var(--accent-secondary);
  color: #ffffff;
}
.btn-accent:hover {
  background-color: #92400e;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-dark);
}
.btn-outline:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #475569;
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
  min-height: 38px;
}

/* ==========================================================================
   CONTENT SECTIONS & EDITORIAL TYPOGRAPHY
   ========================================================================== */
.section-frame {
  margin: 48px 0;
  padding: 36px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.section-eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 8px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 20px;
}

.section-subheading {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: #1e293b;
  line-height: 1.35;
  margin: 28px 0 12px 0;
}

.prose {
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose p {
  margin-bottom: 20px;
}

.prose ul, .prose ol {
  margin: 20px 0 20px 24px;
}

.prose li {
  margin-bottom: 10px;
}

.highlight-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--accent-primary);
  padding: 24px;
  margin: 28px 0;
  border-radius: var(--radius-sm);
}

.highlight-box.warning {
  border-left-color: var(--accent-secondary);
  background-color: #fffbeb;
}

/* ==========================================================================
   TRANSPARENCY & STAT TABLES
   ========================================================================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9375rem;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
}

.data-table th {
  background-color: #0f1c2d;
  color: #ffffff;
  text-align: left;
  padding: 14px 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  color: #334155;
}

.data-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.data-table tr:hover {
  background-color: #f1f5f9;
}

/* ==========================================================================
   CONTACT FORM & APPLICATION
   ========================================================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: #1e293b;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: #1e293b;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* ==========================================================================
   FOOTER (ARCHITECTURAL SLATE)
   ========================================================================== */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--footer-border);
  margin-top: auto;
}

.footer-top {
  padding: 56px 24px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--footer-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--footer-text-muted);
  font-size: 0.875rem;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--footer-accent);
  padding-left: 4px;
}

.footer-legal-bar {
  background-color: #03060a;
  border-top: 1px solid #131d2a;
  padding: 24px;
}

.footer-legal-content {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.65;
  text-align: center;
}

.footer-legal-content strong {
  color: #e2e8f0;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .page-main-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0c1622;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0;
    border-bottom: 1px solid var(--header-border);
    gap: 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: 0;
    justify-content: space-between;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background-color: #080e16;
    border: none;
    box-shadow: none;
    padding: 0 0 8px 16px;
    display: none;
  }

  .nav-item.open-sub .nav-dropdown {
    display: block;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content-box {
    margin-top: -40px;
    padding: 24px;
  }

  .page-main-title {
    font-size: 1.85rem;
  }

  .section-heading {
    font-size: 1.75rem;
  }

  .header-cta {
    display: none;
  }
}
