/* --------------------------------------------------------------
   EUCLORA — Full CSS (updated to Colour Spec v1.4)
   Anchor: #1F3A5F (Atlantic Blue)
-------------------------------------------------------------- */

/* --------------------------------------------------------------
   Root variables and base styling
-------------------------------------------------------------- */

:root {
  /* Backgrounds & surfaces */
  --bg: #F6F8FB;         /* Main Background */
  --bg-alt: #EDF1F6;     /* Section Background */
  --surface: #FFFFFF;    /* Surface */

  /* Text */
  --text: #0F141A;       /* Primary Text */
  --muted: #46515F;      /* Secondary Text */

  /* Atlantic Blue system */
  --accent: #1F3A5F;         /* Atlantic Blue (Anchor) */
  --accent-strong: #162A44;  /* Atlantic Blue Dark */
  --accent-mid: #355A84;     /* Atlantic Blue Mid */
  --accent-light: #6F8FB2;   /* Atlantic Blue Light */

  /* Accents */
  --control: #2B8C8A;        /* Governance Teal */
  --signal: #D49B2A;         /* Policy Amber */
  --signal-alt: #9E2A2B;     /* Sovereignty Red (exceptional use) */

  /* Logo-specific */
  --logo-orange: #CC571D;    /* Logo Orange (logo accent only) */
  --logo-charcoal: #222221;  /* Logo Charcoal */
  --black: #000000;          /* Pure Black (fallback) */

  /* Borders */
  --border: #CCD5E1;         /* Borders / Dividers */
  --border-strong: #6F8FB2;  /* Atlantic Blue Light */

  /* Effects */
  --shadow-soft: 0 10px 30px rgba(15, 20, 26, 0.08);

  /* Geometry */
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------
   Links (explicit underline metrics to avoid browser-default quirks)
-------------------------------------------------------------- */

a {
  color: var(--control);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { text-decoration-thickness: 2px; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------
   Layout helpers
-------------------------------------------------------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 40px 0; }

.content { font-size: 0.98rem; }

.content p { margin-bottom: 1em; }

/* Editorial links inside page content */
.content a { color: var(--accent); }

/* --------------------------------------------------------------
   Header
-------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(204, 213, 225, 0.75);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
}

.brand img {
  height: 64px;
  width: auto;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
}

/* EUCLORA: menu items in Atlantic Blue; only indicator line in Logo Orange */
.nav-main a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  position: relative; /* for active indicator */
  padding: 6px 2px;   /* polish: slightly larger hit target */
}

.nav-main a:hover { color: var(--accent-strong); }

/* Active nav item: text stays blue */
.nav-main a[aria-current="page"] { color: var(--accent); }

/* Active nav indicator: orange only */
.nav-main a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;                 /* keep indicator close to text */
  height: 2px;
  border-radius: 999px;
  background: rgba(204, 87, 29, 0.85); /* logo orange, softened */
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 6px;
  color: var(--accent);
}

/* --------------------------------------------------------------
   Hero
-------------------------------------------------------------- */

.hero {
  /* keep background separate from spacing */
  background:
    linear-gradient(180deg, rgba(31, 58, 95, 0.06) 0%, rgba(31, 58, 95, 0.00) 42%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--surface) 70%);
}

/* IMPORTANT: override generic .section padding for hero */
.section.hero {
  padding: 32px 0 28px; /* desktop: tighter than 40px */
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 28px; /* desktop: slightly tighter than before */
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.hero-title {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 10px 0 14px;
  position: relative;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), rgba(31, 58, 95, 0.12));
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-meta {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 40rem;
}

/* --------------------------------------------------------------
   Hero image
-------------------------------------------------------------- */

.hero-image-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(204, 213, 225, 0.7);
  width: 100%;
  margin: 0; /* guard against UA stylesheet */
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

/* --------------------------------------------------------------
   Buttons
-------------------------------------------------------------- */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover { background: var(--accent-strong); }

.btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border);
}

.btn-secondary:hover { background: var(--bg); }

/* --------------------------------------------------------------
   Section titles with accent dash
-------------------------------------------------------------- */

.section-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
  position: relative;
  padding-left: 24px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.section-lead {
  max-width: 64ch;
  color: var(--muted);
  margin-bottom: 18px;
}

