/* ===========================================================
   The Carrier Firm, PLLC — design system
   Palette sampled from the firm's existing brand deck:
     navy #00162B / orange #E07D42 / signal #FF7A1D / stone
   Type: Cormorant Garamond (display) / Source Serif 4 (body)
   =========================================================== */

:root {
  --navy:        #00162B;
  --navy-lift:   #052943;
  --navy-line:   #14395A;
  --stone:       #EFECE8;
  --stone-deep:  #DDDAD8;
  --stone-edge:  #C6C2BD;
  --orange:      #E07D42;
  --orange-lift: #F09257;
  --signal:      #FF7A1D;
  --white:       #FFFFFF;
  --ink:         #14181A;
  --muted-light: #8A9AAA;
  --muted-dark:  #5E6A72;

  --measure: 36rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --step--1: clamp(0.82rem, 0.79rem + 0.12vw, 0.88rem);
  --step-0:  clamp(1.02rem, 0.98rem + 0.2vw, 1.14rem);
  --step-1:  clamp(1.22rem, 1.12rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.8rem, 1.5rem + 1.3vw, 2.6rem);
  --step-3:  clamp(2.4rem, 1.85rem + 2.5vw, 3.9rem);
  --step-4:  clamp(3.1rem, 2.1rem + 4.4vw, 6rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Garamond, Georgia, serif;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.004em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1.1em; max-width: var(--measure); }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--orange); }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }

.skip { position: absolute; left: -9999px; background: var(--navy); color: var(--white); padding: 0.7rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Eyebrow ---------- */

.eyebrow {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1.1rem;
}
.eyebrow--muted { color: var(--muted-dark); }

/* ---------- Layout ---------- */

.shell { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--stone { background: var(--stone-deep); }

/* Navy is the brand's home ground, so it carries most sections */
.section--navy { background: var(--navy); color: var(--stone); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #C9D4DE; }
.section--navy a { color: var(--orange); }
.section--navy a:hover { color: var(--orange-lift); }

/* ---------- Signal bar ----------
   Lifted from the brand deck's top strip. Highest-contrast call to
   action on the page, and the first thing on screen. */

.signal-bar {
  background: var(--navy);
  color: var(--signal);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.signal-bar a { color: var(--signal); text-decoration: none; font-weight: 600; }
.signal-bar a:hover { color: var(--orange-lift); text-decoration: underline; }

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

.masthead {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--stone) 94%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--stone-edge);
}
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }

.wordmark {
  font-family: "Cormorant Garamond", Garamond, Georgia, serif;
  font-size: 1.34rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; line-height: 1.1;
}
.wordmark span {
  display: block; font-family: "Source Serif 4", serif;
  font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-dark); margin-top: 0.22rem;
}

.nav { display: none; gap: 1.6rem; align-items: center; }
.nav a { font-size: 0.94rem; color: var(--navy); text-decoration: none; }
.nav a:hover { color: var(--orange); text-decoration: underline; }
@media (min-width: 880px) { .nav { display: flex; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--orange); border-radius: 2px;
  background: var(--orange); color: var(--navy);
  font-family: "Source Serif 4", serif;
  font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:hover { background: var(--orange-lift); border-color: var(--orange-lift); color: var(--navy); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

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

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }

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

.hero { padding-block: clamp(3.5rem, 10vw, 8rem) clamp(3rem, 7vw, 6rem); }
.hero h1 { max-width: 16ch; margin-bottom: 1.4rem; }
.hero__lede { font-size: var(--step-1); line-height: 1.45; color: var(--muted-dark); max-width: 44ch; }
.section--navy .hero__lede { color: #C9D4DE; }
.hero__note {
  margin-top: 2.4rem; padding-top: 1.2rem;
  border-top: 1px solid var(--stone-edge);
  font-size: 0.9rem; color: var(--muted-dark); max-width: 42ch;
}
.section--navy .hero__note { border-top-color: var(--navy-line); color: var(--muted-light); }

.hero--split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .hero--split { grid-template-columns: 1.35fr 1fr; gap: 4rem; }
  .hero--split .portrait { max-width: 22rem; margin-left: auto; }
}

/* ---------- Grids and cards ---------- */

.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--stone);
  border: 1px solid var(--stone-edge);
  border-radius: 3px; padding: 1.7rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card p { margin-bottom: 0; }
.card h3 { margin-bottom: 0.45rem; color: var(--navy); }

a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--orange); transform: translateY(-2px); color: inherit; }

.section--navy .card { background: var(--navy-lift); border-color: var(--navy-line); }
.section--navy .card h3 { color: var(--white); }
.section--navy a.card:hover { border-color: var(--orange); }

.card__more {
  display: inline-block; margin-top: 0.9rem;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange);
}

