/* ==========================================================================
   Academic Horizons Holdings - Core Stylesheet
   Design concept: "The Horizon Line" - a navy night sky meeting a warm
   sunrise gold, echoing the company name and its tagline "Where Education
   Meets The World." The gradient horizon and curved divider recur through
   the site as the single signature motif.
   ========================================================================== */

:root {
  /* Color tokens */
  --navy-deep: #0b2545;
  --navy-mid: #123a63;
  --horizon-blue: #2778a5;
  --horizon-gold: #e8a33d;
  --horizon-glow: #f4c77b;
  --paper: #f8f6f1;
  --paper-tint: #f1ece1;
  --ink: #1c2b3a;
  --slate: #56677a;
  --line: #e2ddd0;
  --white: #ffffff;
  --success: #2f7a4d;
  --error: #b3432b;

  /* Type tokens */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-utility: "Space Grotesk", "Inter", sans-serif;

  /* Scale */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 60px -30px rgba(11, 37, 69, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(11, 37, 69, 0.25);
  --container: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 0.5em; line-height: 1.15; font-weight: 600; color: var(--navy-deep); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: var(--font-body); }

:focus-visible {
  outline: 3px solid var(--horizon-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

.eyebrow {
  font-family: var(--font-utility);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--horizon-blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--horizon-gold);
  display: inline-block;
}

.section {
  padding: 96px 0;
}
.section--tint { background: var(--paper-tint); }
.section--navy { background: var(--navy-deep); color: var(--white); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy .eyebrow { color: var(--horizon-glow); }

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.section-head p { color: var(--slate); font-size: 1.05rem; }
.section--navy .section-head p { color: #c7d3e0; }

/* ---- Horizon divider (signature motif) ---- */
.horizon-divider {
  display: block;
  width: 100%;
  height: 60px;
  line-height: 0;
}
.horizon-divider svg { width: 100%; height: 100%; display: block; }

.horizon-rule {
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--horizon-blue), var(--horizon-gold));
  margin: 18px 0 28px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(90deg, var(--horizon-gold), var(--horizon-glow));
  color: var(--navy-deep);
  box-shadow: 0 14px 30px -12px rgba(232, 163, 61, 0.55);
}
.btn-primary:hover { box-shadow: 0 18px 34px -12px rgba(232, 163, 61, 0.7); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-deep);
  color: var(--navy-deep);
}
.btn-outline-dark:hover { background: var(--navy-deep); color: var(--white); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 241, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy-deep);
  min-width: 0;
}
.brand img { height: 40px; width: auto; flex: none; }
.brand-fallback {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-deep), var(--horizon-blue) 55%, var(--horizon-gold));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--font-utility); font-weight: 700; font-size: 0.9rem;
  flex: none;
}
.brand-text {
  min-width: 0;
}
.site-header .brand-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
}
.brand-text small {
  display: block;
  font-family: var(--font-utility);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--font-utility);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--horizon-gold);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--horizon-blue); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none; border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  flex: none;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    row-gap: 14px;
  }
  .brand { order: 1; flex: 1 1 auto; min-width: 0; gap: 10px; font-size: 1.05rem; }
  .brand img, .brand-fallback { height: 34px; width: 34px; }
  .site-header .brand-text small { display: none; }
  .nav-toggle { display: flex; order: 2; }
  .nav-links {
    order: 4;
    position: fixed;
    inset: 72px 16px auto 16px;
    background: var(--white);
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }
  .nav-links a { padding: 12px 14px; display: block; border-radius: 8px; }
  .nav-links a:hover { background: var(--paper-tint); }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-cta {
    order: 3;
    flex-basis: 100%;
    width: 100%;
  }
  .nav-cta .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .brand { font-size: 0.92rem; }
  .brand img, .brand-fallback { height: 30px; width: 30px; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 45%, var(--horizon-blue) 78%, var(--horizon-gold) 100%);
  color: var(--white);
  padding: 90px 0 0;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 120px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.01em;
}
.hero .eyebrow { color: var(--horizon-glow); }
.hero p.lede {
  font-size: 1.15rem;
  color: #dbe4ee;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero-orb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%),
              radial-gradient(circle at 65% 70%, var(--horizon-gold), var(--horizon-blue) 60%, var(--navy-deep) 100%);
  box-shadow: 0 0 120px 20px rgba(232,163,61,0.25);
}
.hero-orb::after {
  content: "";
  position: absolute; inset: -16px;
  border: 1px dashed rgba(255,255,255,0.35);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-sun-line {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-orb { max-width: 220px; margin: 0 auto; }
}

/* ---- Cards / grids ---- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -20px rgba(11,37,69,0.3); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--horizon-blue), var(--navy-deep));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--slate); font-size: 0.98rem; margin-bottom: 0; }

.card--value { text-align: left; }
.card--value .icon { background: linear-gradient(135deg, var(--horizon-gold), var(--horizon-blue)); }

/* ---- Stats / audience strip ---- */
.audience-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 700px) { .audience-list { grid-template-columns: 1fr; } }
.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.audience-item .dot {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--horizon-gold), var(--horizon-blue));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.audience-item .dot svg { width: 17px; height: 17px; }
.audience-item span { font-weight: 600; font-family: var(--font-utility); font-size: 0.95rem; }

