/* ==========================================================================
   Oumirad Global — styles
   ========================================================================== */

:root {
  --ivory: #F7F6F2;
  --navy: #17283B;
  --navy-deep: #112031;
  --slate: #596574;
  --line: #DFE3E6;
  --bronze: #947652;
  --white: #FFFFFF;

  /* Text tones used on navy (contrast-checked against #17283B) */
  --on-navy: #F7F6F2;
  --on-navy-muted: #B9C1CB;
  --line-on-navy: rgba(247, 246, 242, 0.16);

  --error: #A63A2E;
  --error-on-navy: #F2B8AE;
  --success: #2F6B4F;

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Baskervville", "Libre Baskerville", Baskerville, Georgia, "Times New Roman", serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(80px, 11vw, 144px);
  --header-h: 72px;

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur: 220ms;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

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

::selection { background: var(--navy); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 2px;
}
.section-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--on-navy); }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--ivory);
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.6em 1.25em;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 500 0.9375rem/1.2 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn-primary {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-deep);
  box-shadow: inset 0 -2px 0 var(--bronze);
}

.section-dark .btn-primary {
  background: var(--ivory);
  color: var(--navy);
  border-color: var(--ivory);
}
.section-dark .btn-primary:hover { background: var(--white); }

.btn-lg {
  min-height: 52px;
  padding: 0.8em 1.6em;
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 44px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  background-image: linear-gradient(var(--bronze), var(--bronze));
  background-size: 0% 1px;
  background-position: 0 calc(100% - 10px);
  background-repeat: no-repeat;
  transition: background-size var(--dur) var(--ease);
}
.text-link:hover { background-size: 100% 1px; }
.text-link span { transition: transform var(--dur) var(--ease); }
.text-link:hover span { transform: translateY(2px); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-list a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.nav-list a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-list a:not(.btn):hover::after,
.nav-list a[aria-current="true"]::after { transform: scaleX(1); }

.nav-cta-mobile { display: none; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 10px;
  margin-right: -4px;
  background: none;
  border: 0;
  color: var(--navy);
  font: 500 0.9375rem var(--sans);
  cursor: pointer;
}
.menu-toggle-icon {
  position: relative;
  width: 22px; height: 12px;
}
.menu-toggle-icon span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.menu-toggle-icon span:first-child { top: 0; }
.menu-toggle-icon span:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child { top: 5px; transform: rotate(-45deg); }

/* ---------- Shared section styles ---------- */

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}
.section-dark {
  background: var(--navy);
  color: var(--on-navy);
  border-top-color: var(--navy);
}

.eyebrow,
.section-index {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow::before,
.section-index::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--bronze);
  flex: none;
}
.section-dark .section-index { color: var(--on-navy-muted); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-bottom: clamp(48px, 7vw, 88px);
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 3fr 9fr;
    gap: 48px;
  }
  .section-head .section-index { padding-top: 0.9em; }
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 20ch;
  text-wrap: balance;
}

.section-intro {
  margin-top: 24px;
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.65;
  color: var(--slate);
}
.section-dark .section-intro { color: var(--on-navy-muted); }

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

.hero {
  padding-top: clamp(64px, 12vw, 152px);
  padding-bottom: clamp(72px, 11vw, 136px);
}
.hero .eyebrow { margin-bottom: clamp(28px, 4vw, 40px); }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.2rem + 6vw, 5.75rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 21ch;
  text-wrap: balance;
}
.hero-title-line { display: block; color: var(--slate); }

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .hero-foot {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
    align-items: end;
  }
}

.hero-lede {
  max-width: 58ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.65;
  color: var(--slate);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
@media (min-width: 900px) { .hero-actions { justify-content: flex-end; } }

/* ---------- Expertise ---------- */

.service-list { border-top: 1px solid var(--navy); }

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-block: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .service {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 24px;
  }
  .service-areas { grid-column: 2; }
}
@media (min-width: 1000px) {
  .service {
    grid-template-columns: 3fr 5fr 4fr;
    column-gap: 48px;
  }
  .service-areas { grid-column: auto; }
}

.service-num {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--bronze);
  font-variant-numeric: lining-nums;
}

.service-title {
  font-family: var(--sans);
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.service-main p {
  max-width: 54ch;
  color: var(--slate);
}

.areas-label {
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.service-areas li {
  position: relative;
  padding: 9px 0 9px 20px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--navy);
  border-top: 1px solid var(--line);
}
.service-areas li:last-child { border-bottom: 1px solid var(--line); }
.service-areas li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.15em;
  width: 8px; height: 1px;
  background: var(--bronze);
}
@media (min-width: 1000px) {
  .service-areas { padding-top: 6px; }
}

/* ---------- Who I work with ---------- */

.situations {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line-on-navy);
}
@media (min-width: 900px) {
  .situations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.situation {
  padding: 32px 0 8px;
  border-bottom: 1px solid var(--line-on-navy);
}
@media (min-width: 900px) {
  .situation {
    padding: 40px 40px 12px 0;
    border-bottom: 0;
  }
  .situation + .situation {
    padding-left: 40px;
    border-left: 1px solid var(--line-on-navy);
  }
}
.situation:last-child { border-bottom: 0; }

.situation-title {
  position: relative;
  margin-bottom: 14px;
  padding-top: 20px;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--on-navy);
}
.situation-title::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 1px;
  background: var(--bronze);
}
.situation p {
  color: var(--on-navy-muted);
  max-width: 42ch;
  padding-bottom: 24px;
}

