/* ==========================================================================
   Variables & base
   ========================================================================== */

:root {
  --navy: #0a1729;
  --navy-2: #0f2e4a;
  --navy-3: #12395c;
  --gold: #b8933f;
  --gold-soft: #cba85e;
  --gold-light: #e4cf9c;
  --ink: #1a2430;
  --body: #41505f;
  --line: #e4e7ec;
  --cream: #f6f4ef;
  --white: #fff;

  --ff-head: "Playfair Display", Georgia, serif;
  --ff-body: "Montserrat", -apple-system, "Segoe UI", sans-serif;

  --container-max: 1320px;
  --nav-breakpoint: 1200px;
  --site-chrome-height: 174px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

body.menu-open {
  overflow: hidden;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--ff-head);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: min(100% - clamp(32px, 5vw, 48px), var(--container-max));
  max-width: var(--container-max);
  margin-inline: auto;
}

.section {
  padding: 45px 0;
}

.section--dark {
  background: var(--navy);
  position: relative;
}

.section__eyebrow {
  font-family: var(--ff-body);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold);
  display: inline-block;
}

.section__eyebrow--light {
  color: var(--gold);
}

.section__head {
  text-align: center;
  margin-bottom: 42px;
}

.section__title {
  font-size: clamp(26px, 2.8vw, 40px);
  margin-top: 10px;
}

.section__title--light {
  color: var(--white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: 0.25s;
  border: none;
  text-align: center;
  max-width: 100%;
  line-height: 1.35;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--navy);
  padding: 16px 34px;
  font-size: 20px;
  box-shadow: 0 8px 22px rgba(184, 147, 63, 0.32);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(184, 147, 63, 0.45);
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.header__logo-link {
  flex-shrink: 0;
}

.header__logo {
  height: 78px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.header__phone {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: right;
}

.header__phone-label {
  color: var(--gold-soft);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.header__phone-number {
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  font-family: var(--ff-head);
}

.header__nav {
  background: rgba(255, 255, 255, 0.035);
  border-top: 1px solid rgba(203, 168, 94, 0.18);
}

.header__nav-inner {
  display: flex;
  justify-content: center;
}

.header__nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
}

.header__nav-link {
  display: block;
  color: #e9edf2;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 20px;
  position: relative;
  white-space: nowrap;
  transition: 0.2s;
  flex-shrink: 0;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 10px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.25s;
}

.header__nav-link:hover {
  color: var(--white);
}

.header__nav-link:hover::after {
  transform: scaleX(1);
}

.header__menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  width: 42px;
  height: 42px;
}

.header__menu-toggle-bar {
  width: 26px;
  height: 2px;
  background: var(--white);
  display: block;
  transition: transform 0.3s, opacity 0.3s;
}

.header__menu-toggle--active .header__menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-toggle--active .header__menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.header__menu-toggle--active .header__menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 23, 41, 0.65);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.header__menu-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.header__menu-panel {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100dvh;
  background: var(--navy-2);
  z-index: 80;
  padding: 100px 28px 32px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
}

.header__menu-panel--open {
  transform: translateX(0);
}

.header__menu-list {
  list-style: none;
  margin-bottom: 32px;
}

