/* ==========================================================================
   Claim Assist - site stylesheet
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ink: #1b2430;
  --ink-soft: #3d4a57;
  --muted: #5d6973;
  --line: #e2e7e4;
  --surface: #f5f7f6;
  --white: #ffffff;

  --navy: #14202c;
  --navy-2: #252a40;

  --brand: #7a7af0;
  --brand-dark: #4a4ab8;
  --brand-soft: #ececff;
  --brand-hover: #6b6be6;
  --brand-glow: rgba(153, 153, 255, 0.35);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 44, 0.06), 0 1px 3px rgba(20, 32, 44, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(20, 32, 44, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(20, 32, 44, 0.35);

  --header-h: 76px;
  --container: 1160px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p {
  margin: 0 0 1em;
}

section {
  scroll-margin-top: var(--header-h);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 8px 20px -8px var(--brand);
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: var(--white);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 9px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
  text-decoration: none;
}

.nav-links .btn {
  margin-left: 10px;
  padding: 11px 20px;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 60px) 0 100px;
  color: var(--white);
  background-color: var(--navy);
  background-image: url("../img/gallery/team-1800.jpg");
  background-size: cover;
  background-position: right var(--header-h);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(20, 32, 44, 0.96) 0%, rgba(20, 32, 44, 0.82) 45%, rgba(20, 32, 44, 0.35) 100%);
}

.hero-content {
  max-width: 620px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 1.14rem;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 14px;
}

/* ---------- Services ---------- */
.services {
  background: var(--surface);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  height: 100%;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(153, 153, 255, 0.6);
}

.service-icon {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ececff;
  color: #5a5ac4;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card p {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- Fees ---------- */
.fees {
  background: var(--navy-2);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
}

.fees::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 153, 255, 0.25), transparent 70%);
  pointer-events: none;
}

.fees h2 {
  color: var(--white);
}

/* ---------- Differentiators ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.why-media {
  position: relative;
}

.why-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.why-media::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -18px;
  bottom: -18px;
  width: 60%;
  height: 60%;
  border-radius: var(--radius-lg);
  background: var(--brand-soft);
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 26px;
}

.why-list li {
  display: flex;
  gap: 18px;
}

.why-num {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.why-list h3 {
  margin-bottom: 4px;
}

.why-list p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 40px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cdd6d1;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
  color: #94a0a8;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: 6px;
}

#contactFormResponse {
  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brand-dark);
}

#contactFormResponse ul {
  margin: 0;
  padding-left: 18px;
  color: #b42318;
}

.contact-card {
  display: flex;
  flex-direction: column;
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: rgba(255, 255, 255, 0.85);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:first-of-type {
  border-top: 0;
}

.contact-item .service-icon {
  background: rgba(153, 153, 255, 0.18);
  color: #b3b3ff;
}

.contact-item small {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.contact-item a,
.contact-item span.val {
  font-weight: 600;
  color: var(--white);
  word-break: break-word;
}

.contact-card .btn {
  margin-top: auto;
}

.contact-card .btn-primary {
  box-shadow: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-2);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 36px;
  font-size: 0.92rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-top p {
  margin: 0;
}

.footer-top strong {
  color: var(--white);
}

.accreditations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
  padding: 18px 24px;
  background: var(--white);
  border-radius: var(--radius);
}

.accreditations img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  background: #25d366;
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}

.whatsapp-float img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  padding: 4px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links a {
    padding: 9px 10px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 12px;
    font-size: 1rem;
  }

  .nav-links .btn {
    margin: 10px 0 0;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 56px) 0 80px;
    background-position: 70% var(--header-h);
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(20, 32, 44, 0.92) 0%, rgba(20, 32, 44, 0.85) 100%);
  }

  .section {
    padding: 72px 0;
  }

  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .why-media {
    order: -1;
  }

  .why-media img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .brand img {
    height: 40px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 26px 22px;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    padding: 8px;
  }
}

.hero h1 img {
  width: min(440px, 85%);
  height: auto;
}

.fees-text p {
  max-width: 820px;
  margin: 0 auto 1.1em;
  text-align: center;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.85);
}

.fees-text strong,
.fees-text a {
  color: var(--white);
}

.fees-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.why-title {
  margin-bottom: 36px;
}
