/* Providencia Systems Limited — shared stylesheet */

:root {
  --ink:        #0C0407;
  --surface:    #12060A;
  --surface-2:  #1A0910;
  --line:       #3D1A22;
  --line-gold:  #7A5A2A;
  --gold:       #D4A840;
  --gold-soft:  #E8C267;
  --crimson:    #C0525F;
  --cream:      #F3E6D0;
  --sand:       #B9A48C;
  --dim:        #8A7663;

  --display: "Archivo", system-ui, sans-serif;
  --body:    "Karla", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--sand);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-soft); }

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

/* Typography */

h1, h2, h3 {
  font-family: var(--display);
  color: var(--cream);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(32px, 6vw, 54px); }
h2 { font-size: clamp(25px, 4vw, 34px); }
h3 { font-size: 19px; margin-bottom: 8px; }

p { margin: 0 0 18px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 18px;
}

.lede { font-size: 19px; color: var(--sand); max-width: 60ch; }

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
}

.brand span { color: var(--crimson); }

.nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  font-size: 15px;
  color: var(--sand);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--cream);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-gold);
  color: var(--gold);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
}

/* Buttons */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn-primary { background: var(--gold); color: #2A1206; font-weight: 700; }
.btn-primary:hover { background: var(--gold-soft); }

.btn-ghost { border-color: var(--line-gold); color: var(--gold-soft); }
.btn-ghost:hover { background: var(--surface-2); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */

.section { padding: 76px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--ink); }

/* Hero */

.hero {
  padding: 88px 0 72px;
  background:
    linear-gradient(rgba(37,16,22,0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,16,22,0.55) 1px, transparent 1px),
    radial-gradient(120% 90% at 12% 0%, #2A0E16 0%, var(--surface) 62%);
  background-size: 44px 44px, 44px 44px, auto;
}

.hero h1 { max-width: 16ch; }

.hero .btn-row { margin-top: 28px; }

/* Process strip */

.process {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12,4,7,0.6);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  padding: 26px 20px;
  gap: 12px;
}

.process-step { text-align: center; }
.process-step .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 6px;
}
.process-step strong {
  display: block;
  font-family: var(--display);
  color: var(--cream);
  font-size: 17px;
  font-weight: 600;
}
.process-step span.detail { font-size: 14px; color: var(--dim); }

.process-rule { height: 1px; background: var(--line-gold); min-width: 24px; }

/* Cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 24px;
}

.card h3 { color: var(--cream); }
.card p { font-size: 15px; margin: 0; }

.card .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

/* Lists */

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
  font-size: 16px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 1px;
  background: var(--gold);
}

/* Form */

.form { display: grid; gap: 14px; max-width: 520px; }

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  padding: 12px 14px;
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212,168,64,0.22);
}

.form-note { font-size: 13px; color: var(--dim); }

/* Contact details */

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: 14px; }
.contact-list .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  display: block;
}
.contact-list .v { color: var(--cream); font-size: 17px; text-decoration: none; }
.contact-list .v:hover { color: var(--gold-soft); }

/* Footer */

.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 54px 0 34px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 34px;
  margin-bottom: 36px;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--sand); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--gold-soft); }

.record {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  background: var(--surface);
}

.record caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
  text-align: left;
  margin-bottom: 12px;
}

.record table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; }
.record th {
  text-align: left;
  font-weight: 400;
  color: var(--dim);
  padding: 5px 12px 5px 0;
  white-space: nowrap;
  vertical-align: top;
}
.record td { color: var(--sand); padding: 5px 0; }

.copyright {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}

/* Accessibility */

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--gold);
  color: #2A1206;
  padding: 10px 16px;
  z-index: 50;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* Responsive */

@media (max-width: 800px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }

  .process { grid-template-columns: 1fr; gap: 20px; }
  .process-rule { width: 24px; margin: 0 auto; }

  .hero { padding: 60px 0 52px; }
  .section { padding: 56px 0; }
}

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