/* ==========================================================================
   Muhammad A Paruk Inc. — site styles
   Brand: navy #001B3D · gold #8A5E1E · cream #F7F5F1
   Type:  Playfair Display (headings) · Carlito (body)
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font Licence) ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("../fonts/carlito-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("../fonts/carlito-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("../fonts/carlito-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #001b3d;
  --navy-soft: #0b2a52;
  --gold: #8a5e1e;
  --gold-bright: #b08443;
  --cream: #f7f5f1;
  --white: #ffffff;
  --on-navy-muted: #d3d9e2;
  --line-on-navy: rgba(255, 255, 255, 0.22);

  --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-body: "Carlito", Calibri, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --container: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 8vw, 104px);
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px;
  text-decoration: none; font-weight: 700; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  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;
}

/* ---------- Typography helpers ---------- */
.heading {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  line-height: 1.2;
  font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.7rem);
}
.heading--gold { color: var(--gold); }
.heading--light { color: var(--white); }
.heading .line { display: block; }

.rule {
  display: block;
  width: 64px; height: 2px;
  background: var(--gold);
  margin: 22px 0 28px;
  border: 0;
}
.rule--center { margin-inline: auto; }

.label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--on-navy-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.95em;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.92rem;
  line-height: 1;
  padding: 0.95em 1.55em 0.95em 1.75em;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 9px; height: 15px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg, .btn:focus-visible svg { transform: translateX(4px); }
.btn--light { background: var(--cream); color: var(--navy); }
.btn--light:hover { background: var(--white); box-shadow: 0 6px 22px rgba(0, 0, 0, .25); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); box-shadow: 0 6px 20px rgba(0, 27, 61, .25); }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 27, 61, 0.08);
  padding-block: clamp(18px, 2.4vw, 28px);
}
.site-header__logo { display: block; width: clamp(170px, 20vw, 230px); margin-inline: auto; }
.site-header--home { padding-block: clamp(40px, 6vw, 72px); border-bottom: 0; }
.site-header--home .site-header__logo { width: clamp(220px, 30vw, 330px); }

.menu-toggle {
  position: absolute; top: clamp(10px, 1.6vw, 18px); right: clamp(10px, 2vw, 24px);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer; color: var(--navy);
  border-radius: 6px;
}
.menu-toggle:hover { background: rgba(0, 27, 61, .05); }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 24px; height: 2.5px; background: currentColor; border-radius: 2px; content: "";
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before { position: absolute; top: -7px; left: 0; }
.menu-toggle__bars::after { position: absolute; top: 7px; left: 0; }

