/* =========================================================================
   Credit The Americas — shared stylesheet
   Recreated from Wayback Machine captures (home.html 2021, focus.html 2020)
   All colors, type, and spacing live here. Pages link to this one file.
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  /* Surfaces */
  --bg:            #1a262f; /* page background (deep blue-grey)            */
  --bg-showcase:   #0d161c; /* showcase strip behind image + quote        */
  --teal-block:    #008b9b; /* solid teal quote panel                     */

  /* Accents */
  --accent:        #00bcd4; /* headings, active/hover nav, links          */
  --star:          #129bb4; /* teal star in the flag logo                 */

  /* Text */
  --text:          #b0bec5; /* default body text                          */
  --text-body:     #95a5a6; /* long-form paragraph text                   */
  --text-muted:    #7f8c8d; /* inactive nav items                         */
  --text-footer:   #566573; /* footer line                                */
  --logo:          #ffffff; /* wordmark + quote text                      */

  /* Lines */
  --divider:       #34495e; /* dashed rules above/below the nav           */
  --footer-border: #2c3e50; /* solid rule above the footer                */

  /* Type */
  --font-body:     Arial, Helvetica, sans-serif;
  --font-display:  Georgia, 'Times New Roman', serif;

  /* Rhythm */
  --container:     1000px;
  --gutter:        20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* Visible keyboard focus everywhere (quality floor) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* ---- Header / logo ---------------------------------------------------- */
header {
  display: flex;
  align-items: center;
  padding: 20px 0 30px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon { width: 64px; height: auto; flex: none; }

.logo-text {
  color: var(--logo);
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo-text sup { font-size: 0.5em; vertical-align: super; }

/* ---- Showcase (image + quote) ---------------------------------------- */
.showcase {
  display: flex;
  width: 100%;
  min-height: 240px;
  margin-bottom: 30px;
  background-color: var(--bg-showcase);
}

.showcase-image {
  flex: 1.2;
  background-color: var(--footer-border);
  background-size: cover;
  background-position: center;
  filter: grayscale(15%);
}

.showcase-quote {
  flex: 1;
  background-color: var(--teal-block);
  color: var(--logo);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-text {
  font-size: 20px;
  font-style: italic;
  font-family: var(--font-display);
  line-height: 1.4;
  margin-bottom: 15px;
}

.quote-author { font-size: 14px; font-style: italic; opacity: 0.85; }

/* ---- Navigation ------------------------------------------------------- */
nav {
  border-top: 1px dashed var(--divider);
  border-bottom: 1px dashed var(--divider);
  padding: 12px 0;
  margin-bottom: 40px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: bold;
  transition: color 0.2s ease;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] { color: var(--accent); }

/* ---- Main content ----------------------------------------------------- */
.content-section {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
}

.content-title {
  flex: 1;
  color: var(--accent);
  font-size: 24px;
  font-weight: normal;
}

.content-body { flex: 2.5; color: var(--text-body); font-size: 15px; }
.content-body p + p { margin-top: 20px; }

/* ---- Footer ----------------------------------------------------------- */
footer {
  border-top: 1px solid var(--footer-border);
  padding: 20px 0;
  font-size: 11px;
  color: var(--text-footer);
}

/* ---- Partner login form ----------------------------------------------- */
.login-form {
  flex: 2.5;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.field input {
  background-color: var(--bg-showcase);
  border: 1px solid var(--divider);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 12px;
}

.field input:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.btn {
  align-self: flex-start;
  background-color: var(--teal-block);
  color: var(--logo);
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 26px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible { background-color: var(--accent); }

.login-note {
  font-size: 12px;
  color: var(--text-footer);
  min-height: 1.2em;
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 720px) {
  .showcase       { flex-direction: column; }
  .showcase-image { min-height: 180px; }
  .content-section { flex-direction: column; gap: 12px; }
  .logo-text      { font-size: 19px; letter-spacing: 1px; }
  nav ul          { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
