﻿/* ===== RESET & BASE ===== */
:root {
  --page-bg: #f3eeea;
  --panel-bg: #fbf7f4;
  --soft-border: #dfd8d1;
  --text: #1f2024;
  --muted: #57575f;
  --muted-soft: #77767d;
  --header-bg: #110e13;
  --gold: #c79a4a;
  --gold-dark: #4f3512;
  --cta-bg: #201c23;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sora', sans-serif;
  background: var(--page-bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container {
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 0 28px;
}

.nav-inner,
.hero-content {
  width: min(100%, 1280px);
}

/* ===== HEADER ===== */
.header {
  background: var(--header-bg);
  height: 78px;
  position: relative;
  z-index: 20;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-image {
  display: block;
  width: auto;
  height: 58px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 24px;
}

.nav a {
  font-size: 0.79rem;
  font-weight: 400;
  color: #dfd8d1;
  transition: color 0.15s ease;
}

.nav a:hover { color: #ffffff; }

.btn-nav-gold,
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--gold-dark);
  border-radius: 6px;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  transition: filter 0.15s ease, background 0.15s ease;
}

.btn-nav-gold:hover,
.btn-gold:hover {
  filter: brightness(0.96);
}

.btn-nav-gold {
  min-width: 113px;
  height: 38px;
  padding: 0 18px;
  font-size: 0.78rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0) 34%),
    linear-gradient(90deg, #f8f4f0 0%, #f4efea 38%, #efe8e2 100%);
}

.hero-media {
  position: absolute;
  top: 0;
  right: max(16px, calc((100vw - 1280px) / 2 + 28px));
  bottom: 16px;
  left: clamp(440px, 36vw, 580px);
  z-index: 0;
  overflow: hidden;
}

.hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    #f8f4f0 0%,
    rgba(248, 244, 240, 0.98) 6%,
    rgba(248, 244, 240, 0.9) 14%,
    rgba(248, 244, 240, 0.72) 24%,
    rgba(248, 244, 240, 0.42) 36%,
    rgba(248, 244, 240, 0.16) 48%,
    rgba(248, 244, 240, 0.03) 60%,
    rgba(248, 244, 240, 0) 72%
  );
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.92) contrast(0.98) brightness(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(248, 244, 240, 0.42) 0%,
    rgba(248, 244, 240, 0.22) 18%,
    rgba(248, 244, 240, 0.08) 30%,
    rgba(248, 244, 240, 0.02) 42%,
    rgba(248, 244, 240, 0) 56%,
    rgba(248, 244, 240, 0) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 600px;
  padding-top: 20px;
  padding-bottom: 28px;
}

.hero-copy {
  max-width: 520px;
}

.hero-content h1 {
  font-size: clamp(2.65rem, 3.35vw, 3.4rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.95px;
  color: #1b1c20;
}

.hero-sub {
  max-width: 430px;
  margin: 26px 0 24px;
  font-size: 0.95rem;
  line-height: 1.66;
  color: #44454c;
}

.btn-gold {
  width: fit-content;
  min-width: 184px;
  height: 46px;
  padding: 0 22px;
  font-size: 0.92rem;
}

.btn-hero-cta {
  min-width: 178px;
  height: 46px;
  padding: 0 22px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-note {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: #5d5e64;
}

/* ===== MAIN SECTIONS ===== */
.solutions,
.trust,
.cta-section,
.footer {
  background: var(--page-bg);
}

.solutions {
  padding: 30px 0 20px;
}

.section-title {
  margin-bottom: 20px;
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.45px;
  color: #25262b;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: #fbf8f5;
  border: 1px solid #e7e0da;
  border-radius: 10px;
  padding: 19px 20px 17px;
  min-height: 126px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(38, 29, 24, 0.05), 0 4px 14px rgba(38, 29, 24, 0.03);
}

.card-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 38px;
  height: 38px;
  overflow: visible;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.2px;
  color: #2f3036;
}

.card p {
  max-width: 320px;
  font-size: 0.78rem;
  line-height: 1.58;
  color: #54565f;
}

/* ===== TRUST ===== */
.trust {
  padding: 20px 0 14px;
}

.trust-inner {
  text-align: center;
}

.trust .section-title {
  margin-bottom: 14px;
  font-size: 1rem;
}

.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  color: #44454d;
}

.brand-skadden {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 1.92rem;
  line-height: 1;
}