/* ---------- Corridor strip ---------- */

.strip { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 1.8rem 0 0; list-style: none; }
.strip li {
  font-size: 0.8rem; letter-spacing: 0.04em; color: var(--navy);
  border: 1px solid var(--stone-edge); border-radius: 2px;
  padding: 0.34rem 0.75rem; background: var(--stone);
}
.strip li a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--orange); }
.strip li a:hover { color: var(--orange); }

.section--navy .strip li { color: var(--stone); border-color: var(--navy-line); background: transparent; }
.section--navy .strip li a { color: var(--stone); }
.section--navy .strip li a:hover { color: var(--orange); }

/* ---------- Steps ---------- */

.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 1.7rem 3.2rem;
  border-left: 1px solid var(--stone-edge); margin-left: 0.65rem;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: -0.7rem; top: 0;
  width: 1.4rem; height: 1.4rem; display: grid; place-items: center;
  background: var(--stone); border: 1px solid var(--orange); border-radius: 50%;
  font-size: 0.58rem; color: var(--orange);
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin-bottom: 0; }

.section--navy .steps li { border-left-color: var(--navy-line); }
.section--navy .steps li::before { background: var(--navy); }

/* ---------- Pull statement ---------- */

.pull {
  font-family: "Cormorant Garamond", Garamond, Georgia, serif;
  font-size: var(--step-2); font-weight: 500; line-height: 1.24;
  max-width: 22ch; margin: 0; color: var(--white);
}

/* ---------- Portrait ---------- */

.portrait { position: relative; border-radius: 3px; overflow: hidden; background: var(--stone-deep); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(100%) contrast(1.04); }
.portrait::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--stone-edge); pointer-events: none; }
.section--navy .portrait::after { box-shadow: inset 0 0 0 1px var(--navy-line); }
.portrait__cap {
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-dark); margin: 0.7rem 0 0;
}
.section--navy .portrait__cap { color: var(--muted-light); }

.bio { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 860px) { .bio { grid-template-columns: 20rem 1fr; gap: 3.5rem; } }

/* ---------- Testimonials ---------- */

.quote {
  border-left: 2px solid var(--orange);
  padding: 0.2rem 0 0.2rem 1.3rem;
  margin: 0 0 1.8rem;
}
.quote p { font-size: var(--step-1); line-height: 1.4; margin-bottom: 0.5rem; }
.quote cite {
  font-style: normal; font-size: 0.74rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted-light);
}

/* ---------- Forms ---------- */

.form { max-width: 34rem; margin-top: 2rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.75rem 0.85rem;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--stone-edge); border-radius: 2px;
}
.field input:focus, .field textarea:focus { border-color: var(--orange); }
.field textarea { min-height: 8rem; resize: vertical; }
.field__hint { font-size: 0.82rem; color: var(--muted-dark); margin: 0.35rem 0 0; }

/* ---------- Detail list ---------- */

.detail { list-style: none; margin: 0; padding: 0; }
.detail li { padding: 0.8rem 0; border-bottom: 1px solid var(--stone-edge); }
.detail li:last-child { border-bottom: 0; }
.detail .detail__k {
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); display: block; margin-bottom: 0.25rem;
}

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

.foot { background: var(--navy); color: #C9D4DE; padding-block: 3.2rem 2rem; font-size: 0.92rem; }
.foot a { color: var(--white); }
.foot a:hover { color: var(--orange); }
.foot h4 {
  font-family: "Source Serif 4", serif;
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 0.9rem; font-weight: 600;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 0.42rem; }
.foot__legal {
  margin-top: 2.6rem; padding-top: 1.5rem;
  border-top: 1px solid var(--navy-line);
  font-size: 0.78rem; color: var(--muted-light); max-width: 62rem;
}
.foot__legal p { max-width: none; }

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

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* Four-column footer for the expanded practice list */
@media (min-width: 720px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ===========================================================
   Photographic hero — skyline plate + cut-out portrait
   Carried over from the firm's brand deck: white display type
   over the San Antonio skyline at night, figure to the right.
   =========================================================== */

.plate {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

/* Skyline sits behind everything, darkened so type stays legible */
.plate__sky {
  position: absolute;
  inset: 0;
  background-image: url("img/skyline-austin.jpg");
  background-size: cover;
  background-position: center 58%;
  opacity: 0.52;
  z-index: 0;
}

/* Navy wash + a gradient that keeps the left column readable */
.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg,
      rgba(0,22,43,0.96) 0%,
      rgba(0,22,43,0.88) 38%,
      rgba(0,22,43,0.55) 62%,
      rgba(0,22,43,0.35) 100%);
}

.plate__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  align-items: end;
  padding-block: clamp(3rem, 8vw, 6rem) 0;
  min-height: clamp(30rem, 62vh, 46rem);
}