/* --------------------------------------------------------------
   Cards
-------------------------------------------------------------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 20, 26, 0.02);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--accent);
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* --------------------------------------------------------------
   ABOUT page image
-------------------------------------------------------------- */

.about-photo {
  margin: 30px 0;
  text-align: center;
}

.about-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(204, 213, 225, 0.7);
}

/* --------------------------------------------------------------
   BIOGRAPHY (clean, editorial)
-------------------------------------------------------------- */

.biography-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

.biography {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.biography + .biography { margin-top: 2.5rem; }

.biography-content { min-width: 0; }

.biography-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(204, 213, 225, 0.8);
}

.biography-name {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.biography-link {
  display: inline-flex;
  align-items: center;
}

.biography-link img {
  width: 14px;
  height: 14px;
  opacity: 0.45;
  margin-left: 0.15rem;
}

.biography-link:hover img { opacity: 0.75; }

.biography-role {
  margin: 0.15rem 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.biography p { margin: 0 0 0.75rem; }

.biography-content,
.biography-content p {
  overflow-wrap: anywhere;
  word-break: normal;
}

.biography strong { font-weight: 600; }

@media (min-width: 980px) {
  .biography-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 3rem;
  }

  .biography-grid .biography + .biography { margin-top: 0; }

  .biography-grid .biography {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1rem;
  }

  .biography-grid .biography-photo img {
    width: 96px;
    height: 96px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
  }
}

/* --------------------------------------------------------------
   Contact form + GDPR consent
-------------------------------------------------------------- */

.contact-form {
  max-width: 480px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.contact-form input,
.contact-form textarea {
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  padding: 10px 12px;
  font: inherit;
  width: 100%;
  background: var(--surface);
  color: var(--text);
}

.contact-form textarea { resize: vertical; }

.consent-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-top: -6px;
  color: var(--muted);
}

.consent-row input[type="checkbox"] { margin: 0; }

.consent-row label { white-space: nowrap; }

.consent-row a { text-decoration: underline; }

button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-form button {
  align-self: flex-start;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.contact-form button:hover { background: var(--accent-strong); }

.honeypot {
  position: absolute;
  left: -5000px;
  top: 0;
  height: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------
   Footer
-------------------------------------------------------------- */

/* EUCLORA: Atlantic Blue footer, taller to fit address block cleanly */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #1F3A5F;
  margin-top: auto;
}

/* Make the footer area higher + allow wrapping (address-friendly) */
.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 30px; /* ↑ taller */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;  /* ↑ allows multi-line blocks */
  gap: 22px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  flex-wrap: wrap;          /* ↑ wrap if address is long */
}

.footer-left {
  white-space: normal;      /* ↑ allow address lines */
  max-width: 42ch;          /* keeps it readable */
}

.footer-center {
  display: flex;
  gap: 14px;
  white-space: normal;      /* ↑ allow wrapping */
  flex-wrap: wrap;
}

.footer-center a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
}

.footer-center a:hover { color: #ffffff; }

.footer-right {
  display: flex;
  gap: 16px;
  align-items: center;
  white-space: nowrap;
}

.footer-right a { text-decoration: none; }

.footer-right .icon {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.78);
  transition: opacity 0.2s ease, fill 0.2s ease;
}

.footer-right a:hover .icon { fill: #ffffff; }

@media (max-width: 600px) {
  .site-footer-inner {
    justify-content: center;
    text-align: center;
    align-items: center;
  }

  .footer-left { max-width: none; }
}

/* --------------------------------------------------------------
   Responsive layout adjustments
-------------------------------------------------------------- */

@media (max-width: 900px) {
  /* Hero should match card stack rhythm on mobile/tablet */
  .section.hero { padding: 24px 0; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px; /* same as cards */
  }

  .hero-image-wrapper {
    justify-self: stretch;
    max-width: none;
    border-radius: var(--radius-lg); /* closer to card geometry on mobile */
  }

  .cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .nav-main {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid rgba(204, 213, 225, 0.9);
    padding: 10px 20px;
    flex-direction: column;
    gap: 8px;
    display: none;
  }

  html.nav-open .nav-main { display: flex; }
}

@media (max-width: 640px) {
  .biography { grid-template-columns: 1fr; }

  .biography-photo { max-width: 120px; }
}
