/* Maldonado Investments site styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --ink: #1e2222;
  --muted: #626a68;
  --charcoal: #22282a;
  --charcoal-deep: #181d1f;
  --cedar: #a2522c;
  --cedar-dark: #86421f;
  --bg: #ffffff;
  --bg-alt: #f5f5f2;
  --line: #e3e3de;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Manrope", "Inter", sans-serif; letter-spacing: -0.01em; }

a { color: var(--cedar); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cedar);
}
.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-nav a {
  color: #40484a;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  padding: 6px 0;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.current { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--cedar); }
.site-nav a.nav-cta {
  background: var(--charcoal);
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: none;
}
.site-nav a.nav-cta:hover { background: var(--charcoal-deep); color: #fff; }

/* Mobile nav toggle (hamburger) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px 6px; margin-right: -6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .header-inner { height: 62px; padding: 0 20px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(30,34,34,.10);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 2px; font-size: 1rem; border-bottom: 1px solid var(--bg-alt); }
  .site-nav a.current { box-shadow: none; color: var(--cedar); }
  .site-nav a.nav-cta { margin-top: 14px; text-align: center; padding: 13px 18px; border-bottom: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(15,19,20,.82) 0%, rgba(15,19,20,.62) 42%, rgba(15,19,20,.18) 75%, rgba(15,19,20,.05) 100%),
    url("images/home.jpg") center 38% / cover no-repeat;
}
.hero-inner {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 90px 28px;
}
.hero .eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #e8b58f;
  margin-bottom: 16px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  max-width: 560px;
  margin-bottom: 18px;
}
.hero p {
  color: rgba(255,255,255,.85);
  max-width: 460px;
  font-size: 1.05rem;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page header (subpages) ---------- */
