/* =========================================================
   HEPHZIBAH BRAIMOH — LUXURY LAW PORTFOLIO
   ========================================================= */

:root {
  --paper: #f2ede3;
  --paper-2: #eae3d6;
  --ink: #171513;
  --muted: #756f66;
  --line: rgba(23, 21, 19, .16);
  --dark: #201d1a;
  --gold: #9b7a4b;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;

  --container: min(1360px, calc(100% - 80px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  cursor: default;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* LOADER */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  transition: opacity .8s ease, visibility .8s ease;
}

.page-loader span {
  font-family: var(--serif);
  font-size: 2.2rem;
  letter-spacing: -.08em;
}

.page-loader.done {
  opacity: 0;
  visibility: hidden;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100px;
  padding: 0 43px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: rgba(242, 237, 227, 0.89); /* Ensures underlying content doesn't bleed through text */
  backdrop-filter: blur(3.6px);
  transition: background 0.3s ease, height 0.3s ease;
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: -.13em;
  color: var(--gold);
  line-height: 1;
}

.brand-copy,
.footer-brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.brand-copy strong,
.footer-brand strong {
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .05em;
}

.brand-copy small,
.footer-brand small {
  font-size: .47rem;
  letter-spacing: .32em;
  margin-top: 3px;
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 42px);
}

.desktop-nav a {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  position: relative;
  padding: 10px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width .3s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.header-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 13px 19px;
  min-width: 185px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .63rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  clip-path: polygon(4% 0, 100% 0, 95% 50%, 100% 100%, 4% 100%, 0 50%);
  transition: transform .3s ease, background .3s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  background: #332e28;
}

.header-cta i {
  font-style: normal;
  font-size: 1rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 38px;
  height: 38px;
  position: relative;
}

.menu-toggle span {
  width: 24px;
  height: 1px;
  background: var(--ink);
  position: absolute;
  left: 7px;
  transition: transform .3s ease;
}

.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }

.mobile-menu {
  display: none;
}

/* GENERAL */
.section {
  width: var(--container);
  margin-inline: auto;
  padding: 130px 0;
}

.section-label {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: .59rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-label span:first-child {
  color: var(--gold);
}

.section-label.light {
  color: rgba(242, 237, 227, .58);
  border-color: rgba(242, 237, 227, .18);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: .61rem;
  color: var(--gold);
  margin-bottom: 24px;
}

h1,
h2,
h3 {
  font-weight: 400;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.4vw, 6rem);
  line-height: .94;
  letter-spacing: -.055em;
}

h2 em,
h1 em {
  font-style: italic;
}