@media (min-width: 900px) {
  .plate__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
  }
}

.plate__copy { padding-bottom: clamp(2.5rem, 5vw, 4rem); }

.plate h1 {
  color: var(--white);
  font-size: clamp(3rem, 2.1rem + 4.2vw, 5.6rem);
  max-width: 15ch;
  margin-bottom: 1.3rem;
}
.plate .eyebrow { color: var(--orange); }
.plate .hero__lede { color: #C9D4DE; max-width: 42ch; }
.plate .hero__note {
  border-top-color: rgba(255,255,255,0.2);
  color: var(--muted-light);
}
.plate .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.45); }
.plate .btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* Figure is bottom-anchored so she stands on the baseline of the plate */
.plate__figure {
  position: relative;
  align-self: end;
  margin: 0;
  display: none;
}
.plate__figure img {
  width: 100%;
  max-width: 30rem;
  margin-left: auto;
  display: block;
  filter: grayscale(100%) contrast(1.06);
}
@media (min-width: 900px) { .plate__figure { display: block; } }

/* Mobile: skyline band under the copy instead of a cut-out */
.plate__mobile-sky {
  position: relative;
  z-index: 2;
  height: 9rem;
  background-image: url("img/skyline-austin.jpg");
  background-size: cover;
  background-position: center 60%;
  border-top: 1px solid var(--navy-line);
}
@media (min-width: 900px) { .plate__mobile-sky { display: none; } }

/* ---------- Skyline divider band ---------- */

.band {
  position: relative;
  min-height: 18rem;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--navy);
  color: var(--stone);
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter);
}
/* Darkening wash so the headline holds against the brightest part of the photo */
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0,22,43,0.62) 0%,
    rgba(0,22,43,0.40) 45%,
    rgba(0,22,43,0.70) 100%);
}
.band__sky {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("img/skyline-austin.jpg");
  background-size: cover; background-position: center 52%;
  opacity: 0.62;
}
.band__inner { position: relative; z-index: 2; max-width: 46rem; }
.band .eyebrow { margin-bottom: 1.2rem; }
.band h2 {
  font-family: "Cormorant Garamond", Garamond, Georgia, serif;
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.24;
  max-width: 28ch;
  margin: 0 auto 1.4rem;
  color: var(--white);
}
.band p:not(.eyebrow) {
  max-width: 42ch;
  margin: 0 auto;
  color: #C9D4DE;
}
.band .eyebrow { max-width: none; }
.band .btn-row { justify-content: center; margin-top: 2rem; }
.band h2 { color: var(--white); }
.band p { color: #C9D4DE; margin-inline: auto; }

/* ---------- Cut-out portrait on a tinted panel ---------- */

.figure-panel {
  position: relative;
  background: var(--stone-deep);
  border: 1px solid var(--stone-edge);
  border-radius: 3px;
  display: grid;
  place-items: end center;
  overflow: hidden;
  min-height: 22rem;
}
.figure-panel img {
  width: 100%;
  max-width: 20rem;
  display: block;
  filter: grayscale(100%) contrast(1.04);
}


/* The San Antonio page keeps the San Antonio skyline; everywhere else is Austin. */
.band--sa .band__sky { background-image: url("img/skyline.jpg"); opacity: 0.32; }

/* The band is a dark surface but not .section--navy, so ghost buttons and
   eyebrows need their light treatment declared explicitly. */
.band .eyebrow { color: var(--orange); }
.band .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.45); }
.band .btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.band a { color: var(--orange); }

/* Framed hero portrait.
   A cut-out was tried and abandoned: the source files carry a baked-in glow
   that cannot be separated cleanly from the hair. A frame is also a better
   fit for a law firm than a floating figure. */
.plate__figure img {
  width: 100%;
  max-width: 23rem;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  filter: grayscale(100%) contrast(1.05);
  box-shadow: 0 18px 50px rgba(0,0,0,0.42);
  outline: 1px solid rgba(255,255,255,0.16);
  outline-offset: -1px;
}
.plate__figure figcaption {
  max-width: 23rem;
  margin: 0.75rem 0 0 auto;
  text-align: right;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.plate__figure { align-self: center; }

/* Hero without a figure: single column, copy given a comfortable measure
   and the skyline left visible to the right of the text. */
.plate__inner--solo {
  grid-template-columns: 1fr;
  align-items: center;
}
.plate__inner--solo .plate__copy { max-width: 40rem; padding-bottom: 0; }
@media (min-width: 900px) {
  .plate__inner--solo { grid-template-columns: 1fr; }
  .plate__inner--solo .plate__copy { max-width: 44rem; }
}
