:root {
  --brand-primary: #2f7a78;
  --brand-primary-dark: #1f4e4d;
  --brand-deep: #1f2f3d;
  --brand-accent: #c8b391;
  --bg: #f4f7f8;
  --surface: #ffffff;
  --text: #1d2430;
  --muted: #5a6470;
  --border: #d6dde3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(145deg, var(--brand-deep), var(--brand-primary-dark));
  color: #ffffff;
  padding-bottom: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #ffffff;
  min-width: 0;
}

.brand-logo {
  width: 220px;
  height: 220px;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0;
  image-rendering: auto;
  transform: translateZ(0);
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  text-align: left;
  min-width: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.brand-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.15;
}

.brand-line1 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.brand-line2 {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.brand-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--brand-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topbar.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.topbar.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.topbar.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav {
  display: flex;
  gap: 0.35rem 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: clamp(0.98rem, 1.1vw + 0.65rem, 1.12rem);
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover {
  color: #ffffff;
  border-bottom-color: var(--brand-accent);
}

.hero {
  padding: 2.3rem 0 2.6rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.3rem;
  align-items: center;
}

.hero-intro {
  position: relative;
  min-height: min(70vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-intro-bg {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  top: -14%;
  height: 128%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero-intro-bg {
    top: 0;
    height: 100%;
    will-change: auto;
  }
}

.hero-intro-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(19, 35, 49, 0.82) 0%,
    rgba(31, 78, 77, 0.55) 100%
  );
}

.hero-intro-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1rem 3.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.hero-intro-inner h1 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero-intro-inner p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
}

.hero-intro-actions {
  justify-content: center;
}

.hero-below {
  padding: 1.25rem 0 2.25rem;
}

.hero-below .panel-compact {
  max-width: 520px;
  margin: 0 auto;
}

h1 {
  font-size: clamp(1.9rem, 4.3vw, 3rem);
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

.hero p {
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, 0.93);
}

.btn-group {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  display: inline-block;
}

.btn-primary {
  background: var(--brand-accent);
  color: #1c1c1c;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  padding: 1rem;
}

.lawyer-photo-slot {
  margin-top: 1rem;
}

.lawyer-photo-placeholder {
  min-height: 220px;
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

.lawyer-photo-note {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: 3.8rem 0;
}

.section-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  color: var(--brand-deep);
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  color: var(--brand-primary-dark);
}

.steps {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.8rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-accent);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.photo-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.photo-grid img,
.wide-photo {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

.contact-area {
  background: linear-gradient(160deg, #1c2d3c, #27495f);
  color: #ffffff;
}

.contact-area .section-title,
.contact-area .section-subtitle {
  color: #ffffff;
}

.contact-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.contact-item {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  padding: 0.9rem;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.3rem;
}

.site-footer {
  background: #132331;
  color: #c5cfda;
  padding: 2rem 0 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1rem;
}

.footer-title {
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-size: 1rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.4rem;
}

.footer-links a,
.footer-contact a {
  color: #c5cfda;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #ffffff;
}

.footer-highlight {
  margin: 0.9rem 0 0;
}

.footer-highlight-link {
  display: inline-block;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(200, 179, 145, 0.7);
  background: rgba(200, 179, 145, 0.12);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
}

.footer-highlight-link:hover {
  background: rgba(200, 179, 145, 0.24);
  color: #ffffff;
}

.footer-bottom {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 0.9rem 0;
  font-size: 0.88rem;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  z-index: 1000;
}

.page-head {
  padding: 1.35rem 0 1rem;
}

.page-head h1 {
  margin-bottom: 0.4rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.map-frame {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 12px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
}

.contact-form h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--brand-primary-dark);
}

.contact-form p {
  margin-top: 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: #ffffff;
}

.field textarea {
  resize: vertical;
}

.form-actions {
  margin-top: 0.8rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-feedback {
  display: none;
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  margin: 0.55rem 0 1rem;
  border: 1px solid transparent;
  font-weight: 600;
  line-height: 1.45;
}

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

.form-feedback.is-success {
  color: #155b3a;
  background: #e7f7ee;
  border-color: #9fdab7;
  box-shadow: inset 0 0 0 1px rgba(159, 218, 183, 0.25);
}

.form-feedback.is-error {
  color: #7a1f1f;
  background: #fdeaea;
  border-color: #efb0b0;
  box-shadow: inset 0 0 0 1px rgba(239, 176, 176, 0.25);
}

.section-soft {
  background: #eef3f7;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.highlight-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.highlight-value {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
  color: var(--brand-primary-dark);
  font-weight: 700;
}

.highlight-label {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.check-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.check-list li {
  margin-bottom: 0.45rem;
}

.testimonial-card p {
  margin: 0 0 0.8rem;
  color: #2c3a4b;
}

.testimonial-author {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.faq {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-primary-dark);
}

.faq-item p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.cta-band {
  background: linear-gradient(150deg, #132c44, #1f4a63);
  color: #ffffff;
}

.cta-band .section-title,
.cta-band .section-subtitle {
  color: #ffffff;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-row .btn-group {
  flex-shrink: 0;
}

.section-subtitle.gallery-intro-follow,
.section-subtitle.services-intro-follow {
  margin-top: 0.75rem;
}

.photo-grid--trust img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-photo-credit {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.gallery-photo-credit a {
  color: var(--brand-primary-dark);
}

@media (max-width: 1024px) {
  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 0.75rem;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 52px);
  }

  .nav {
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    margin-top: 0;
    border-top: 1px solid transparent;
    transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.22s ease,
      margin 0.22s ease, border-color 0.22s ease;
  }

  .topbar.is-nav-open .nav {
    max-height: 22rem;
    opacity: 1;
    padding-top: 0.65rem;
    margin-top: 0.15rem;
    border-top-color: rgba(255, 255, 255, 0.14);
  }

  .nav a {
    padding: 0.65rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

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

  .cta-row .btn-group {
    width: 100%;
    flex-direction: column;
  }

  .cta-row .btn {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav {
    transition: none;
  }

  .nav-toggle-bar {
    transition: none;
  }
}

@media (max-width: 880px) {
  .hero-intro {
    min-height: min(56vh, 520px);
  }

  .hero-intro-inner {
    padding: 2.2rem 1rem 2.6rem;
  }

  .brand-logo {
    width: 150px;
    height: 150px;
  }

  .topbar {
    padding: 0.45rem 0;
  }

  .hero,
  .cards-3,
  .photo-grid,
  .contact-grid,
  .split {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-contact li {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 2.35rem 0;
  }

  .cards-3,
  .photo-grid {
    grid-template-columns: 1fr;
  }

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

  .brand-logo {
    width: 112px;
    height: 112px;
  }

  .lawyer-photo-placeholder {
    min-height: 180px;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
  }

  .page-head {
    padding: 1rem 0 0.85rem;
  }

  .map-frame {
    min-height: 260px;
  }
}