/* HERO */
.hero {
  min-height: calc(100vh - 100px);
  width: var(--container);
  margin: auto;
  padding-top: 124px; /* Increased to account for the 100px fixed header */
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .54rem;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.hero-title {
  text-align: center;
  position: relative;
  z-index: 4;
  padding-top: 64px;
}

.hero-title .eyebrow {
  margin-bottom: 20px;
}

.hero-title h1 {
  font-family: var(--serif);
  font-size: clamp(4.2rem, 9vw, 9.5rem);
  line-height: .83;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.hero-title h1 span {
  display: block;
}

.hero-title h1 em {
  display: block;
  color: var(--gold);
}

.hero-intro {
  width: min(420px, 90%);
  margin: 35px auto 0;
  font-size: .82rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-stage {
  min-height: 560px;
  margin-top: -5px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-frame {
  position: absolute;
  width: min(700px, 60%);
  height: 440px;
  top: 60px;
  border: 1px solid rgba(155, 122, 75, .25);
  transform: rotate(-1.8deg);
}

.hero-image-wrap {
  position: relative;
  width: min(440px, 45vw);
  height: 500px;
  z-index: 3;
}

.hero-image {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(242,237,227,.03), rgba(20,17,14,.18)),
    url("images/IMG-20260904-WA0067.jpg")
    center / cover;
  filter: sepia(.25) saturate(.7);
  clip-path: polygon(8% 0, 92% 0, 100% 96%, 4% 100%);
}

.image-caption {
  position: absolute;
  bottom: 13px;
  right: -65px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--muted);
  font-size: .5rem;
  letter-spacing: .15em;
}

.hero-note {
  position: absolute;
  z-index: 5;
  max-width: 190px;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.35;
}

.hero-note-left {
  left: 0;
  bottom: 150px;
}

.hero-note-left .arrow {
  display: block;
  font-family: var(--sans);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.hero-note-right {
  right: 0;
  top: 150px;
  font-family: var(--sans);
  font-size: .72rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero-word {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: clamp(7rem, 16vw, 15rem);
  line-height: .7;
  letter-spacing: -.09em;
  color: rgba(155, 122, 75, .08);
  pointer-events: none;
  white-space: nowrap;
}

.scroll-cue {
  position: absolute;
  right: 10px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .5rem;
  letter-spacing: .16em;
  color: var(--muted);
}

.scroll-cue b {
  font-size: 1rem;
  font-weight: 400;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 10%;
  padding: 100px 7% 80px;
}

.about-heading h2 {
  max-width: 650px;
}

.about-copy {
  padding-top: 35px;
  max-width: 490px;
}

.about-copy .lead {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.4;
  margin-bottom: 25px;
}

.about-copy > p:not(.lead) {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.9;
}

.text-link {
  display: inline-flex;
  gap: 35px;
  align-items: center;
  margin-top: 36px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ink);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .59rem;
}

.text-link span {
  font-size: 1rem;
}

.about-image {
  height: 560px;
  position: relative;
  overflow: hidden;
}

.about-image-photo {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(120deg, rgba(20,18,15,.05), rgba(20,18,15,.3)),
    url("images/IMG-20260904-WA0068.jpg")
    top / cover;
  filter: sepia(.18) saturate(.7);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}

.about-image:hover .about-image-photo {
  transform: scale(1.035);
}

.about-image-label {
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: white;
  font-size: .52rem;
  letter-spacing: .18em;
}

/* PRACTICE */
.practice {
  width: 100%;
  padding-inline: max(40px, calc((100vw - 1360px) / 2));
  background: var(--dark);
  color: var(--paper);
}

.practice-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  align-items: end;
  padding: 95px 7% 70px;
}

.practice-head h2 {
  font-size: clamp(3.5rem, 6vw, 6.5rem);
}

.practice-head h2 em {
  color: #b79562;
}

.practice-head > p {
  max-width: 400px;
  color: rgba(242,237,227,.58);
  font-size: .78rem;
  line-height: 1.8;
  padding-bottom: 7px;
}

.practice-list {
  border-top: 1px solid rgba(242,237,227,.17);
}

.practice-card {
  display: grid;
  grid-template-columns: 10% 1fr 8%;
  gap: 25px;
  align-items: center;
  padding: 38px 1%;
  border-bottom: 1px solid rgba(242,237,227,.17);
  transition: padding .4s ease, background .4s ease;
}

.practice-card:hover {
  padding-left: 2%;
  padding-right: 2%;
  background: rgba(255,255,255,.025);
}

.practice-card > span {
  color: #a78a63;
  font-size: .58rem;
  letter-spacing: .1em;
}

.practice-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
  margin-bottom: 8px;
}

.practice-card p {
  color: rgba(254, 248, 236, 0.64);
  font-size: .7rem;
  line-height: 1.6;
  max-width: 480px;
}

.practice-card ul {
  margin-left: 15px;
}

.practice-card li {
  color: rgba(254, 248, 236, 0.64);
  font-size: .7rem;
  padding-left: 7px;
  margin-bottom: 4px;
}

.practice-card > a {
  justify-self: end;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242,237,227,.2);
  border-radius: 50%;
  transition: background .3s ease, color .3s ease;
}

.practice-card:hover > a {
  background: var(--paper);
  color: var(--ink);
}

