/* ================================================== */
/* KANESHIRO LAW - PREMIUM WEBSITE STYLESHEET */
/* ================================================== */

/* CSS Variables - Color Palette */
:root {
  --black: #111111;
  --ivory: #f8f6f3;
  --stone: #e8e4df;
  --gold: #a89968;
  --gold-deep: #7a6c43; /* gold dark enough for text on light backgrounds */
  --green: #2d4a3f;
  --text-dark: #1a1a1a;
  --text-light: #5f5f5f;
  --accent-light: #d4c5b8;
  --white: #ffffff;

  --header-height: 80px;
  --container: 1200px;
  --gutter: 2rem;

  color-scheme: light;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: var(--ivory);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

section {
  scroll-margin-top: var(--header-height);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--black);
}

h2 {
  font-size: 3rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--gold-deep);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--black);
}

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

/* Small uppercase label used above headings */
.hero__label,
.section__subtitle,
.attorney__subtitle,
.contact-block h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold-deep);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  border: 1px solid var(--black);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.button--large {
  padding: 1.1rem 2.25rem;
}

.button--primary {
  background-color: var(--black);
  color: var(--white);
}

.button--primary:hover {
  background-color: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--white);
}

.button--outline {
  background-color: transparent;
  color: var(--black);
}

.button--outline:hover {
  background-color: var(--black);
  color: var(--white);
}

.section--dark .button--primary {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.section--dark .button--primary:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.section--dark .button--outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.section--dark .button--outline:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--black);
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 246, 243, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  padding: 1.25rem var(--gutter);
  transition: padding 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--stone);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.header__container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.header__logo {
  flex-shrink: 0;
}

.header__title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
}

.header__subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light);
}

.header__nav {
  margin: 0 auto;
}

.nav__list {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav__link {
  position: relative;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

.nav__link:hover {
  color: var(--black);
}

.nav__link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.header__phone {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--gold-deep);
}

.header__menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.header__menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--black);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.header__menu-toggle.is-open span {
  background-color: var(--white);
}

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

.header__menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

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

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 4rem) var(--gutter) 5rem;
  background-color: var(--ivory);
  overflow: hidden;
}

.hero__container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 5rem;
  align-items: center;
}

.hero__label {
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.hero__subtitle {
  max-width: 34rem;
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__image-wrapper {
  position: relative;
  max-width: 440px;
  margin-left: auto;
}

/* Offset gold frame behind the portrait */
.hero__image-wrapper::before {
  content: '';
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--gold);
}

.hero__img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.hero__image-label {
  position: absolute;
  left: -2.5rem;
  bottom: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
}

.hero__image-label span + span::before {
  content: '—';
  margin: 0.75em 0;
  display: inline-block;
}

/* ================================================== */
/* Sections - shared */
/* ================================================== */

.section {
  padding: 7rem var(--gutter);
}

.section--light {
  background-color: var(--ivory);
}

/* Alternate light backgrounds so consecutive sections stay distinct */
#about,
#attorney,
#testimonials {
  background-color: var(--white);
}

.section--dark {
  background-color: var(--black);
  color: var(--white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.72);
}

.section__container {
  max-width: var(--container);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__header .section__subtitle {
  margin-bottom: 1rem;
}

.section__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--black);
}

.section__container > .section__title {
  text-align: center;
  margin-bottom: 4rem;
}

/* The Approach intro */
.section__intro {
  display: flex;
  align-items: flex-end;
  gap: 2.5rem;
  padding-bottom: 3rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--stone);
}

.section__number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 8rem;
  font-weight: 300;
  line-height: 0.8;
  color: var(--accent-light);
}

.section__content .section__subtitle {
  margin-bottom: 0.75rem;
}

.section__content .section__title {
  margin: 0;
}

.section__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.section__text p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ================================================== */
/* Into the Breach */
/* ================================================== */

.breach .section__container {
  max-width: 860px;
  text-align: center;
}

.section--dark .breach__title {
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}

.breach__content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.section--dark .breach__excerpt {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 2.5rem;
}

/* ================================================== */
/* Practice Areas */
/* ================================================== */

.practice-areas {
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--stone);
}

.practice-item {
  border-bottom: 1px solid var(--stone);
}

.practice-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 0.5rem;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.practice-number {
  min-width: 2.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  color: var(--gold-deep);
}

.practice-title {
  flex: 1;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.2;
  color: var(--black);
  transition: color 0.3s ease;
}

.practice-header:hover .practice-title {
  color: var(--gold-deep);
}

.practice-toggle {
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold-deep);
  transition: transform 0.3s ease;
}

.practice-item.is-open .practice-toggle {
  transform: rotate(45deg);
}

.practice-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.practice-list {
  list-style: none;
  columns: 2;
  column-gap: 3rem;
  padding: 0 0.5rem 2rem 5rem;
}

.practice-list li {
  position: relative;
  break-inside: avoid;
  padding: 0.4rem 0 0.4rem 1.25rem;
  color: var(--text-light);
}

.practice-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 1px;
  background-color: var(--gold);
}

/* ================================================== */
/* Attorney */
/* ================================================== */

.attorney-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5rem;
  align-items: start;
}

.attorney__image {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.attorney__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.attorney__subtitle {
  margin-bottom: 1rem;
}

.attorney__title {
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  margin-bottom: 2rem;
}

.attorney__bio p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.attorney__contact {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--stone);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
}

.attorney__contact p {
  margin: 0;
  color: var(--black);
}

.attorney__contact strong {
  font-weight: 600;
}

/* ================================================== */
/* Credentials */
/* ================================================== */

