:root {
  --color-blue: #1b3a6b;
  --color-blue-dark: #142d54;
  --color-dark: #0c1829;
  --color-gray-bg: #f4f4f4;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-white: #ffffff;
  --font-main: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: min(1140px, calc(100% - 48px));
  --header-h: 72px;
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.08);
  --hero-image: url("https://images.unsplash.com/photo-1587582423116-ec07293f0395?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

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

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

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.25;
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  height: var(--header-h);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
}

.logo {
  grid-column: 1;
  justify-self: start;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(27, 58, 107, 0.08);
}

.menu-toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--color-blue);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav a {
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-blue);
  background: rgba(27, 58, 107, 0.08);
}

.logo-mark {
  flex-shrink: 0;
  height: 44px;
  width: 44px;
}

.logo-wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-blue);
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 64px;
  background-color: #122640;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 24, 41, 0.9) 0%, rgba(20, 45, 84, 0.6) 55%, rgba(27, 58, 107, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  color: var(--color-white);
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  margin-bottom: 32px;
  opacity: 0.95;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-hero {
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
  background: #f0f0f0;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  width: 100%;
  margin-top: 24px;
}

.btn-primary:hover {
  background: var(--color-blue-dark);
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}

.process-step {
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  text-align: center;
}

.process-step h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.35;
}

.process-step h3:first-of-type {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin: 5px auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 0.95rem;
  line-height: 1;
}

.process-step h3 + h3 {
  font-size: 0.98rem;
  min-height: 4.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  text-align: center;
}

.process-arrow {
  color: var(--color-text-muted);
  font-size: 1.25rem;
  padding-top: 8px;
  align-self: center;
}

/* Practice areas */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.practice-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.practice-card .btn-primary {
  margin-top: auto;
}

.practice-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.practice-card > p {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--color-text-muted);
}

.practice-card ul {
  margin-bottom: 8px;
}

.practice-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--color-text);
}

.practice-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-blue);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.about-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--color-text-muted);
}

.mission-box {
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: 12px;
  padding: 40px;
}

.mission-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.mission-box p {
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.92;
  margin-bottom: 5px;
}

/* Stats */
.stats {
  background: var(--color-white);
  padding: 64px 0;
}

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

.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 8px;
  line-height: 1.1;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Why choose us */
.why-intro {
  text-align: center;
  max-width: 720px;
  margin: -32px auto 40px;
  color: var(--color-text-muted);
}

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

.why-card {
  background: var(--color-gray-bg);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.why-card-highlight {
  background: var(--color-blue);
  color: var(--color-white);
}

.why-card-highlight h3 {
  font-size: 1.5rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.testimonial {
  margin: 0;
}

.quote-icon {
  display: block;
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, serif;
  opacity: 0.35;
  margin-bottom: 8px;
}

.testimonial p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.testimonial footer strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.testimonial footer span {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Contact CTA */
.contact-cta {
  background: var(--color-gray-bg);
}

.contact-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-cta-sub {
  font-weight: 700;
  margin-bottom: 16px !important;
}

.contact-cta-text > p {
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.contact-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-list a {
  display: block;
  color: var(--color-text);
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--color-blue);
}

.contact-list span {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.contact-cta .btn-primary {
  width: auto;
  margin-top: 8px;
}

.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.map-wrap iframe {
  width: 100%;
  flex: 1;
  border: 0;
  display: block;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding-top: 64px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  opacity: 0.85;
}

.footer-contact h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-list-light a,
.contact-list-light span {
  color: rgba(255, 255, 255, 0.85);
}

.contact-list-light a:hover {
  color: var(--color-white);
}

.footer-map {
  padding-bottom: 48px;
}

.map-wrap-footer {
  max-width: 100%;
  min-height: 320px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 0 32px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  color: var(--color-white);
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* Responsive */
@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-arrow {
    display: none;
  }

  .practice-grid,
  .about-grid,
  .stats-grid,
  .why-grid,
  .testimonials-grid,
  .contact-cta-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 2;
    justify-self: end;
    z-index: 2;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) - 8px);
    right: 0;
    width: min(260px, calc(100vw - 24px));
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(12, 24, 41, 0.18);
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    z-index: 1;
  }

  .site-nav a {
    padding: 10px 12px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .site-header.menu-open .site-nav {
    display: flex;
  }

  .logo-wordmark {
    font-size: 1.1rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .practice-card {
    padding: 24px;
  }

  .mission-box {
    padding: 28px;
  }

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