/* EXPERIENCE */
.experience-grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr 1fr;
  gap: 7%;
  padding: 100px 7% 20px;
}

.experience-stat strong {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 7vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .7;
  color: rgba(45, 44, 42, 0.59);
}

#hons {
  font-size: .5em;
  color: rgba(45, 44, 42, 0.59);
}

.experience-stat strong span {
  color: var(--gold);
  font-size: .4em;
}

.experience-stat strong abbr {
  text-decoration: none;
}

.experience-stat p {
  margin-top: 35px;
  color: var(--muted);
  font-size: .62rem;
  text-transform: none;
  letter-spacing: .13em;
}

.experience-stat2 strong {
  font-family: var(--serif);
  font-size: clamp(5rem, 9vw, 10rem);
  font-weight: 400;
  letter-spacing: -.1em;
  line-height: .7;
}

.experience-stat2 strong span {
  color: var(--gold);
  font-size: .5em;
}

.experience-stat2 p {
  margin-top: 35px;
  color: var(--muted);
  font-size: .62rem;
  text-transform: none;
  letter-spacing: .13em;
}

.experience-main {
  max-width: 540px;
}

.experience-main h2 {
  margin-bottom: 30px;
}

.experience-main > p:last-child {
  color: var(--muted);
  line-height: 1.85;
  font-size: .78rem;
  max-width: 430px;
}

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

.value {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 15px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.value > span {
  color: var(--gold);
  font-size: .56rem;
}

.value h3 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
}

.value p {
  color: var(--muted);
  font-size: .65rem;
  line-height: 1.6;
}

/* TESTIMONIAL */
.testimonial {
  text-align: center;
  padding-block: 170px;
  position: relative;
}

.quote-mark {
  font-family: var(--serif);
  font-size: 9rem;
  line-height: .5;
  color: var(--gold);
  opacity: .35;
}

blockquote {
  max-width: 970px;
  margin: 45px auto;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -.05em;
}

.quote-author {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.quote-author span {
  width: 35px;
  height: 1px;
  background: var(--gold);
}

.quote-author p {
  font-size: .55rem;
  letter-spacing: .15em;
}

.quote-author small {
  color: var(--muted);
}

/* CONTACT */
.contact {
  width: 100%;
  background: var(--dark);
  color: var(--paper);
  padding-inline: max(40px, calc((100vw - 1360px) / 2));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
  padding: 105px 7% 90px;
}

.contact-heading h2 {
  font-size: clamp(4rem, 7vw, 7.5rem);
}

.contact-heading h2 em {
  color: #b79562;
}

.contact-details {
  padding-top: 60px;
}

.contact-details > p {
  max-width: 420px;
  color: rgba(242,237,227,.55);
  font-size: .76rem;
  line-height: 1.8;
  margin-bottom: 45px;
}

.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.3vw, 2.3rem);
  border-bottom: 1px solid rgba(242,237,227,.4);
  padding-bottom: 10px;
}

.contact-email span {
  color: #b79562;
  margin-left: -5px;
}

.contact-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 70px;
}

.contact-meta span {
  color: #b79562;
  font-size: .53rem;
  letter-spacing: .15em;
}

.contact-meta p {
  margin-top: 9px;
  color: rgba(242,237,227,.6);
  font-size: .67rem;
  line-height: 1.7;
}

.big-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 27px 7%;
  border-top: 1px solid rgba(242,237,227,.2);
  border-bottom: 1px solid rgba(242,237,227,.2);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 3rem);
  transition: background .4s ease, padding .4s ease;
}

.big-cta:hover {
  background: rgba(255,255,255,.035);
  padding-left: 8%;
  padding-right: 8%;
}

.big-cta > span:last-child {
  font-family: var(--sans);
  color: #b79562;
}

