/* Rehoboth Immigration Services — site styles (orange, red & white) */

:root {
  --ink: #2b0f12;
  --ink-soft: #4a2a2c;
  --muted: #74585a;
  --red: #d62828;
  --red-deep: #9d0208;
  --wine: #6a040f;
  --orange: #f77f00;
  --orange-red: #e85d04;
  --amber: #ffb703;
  --white: #ffffff;
  --peach: #fff3ea;
  --blush: #fff8f3;
  --line: #f1dcd2;
  --focus: #111111;

  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --stripe: linear-gradient(90deg, var(--red-deep) 0 25%, var(--red) 25% 50%, var(--orange-red) 50% 75%, var(--orange) 75% 100%);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px var(--white); }

h1, h2, h3 { margin: 0; font-weight: 400; color: var(--ink); }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1.05rem/1.2 var(--font-body);
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 6px 18px -8px rgba(214, 40, 40, .8); }
.btn-primary:hover { background: var(--red-deep); color: var(--white); }
.btn-light { background: var(--white); color: var(--red); box-shadow: 0 8px 22px -10px rgba(60, 0, 0, .55); }
.btn-light:hover { background: var(--peach); color: var(--red-deep); }
.btn-ghost-light { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: var(--white); border-color: var(--white); }
.btn-outline { border-color: var(--red); color: var(--red); background: var(--white); }
.btn-outline:hover { background: var(--peach); color: var(--red-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header::before { content: ""; display: block; height: 5px; background: var(--stripe); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 41px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: .005em; }
.brand-sub { font-size: .82rem; color: var(--muted); margin-top: 5px; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; }
.nav a:not(.btn):hover { color: var(--red); text-decoration: underline; }
.nav .btn { min-height: 46px; padding: 10px 20px; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 183, 3, .55), transparent 40%),
    radial-gradient(circle at 4% 100%, rgba(106, 4, 15, .55), transparent 42%),
    linear-gradient(135deg, var(--red-deep) 0%, var(--red) 45%, var(--orange) 100%);
  color: var(--white);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: center; }