.header__menu-list .header__nav-link {
  padding: 14px 0;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__menu-list .header__nav-link::after {
  display: none;
}

.header__nav-extras {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.header__nav-extras .header__phone {
  text-align: left;
}

.header__nav-extras .btn--gold {
  width: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(24px, 4vw, 56px) clamp(20px, 3vw, 40px) 0;
  overflow: hidden;
  height: calc(100vh - var(--site-chrome-height));
  height: calc(100dvh - var(--site-chrome-height));
  height: calc(100svh - var(--site-chrome-height));
  background:
    radial-gradient(120% 90% at 80% 100%, rgba(184, 147, 63, 0.16), transparent 55%),
    linear-gradient(115deg, var(--navy) 40%, var(--navy-2) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0 1px,
    transparent 1px 60px
  );
  opacity: 0.6;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: min(100%, 640px);
  padding: clamp(12px, 2vw, 24px) clamp(8px, 2vw, 40px) 0 0;
}

.hero__content .section__eyebrow {
  margin-bottom: 18px;
}

.hero__title {
  color: var(--white);
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  color: var(--gold-light);
  font-family: var(--ff-head);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(19px, 1.7vw, 25px);
  margin: 16px 0 14px;
}

.hero__lead {
  color: #c9d3de;
  font-size: 16px;
  margin-bottom: 30px;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.hero__phone {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.hero__phone-label {
  color: var(--gold-soft);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero__phone-number {
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  font-family: var(--ff-head);
}

.hero__visual {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.hero__image {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom right;
}

.hero__badge {
  position: absolute;
  left: clamp(12px, 3vw, 24px);
  bottom: 64px;
  z-index: 3;
  background: rgba(10, 23, 41, 0.82);
  border: 1px solid rgba(203, 168, 94, 0.4);
  border-radius: 14px;
  padding: 14px 20px;
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

.hero__badge-value {
  color: var(--gold-light);
  font-family: var(--ff-head);
  font-size: 26px;
  display: block;
}

.hero__badge-label {
  color: #c9d3de;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ==========================================================================
   Accolades strip
   ========================================================================== */

.accolades {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.accolades__inner {
  padding: 34px 0 38px;
}

.accolades__label {
  display: block;
  text-align: center;
  font-family: var(--ff-body);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 26px;
}

.accolades__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
}

.accolades__badge {
  max-height: 60px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: 0.28s ease;
}

.accolades__badge:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* ==========================================================================
   About
   ========================================================================== */

.about__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.about__media {
  position: relative;
}

.about__image {
  border-radius: 6px;
  height: 560px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 20px 45px rgba(10, 23, 41, 0.22);
}

.about__media::after {
  content: "";
  position: absolute;
  left: -16px;
  bottom: -16px;
  width: 60%;
  height: 60%;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  z-index: -1;
}

.about__title {
  font-size: clamp(26px, 2.6vw, 38px);
  margin: 12px 0 22px;
}

.about__text {
  margin-bottom: 16px;
}

.about__callout {
  margin-top: 26px;
  padding: 22px 26px;
  background: var(--navy);
  color: #eef2f6;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  font-family: var(--ff-head);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
}

/* ==========================================================================
   Practice areas
   ========================================================================== */

.practice__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.practice-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
}

.practice-card:hover {
  transform: translateY(-6px);
}

.practice-card__image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.practice-card__image--dui {
  background-image: url("../assets/images/service-dui.jpg");
}

.practice-card__image--drug {
  background-image: url("../assets/images/service-drug-crimes.jpg");
}

.practice-card__image--theft {
  background-image: url("../assets/images/service-theft-crimes.jpg");
}

.practice-card__image--felony {
  background-image: url("../assets/images/service-felony-crimes.jpg");
}

.practice-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 23, 41, 0.15), rgba(10, 23, 41, 0.72));
}

.practice-card__tag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: var(--white);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 19px;
}

.practice-card__body {
  padding: 22px 20px 24px;
}

.practice-card__title {
  display: none;
}

.practice-card__text {
  font-size: 14px;
  color: var(--body);
  margin-bottom: 16px;
}

.practice-card__link {
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.practice-card__link span {
  transition: 0.2s;
  display: inline-block;
}

.practice-card:hover .practice-card__link span {
  transform: translateX(4px);
}

/* ==========================================================================
   Cases
   ========================================================================== */

.cases {
  background: linear-gradient(120deg, var(--navy-2), var(--navy));
  overflow: hidden;
}

.cases::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(184, 147, 63, 0.14), transparent 60%);
  pointer-events: none;
}

.cases .section__head {
  position: relative;
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
}

.case-card {
  text-align: center;
  padding: 34px 18px;
  border: 1px solid rgba(203, 168, 94, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.case-card__amount {
  display: block;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: clamp(28px, 2.6vw, 40px);
  color: var(--gold-light);
}

.case-card__label {
  display: block;
  color: #c9d3de;
  font-size: 13px;
  margin: 10px 0 16px;
  letter-spacing: 0.03em;
}

.case-card__link {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cases__disclaimer {
  text-align: center;
  color: rgba(201, 211, 222, 0.55);
  font-size: 11px;
  margin-top: 26px;
  max-width: 80%;
  margin-inline: auto;
  position: relative;
  line-height: 1.5;
}

/* ==========================================================================
   Values
   ========================================================================== */

.values {
  background: var(--cream);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 50px;
}

.value-item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.value-item__number {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 34px;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.85;
}

.value-item__title {
  font-size: 20px;
  margin-bottom: 6px;
}

.value-item__text {
  font-size: 15px;
}

/* ==========================================================================
   Testimonial
   ========================================================================== */

.testimonial {
  overflow: hidden;
}

.testimonial__inner {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.testimonial__quote-mark {
  font-family: var(--ff-head);
  font-size: 120px;
  color: var(--gold);
  opacity: 0.28;
  line-height: 0.6;
  height: 60px;
}

.testimonial__stars {
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 20px;
  margin-bottom: 10px;
}

.testimonial__quote {
  color: #e6ebf1;
  font-family: var(--ff-head);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.6;
  margin-bottom: 24px;
}

.testimonial__author {
  color: var(--gold-light);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.testimonial__subtitle {
  display: block;
  color: #9fb0c2;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--cream);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.contact__info .section__eyebrow {
  margin-bottom: 12px;
}

.contact__title {
  font-size: clamp(26px, 2.6vw, 38px);
  margin-bottom: 20px;
}

.contact__text {
  margin-bottom: 26px;
}

.contact__detail {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.contact__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.contact__detail-label {
  color: var(--ink);
  font-family: var(--ff-head);
  font-size: 16px;
  display: block;
}

.contact__detail-value {
  font-size: 14px;
}

.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 38px;
  box-shadow: 0 22px 50px rgba(10, 23, 41, 0.14);
  border-top: 4px solid var(--gold);
}

.contact-form__title {
  font-size: 22px;
  margin-bottom: 6px;
}

.contact-form__subtitle {
  font-size: 13px;
  margin-bottom: 22px;
  color: var(--body);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form__field {
  margin-bottom: 16px;
}

.contact-form__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}

.contact-form__input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  font-family: var(--ff-body);
  font-size: 14px;
  background: #fbfbfa;
  color: var(--ink);
  transition: 0.2s;
}

.contact-form__textarea {
  height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.contact-form__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 147, 63, 0.15);
}

.contact-form__submit {
  width: 100%;
  margin-top: 6px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--navy);
  color: #aebccb;
  padding: 54px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer__logo {
  height: 96px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  margin-bottom: 18px;
}

.footer__heading {
  color: var(--white);
  font-family: var(--ff-head);
  font-size: 17px;
  margin-bottom: 16px;
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer__link:hover {
  color: var(--gold-light);
}

.footer__text {
  font-size: 14px;
  line-height: 1.7;
}

.footer__phone {
  color: var(--gold-light);
  font-family: var(--ff-head);
  font-size: 22px;
  display: block;
  margin-top: 6px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  font-size: 12px;
  color: rgba(174, 188, 203, 0.6);
}

/* ==========================================================================
   Responsive — navigation breakpoint
   ========================================================================== */

@media (max-width: 1200px) {
  .header__nav {
    display: none;
  }

  .header__phone,
  .header__cta {
    display: none;
  }

  .header__menu-toggle {
    display: flex;
  }

  .header__menu-overlay {
    display: block;
  }

  .header__menu-panel {
    display: block;
  }
}

@media (max-width: 1080px) {
  .practice__grid,
  .cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .btn--gold {
    white-space: normal;
    font-size: 17px;
    padding: 14px 24px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 0;
    padding: clamp(28px, 6vw, 40px) clamp(20px, 5vw, 32px) 0;
  }

  .hero__inner {
    height: auto;
    align-items: flex-start;
  }

  .hero__content {
    max-width: 100%;
    padding: 0;
  }

  .hero__visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    margin-top: 24px;
    pointer-events: auto;
  }

  .hero__image {
    height: auto;
    max-height: 420px;
    margin-inline: auto;
    object-position: bottom center;
  }

  .hero__badge {
    left: 12px;
    bottom: 24px;
  }

  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about__image {
    height: 380px;
  }

  .values__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header__logo {
    height: 58px;
  }

  .practice__grid,
  .cases__grid,
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .accolades__row {
    gap: 32px 40px;
  }

  .accolades__badge {
    max-height: 46px;
    max-width: 130px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn--gold {
    width: 100%;
  }

  .btn--gold {
    font-size: 15px;
    padding: 12px 20px;
  }
}