/* FOOTER */
footer {
  width: 100%;
  background: var(--dark);
  color: var(--paper);
  padding: 28px max(40px, calc((100vw - 1360px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(242,237,227,.1);
}

.footer-brand .brand-mark {
  font-size: 1.5rem;
}

.footer-brand strong {
  font-size: .68rem;
}

footer p,
footer > a {
  color: rgba(242,237,227,.4);
  font-size: .56rem;
  letter-spacing: .05em;
}

footer > a:hover {
  color: var(--paper);
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity .9s cubic-bezier(.2,.7,.2,1),
    transform .9s cubic-bezier(.2,.7,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1050px) {
  :root {
    --container: min(100% - 44px, 900px);
  }

  .desktop-nav {
    gap: 17px;
  }

  .desktop-nav a:nth-child(5) {
    display: none;
  }

  .header-cta {
    min-width: 160px;
  }

  .hero-stage {
    min-height: 500px;
  }

  .hero-image-wrap {
    height: 450px;
  }

  .about-grid,
  .experience-grid,
  .contact-grid {
    gap: 6%;
  }
}

@media (max-width: 780px) {
  :root {
    --container: calc(100% - 36px);
  }

  .site-header {
    height: 82px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    z-index: 201;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: var(--paper);
    padding: 120px 28px 40px;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform .6s cubic-bezier(.77,0,.18,1);
  }

  .mobile-menu.open {
    transform: translateY(0);
  }

  .mobile-menu a {
    font-family: var(--serif);
    font-size: 2.2rem;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .mobile-book {
    margin-top: 20px;
    font-family: var(--sans) !important;
    font-size: .7rem !important;
    text-transform: uppercase;
    letter-spacing: .1em;
  }

  .section {
    padding: 90px 0;
  }

  .hero {
    padding-top: 106px;
    min-height: auto;
  }

  .hero-title {
    padding-top: 55px;
  }

  .hero-title h1 {
    font-size: clamp(3.7rem, 17vw, 7rem);
  }

  .hero-intro {
    font-size: .74rem;
  }

  .hero-stage {
    min-height: 560px;
    margin-top: 15px;
  }

  .hero-frame {
    width: 90%;
    height: 390px;
    top: 50px;
  }

  .hero-image-wrap {
    width: min(330px, 72vw);
    height: 410px;
    align-self: center;
  }

  .hero-note-left {
    left: 0;
    bottom: 30px;
    font-size: .8rem;
  }

  .hero-note-right {
    top: 80px;
    right: 0;
    font-size: .62rem;
  }

  .hero-note-left .arrow {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }

  .image-caption {
    display: none;
  }

  .hero-word {
    bottom: 20px;
    font-size: 23vw;
  }

  .scroll-cue {
    display: none;
  }

  .about-grid,
  .practice-head,
  .experience-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    padding: 65px 0 55px;
    gap: 30px;
  }

  .about-copy {
    padding-top: 0;
  }

  .about-image {
    height: 420px;
  }

  .practice {
    padding-inline: 18px;
  }

  .practice-head {
    padding: 65px 0 55px;
    gap: 35px;
  }

  .practice-list {
    margin-inline: 0;
  }

  .practice-card {
    grid-template-columns: 35px 1fr 35px;
    gap: 10px;
    padding: 28px 0;
  }

  .practice-card p {
    font-size: .65rem;
  }

  .practice-card > a {
    width: 35px;
    height: 35px;
  }

  .experience-grid {
    padding: 65px 0 0;
    gap: 70px;
  }

  .experience-stat strong {
    font-size: 7rem;
  }

  .testimonial {
    padding-block: 110px;
  }

  .quote-mark {
    font-size: 7rem;
  }

  .contact {
    padding-inline: 18px;
  }

  .contact-grid {
    padding: 70px 0 70px;
    gap: 20px;
  }

  .contact-details {
    padding-top: 20px;
  }

  .contact-meta {
    margin-top: 50px;
  }

  .big-cta {
    padding: 24px 0;
  }

  footer {
    padding: 25px 18px;
    flex-wrap: wrap;
    gap: 20px;
  }

  footer p {
    order: 3;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
