/* Robin Forge Ventures — site styles
   Palette: iron and steel greys from the logo's metal, ember orange from the
   robin's breast. Headings in a slab serif (Bitter) for a forged, sturdy feel;
   body in Inter for readability. */

:root {
  --iron: #1d2124;
  --charcoal: #2a2f33;
  --steel: #3a4046;
  --steel-light: #5b6268;
  --ash: #f4f3ef;
  --paper: #fffdf9;
  --text: #1f2326;
  --muted: #5b6268;
  --ember: #c8541c;
  --ember-hot: #e8732e;
  --glow: #f3a15c;
  --border: #dcd9d2;
  --heading: "Bitter", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  line-height: 1.65;
  color: var(--text);
  background: var(--ash);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--heading); letter-spacing: -0.01em; }

a { color: var(--ember); }
a:hover { color: var(--ember-hot); }

:focus-visible {
  outline: 3px solid var(--ember-hot);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--iron);
  color: #fff;
  border-radius: 6px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

header {
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img { width: 44px; height: 44px; }

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--steel);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

nav a:hover { color: var(--ember); border-bottom-color: var(--ember); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: #eef0f1;
  background: radial-gradient(ellipse at 50% 30%, #4b525a 0%, var(--steel) 40%, var(--iron) 100%);
  padding: 84px 0 88px;
  text-align: center;
  overflow: hidden;
}

/* Hammered-steel grain: an inline SVG noise filter, no image to load. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
}

/* Ember glow rising from the forge floor. */
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -220px;
  width: 900px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(232, 115, 46, 0.42) 0%, rgba(200, 84, 28, 0.18) 35%, transparent 70%);
  pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero img {
  display: block;
  width: 190px;
  height: 190px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 40px rgba(232, 115, 46, 0.25));
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 14px;
}

.hero .eyebrow { color: var(--glow); }

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 18px;
  color: #fff;
}

.hero p {
  font-size: 1.2rem;
  color: #c9cdd1;
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.button {
  display: inline-block;
  padding: 13px 30px;
  border: 2px solid var(--ember);
  border-radius: 6px;
  background: var(--ember);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.button:hover { background: var(--ember-hot); border-color: var(--ember-hot); color: #fff; }
.button[disabled] { opacity: 0.6; cursor: default; }

.button.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }

/* A thin band of heated metal between the hero and the page. */
.heat-line {
  height: 4px;
  background: linear-gradient(90deg, var(--iron) 0%, var(--ember) 30%, var(--glow) 50%, var(--ember) 70%, var(--iron) 100%);
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }

section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--steel);
  margin: 0 0 18px;
  line-height: 1.2;
}

.lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; margin: 0 0 8px; }

.alt { background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

/* "The name" plate: a quote stamped into a steel panel. */
.plate {
  background: linear-gradient(160deg, #3f464c 0%, var(--charcoal) 60%, var(--iron) 100%);
  color: #e6e8ea;
  border-radius: 10px;
  padding: 36px 32px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.plate::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 0;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--ember), var(--glow));
  border-radius: 0 0 3px 3px;
}

.plate p {
  font-family: var(--heading);
  font-size: 1.45rem;
  line-height: 1.35;
  margin: 0 0 12px;
}

.plate small { color: #9aa0a6; font-size: 0.9rem; }

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--steel);
  border-radius: 8px;
  padding: 24px 22px 22px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.alt .card { background: var(--ash); }

.card:hover {
  transform: translateY(-2px);
  border-top-color: var(--ember);
  box-shadow: 0 14px 30px -18px rgba(29, 33, 36, 0.5);
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(200, 84, 28, 0.1);
  color: var(--ember);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card .icon svg { width: 22px; height: 22px; }

.card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--steel); }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Commitments: a checklist, not more cards. */

.promises {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px 36px;
}

.promises li {
  position: relative;
  padding-left: 36px;
}

.promises li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ember);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 16px no-repeat, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 16px no-repeat, linear-gradient(#000, #000);
  mask-composite: exclude;
}

.promises strong { display: block; color: var(--steel); font-family: var(--heading); font-size: 1.05rem; }
.promises span { color: var(--muted); font-size: 0.97rem; }

/* Numbered steps */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 20px;
}

.steps li {
  counter-increment: step;
  padding: 22px 22px 22px 70px;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--ember-hot), var(--ember));
  color: #fff;
  font-family: var(--heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -4px rgba(200, 84, 28, 0.7);
}

.steps h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--steel); }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  margin-top: 28px;
}

.contact-list { list-style: none; padding: 0; margin: 16px 0 0; }
.contact-list li { margin-bottom: 10px; }

form { display: grid; gap: 16px; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--steel);
  margin-bottom: 6px;
}

label .opt { font-weight: 400; color: var(--muted); }

input, textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
}

input:focus, textarea:focus {
  outline: 2px solid var(--ember);
  outline-offset: 1px;
  border-color: var(--ember);
}

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

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 0; min-height: 1.5em; font-size: 0.95rem; color: var(--muted); }
.form-status.ok { color: #2f6b3a; }
.form-status.err { color: var(--ember); }

.aside h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--steel); }
.aside p { color: var(--muted); margin: 0 0 8px; }

/* ---------- Footer ---------- */

footer {
  background: var(--iron);
  color: #c9cdd1;
  padding: 48px 0 28px;
  font-size: 0.93rem;
  border-top: 4px solid var(--ember);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--heading); font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand img { width: 40px; height: 40px; }

footer h4 { margin: 0 0 12px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glow); }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 8px; }
footer a { color: #e6e8ea; text-decoration: none; }
footer a:hover { color: var(--glow); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #9aa0a6;
  font-size: 0.85rem;
}

/* ---------- Simple pages (privacy, 404) ---------- */

.page { padding: 64px 0 80px; }
.page .container { max-width: 760px; }
.page h1 { font-size: 2.2rem; color: var(--steel); margin: 0 0 8px; }
.page h2 { font-size: 1.3rem; color: var(--steel); margin: 32px 0 10px; }
.page .meta { color: var(--muted); margin: 0 0 28px; }

.notfound { text-align: center; padding: 96px 0 120px; }
.notfound img { display: block; width: 140px; height: 140px; opacity: 0.9; margin: 0 auto 20px; }
.notfound h1 { margin-bottom: 10px; }
.notfound p { color: var(--muted); margin: 0 0 28px; }

/* ---------- Responsive and motion ---------- */

@media (max-width: 800px) {
  .two-col, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { margin-bottom: 24px; }
}

@media (max-width: 700px) {
  .nav { flex-direction: column; }
  nav ul { justify-content: center; row-gap: 6px; gap: 16px; }
  .hero { padding: 56px 0 64px; }
  .hero img { width: 140px; height: 140px; }
  section { padding: 56px 0; }
  .plate { padding: 28px 24px; }
  .plate::before { left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .button { transition: none; }
  .card:hover { transform: none; }
}

/* Footer with only the bottom row (privacy, 404). */
.footer-bottom:first-child { border-top: 0; padding-top: 0; }