/* ---------- Menu panel ---------- */
.menu-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 10, 25, .55);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.site-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(400px, 88vw);
  background: var(--navy); color: var(--white);
  padding: 84px 36px 36px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s linear .35s;
  display: flex; flex-direction: column;
}
.menu-open .menu-backdrop { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.menu-open .site-menu { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.menu-open { overflow: hidden; }

.menu-close {
  position: absolute; top: 18px; right: 20px;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: transparent; border: 0; color: var(--white); cursor: pointer; border-radius: 6px;
}
.menu-close:hover { background: rgba(255, 255, 255, .08); }
.menu-close svg { width: 20px; height: 20px; }

.site-menu__nav > ul > li { border-bottom: 1px solid var(--line-on-navy); }
.site-menu__nav > ul > li > a,
.site-menu__nav .site-menu__group {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.15em; font-size: 1.02rem;
  padding: 18px 0 18px 14px;
  text-decoration: none; color: var(--white);
  border-left: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.site-menu__nav a:hover { color: var(--gold-bright); }
.site-menu__nav a[aria-current="page"] { border-left-color: var(--gold); }
.site-menu__sub { padding: 0 0 16px 14px; }
.site-menu__sub a {
  display: block; padding: 7px 0 7px 14px;
  text-decoration: none; color: var(--on-navy-muted); font-size: 1rem;
  border-left: 2px solid transparent;
}
.site-menu__sub a[aria-current="page"] { color: var(--white); border-left-color: var(--gold); }
.site-menu__sub .site-menu__group { padding: 0 0 6px; border: 0; }
.site-menu__contact { margin-top: auto; padding-top: 36px; font-size: 1rem; }
.site-menu__contact a { display: flex; align-items: center; gap: 12px; padding: 6px 0; color: var(--white); text-decoration: none; }
.site-menu__contact a:hover { color: var(--gold-bright); }
.site-menu__contact img { width: 22px; height: 22px; object-fit: contain; }

/* ---------- Hero (navy panel with photo on the right) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex; align-items: center;
  min-height: clamp(520px, 56vw, 700px);
  padding-block: clamp(64px, 8vw, 96px);
  background-color: var(--navy);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  color: var(--white);
}
.hero__content { max-width: 34rem; }
.hero__icon { height: 66px; width: auto; margin-bottom: 30px; }
.hero__intro { font-size: 1.12rem; line-height: 1.7; max-width: 27rem; }

.hero--home .hero__content { max-width: 40rem; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
}
.hero__title em { display: block; font-style: italic; }
.hero--home .hero__intro { margin-bottom: 40px; }

.page-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.15;
  font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.55rem);
}
.page-title .line { display: block; }
@media (min-width: 641px) { .page-title .line { white-space: nowrap; } }

.checklist { margin-top: 30px; display: grid; gap: 14px; }
.checklist li {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: center;
  font-size: 1.1rem; line-height: 1.4;
}
.checklist img { width: 22px; height: 22px; }

/* ---------- Home: Our Firm ---------- */
.firm { padding-block: var(--section-y); }
.firm__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.firm__text p { max-width: 27rem; font-size: 1.1rem; margin-bottom: 34px; }
.firm__mark { justify-self: center; width: min(300px, 70%); }

/* ---------- Home: Our Services ---------- */
.services { background: var(--cream); padding-block: var(--section-y); }
.services__head { text-align: center; }
.service-list { max-width: 660px; margin: 8px auto 0; }
.service-list li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: center; }
.service-list__icon { width: 30px; height: 30px; object-fit: contain; justify-self: center; }
.service-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 4px 14px 0;
  border-bottom: 1px solid var(--gold);
  text-decoration: none; color: var(--navy);
  font-size: 1.1rem;
  transition: color .2s var(--ease);
}
.service-list a svg { width: 9px; height: 16px; color: var(--gold); flex: none; transition: transform .25s var(--ease); }
.service-list a:hover { color: var(--gold); }
.service-list a:hover svg { transform: translateX(4px); }

/* ---------- Home: Our Commitment ---------- */
.commitment { background: var(--navy); color: var(--white); padding-block: var(--section-y) calc(var(--section-y) * 0.8); text-align: center; }
.commitment__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
.commitment__item { padding: 6px clamp(14px, 2.4vw, 32px); border-left: 1px solid var(--line-on-navy); }
.commitment__item:first-child { border-left: 0; }
.commitment__icon { height: 30px; width: auto; margin: 0 auto 16px; }
.commitment__item .label { margin-bottom: 12px; }
.commitment__item p { font-size: 1.02rem; line-height: 1.55; max-width: 15rem; margin-inline: auto; }

/* ---------- CTA band ("Let's discuss your matter") ---------- */
.cta { background: var(--navy); color: var(--white); padding-block: clamp(56px, 7vw, 84px); }
.commitment + .cta { border-top: 1px solid rgba(255, 255, 255, .08); }
.cta__grid { display: grid; grid-template-columns: 1fr 1px 1fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.cta__lead { justify-self: end; }
.cta__divider { align-self: stretch; background: var(--gold); width: 1px; }
.cta__lead .rule { margin-block: 26px 24px; }
.cta__link {
  color: var(--white); text-decoration: none; font-size: 1.2rem;
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), color .2s var(--ease);
}
.cta__link:hover { border-bottom-color: var(--gold-bright); }
.contact-lines { display: grid; gap: 14px; }
.contact-lines a {
  display: inline-flex; align-items: center; gap: 16px;
  color: var(--white); text-decoration: none; font-size: 1.15rem; letter-spacing: .02em;
}
.contact-lines a:hover { color: var(--gold-bright); }
.contact-lines img { width: 26px; height: 26px; object-fit: contain; flex: none; }

/* ---------- Footer bar ---------- */
.site-footer { background: var(--white); color: var(--navy); text-align: center; padding: 12px var(--gutter); font-size: 0.88rem; }
.site-footer p { margin: 0; }

/* ---------- Our Story ---------- */
.principal { background: var(--navy); color: var(--white); padding-block: var(--section-y); }
.principal__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 96px); }
.principal__bio p { font-size: 1.06rem; }
.values { border-left: 1px solid var(--gold); padding-left: 30px; display: grid; gap: 40px; margin-top: 6px; }
.values__icon { height: 46px; width: auto; margin-bottom: 14px; }
.values .label { margin-bottom: 6px; color: var(--white); }
.values p { color: var(--on-navy-muted); }

