/* ═══════════════════════════════════════════════════════
   CLMS — Creative Labor Management Services
   Unified design system for all pages
   Matches the homepage's dark, typographic brand identity
═══════════════════════════════════════════════════════ */

/* ─── SELF-HOSTED FONTS (matches homepage exactly) ─── */
@font-face {
  font-family: 'Playfair';
  font-style: normal;
  src: url('/fonts/playfair-normal.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Playfair';
  font-style: italic;
  src: url('/fonts/playfair-italic.woff') format('woff');
  font-display: swap;
}

/* ─── COLOR VARIABLES ─── */
:root {
  --navy:          #0e1624;
  --deep-blue:     #1a2a4a;
  --sapphire:      #1c3e8f;
  --bright-blue:   #2d5be3;
  --teal:          #1db89a;
  --dark-teal:     #0f6b58;
  --diamond-light: #a8c4f0;
  --cream:         #f4f0e8;
  --warm-white:    #fafaf7;
  --text-main:     #e8e4dc;
  --text-muted:    #8a9ab5;
  --gold:          #c9a84c;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ─── BASE ─── */
body {
  background: var(--navy);
  color: var(--text-main);
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--diamond-light); }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 900;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(14,22,36,0.98), rgba(14,22,36,0));
  backdrop-filter: blur(2px);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 1; }

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--teal); }

.nav-cta {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--teal);
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--bright-blue); color: white; }

/* ─── PAGE LAYOUT ─── */
.page-main {
  padding-top: 7rem;
  padding-bottom: 5rem;
  min-height: 100vh;
}

.layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ─── TYPOGRAPHY ─── */
h1 {
  font-family: 'Playfair', serif;
  font-variation-settings: 'opsz' 5, 'wdth' 112.5, 'wght' 300;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--warm-white);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(138,154,181,0.15);
}

h2 {
  font-family: 'Playfair', serif;
  font-variation-settings: 'opsz' 5, 'wdth' 112.5, 'wght' 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--warm-white);
  margin-bottom: 1.25rem;
}

h3 {
  font-family: 'Epilogue', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-white);
  margin-bottom: 0.75rem;
}

section {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(138,154,181,0.08);
}

section:last-child { border-bottom: none; }

.section-text {
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  max-width: 820px;
}

.section-text strong { color: var(--text-main); font-weight: 600; }
.section-text em { color: var(--diamond-light); font-style: italic; }
.section-text a { color: var(--teal); }
.section-text a:hover { color: var(--diamond-light); }

/* ─── CALLOUT BOX ─── */
.callout {
  background: linear-gradient(135deg, rgba(28,62,143,0.18), rgba(29,184,154,0.07));
  border: 1px solid rgba(29,184,154,0.2);
  border-left: 3px solid var(--teal);
  padding: 2.5rem 2.5rem 2rem;
  margin-bottom: 0;
}

.callout h2 { color: var(--warm-white); }

/* ─── NOTE BOX ─── */
.note {
  background: rgba(29,184,154,0.06);
  border: 1px solid rgba(29,184,154,0.15);
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
}

/* ─── CARD GRID ─── */
.card-grid {
  display: grid;
  gap: 2px;
  margin-top: 1.5rem;
  background: rgba(138,154,181,0.08);
}

.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--navy);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}

.card:hover { background: var(--deep-blue); }

.card h3 {
  font-family: 'Epilogue', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.card p {
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ─── SIMPLE LIST ─── */
.simple-list {
  list-style: none;
  margin: 0.5rem 0 1rem;
}

.simple-list li {
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(138,154,181,0.08);
  padding-left: 1rem;
  position: relative;
}

.simple-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 4px;
  height: 4px;
  background: var(--teal);
  border-radius: 50%;
  opacity: 0.6;
}

.simple-list li strong { color: var(--text-main); font-weight: 600; }
.simple-list li em { color: var(--diamond-light); }

/* ─── BUTTON ─── */
.button {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--teal);
  color: var(--navy);
  padding: 0.9rem 2rem;
  text-decoration: none;
  transition: all 0.2s;
  margin-top: 1rem;
}