.credentials {
  padding-top: 5rem;
  padding-bottom: 5rem;
  text-align: center;
}

.credentials__title {
  font-size: 2rem;
  margin-bottom: 3rem;
}

.credentials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto 3rem;
}

.credentials__item {
  width: 100%;
  height: 150px;
  padding: 1.25rem;
  object-fit: contain;
  background-color: var(--white);
}

.credentials__reviews {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.credentials__reviews p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.credentials__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.credentials__links a {
  color: var(--gold);
  font-weight: 500;
  border-bottom: 1px solid rgba(168, 153, 104, 0.4);
}

.credentials__links a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ================================================== */
/* Why Kaneshiro */
/* ================================================== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.why-card {
  padding: 2.5rem;
  background-color: var(--white);
  border: 1px solid var(--stone);
  border-top: 2px solid var(--gold);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.why-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.why-card h4 {
  font-size: 1.65rem;
  margin-bottom: 1rem;
}

.why-card p {
  line-height: 1.75;
}

/* ================================================== */
/* Testimonials */
/* ================================================== */

.testimonials-carousel {
  max-width: 880px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials__list {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial {
  flex: 0 0 100%;
  padding: 3.5rem 3rem;
  background-color: var(--ivory);
  border: 1px solid var(--stone);
  text-align: center;
}

.testimonial__quote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.testimonial__body p {
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.testimonial__attribution {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonials__prev,
.testimonials__next {
  width: 44px;
  height: 44px;
  border: 1px solid var(--stone);
  border-radius: 50%;
  background: none;
  font-size: 1.1rem;
  color: var(--black);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.testimonials__prev:hover,
.testimonials__next:hover {
  background-color: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.testimonials__indicators {
  display: flex;
  gap: 0.25rem;
}

.testimonials__dot {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

.testimonials__dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--stone);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonials__dot.is-active::before {
  background-color: var(--gold);
  transform: scale(1.25);
}

/* ================================================== */
/* CTA */
/* ================================================== */

.cta-section {
  text-align: center;
}

.cta-section .section__container {
  max-width: 860px;
}

.cta-section__title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.cta-section__subtitle {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section--dark .cta-section__note {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.contact-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.contact-block h4 {
  margin-bottom: 0.6rem;
}

.contact-block p {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.contact-block a {
  color: var(--text-dark);
  border-bottom: 1px solid var(--stone);
}

.contact-block a:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

.contact-form-wrapper {
  padding: 3rem;
  background-color: var(--white);
  border: 1px solid var(--stone);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form .button {
  align-self: flex-start;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--stone);
  border-radius: 0;
  background-color: var(--ivory);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background-color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-message {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem;
  text-align: center;
}

.form-message.is-visible {
  display: block;
}

.form-message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #81c784;
}

.form-message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
}

.contact-map {
  margin-top: 5rem;
  height: 400px;
  border: 1px solid var(--stone);
  overflow: hidden;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.footer {
  background-color: var(--black);
  color: var(--white);
  padding: 5rem var(--gutter) 2rem;
}

.footer__container {
  max-width: var(--container);
  margin: 0 auto;
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer__brand h4 {
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.5rem;
}

.footer__nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--gold);
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ================================================== */
/* Scroll reveal (classes added by main.js) */
/* ================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ================================================== */
/* Responsive Design */
/* ================================================== */

@media (max-width: 1280px) {
  .header__phone {
    display: none;
  }
}

@media (max-width: 1024px) {
  .header__menu-toggle {
    display: flex;
    margin-left: 0;
  }

  .header__actions {
    margin-left: auto;
  }

  /* Full-screen mobile menu */
  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .header__nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
  }

  .nav__link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--white);
  }

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

  .hero__container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero__image-wrapper {
    margin: 0 auto;
  }

  .attorney-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .attorney__image {
    position: static;
    max-width: 460px;
  }

  .credentials__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 560px;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 1.25rem;
    --header-height: 70px;
  }

  .header__actions {
    display: none;
  }

  .header__menu-toggle {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 4rem;
  }

  .hero__ctas .button {
    flex: 1 1 100%;
  }

  .hero__image-label {
    display: none;
  }

  .hero__image-wrapper {
    width: calc(100% - 1.5rem);
    max-width: 340px;
  }

  .hero__image-wrapper::before {
    inset: 0.75rem -0.75rem -0.75rem 0.75rem;
  }

  .section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .section__intro {
    gap: 1.5rem;
  }

  .section__number {
    font-size: 5rem;
  }

  .section__body {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section__text--left {
    margin-bottom: 1.5rem;
  }

  .section__header,
  .section__container > .section__title {
    margin-bottom: 2.75rem;
  }

  .practice-header {
    gap: 1rem;
    padding: 1.4rem 0;
  }

  .practice-number {
    min-width: 1.75rem;
    font-size: 1.05rem;
  }

  .practice-title {
    font-size: 1.45rem;
  }

  .practice-list {
    columns: 1;
    padding: 0 0 1.5rem 2.75rem;
  }

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

  .why-card {
    padding: 2rem 1.5rem;
  }

  .testimonial {
    padding: 2.5rem 1.5rem;
  }

  .cta-section__actions .button {
    flex: 1 1 100%;
  }

  .contact-form-wrapper {
    padding: 2rem 1.25rem;
  }

  .contact-form .button {
    align-self: stretch;
  }

  .contact-map {
    margin-top: 3.5rem;
    height: 300px;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .button {
    white-space: normal;
  }

  .credentials__item {
    height: 120px;
    padding: 1rem;
  }
}
