/* ================================================================
   STUDIO LEGALE PIRAS — Main Stylesheet
   Premium Legal Website — Torino, Italia
   ================================================================ */

/* ----------------------------------------------------------------
   0. CSS Custom Properties
   ---------------------------------------------------------------- */
:root {
  /* Colors — Primary: #005eb8 / Secondary: white */
  --color-black: #1a1f2e;
  --color-black-deep: #0a0f18;
  --color-primary: #005eb8;
  --color-primary-dark: #004a93;
  --color-primary-light: #3d8fd6;
  --color-white: #ffffff;
  --color-ivory: #f5f7fa;
  --color-gray: #6b7280;
  --color-gray-light: #e2e5ea;
  --color-gray-lighter: #f0f2f5;

  /* Typography */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --section-padding: 120px;
  --section-padding-mobile: 70px;
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* ----------------------------------------------------------------
   1. Reset & Base
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-black);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul, ol {
  list-style: none;
}

/* ----------------------------------------------------------------
   2. Typography
   ---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
}

p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-gray);
}

.label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: 16px;
}

.label--light {
  color: rgba(255, 255, 255, 0.6);
}

.label--dark {
  color: var(--color-gray);
}

/* ----------------------------------------------------------------
   3. Layout
   ---------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-padding) 0;
}

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

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

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

/* ----------------------------------------------------------------
   4. Navigation
   ---------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(10, 15, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav.scrolled {
  background-color: rgba(10, 15, 24, 0.95);
  padding: 12px 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* --- Logo: on desktop always left, on mobile centered at top --- */
.nav__logo {
  position: relative;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.nav__logo-horizontal {
  height: 59px;
  width: auto;
  display: block;
}

.nav__logo-vertical {
  display: none;
}

.nav.scrolled .nav__logo {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
}

.nav__logo img {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nav links always visible on desktop */
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}

.nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-white);
  transition: width var(--transition-base);
}

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

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

.nav__cta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background-color: var(--color-white);
  padding: 12px 28px;
  transition: all var(--transition-base);
}

.nav__cta:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.nav__toggle span {
  width: 24px;
  height: 1.5px;
  background-color: var(--color-white);
  transition: all var(--transition-base);
  display: block;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile overlay */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-black-deep);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.nav__mobile.open {
  display: flex;
  opacity: 1;
}

.nav__mobile a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-white);
  opacity: 0.8;
  transition: opacity var(--transition-base);
}

.nav__mobile a:hover {
  opacity: 1;
}

/* ----------------------------------------------------------------
   5. Hero Section
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-black-deep);
  overflow: hidden;
}

/* Slideshow images */
.hero__slideshow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  top: -8px;
  left: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.8s ease, transform 8s ease;
  filter: blur(3px);
}

.hero__slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 30, 60, 0.82) 0%,
    rgba(0, 50, 100, 0.60) 40%,
    rgba(10, 15, 24, 0.78) 100%
  );
  z-index: 1;
}

.hero__pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.04;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(255, 255, 255, 0.5) 35px,
      rgba(255, 255, 255, 0.5) 36px
    );
  z-index: 2;
}

/* Slideshow dots */
.hero__dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.4s forwards;
}

.hero__dot {
  width: 32px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero__dot.active {
  background-color: var(--color-white);
  width: 48px;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 780px;
  padding-top: 140px;
}

.hero__line {
  width: 60px;
  height: 2px;
  background-color: var(--color-white);
  margin-bottom: 32px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineReveal 0.8s ease 0.3s forwards;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero__subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero__cta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background-color: var(--color-white);
  padding: 18px 44px;
  transition: all var(--transition-base);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.hero__cta:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 32px rgba(0, 94, 184, 0.4);
}

.hero__secondary {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.03em;
  transition: color var(--transition-base);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
}

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

.hero__badge {
  position: absolute;
  bottom: 60px;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.2s forwards;
}

.hero__badge-item {
  text-align: center;
}

.hero__badge-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.hero__badge-text {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
}

.hero__badge-divider {
  width: 1px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.15);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.4s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-white), transparent);
  animation: scrollPulse 2s ease infinite;
}

.hero__scroll-text {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  writing-mode: vertical-rl;
}

