/* ==========================================================================
   Farah Finances — Design Tokens
   ========================================================================== */

:root {
  /* Color */
  --navy-900: #142642;
  --navy-800: #1a3050;
  --navy-700: #1f3a5f;
  --blue-500: #3b6ea5;
  --blue-100: #e8f0f8;
  --gold-500: #b08d57;
  --gold-600: #96754a;
  --paper: #f6f8fa;
  --white: #ffffff;
  --ink: #16202b;
  --ink-soft: #4a5764;
  --line: #dce3eb;
  --line-strong: #c3cdd8;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1120px;
  --radius: 4px;
  --shadow-soft: 0 2px 24px rgba(20, 38, 66, 0.08);
  --shadow-lift: 0 12px 40px rgba(20, 38, 66, 0.14);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-500);
  display: inline-block;
}

/* Ledger rule — the signature motif: a thin gold line that draws itself in */
.ledger-rule {
  height: 2px;
  background: var(--gold-500);
  width: 0;
  animation: drawRule 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}

@keyframes drawRule {
  to { width: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .ledger-rule { width: 72px; animation: none; }
}

/* Faint ledger-paper texture used behind hero/section backgrounds */
.ledger-texture {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 35px,
    rgba(255, 255, 255, 0.045) 35px,
    rgba(255, 255, 255, 0.045) 36px
  );
}

.ledger-texture-dark {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 35px,
    rgba(20, 38, 66, 0.05) 35px,
    rgba(20, 38, 66, 0.05) 36px
  );
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gold-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line-strong);
}

.btn-outline-dark:hover {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-500);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--navy-900);
  line-height: 1.1;
}

.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy-900);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-500);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-cta .btn {
  padding: 10px 20px;
  font-size: 14px;
  background: var(--navy-900);
  color: var(--white);
}

.nav-cta .btn:hover {
  background: var(--navy-800);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 28px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mobile-panel a {
  padding: 14px 4px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-panel a[aria-current="page"] { color: var(--gold-600); }

.mobile-panel .btn { margin-top: 16px; align-self: flex-start; }

body.nav-open .mobile-panel { display: flex; }

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn.desktop-only { display: none; }
  .nav-toggle { display: flex; }
}

@media (min-width: 881px) {
  .mobile-panel { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: linear-gradient(165deg, var(--navy-900), var(--navy-700) 78%);
  color: var(--white);
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 720px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(38px, 5.4vw, 62px);
  margin: 22px 0 26px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-500);
}

.hero p.lede {
  font-size: 18.5px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--gold-500);
  font-variant-numeric: tabular-nums;
}

.hero-stat .label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.page-hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 64px 0 56px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(32px, 4.4vw, 46px);
  margin-top: 18px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin-top: 16px;
  font-size: 16.5px;
}

/* ==========================================================================
   Sections / generic layout
   ========================================================================== */

section { padding: 88px 0; }

.section-tight { padding: 64px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-top: 18px;
}

.section-head p {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--ink-soft);
}

.bg-white { background: var(--white); }
.bg-navy { background: var(--navy-900); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

.divider {
  border: none;
  border-top: 1px solid var(--line);
}

/* Grid helpers */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.card .icon-tick {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 17px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* Process steps (a real sequence — numbering is earned here) */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}

.process-step {
  counter-increment: step;
  padding: 0 24px 0 0;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  position: relative;
}

.process-step:first-child { border-left: none; padding-left: 0; }

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold-600);
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.process-step h4 { font-size: 16.5px; margin-bottom: 8px; }
.process-step p { font-size: 14.5px; color: var(--ink-soft); }

@media (max-width: 880px) {
  .process-list { grid-template-columns: 1fr; gap: 32px; }
  .process-step { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .process-step:first-child { border-top: none; padding-top: 0; }
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--navy-900);
  line-height: 1.4;
  font-weight: 500;
  border-left: 2px solid var(--gold-500);
  padding-left: 28px;
}

/* Portrait placeholder (no photo yet — a designed monogram block) */
.portrait-block {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portrait-block .monogram {
  font-family: var(--font-display);
  font-size: 96px;
  color: rgba(176, 141, 87, 0.9);
}

.portrait-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom, transparent, transparent 35px,
    rgba(255,255,255,0.05) 35px, rgba(255,255,255,0.05) 36px
  );
}

/* CTA banner */
.cta-banner {
  background: var(--navy-900);
  color: var(--white);
  border-radius: 6px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h3 {
  color: var(--white);
  font-size: clamp(24px, 3vw, 30px);
  max-width: 480px;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 44px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.field .hint {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-left: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
  outline: none;
}

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

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 620px) {
  .check-grid { grid-template-columns: 1fr; }
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14.5px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.check-item:has(input:checked) {
  border-color: var(--gold-500);
  background: #fdf9f3;
}

.check-item input { accent-color: var(--gold-600); width: 16px; height: 16px; }

.radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.radio-pill {
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.radio-pill:has(input:checked) {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
}

.radio-pill input { accent-color: var(--gold-500); }

.form-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy-900);
  margin: 8px 0 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-section-title:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.form-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 18px;
}

.form-status {
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 500;
  display: none;
}

.form-status.visible { display: block; }

.form-status.success { color: #2a6b45; }
.form-status.error { color: #b3413a; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card:last-child { border-bottom: none; }

.contact-card .ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card h4 { font-size: 15px; margin-bottom: 4px; }
.contact-card a, .contact-card p { color: var(--ink-soft); font-size: 15px; }
.contact-card a:hover { color: var(--navy-900); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand .brand-text { color: var(--white); }
.footer-brand .brand-text span { color: rgba(255, 255, 255, 0.55); }

.footer-grid p { font-size: 14px; margin-top: 16px; max-width: 320px; color: rgba(255, 255, 255, 0.6); }

.footer-col h5 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  padding: 7px 0;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--gold-500); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.mt-0 { margin-top: 0 !important; }