.page-hero {
  position: relative;
  background:
    linear-gradient(rgba(17,21,22,.78), rgba(17,21,22,.78)),
    url("images/home.jpg") center 42% / cover no-repeat;
  padding: 64px 28px;
}
.page-hero-inner { max-width: 1120px; margin: 0 auto; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 620px; font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: .97rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background .15s ease;
}
.btn.primary { background: var(--cedar); color: #fff; }
.btn.primary:hover { background: var(--cedar-dark); }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn.ghost:hover { border-color: #fff; }
.btn.dark { background: var(--charcoal); color: #fff; }
.btn.dark:hover { background: var(--charcoal-deep); }

/* ---------- Layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 72px 28px; }
.wrap.narrow { max-width: 780px; }
.wrap.tight { padding-top: 52px; }

.kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cedar);
  margin-bottom: 10px;
}
.section-title { font-size: 1.75rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.section-sub { color: var(--muted); max-width: 620px; margin-bottom: 40px; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 28px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: #cfcfc7; box-shadow: 0 4px 18px rgba(30,34,34,.06); }
.card h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.card a.more { font-size: .93rem; font-weight: 600; text-decoration: none; }
.card a.more:hover { text-decoration: underline; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; margin: 8px 0 12px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 30px 62px;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px; top: 44px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--cedar);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: .88rem;
}
.steps li strong { display: block; font-family: "Manrope", sans-serif; font-weight: 700; margin-bottom: 3px; }
.steps li span { color: var(--muted); font-size: .95rem; }

/* ---------- Notices ---------- */
.notice {
  background: #faf6f1;
  border: 1px solid #ecdcc9;
  border-left: 3px solid var(--cedar);
  padding: 16px 20px;
  border-radius: 6px;
  font-size: .93rem;
  color: #4a4640;
  margin: 26px 0;
}
.notice strong { color: var(--ink); }

/* ---------- Forms ---------- */
form.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 34px;
}
@media (max-width: 560px) { form.contact-form { padding: 26px 20px; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .89rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d4d4cd;
  border-radius: 6px;
  font-family: inherit;
  font-size: .97rem;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cedar);
  box-shadow: 0 0 0 3px rgba(162,82,44,.14);
}
.field input[type="file"] { font-size: .92rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.radio-row label { font-weight: 400; display: inline-flex; align-items: center; gap: 7px; margin: 4px 24px 4px 0; font-size: .95rem; }
.radio-row input { accent-color: var(--cedar); }
.form-footnote { margin-top: 14px; color: var(--muted); font-size: .84rem; }

/* ---------- Payments table ---------- */
.pay-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.pay-table th, .pay-table td { text-align: left; padding: 16px 22px; vertical-align: top; }
.pay-table th {
  background: var(--bg-alt);
  font-family: "Manrope", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.pay-table td { border-bottom: 1px solid var(--line); font-size: .95rem; color: #3c4341; }
.pay-table tr:last-child td { border-bottom: none; }
.pay-table td strong { color: var(--ink); }

/* ---------- Lock panel (documents) ---------- */
.lock-panel {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 46px 32px;
  text-align: center;
}
.lock-panel h3 { font-weight: 800; margin-bottom: 12px; font-size: 1.2rem; }
.lock-panel p { color: var(--muted); max-width: 500px; margin: 0 auto 26px; font-size: .95rem; }
.code-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.code-row input {
  padding: 12px 16px;
  border: 1px solid #d4d4cd;
  border-radius: 6px;
  font-size: 1rem;
  width: 230px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.code-row input:focus { outline: none; border-color: var(--cedar); box-shadow: 0 0 0 3px rgba(162,82,44,.14); }
.code-error { color: #a03123; font-size: .9rem; margin-top: 12px; display: none; }

/* ---------- Contact band ---------- */
.contact-band { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.contact-band h2 { font-size: 1.45rem; font-weight: 800; margin-bottom: 6px; }
.contact-band p { color: var(--muted); font-size: .95rem; margin: 0; }
.contact-links { display: flex; flex-direction: column; gap: 6px; font-size: .97rem; }

/* ---------- Footer ---------- */
footer { background: var(--charcoal-deep); color: #9aa3a1; }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 28px 42px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  font-size: .9rem;
}
footer a { color: #d4d9d7; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .fbrand { font-family: "Manrope", sans-serif; font-weight: 800; color: #fff; font-size: 1.05rem; }
footer .fbrand small { display: block; font-family: "Inter", sans-serif; font-weight: 600; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: #c98d64; margin-top: 2px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-note { max-width: 1120px; margin: 0 auto; padding: 0 28px 30px; font-size: .8rem; color: #6d7674; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .hero { min-height: 440px; }
  .hero-inner { padding: 56px 20px 60px; }
  .hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }

  .wrap { padding: 46px 20px; }
  .wrap.tight { padding-top: 36px; }
  .page-hero { padding: 40px 20px 44px; }
  .section-title { font-size: 1.45rem; }
  .section-sub { margin-bottom: 28px; }

  .steps li { padding-left: 54px; padding-bottom: 26px; }

  .contact-band .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
  .contact-links { word-break: break-word; }

  form.contact-form button.btn { width: 100%; }

  .code-row { flex-direction: column; align-items: stretch; }
  .code-row input { width: 100%; text-align: center; }

  /* Stack the payments table into readable blocks */
  .pay-table tr:first-child { display: none; }
  .pay-table, .pay-table tbody, .pay-table tr, .pay-table td { display: block; width: 100%; }
  .pay-table td { border-bottom: none; padding: 8px 18px 18px; }
  .pay-table td:first-child {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    padding: 13px 18px 11px;
    font-family: "Manrope", sans-serif;
  }
  .pay-table tr:nth-child(2) td:first-child { border-top: none; }

  .footer-inner { flex-direction: column; padding: 40px 20px 32px; }
}

/* Larger touch targets on any touch device */
@media (hover: none) {
  .site-nav a, .btn, .card a.more { -webkit-tap-highlight-color: rgba(162,82,44,.12); }
}

/* ---------- Admin page ---------- */
.key-display {
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px dashed #c9c3b6;
  border-radius: 8px;
  padding: 16px 20px;
  text-align: center;
}
.key-history { list-style: none; margin: 4px 0 12px; }
.key-history li {
  font-family: Consolas, "Courier New", monospace;
  font-size: .95rem;
  padding: 8px 2px;
  border-bottom: 1px solid var(--bg-alt);
  color: #3c4341;
}
.key-history li.empty { font-family: inherit; color: var(--muted); border-bottom: none; }