/* ---- Team ---- */
.team-card { text-align: center; }
.team-photo {
  width: 148px; height: 148px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--paper-tint), var(--line));
  border: 4px solid var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 2px; font-size: 1.1rem; }
.team-card .role {
  font-family: var(--font-utility);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--horizon-blue);
  font-weight: 600;
}

/* ---- Forms ---- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-utility);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-deep);
}
.field .req { color: var(--error); }
.field input, .field select, .field textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--horizon-blue);
  box-shadow: 0 0 0 4px rgba(39,120,165,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-hint { font-size: 0.8rem; color: var(--slate); }
.checkbox-field { flex-direction: row; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.checkbox-field input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--horizon-blue); }
.checkbox-field label { font-weight: 400; font-family: var(--font-body); font-size: 0.88rem; color: var(--slate); }
.checkbox-field .field-error { flex-basis: 100%; margin-left: 28px; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: var(--font-utility);
}
.form-status.visible { display: block; }
.form-status.success { background: #e4f3e8; color: var(--success); border: 1px solid #bfe2c9; }
.form-status.error { background: #fbe7e1; color: var(--error); border: 1px solid #f2c3b4; }

/* ---- Brochure cards ---- */
.brochure-card {
  display: flex;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
  align-items: center;
}
.brochure-thumb {
  flex: none;
  width: 90px; height: 120px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--navy-deep), var(--horizon-blue));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.brochure-thumb img { width: 100%; height: 100%; object-fit: cover; }
.brochure-thumb svg { width: 28px; height: 28px; opacity: 0.85; }
.brochure-meta { flex: 1; }
.brochure-meta h3 { font-size: 1.05rem; margin-bottom: 4px; }
.brochure-meta p { font-size: 0.9rem; color: var(--slate); margin-bottom: 12px; }
.brochure-meta .filesize { font-family: var(--font-utility); font-size: 0.75rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 600px) {
  .brochure-card { flex-direction: column; text-align: center; }
}

/* ---- Map ---- */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---- Newsletter ---- */
.newsletter-block {
  background: linear-gradient(120deg, var(--navy-deep), var(--horizon-blue));
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 800px) { .newsletter-block { grid-template-columns: 1fr; padding: 32px; } }
.newsletter-block h3 { color: var(--white); font-size: 1.6rem; }
.newsletter-block p { color: #d8e2ec; margin-bottom: 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 200px;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
}
.newsletter-form input[type="email"]:focus { outline: 3px solid var(--horizon-gold); }

/* ---- CTA band ---- */
.cta-band {
  text-align: center;
  padding: 80px 0;
  background: var(--navy-deep);
  color: var(--white);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cddaea; max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-deep);
  color: #cddaea;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-text { color: var(--white); }
.footer-brand p { color: #a9bcd0; font-size: 0.92rem; margin-top: 14px; max-width: 32ch; }
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-utility);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #cddaea; font-size: 0.93rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--horizon-gold); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.9rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--horizon-gold); }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: var(--horizon-gold); color: var(--navy-deep); transform: translateY(-2px); }
.social-row svg { width: 17px; height: 17px; }
.footer-bottom {
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #93a6ba;
}
.footer-bottom a.built-by { color: var(--horizon-glow); font-weight: 600; }
.footer-bottom a.built-by:hover { text-decoration: underline; }

/* ---- WhatsApp floating button ---- */
.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 28px -10px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 30px; height: 30px; fill: var(--white); }
.whatsapp-fab .ping {
  position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; opacity: 0.6;
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---- Breadcrumb / page header ---- */
.page-header {
  background: linear-gradient(180deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
  padding: 150px 0 90px;
  text-align: center;
}
.page-header h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.page-header p { color: #d8e2ec; max-width: 560px; margin: 12px auto 0; }
.page-header .eyebrow { justify-content: center; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-visible { opacity: 1; transform: translateY(0); }

/* ---- Form field-level validation (elite error handling) ---- */
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
  background: #fdf4f1;
}
.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  box-shadow: 0 0 0 4px rgba(179,67,43,0.15);
}
.field-error {
  display: block;
  font-family: var(--font-utility);
  font-size: 0.8rem;
  color: var(--error);
  min-height: 0;
}
.field-error:empty { display: none; }
.input-error {
  border-color: var(--error) !important;
  background: #fdf4f1 !important;
}
.input-error:focus {
  box-shadow: 0 0 0 4px rgba(179,67,43,0.15) !important;
}

/* ---- Newsletter archive ---- */
.archive-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}
.archive-search {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.archive-search svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--slate);
  pointer-events: none;
}
.archive-search input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--paper);
}
.archive-search input:focus {
  outline: none;
  border-color: var(--horizon-blue);
  box-shadow: 0 0 0 4px rgba(39,120,165,0.15);
}
.archive-filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.archive-filters .field { margin-bottom: 0; min-width: 140px; }
.archive-filters .field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
}
.archive-filters .field input,
.archive-filters .field select {
  padding: 10px 12px;
  font-size: 0.9rem;
}

