/* ============================================================
   Isif Ibrahima — Mortgage Agent
   Design tokens
   ============================================================ */
:root {
  --paper:      #FAF8F4;   /* warm off-white background        */
  --paper-2:    #F2EBE0;   /* alt section (cream)              */
  --card:       #FFFFFF;
  --ink:        #17262B;   /* primary text                     */
  --ink-soft:   #4C5A5E;   /* secondary text                   */
  --pine:       #1E3D34;   /* brand deep green                 */
  --pine-700:   #142B24;
  --pine-100:   #DCE7E2;
  --gold:       #B8863B;   /* accent (muted gold)              */
  --gold-soft:  #E7D4B4;
  --line:       rgba(23, 38, 43, .12);
  --line-soft:  rgba(23, 38, 43, .07);

  --radius:     18px;
  --radius-sm:  12px;
  --shadow-sm:  0 1px 2px rgba(16, 40, 40, .06);
  --shadow-md:  0 10px 30px -12px rgba(16, 40, 40, .22);
  --shadow-lg:  0 30px 60px -24px rgba(16, 40, 40, .34);

  --font-sans:  "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;

  --container:  1120px;
  --gutter:     clamp(20px, 5vw, 40px);
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}

::selection { background: var(--gold-soft); color: var(--pine-700); }

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--pine);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-alt { background: var(--paper-2); }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-head.center { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 54px; }

.accent { color: var(--pine); font-style: italic; }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--pine);
  background: var(--pine);
  color: var(--paper);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--pine-700); border-color: var(--pine-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--pine);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--pine); color: var(--paper); border-color: var(--pine); }

.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(var(--shadow-sm)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.brand-role { font-size: .74rem; letter-spacing: .04em; color: var(--ink-soft); text-transform: uppercase; }

.nav-menu {
  list-style: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-menu a:not(.btn) {
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav-menu a:not(.btn):hover { color: var(--pine); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px);
  background:
    radial-gradient(1100px 520px at 78% -8%, var(--pine-100), transparent 60%),
    radial-gradient(760px 420px at 0% 108%, #EFE7D8, transparent 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  margin-block: 18px 22px;
}
.hero .lede { max-width: 46ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-block: 32px 26px;
}
.hero-trust {
  font-size: .86rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.hero-trust .dot { color: var(--gold); }

/* Portrait */
.hero-portrait { display: grid; place-items: center; }
.portrait-frame { position: relative; width: min(360px, 82vw); }
.portrait-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 220px 220px 22px 22px;
  box-shadow: var(--shadow-lg);
  background: var(--pine-100);
}
.portrait-badge {
  position: absolute;
  right: -14px;
  bottom: 26px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.portrait-badge-num { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; color: var(--pine); }
.portrait-badge-label { font-size: .72rem; color: var(--ink-soft); }

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about-grid .section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.about-body p + p { margin-top: 18px; }
.about-body p { color: var(--ink-soft); font-size: 1.06rem; }
.about-points {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.about-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--ink);
}
.about-points span {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pine-100);
  color: var(--pine);
  font-size: .8rem;
  font-weight: 700;
}

/* ============================================================
   Services — split ledger
   ============================================================ */
.ledger {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.ledger-intro h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  text-wrap: balance;
  margin: 0 0 20px;
}
.ledger-lede { color: var(--ink-soft); font-size: 1.06rem; max-width: 32ch; }

.ledger-list { list-style: none; margin: 0; padding: 0; }
.ledger-item {
  padding: 28px 0;
  border-top: 1px solid rgba(30, 61, 52, .16);
}
.ledger-item:first-child { border-top: 0; padding-top: 4px; }

.ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.ledger-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.75rem);   /* up to ~28px */
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--pine);
}
.ledger-num {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: .95rem;
  letter-spacing: .08em;
  color: var(--gold);
  font-feature-settings: "tnum" 1;
}
.ledger-desc {
  margin-top: 9px;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.5;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.contact-intro h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 16px; text-wrap: balance; }
.contact-intro .about-points { margin-top: 30px; }

/* Direct contact — same un-carded, typographic language as the services ledger */
.contact-directory { display: grid; }
.contact-line {
  display: block;
  padding: 24px 0;
  border-top: 1px solid rgba(30, 61, 52, .16);
}
.contact-line:first-child { border-top: 0; padding-top: 0; }
.contact-line-label {
  display: block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.contact-line-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  color: var(--pine);
  transition: color .16s ease;
}
.contact-line:hover .contact-line-value,
.contact-line:focus-visible .contact-line-value { color: var(--gold); }
.contact-availability {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(30, 61, 52, .16);
  font-size: .92rem;
  color: var(--ink-soft);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--pine);
  color: var(--pine-100);
  padding-block: 48px 30px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-family: var(--font-serif); font-size: 1.15rem; color: var(--paper); font-weight: 600; }
.footer-role { font-size: .84rem; color: var(--pine-100); opacity: .85; }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { font-size: .95rem; color: var(--pine-100); transition: color .15s ease; }
.footer-nav a:hover { color: var(--gold-soft); }

.footer-legal { margin-top: 26px; }
.footer-legal p { font-size: .8rem; color: var(--pine-100); opacity: .78; max-width: 76ch; }
.footer-copy { margin-top: 14px; }

/* ============================================================
   Scroll reveal (progressive enhancement)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.js-off .reveal { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-frame { width: min(320px, 74vw); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 48px); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  /* Phones: lead with the message; the hero photo shows on tablet/desktop only. */
  .hero-portrait { display: none; }
  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: var(--gutter);
    left: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px;
    box-shadow: var(--shadow-lg);
    transform-origin: top;
    transform: scaleY(.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu li { width: 100%; }
  .nav-menu a:not(.btn) { display: block; padding: 10px 8px; }
  .nav-menu .btn { width: 100%; margin-top: 4px; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