/* ---------- Approach ---------- */

.stages {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  counter-reset: stage;
}
@media (min-width: 900px) {
  .stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
  }
}

.stage {
  padding-block: 32px;
  border-top: 1px solid var(--navy);
}
.stage + .stage { border-top-color: var(--line); }
@media (min-width: 900px) {
  .stage + .stage { border-top-color: var(--navy); }
}

.stage-num {
  display: block;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--bronze);
}
.stage-title {
  margin-bottom: 12px;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
}
.stage p { color: var(--slate); max-width: 44ch; }

.approach-close {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  line-height: 1.45;
  max-width: 44ch;
}

/* ---------- Founder ---------- */

.founder {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.founder::before {
  /* Restrained background treatment: a pale wash from white to ivory */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--ivory) 100%);
  pointer-events: none;
}

.founder-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
@media (min-width: 900px) {
  .founder-grid {
    grid-template-columns: 5fr 7fr;
    gap: 80px;
  }
}

.founder-head .section-index { margin-bottom: 28px; }
.founder-title {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  max-width: 14ch;
}
.founder-title .nowrap-md { display: inline; }

.founder-body {
  max-width: 62ch;
  padding-top: 4px;
}
@media (min-width: 900px) { .founder-body { padding-top: 56px; } }
.founder-body p + p { margin-top: 1.25em; }
.founder-body p { color: var(--slate); }
.founder-lead {
  font-family: var(--serif);
  font-size: clamp(1.3125rem, 1.1rem + 0.8vw, 1.6875rem);
  line-height: 1.5;
  color: var(--navy) !important;
  padding-bottom: 1.25em;
  margin-bottom: 1.25em;
  border-bottom: 1px solid var(--line);
}
.founder-lead + p { margin-top: 0 !important; }

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
@media (min-width: 980px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: start;
  }
  .contact-intro { position: sticky; top: calc(var(--header-h) + 40px); }
}
.contact-intro .section-index { margin-bottom: 28px; }

.form-panel {
  background: var(--ivory);
  color: var(--navy);
  padding: clamp(24px, 4vw, 48px);
  border-radius: 2px;
}

.field + .field { margin-top: 24px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.req { color: var(--slate); }

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font: 400 1rem/1.5 var(--sans); /* 16px prevents zoom on iOS */
  color: var(--navy);
  background: var(--white);
  border: 1px solid #C9CFD5;
  border-radius: 2px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder,
.field textarea::placeholder { color: #7A8491; opacity: 1; }
.field input:hover,
.field textarea:hover { border-color: var(--slate); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(148, 118, 82, 0.35);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(166, 58, 46, 0.22); }

.field-error {
  min-height: 0;
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--error);
}
.field-error:empty { display: none; }

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

.form-note {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--slate);
}
.form-note a { color: var(--navy); }

.btn-submit {
  margin-top: 24px;
  width: 100%;
}
@media (min-width: 560px) { .btn-submit { width: auto; } }
/* The submit button sits on the ivory panel, so it stays navy */
.section-dark .form-panel .btn-primary {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}
.section-dark .form-panel .btn-primary:hover {
  background: var(--navy-deep);
  box-shadow: inset 0 -2px 0 var(--bronze);
}
.btn-submit[aria-busy="true"] { cursor: progress; opacity: 0.8; }

.form-status {
  margin-top: 20px;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.form-status:empty { display: none; }
.form-status:focus { outline: none; }
.form-status.is-success,
.form-status.is-error {
  padding: 14px 16px;
  border-left: 2px solid;
  background: var(--white);
}
.form-status.is-success { border-color: var(--success); color: var(--success); }
.form-status.is-error { border-color: var(--error); color: var(--error); }

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

.site-footer {
  background: var(--navy);
  color: var(--on-navy-muted);
  border-top: 1px solid var(--line-on-navy);
  padding-block: 56px 40px;
  font-size: 0.9375rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end;
  }
  .footer-meta { text-align: right; }
}
.wordmark-footer {
  color: var(--on-navy);
  font-size: 1.5rem;
  margin: 0 0 12px;
}
.footer-tagline { max-width: 40ch; }

.company-details dd { margin: 0; }
.company-details > div + div { margin-top: 2px; }
.company-details a,
.footer-links a {
  color: var(--on-navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.company-details a:hover,
.footer-links a:hover { border-bottom-color: var(--bronze); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 16px;
}
@media (min-width: 900px) { .footer-links { justify-content: flex-end; } }
.footer-links a {
  display: inline-block;
  padding-block: 6px;
}
.copyright {
  margin-top: 16px;
  font-size: 0.8125rem;
}

/* ---------- Reveal transitions ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Mobile navigation ---------- */

@media (max-width: 899px) {
  :root { --header-h: 64px; }

  .btn-header { display: none; }
  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(23, 40, 59, 0.25);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a:not(.btn) {
    display: block;
    padding: 16px 0;
    font-size: 1.0625rem;
  }
  .nav-list a:not(.btn)::after { display: none; }
  .nav-cta-mobile {
    display: block;
    border-bottom: 0 !important;
    padding-top: 24px;
  }
  .nav-cta-mobile .btn { width: 100%; min-height: 52px; }
}

@media (max-width: 380px) {
  .wordmark { font-size: 1.25rem; }
}

/* ---------- Reduced motion ---------- */

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

/* ---------- Print ---------- */

@media print {
  .site-header, .form-panel, .skip-link { display: none; }
  .section-dark, .site-footer { background: none; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