.newsletter-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.newsletter-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.newsletter-item:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -20px rgba(11,37,69,0.28); }
.newsletter-item .icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--horizon-blue), var(--navy-deep));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  margin: 0;
}
.newsletter-item .icon svg { width: 22px; height: 22px; }
.newsletter-item-meta { flex: 1; min-width: 0; }
.newsletter-item-meta h3 {
  font-size: 1.02rem;
  margin-bottom: 2px;
  color: var(--navy-deep);
}
.newsletter-item-meta span {
  font-family: var(--font-utility);
  font-size: 0.8rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.newsletter-item .btn { flex: none; }

.newsletter-loading, .newsletter-empty, .newsletter-error {
  text-align: center;
  padding: 48px 24px;
  color: var(--slate);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}
.newsletter-empty h3, .newsletter-error h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.newsletter-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.newsletter-pagination button {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.newsletter-pagination button:hover:not(:disabled) { border-color: var(--horizon-blue); color: var(--horizon-blue); }
.newsletter-pagination button[aria-current="true"] {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
}
.newsletter-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.newsletter-pagination .page-ellipsis { color: var(--slate); padding: 0 4px; }

.newsletter-results-count {
  font-family: var(--font-utility);
  font-size: 0.82rem;
  color: var(--slate);
  margin-bottom: 18px;
}

@media (max-width: 700px) {
  .archive-controls {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 14px;
  }
  .archive-search { min-width: 0; width: 100%; }
  .archive-filters {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }
  .archive-filters .field {
    flex: none;
    min-width: 0;
    width: 100%;
  }
  .archive-filters .field input,
  .archive-filters .field select {
    width: 100%;
  }
  .archive-filters button#newsletter-filter-clear {
    width: 100%;
  }
  .newsletter-item { flex-wrap: wrap; }
  .newsletter-item .btn { width: 100%; }
}

/* ---- Form submission overlay (client-side only, no backend yet) ---- */
.form-card { position: relative; }
.newsletter-form-wrap { position: relative; border-radius: var(--radius-md); }

.form-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 32px;
  z-index: 5;
  border-radius: inherit;
}
.form-overlay.visible { display: flex; }
.form-overlay-icon {
  width: 52px; height: 52px; flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--horizon-blue), var(--navy-deep));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.form-overlay-icon svg { width: 24px; height: 24px; }
.form-overlay h3 { margin: 0; font-size: 1.1rem; color: var(--navy-deep); }
.form-overlay p { margin: 0; color: var(--slate); max-width: 40ch; font-size: 0.93rem; }

.form-overlay--compact {
  flex-direction: row;
  gap: 12px;
  padding: 0 20px;
}
.form-overlay--compact .form-overlay-icon { width: 34px; height: 34px; }
.form-overlay--compact .form-overlay-icon svg { width: 17px; height: 17px; }
.form-overlay--compact p { font-size: 0.9rem; text-align: left; }

form.form-locked,
.newsletter-form-wrap form.form-locked {
  opacity: 0.35;
  filter: grayscale(0.4);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ---- PDF viewer modal (newsletter archive) ---- */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
}
.pdf-modal.open { display: block; }
.pdf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 37, 69, 0.75);
  backdrop-filter: blur(2px);
}
.pdf-modal-content {
  position: relative;
  margin: 3vh auto;
  width: min(920px, 94vw);
  height: 94vh;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.pdf-modal-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--navy-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-modal-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.pdf-modal-close {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--paper-tint);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.pdf-modal-close:hover { background: var(--line); }
.pdf-modal-close svg { width: 18px; height: 18px; }
#pdf-modal-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--paper-tint);
}

@media (max-width: 700px) {
  .pdf-modal-content { width: 100vw; height: 100vh; margin: 0; border-radius: 0; }
  .pdf-modal-actions .btn span.long { display: none; }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--horizon-gold); color: var(--navy-deep);
  padding: 12px 20px; z-index: 999; border-radius: 0 0 8px 0;
  font-family: var(--font-utility); font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---- Table of services (services page detail) ---- */
.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-child { border-bottom: none; }
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }
.service-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--horizon-blue), var(--navy-deep));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.service-visual img { width: 100%; height: 100%; object-fit: cover; }
.service-visual svg { width: 72px; height: 72px; color: rgba(255,255,255,0.9); }
.service-index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--horizon-blue);
  font-weight: 600;
}
@media (max-width: 860px) {
  .service-detail, .service-detail:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
}

.service-list-inline { margin-top: 18px; }
.service-list-inline li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--slate);
  font-size: 0.96rem;
}
.service-list-inline svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--horizon-gold); }

/* ---- Values grid on About ---- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .values-grid { grid-template-columns: 1fr; } }

/* ---- Mission/Vision split ---- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.mv-card.gold-edge { border-top: 4px solid var(--horizon-gold); }
.mv-card.blue-edge { border-top: 4px solid var(--horizon-blue); }