.practice {
  display: grid; grid-template-columns: 1fr 1fr;
  background-color: var(--navy); color: var(--white);
}
.practice__media {
  min-height: 460px;
  background-color: var(--navy);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left center;
}
.practice__text { padding: var(--section-y) var(--gutter) var(--section-y) clamp(28px, 4vw, 56px); max-width: 600px; align-self: center; }
.practice__text p { font-size: 1.06rem; }

/* ---------- Contact ---------- */
.hero--contact .hero__content { max-width: 34rem; }
.hero--contact .label { margin-bottom: 14px; color: var(--white); }
.contact-details { background: var(--navy); color: var(--white); padding-block: clamp(56px, 7vw, 88px); border-top: 1px solid rgba(255, 255, 255, .06); }
.contact-details__grid { display: grid; grid-template-columns: 1fr 1fr; }
.contact-details__list { display: grid; gap: 40px; padding-block: 8px; padding-right: clamp(28px, 6vw, 80px); border-right: 1px solid var(--gold); justify-self: stretch; justify-content: end; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.contact-item img { width: 40px; height: 40px; object-fit: contain; margin-top: 4px; }
.contact-item .label { color: var(--white); margin-bottom: 6px; }
.contact-item a { color: var(--white); text-decoration: none; font-size: 1.15rem; }
.contact-item a:hover { color: var(--gold-bright); }
.contact-item p { margin: 0; }
.contact-item__note { color: var(--on-navy-muted); font-size: 1rem; }

.closing {
  position: relative; isolation: isolate;
  min-height: clamp(320px, 38vw, 500px);
  display: grid; place-items: center; text-align: center;
  background-color: var(--navy);
  background-size: cover; background-position: center;
  color: var(--white);
}
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 12, 30, .28); }
.closing p { font-style: italic; font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); line-height: 1.35; margin: 0; text-shadow: 0 2px 16px rgba(0, 0, 0, .45); }
.closing p::after { content: ""; display: block; width: 72px; height: 1px; background: rgba(255, 255, 255, .55); margin: 14px auto 0; }

/* ---------- 404 ---------- */
.notfound { background: var(--navy); color: var(--white); padding-block: clamp(96px, 14vw, 160px); text-align: center; }
.notfound p { margin-bottom: 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  /* Photo starts sitting behind the text: add a navy wash so copy stays legible */
  .hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(0, 27, 61, .9) 0%, rgba(0, 27, 61, .7) 50%, rgba(0, 27, 61, .2) 100%);
  }
}

@media (max-width: 900px) {
  .firm__grid { grid-template-columns: 1fr; }
  .firm__mark { display: none; }
  .commitment__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .commitment__item:nth-child(3) { border-left: 0; }
  .principal__grid { grid-template-columns: 1fr; }
  .practice { grid-template-columns: 1fr; }
  .practice__media { min-height: 0; aspect-ratio: 16 / 9; background-position: left center; }
  .practice__text { padding: 8px var(--gutter) var(--section-y); max-width: none; }
  .cta__grid { grid-template-columns: 1fr; gap: 32px; }
  .cta__lead { justify-self: start; }
  .cta__divider { width: 64px; height: 1px; align-self: auto; display: none; }
  .contact-details__grid { grid-template-columns: 1fr; }
  .contact-details__list { border-right: 0; padding-right: 0; justify-content: start; }
}

@media (max-width: 640px) {
  body { font-size: 1.03rem; }
  /* Phone: photo sits as a band across the top and fades into navy behind the copy */
  .hero {
    display: block; min-height: 0;
    padding-top: 200px; padding-bottom: 60px;
    background-size: 215% auto; background-position: 88% 0;
  }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(0, 27, 61, 0) 0, rgba(0, 27, 61, .12) 80px,
      rgba(0, 27, 61, .78) 220px, var(--navy) 320px, var(--navy) 100%);
  }
  .practice__text { padding-top: 36px; }
  .hero__icon { height: 54px; margin-bottom: 24px; }
  .checklist li { font-size: 1.05rem; }
  .commitment__grid { grid-template-columns: 1fr; row-gap: 0; }
  .commitment__item { border-left: 0; border-top: 1px solid var(--line-on-navy); padding: 28px 8px; }
  .commitment__item:first-child { border-top: 0; padding-top: 8px; }
  .service-list li { grid-template-columns: 28px 1fr; gap: 12px; }
  .service-list__icon { width: 26px; height: 26px; }
  .service-list a { font-size: 1.04rem; }
  .values { padding-left: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .menu-toggle, .site-menu, .menu-backdrop, .skip-link { display: none !important; }
  .hero, .principal, .practice, .commitment, .cta, .contact-details { background: none !important; color: #000 !important; }
}