/* ----------------------------------------------------------------
   6. About Section (Lo Studio)
   ---------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__content h2 {
  margin-bottom: 28px;
}

.about__content p {
  margin-bottom: 20px;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.about__feature {
  padding: 0;
}

.about__feature-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 8px;
}

.about__feature-text {
  font-size: 0.9375rem;
  color: var(--color-gray);
  line-height: 1.6;
}

.about__visual {
  position: relative;
}

.about__carousel {
  position: relative;
  width: 100%;
  padding-bottom: 70%;
  overflow: hidden;
  background-color: var(--color-gray-light);
}

.about__carousel-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.about__carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.about__carousel-slide.active {
  opacity: 1;
}

.about__carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about__carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.about__carousel-dot {
  width: 32px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
}

.about__carousel-dot.active {
  background: var(--color-white);
}

.about__image-overlay {
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__image-overlay-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-black);
}

.about__image-overlay-text {
  font-size: 0.875rem;
  color: var(--color-gray);
}

/* Geometric accent inside image block */
.about__image-block .geometric {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 1px solid var(--color-primary);
  opacity: 0.3;
}

.about__image-block .geometric-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 80px;
  height: 80px;
  border: 1px solid var(--color-primary);
  opacity: 0.2;
}

/* ----------------------------------------------------------------
   7. Practice Areas
   ---------------------------------------------------------------- */
.practice {
  background-color: var(--color-black);
  position: relative;
  overflow: hidden;
}

.practice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--color-primary-light), transparent);
  opacity: 0.4;
}

.practice__header {
  text-align: center;
  margin-bottom: 72px;
}

.practice__header h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.practice__header p {
  color: rgba(255, 255, 255, 0.5);
  max-width: 560px;
  margin: 0 auto;
}

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

.practice__card {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 48px 36px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.practice__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.practice__card:hover {
  background-color: rgba(0, 94, 184, 0.08);
}

.practice__card:hover::before {
  transform: scaleX(1);
}

.practice__card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.practice__card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-primary-light);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.practice__card h3 {
  color: var(--color-white);
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.practice__card p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
}

.practice__more {
  margin-top: 64px;
  text-align: center;
}

.practice__more-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 24px;
}

.practice__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.practice__tag {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-base);
}

.practice__tag:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
}

/* ----------------------------------------------------------------
   8. Profile Section
   ---------------------------------------------------------------- */
.profile__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.profile__visual {
  position: relative;
}

.profile__image-wrapper {
  position: relative;
  background: linear-gradient(145deg, var(--color-ivory), var(--color-gray-light));
  padding-bottom: 120%;
  overflow: hidden;
}

.profile__image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
}

.profile__image-wrapper .geometric {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 1px solid rgba(0, 94, 184, 0.3);
  display: none;
}

.profile__credentials-bar {
  position: absolute;
  bottom: -32px;
  left: 30px;
  right: 30px;
  background-color: var(--color-primary);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.profile__credential {
  text-align: center;
}

.profile__credential-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.profile__credential-label {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

.profile__credential-divider {
  width: 1px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.15);
}

.profile__content h2 {
  margin-bottom: 12px;
}

.profile__title {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 28px;
}

.profile__content p {
  margin-bottom: 20px;
}

.profile__cta {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  padding: 16px 40px;
  transition: all var(--transition-base);
}

.profile__cta:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 94, 184, 0.35);
}

/* ----------------------------------------------------------------
   9. Testimonials
   ---------------------------------------------------------------- */
.testimonials__header {
  text-align: center;
  margin-bottom: 72px;
}

.testimonials__header h2 {
  margin-bottom: 16px;
}

.testimonials__header p {
  max-width: 480px;
  margin: 0 auto;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial {
  background-color: var(--color-white);
  padding: 40px 32px;
  border: 1px solid var(--color-gray-light);
  position: relative;
  transition: all var(--transition-base);
}

.testimonial:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 30px rgba(0, 94, 184, 0.08);
}

.testimonial__quote {
  font-size: 2.5rem;
  font-family: var(--font-serif);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.4;
}

.testimonial__text {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 28px;
}

.testimonial__author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-black);
}

.testimonial__date,
.testimonial__source {
  font-size: 0.75rem;
  color: var(--color-gray);
  margin-top: 4px;
}

.testimonial__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
}

.testimonial__star {
  width: 14px;
  height: 14px;
  fill: var(--color-primary);
}

/* ----------------------------------------------------------------
   10. Contact Section
   ---------------------------------------------------------------- */
.contact {
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact__info h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.contact__info > p {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 48px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__detail-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
}

.contact__detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.7);
  fill: none;
  stroke-width: 1.5;
}

.contact__detail-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.contact__detail-value {
  font-size: 1rem;
  color: var(--color-white);
  line-height: 1.5;
}

.contact__form-wrapper {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 48px;
  backdrop-filter: blur(8px);
}

.contact__form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 8px;
}

.contact__form-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 36px;
}

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