.hero h1 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6.6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.012em;
  max-width: 12ch;
  text-shadow: 0 2px 24px rgba(80, 0, 0, .25);
}
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-where { margin-top: 24px; display: flex; align-items: center; gap: 8px; font-size: 1rem; color: #ffe6d6; }
.hero-where svg { width: 18px; height: 18px; flex: none; color: var(--white); }

/* Passport page covered in stamps */
.passport {
  position: relative;
  aspect-ratio: 360 / 460;
  width: 100%; max-width: 410px; justify-self: end;
  background: #fffaf5;
  border-radius: 18px;
  transform: rotate(2.5deg);
  box-shadow: 0 30px 60px -28px rgba(60, 0, 0, .8), 0 0 0 6px rgba(255,255,255,.18);
  overflow: hidden;
}
.passport-waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.passport-waves path { fill: none; stroke: var(--orange); stroke-width: .9; opacity: .28; }
.passport-fold { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(43,15,18,.1); }

.stamp {
  position: absolute;
  mix-blend-mode: multiply;
  opacity: .92;
  transform: rotate(var(--r));
  animation: stamp-press .45s cubic-bezier(.2, .9, .3, 1.2) both;
}
.stamp text { fill: currentColor; font-family: var(--font-body); font-weight: 700; }
.stamp .stamp-word { font-family: var(--font-display); font-weight: 400; }

.stamp-green   { color: var(--orange);     width: 48%; left: 47%; top: 5%;  --r: 7deg;   animation-delay: .25s; }
.stamp-welcome { color: var(--red);        width: 58%; left: 18%; top: 27%; --r: -9deg;  animation-delay: .5s; }
.stamp-visa    { color: var(--red-deep);   width: 46%; left: 5%;  top: 68%; --r: -11deg; animation-delay: .75s; }
.stamp-citizen { color: var(--orange-red); width: 32%; left: 62%; top: 66%; --r: 12deg;  animation-delay: 1s; }

@keyframes stamp-press {
  0%   { transform: scale(1.35) rotate(calc(var(--r) - 8deg)); opacity: 0; }
  60%  { opacity: .95; }
  100% { transform: scale(1) rotate(var(--r)); opacity: .92; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-head { max-width: 640px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.06; letter-spacing: -.01em; }
.section-head h2::after { content: ""; display: block; width: 84px; height: 6px; margin-top: 18px; border-radius: 3px; background: var(--stripe); }

/* Services: alternating red and orange rows */
.c-1 { --c: #d62828; --c-tint: #fdeaea; --c-ink: #8f1218; }
.c-2 { --c: #f77f00; --c-tint: #fff0df; --c-ink: #8a4300; }
.c-3 { --c: #9d0208; --c-tint: #f9e3e4; --c-ink: #6a0105; }
.c-4 { --c: #e85d04; --c-tint: #fdeadf; --c-ink: #8a3500; }
.c-5 { --c: #f48c06; --c-tint: #fff2df; --c-ink: #7f4600; }

.service-list { margin: clamp(32px, 5vw, 52px) 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 14px 40px; padding: 24px 26px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--c-tint), rgba(255,255,255,0) 75%);
  border-left: 6px solid var(--c);
}
.service-title { display: flex; align-items: center; gap: 16px; }
.service-icon {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--c); color: var(--white);
}
.service-icon svg { width: 26px; height: 26px; }
.service h3 { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.25; }
.service-body p { color: var(--ink-soft); }
.forms { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.forms li {
  background: var(--white); color: var(--c-ink);
  border: 1.5px solid var(--c);
  border-radius: 999px; padding: 3px 12px;
  font-size: .9rem; font-weight: 700; letter-spacing: .01em;
}
.services-note { margin-top: 30px; font-size: 1.1rem; }
.services-note a { font-weight: 700; }

/* Steps */
.steps-section { background: var(--peach); }
.steps { margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 72px; --dot: var(--red); }
.step:nth-child(2) { --dot: var(--orange); }
.step:nth-child(3) { --dot: var(--red-deep); }
.step:nth-child(4) { --dot: var(--orange-red); }
.step::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--dot); color: var(--white);
  font: 400 1.6rem/1 var(--font-display);
  box-shadow: 0 8px 18px -10px var(--dot);
}
.step::after { content: ""; position: absolute; top: 26px; left: 66px; right: -20px; border-top: 3px dotted #f0b896; }
.step:last-child::after { display: none; }
.step h3 { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.25; }
.step p { margin-top: 10px; color: var(--ink-soft); font-size: 1.05rem; }

/* About / name meaning */
.about {
  background:
    radial-gradient(circle at 92% 8%, rgba(247, 127, 0, .45), transparent 42%),
    var(--red-deep);
  color: var(--white);
}
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.verse { margin: 0; border-left: 4px solid var(--amber); padding-left: clamp(18px, 3vw, 32px); }
.verse p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.3; color: var(--white); }
.verse cite { display: block; margin-top: 16px; font-style: normal; font-size: 1rem; color: #ffd3bd; }
.about-copy h2 { color: var(--white); font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1; }
.about-copy p { margin-top: 16px; color: #ffe9de; }

/* Contact */
.contact {
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 183, 3, .4), transparent 40%),
    linear-gradient(135deg, var(--wine) 0%, var(--red) 60%, var(--orange) 100%);
  color: var(--white);
}
.contact h2 { color: var(--white); font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.06; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.contact-lede { margin-top: 16px; color: #ffe6d6; font-size: 1.15rem; max-width: 38ch; }
.contact-phone { display: inline-block; margin-top: 28px; font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--white); text-decoration: none; }
.contact-phone:hover { color: #ffe6d6; text-decoration: underline; text-decoration-thickness: 2px; }
.contact-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); padding: 26px 28px; }
.contact-card dl { margin: 0; display: grid; gap: 18px; }
.contact-card dt { font-size: .9rem; color: #ffd3bd; }
.contact-card dd { margin: 4px 0 0; font-size: 1.15rem; }
.contact-card a { color: var(--white); }
.contact-card a:hover { color: #ffe6d6; }

/* Footer */
.site-footer { padding-block: 40px 48px; font-size: .95rem; color: var(--muted); background: var(--blush); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-top .brand-name { font-size: 1.35rem; }
.copyright { margin-top: 24px; }

/* Mobile call bar */
.callbar { display: none; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.notfound h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.6rem); }
.notfound p { margin-top: 14px; color: var(--muted); }
.notfound .btn { margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .step:nth-child(2n)::after { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 1.0625rem; padding-bottom: 76px; }
  .nav a:not(.btn) { display: none; }
  .nav .btn-label { display: none; }
  .nav .btn { min-height: 48px; width: 48px; padding: 0; }
  .header-row { min-height: 68px; }
  .brand-name { font-size: 1.5rem; }
  .brand-mark { width: 30px; height: 36px; }

  .hero-grid { grid-template-columns: 1fr; }
  .passport { justify-self: center; max-width: 330px; margin-top: 12px; }
  .hero-actions .btn { flex: 1 1 auto; }

  .service { grid-template-columns: 1fr; padding: 20px 18px; }
  .service h3 { font-size: 1.28rem; }
  .service-icon { width: 46px; height: 46px; border-radius: 12px; }

  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding-top: 0; padding-left: 72px; min-height: 54px; }
  .step::after { display: none; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-actions .btn { flex: 1 1 auto; }

  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgba(60,0,0,.4);
  }
  .callbar .btn { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp { animation: none; }
  .btn { transition: none; }
}

@media print {
  .site-header, .callbar, .hero-actions, .contact-actions { display: none !important; }
  .hero, .about, .contact { background: none; color: var(--ink); }
  .hero h1, .about-copy h2, .verse p, .contact h2, .contact-phone, .contact-card a { color: var(--ink); }
}