.brand-latham,
.brand-white {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

.brand-hogan {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  border: 1px solid #8e8b88;
  padding: 4px 7px;
  text-transform: none;
}

/* ===== CTA ===== */
.cta-section {
  padding: 8px 0 22px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(30, 24, 26, 0.82) 0%, rgba(24, 19, 22, 0.9) 100%),
    url('hero-illustration.png') center 38% / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 44px 40px 30px;
  text-align: center;
  color: #f3efea;
  box-shadow: 0 10px 28px rgba(16, 12, 15, 0.16);
  isolation: isolate;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 72%, rgba(235, 197, 121, 0.18), transparent 22%),
    radial-gradient(circle at 82% 22%, rgba(255, 243, 220, 0.14), transparent 18%),
    linear-gradient(135deg, rgba(255,255,255,0.06), transparent 28%, rgba(255,214,148,0.07) 54%, transparent 100%);
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 22, 24, 0.74) 0%, rgba(28, 22, 24, 0.38) 35%, rgba(28, 22, 24, 0.62) 100%);
  pointer-events: none;
  z-index: 0;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  font-weight: 400;
  letter-spacing: -0.25px;
}

.cta-box > p {
  max-width: 525px;
  margin: 0 auto;
  font-size: 0.84rem;
  line-height: 1.7;
  color: #ece3dc;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.cta-btn {
  height: 42px;
  min-width: 160px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 500;
}

.btn-dark-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 198px;
  height: 42px;
  padding: 0 22px;
  border-radius: 6px;
  border: 1px solid rgba(214, 207, 199, 0.55);
  color: #e6e0db;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-dark-outline:hover {
  border-color: rgba(230, 193, 121, 0.8);
  color: #fff7ef;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: fit-content;
  margin: 20px auto 0;
  text-align: left;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #efe5dd;
}

.checklist li::before {
  content: '';
  width: 6px;
  height: 11px;
  border-right: 2px solid #d1a24d;
  border-bottom: 2px solid #d1a24d;
  transform: rotate(45deg) translateY(-1px);
  flex-shrink: 0;
}

body.modal-open {
  overflow: hidden;
}

.cta-specialist-trigger {
  border: 0;
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(17, 14, 19, 0.58);
  backdrop-filter: blur(12px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden],
.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(100%, 560px);
  overflow: hidden;
  border: 1px solid rgba(216, 194, 154, 0.2);
  border-radius: 24px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(30, 24, 26, 0.84) 0%, rgba(24, 19, 22, 0.92) 100%),
    url('hero-illustration.png') center 42% / cover no-repeat;
  box-shadow: 0 28px 80px rgba(8, 6, 10, 0.36);
  color: #f4ede6;
  isolation: isolate;
}

.modal-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 72%, rgba(235, 197, 121, 0.18), transparent 22%),
    radial-gradient(circle at 82% 22%, rgba(255, 243, 220, 0.14), transparent 18%),
    linear-gradient(135deg, rgba(255,255,255,0.06), transparent 28%, rgba(255,214,148,0.07) 54%, transparent 100%);
  pointer-events: none;
}

.modal-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(28, 22, 24, 0.76) 0%, rgba(28, 22, 24, 0.4) 35%, rgba(28, 22, 24, 0.64) 100%);
  pointer-events: none;
}

.modal-panel > * {
  position: relative;
  z-index: 1;
}

.modal-panel-success {
  width: min(100%, 480px);
  text-align: center;
  padding: 34px 30px 38px;
  background:
    linear-gradient(180deg, rgba(30, 24, 26, 0.82) 0%, rgba(24, 19, 22, 0.9) 100%),
    url('hero-illustration.png') center 38% / cover no-repeat;
}

.modal-panel-success::before {
  background:
    radial-gradient(circle at 18% 72%, rgba(235, 197, 121, 0.16), transparent 22%),
    radial-gradient(circle at 82% 22%, rgba(255, 243, 220, 0.12), transparent 18%),
    linear-gradient(135deg, rgba(255,255,255,0.05), transparent 28%, rgba(255,214,148,0.06) 54%, transparent 100%);
}