.form__group {
  display: flex;
  flex-direction: column;
}

.form__group--full {
  grid-column: 1 / -1;
}

.form__input,
.form__textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 18px;
  transition: border-color var(--transition-base);
  outline: none;
  width: 100%;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.12);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__submit {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background-color: var(--color-white);
  border: none;
  padding: 18px 48px;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: 24px;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

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

.contact__phone-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 20px;
}

.contact__phone-number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.contact__phone-hours {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 20px;
  letter-spacing: 0.04em;
}

.form__privacy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 16px;
  line-height: 1.5;
}

/* ----------------------------------------------------------------
   11. Footer
   ---------------------------------------------------------------- */
.footer {
  background-color: var(--color-black-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 64px 0 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.footer__logo img {
  height: 120px;
  opacity: 0.7;
  transition: opacity var(--transition-base);
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5))
          drop-shadow(0 0 12px rgba(255, 255, 255, 0.1));
}

.footer__logo img:hover {
  opacity: 0.9;
}

.footer__center {
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 12px;
}

.footer__link {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
  transition: color var(--transition-base);
}

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

.footer__copy {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.25);
}

.footer__right {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  line-height: 1.6;
}

.footer__credit {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer__credit > span {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
}

.footer__credit a {
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
  transition: opacity var(--transition-base);
}

.footer__credit-logo {
  height: 25px;
  width: auto;
  opacity: 0.4;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
  transition: opacity var(--transition-base);
}

.footer__credit a:hover .footer__credit-logo {
  opacity: 0.7;
}

/* ----------------------------------------------------------------
   12. Scroll Animations
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }
.reveal--delay-6 { transition-delay: 0.6s; }

/* ----------------------------------------------------------------
   13. Keyframes
   ---------------------------------------------------------------- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineReveal {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

/* ----------------------------------------------------------------
   14. Responsive Design
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .about__grid,
  .profile__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .profile__visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .practice__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__badge {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    margin-left: auto;
  }

  .nav.scrolled .nav__toggle {
    opacity: 1;
    pointer-events: auto;
  }

  /* Mobile: vertical logo centered on screen */
  .nav__logo {
    position: fixed;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    z-index: 1001;
  }

  .nav__logo-horizontal {
    display: none;
  }

  .nav__logo-vertical {
    display: block;
    height: 140px;
    width: auto;
    filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.4));
    opacity: 1;
    transition: opacity 0.4s ease;
  }

  .nav.scrolled .nav__logo-vertical {
    opacity: 0;
    pointer-events: none;
  }

  /* On scroll: horizontal logo, left in nav bar — back in flex flow */
  .nav.scrolled .nav__logo {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    z-index: 2;
  }

  .nav.scrolled .nav__logo-vertical {
    display: none;
  }

  .nav.scrolled .nav__logo-horizontal {
    display: block;
    height: 50px;
    filter: none;
  }

  /* Mobile: transparent nav at top, fixed height */
  .nav {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 22px 0;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
  }

  .nav__inner {
    min-height: 36px;
  }

  .nav.scrolled {
    padding: 22px 0;
    background-color: rgba(10, 15, 24, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .nav__logo {
    transition: none;
  }

  .hero {
    min-height: 100svh;
    align-items: flex-end;
  }

  .hero__content {
    padding-top: 260px;
    padding-bottom: 100px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero__subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
  }

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

  .hero__cta {
    text-align: center;
    padding: 18px 32px;
    font-size: 0.8rem;
  }

  .hero__secondary {
    text-align: center;
    display: block;
    padding: 12px 0;
    font-size: 0.875rem;
  }

  .hero__scroll {
    display: none;
  }

  .hero__dots {
    bottom: 28px;
  }

  .nav__mobile a {
    font-size: 1.8rem;
  }

  .footer__logo img {
    height: 120px;
  }

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

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

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

  .contact__form-wrapper {
    padding: 32px 24px;
  }

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

  .footer__inner {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .footer__links {
    display: none;
  }

  .footer__right {
    text-align: center;
  }

  .profile__credentials-bar {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 20px 16px;
    margin-top: 0;
  }

  .profile__visual {
    margin-bottom: 16px;
  }

  .profile__credential-value {
    font-size: 1.2rem;
  }

  .about__carousel {
    padding-bottom: 85%;
  }

  .profile__image-wrapper {
    padding-bottom: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .hero__content {
    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }

  .profile__credentials-bar {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 16px 12px;
    left: 12px;
    right: 12px;
  }

  .profile__credential-divider {
    display: none;
  }

  .testimonial {
    padding: 28px 20px;
  }
}