.button:hover {
  background: var(--bright-blue);
  color: white;
}

/* ─── EYEBROW LABEL ─── */
.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--teal);
}

/* ─── CREDENTIAL / TAG PILLS ─── */
.cred-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(45,91,227,0.15);
  border: 1px solid rgba(45,91,227,0.3);
  color: var(--diamond-light);
  padding: 0.35rem 0.75rem;
  display: inline-block;
}

.cred-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* ─── INLINE IMAGES ─── */
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 2rem;
}

.photo-pair img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.photo-card {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(29,184,154,0.15);
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── FOOTER ─── */
.site-footer {
  background: rgba(8,14,26,0.95);
  padding: 2.5rem 3rem;
  border-top: 1px solid rgba(138,154,181,0.1);
}

.footer-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-layout a {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-layout a:hover { color: var(--teal); }

.footer-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(138,154,181,0.5);
}

.footer-text a {
  color: rgba(138,154,181,0.5);
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.footer-text a:hover { color: var(--teal); }

.footer-credit {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: rgba(138,154,181,0.25);
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}
.footer-credit a {
  color: rgba(138,154,181,0.35);
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: none;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-credit a:hover { color: var(--teal); }

/* ─── PAGE BANNER (replaces verbose h1) ─── */
.page-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(138,154,181,0.08);
  margin-bottom: 2.5rem;
  padding-bottom: 0;
}

.page-banner-item {
  background: var(--navy);
  text-align: center;
  padding: 1.5rem 1rem;
  font-family: 'Playfair', serif;
  font-variation-settings: 'opsz' 5, 'wdth' 112.5, 'wght' 300;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: var(--warm-white);
  line-height: 1.3;
}

@media (max-width: 900px) {
  .page-banner { grid-template-columns: 1fr; }
  .page-banner-item { padding: 1rem; text-align: left; }
}

/* ─── FORM ERROR ─── */
.field-error {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: #e05252;
  margin-top: 0.25rem;
}

/* ─── VISUALLY HIDDEN ─── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─── FORM STYLES (contact.html) ─── */
form { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.5rem; }

form div { display: flex; flex-direction: column; gap: 0.4rem; }

form label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

form input,
form select,
form textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(138,154,181,0.2);
  color: var(--text-main);
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  appearance: none;
  -webkit-appearance: none;
}

form input::placeholder,
form textarea::placeholder { color: rgba(138,154,181,0.35); }

form input:focus,
form select:focus,
form textarea:focus { border-color: var(--teal); }

form select option { background: var(--deep-blue); }

form button[type="submit"],
form .button[type="submit"] {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--teal);
  color: var(--navy);
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  align-self: flex-start;
}

form button[type="submit"]:hover { background: var(--bright-blue); color: white; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav {
    padding: 0.75rem 1.25rem;
    flex-wrap: wrap;
    background: rgba(14,22,36,0.98);
    align-items: center;
    justify-content: center;
  }
  .nav-logo { flex: 0 0 auto; order: 1; }
  .nav-cta { display: none; }
  .nav-links {
    display: flex;
    order: 2;
    width: 100%;
    gap: 1.5rem;
    padding: 0.6rem 0 0.5rem;
    border-top: 1px solid rgba(138,154,181,0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: center;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .page-main { padding-top: 7rem; }
  .layout { padding: 0 1.25rem; }
  .card-grid.two,
  .card-grid.three { grid-template-columns: 1fr; }
  .photo-pair { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  section { padding: 2.5rem 0; }
  .callout { padding: 1.75rem 1.5rem; }
  .site-footer { padding: 2rem 1.25rem; }
  .footer-layout { gap: 0.75rem; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav-links { gap: 1rem; }
  .cred-tags { gap: 0.35rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.3rem; }
  .layout { padding: 0 1rem; }
  .section-text { font-size: 1rem; }
  .callout { padding: 1.25rem 1rem; }
  .note { padding: 1.25rem 1rem; }
  .card { padding: 1.5rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  form label { font-size: 0.75rem; }
  form button[type="submit"] { width: 100%; }
}