.modal-panel-success::after {
  background:
    radial-gradient(circle at 50% 18%, rgba(114, 179, 255, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(28, 22, 24, 0.44) 0%, rgba(28, 22, 24, 0.76) 100%);
}

.modal-panel-success .modal-description {
  margin: 18px auto 0;
  max-width: 372px;
}

.modal-panel-success .modal-submit-btn {
  margin-top: 62px;
}

.success-visual {
  display: grid;
  place-items: center;
  margin: 8px 0 8px;
}

.success-visual svg {
  filter: drop-shadow(0 10px 24px rgba(240, 201, 128, 0.16));
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5eee8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(216, 173, 94, 0.42);
}

.modal-topline,
.success-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(216, 173, 94, 0.26);
  border-radius: 999px;
  background: rgba(216, 173, 94, 0.12);
  color: #f0c980;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-title {
  margin-top: 18px;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.modal-description {
  margin-top: 14px;
  max-width: 430px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #ded2c8;
}

.modal-contact-card {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.modal-contact-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d3c0ae;
}

.modal-contact-link {
  font-size: 1rem;
  font-weight: 500;
  color: #fff1d5;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  font-size: 0.88rem;
  color: #e9dbcf;
}

.form-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff5ec;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.form-field input::placeholder {
  color: #ac9f95;
}

.form-field input:focus {
  border-color: rgba(216, 173, 94, 0.72);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(216, 173, 94, 0.12);
}

.form-status {
  min-height: 22px;
  font-size: 0.84rem;
  color: #ffcdc3;
}

.modal-submit-btn {
  min-width: 100%;
  height: 52px;
  border: 0;
  cursor: pointer;
}

.submit-button-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 100%;
}

.submit-button-icon {
  width: 0;
  height: 18px;
  opacity: 0;
  overflow: hidden;
  transform: scale(0.85);
  transition: width 0.2s ease, opacity 0.2s ease, margin-right 0.2s ease, transform 0.2s ease;
}

.modal-submit-btn.is-loading .submit-button-icon {
  width: 18px;
  opacity: 1;
  margin-right: 10px;
  transform: scale(1);
  animation: gavel-swing 1s ease-in-out infinite;
}

.modal-submit-btn.is-loading .submit-button-label {
  letter-spacing: 0.01em;
}

.modal-submit-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

@keyframes gavel-swing {
  0% {
    transform: scale(0.94) rotate(-10deg);
    opacity: 0.76;
  }

  50% {
    transform: scale(1.04) rotate(8deg);
    opacity: 1;
  }

  100% {
    transform: scale(0.94) rotate(-10deg);
    opacity: 0.76;
  }
}

/* ===== FOOTER ===== */
.footer {
  padding: 10px 0 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #959297;
}

.footer-left,
.footer-right,
.footer-icons-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-right a {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.footer-left a,
.footer-brand-in,
.footer-sep {
  font-size: 0.48rem;
  color: #97949b;
}

.footer-icons-group,
.footer-right {
  color: #9d9aa1;
}

.footer-icons-group svg,
.footer-right svg {
  width: 10px;
  height: 10px;
}

.footer-brand-in {
  font-size: 0.58rem;
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .header {
    height: 72px;
  }

  .logo {
    min-width: 0;
  }

  .logo-image {
    height: 48px;
    width: auto;
  }

  .hero {
    min-height: 560px;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(248,244,240,0.78) 0%,
      rgba(248,244,240,0.72) 28%,
      rgba(248,244,240,0.52) 58%,
      rgba(248,244,240,0.22) 100%
    );
  }

  .hero-media {
    top: 0;
    right: 0;
    bottom: 0;
    left: 46%;
    border-radius: 0;
  }

  .hero-content {
    min-height: 560px;
    padding-bottom: 34px;
  }

  .hero-copy {
    max-width: 420px;
  }

  .hero-sub {
    max-width: 480px;
  }

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

  .card p {
    max-width: none;
  }
}

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

  .nav {
    display: none;
  }

  .btn-nav-gold {
    margin-left: auto;
  }

  .logo-image {
    height: clamp(34px, 9vw, 42px);
  }

  .hero {
    min-height: auto;
    padding: 24px 0 28px;
  }

  .hero-media {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    height: 260px;
    margin: 0 18px;
    border-radius: 18px;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(248,244,240,0.14) 0%,
      rgba(248,244,240,0.08) 100%
    );
    pointer-events: none;
  }

  .hero-content {
    min-height: auto;
    padding-top: 26px;
    padding-bottom: 0;
    align-items: flex-start;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 8.5vw, 3rem);
    line-height: 1.18;
  }

  .hero-sub {
    font-size: 0.96rem;
    max-width: none;
    margin: 18px 0 22px;
  }

  .btn-gold {
    min-width: 220px;
    height: 52px;
    font-size: 0.96rem;
  }

  .logos {
    gap: 18px;
  }

  .brand-skadden {
    font-size: 1.45rem;
  }

  .cta-box {
    padding: 32px 20px 24px;
  }

  .cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn,
  .btn-dark-outline {
    width: 100%;
    max-width: 280px;
  }

  .modal {
    padding: 16px;
  }

  .modal-panel {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  .modal-description {
    max-width: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-left {
    flex-wrap: wrap;
    justify-content: center;
  }
}
