/* ============================================================
   INTEGRA LATAM — landing page styles
   Brand: deep purple #3A176A · warm gold accent · warm neutrals
   ============================================================ */

:root {
  --purple: #3A176A;
  --purple-deep: #2A0F52;
  --purple-soft: #EDE7F6;
  --gold: #C4923B;
  --gold-soft: #F3E7D3;
  --ink: #2B2438;
  --ink-soft: #5C5470;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --line: #E5DFEE;
  --error: #B3372B;
  --success: #2E6B3F;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(42, 15, 82, 0.10);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--purple);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.btn-primary {
  background: var(--purple);
  color: var(--white);
}
.btn-primary:hover { background: var(--purple-deep); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}
.btn-outline:hover { background: var(--purple-soft); transform: translateY(-1px); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

.logo-img { height: 34px; width: auto; }

.main-nav {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--purple); }

.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(58, 23, 106, 0.08), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(196, 146, 59, 0.10), transparent 60%),
    var(--cream);
  padding: 5.5rem 0 5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 500;
  margin: 1.4rem 0 1rem;
  max-width: 34em;
}

.hero-supporting {
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 36em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-visual-card {
  position: relative;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-visual-card picture {
  display: block;
  border-radius: 24px;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(42, 15, 82, 0.18);
  white-space: nowrap;
}
.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.chip-1 { top: 9%; left: -6%; }
.chip-2 { bottom: 26%; right: -8%; }
.chip-3 { bottom: 7%; left: 4%; }

/* ---------- Logo strip (marquee) ---------- */
.logo-strip {
  padding: 12px 0 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.logo-strip-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 13px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  padding-right: 4.5rem;
}

.strip-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.strip-logo img {
  height: 90px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.strip-logo:hover img { opacity: 1; }

/* Wordmark-shaped logos need less height than square badge logos */
.strip-logo img.logo-wide { height: 34px; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }

.section-head {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-intro {
  color: var(--ink-soft);
  margin-top: 1.1rem;
  font-size: 1.05rem;
}

/* ---------- Cards (What We Do) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.93rem; }

.card-note {
  margin-top: 0.8rem;
  font-size: 0.78rem !important;
  font-style: italic;
  color: var(--gold);
}

/* ---------- Services (dark) ---------- */
.section-dark {
  background: linear-gradient(170deg, var(--purple) 0%, var(--purple-deep) 100%);
}
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark .section-intro { color: rgba(255, 255, 255, 0.75); }
.eyebrow-light { color: var(--gold-soft); }

.steps {
  list-style: none;
  display: grid;
  gap: 0;
  max-width: 780px;
}

.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin-bottom: 0.35rem; }
.step p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; max-width: 44em; }

.pull-quote {
  margin-top: 3.5rem;
  max-width: 720px;
  border-left: 3px solid var(--gold);
  padding-left: 1.6rem;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-style: italic;
  color: var(--gold-soft);
  line-height: 1.5;
}

/* ---------- Why INTEGRA + Form ---------- */
.convert-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.benefit-list {
  list-style: none;
  display: grid;
  gap: 1.1rem;
}

.benefit-list li {
  position: relative;
  padding-left: 2.2rem;
  color: var(--ink);
  font-size: 1rem;
}
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.positioning-line {
  margin-top: 2.2rem;
  padding: 1.4rem 1.6rem;
  background: var(--purple-soft);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--purple);
  line-height: 1.55;
}

/* ---------- Form ---------- */
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
}

.form-title {
  margin-bottom: 1.6rem;
  font-size: 1.45rem;
}

.field { margin-bottom: 1.15rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label, legend {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.req { color: var(--gold); }

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(58, 23, 106, 0.12);
}

textarea { resize: vertical; }

select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A176A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 16px; }

.checks {
  border: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
}
.checks legend { grid-column: 1 / -1; }

.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 400;
  font-size: 0.9rem;
  margin-bottom: 0;
  cursor: pointer;
}
.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--purple);
  flex-shrink: 0;
}

.field-error {
  display: none;
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 0.35rem;
}
.checks .field-error { grid-column: 1 / -1; }

.field.invalid .field-error { display: block; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--error); }

.privacy-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
}
.form-success p {
  font-size: 1.05rem;
  color: var(--ink);
  max-width: 26em;
  margin: 0 auto;
}
.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-icon svg { width: 30px; height: 30px; }

/* ---------- Legal pages (privacy policy) ---------- */
.legal-container { max-width: 760px; }

.legal h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 0.4rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 2.4rem 0 0.7rem;
}

.legal p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.legal ul {
  margin: 0 0 1rem 1.3rem;
  color: var(--ink-soft);
}

.legal li { margin-bottom: 0.45rem; }

.legal a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
  transition: color 0.2s ease;
}
.legal a:hover { color: var(--gold); }

.legal-back { margin-top: 3rem; }

/* ---------- Who We Are (placeholder until content arrives) ---------- */
.who-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.who-photo-placeholder {
  min-height: 260px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.who-placeholder-note {
  color: var(--ink-soft);
  font-style: italic;
  padding: 1.4rem 1.6rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

@media (max-width: 720px) {
  .who-grid { grid-template-columns: 1fr; }
  .who-photo-placeholder { min-height: 180px; }
}

/* ---------- Footer socials ---------- */
.footer-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--gold);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--purple-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.footer-logo span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.footer-tagline {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-soft);
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-contact p { margin-bottom: 0.4rem; font-size: 0.95rem; }
.footer-contact a,
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-contact a:hover,
.footer-links a:hover { color: var(--gold); }

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.95rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.4rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .chip-1 { left: 2%; }
  .chip-2 { right: 2%; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .convert-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 1rem 5%;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a:last-child { border-bottom: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }

  .hero { padding: 3.5rem 0; }
  .section { padding: 3.5rem 0; }
  .card-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .checks { grid-template-columns: 1fr; }
  .form-panel { padding: 1.6rem 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .step { gap: 1rem; }
  .step-num { width: 40px; height: 40px; font-size: 1.1rem; }
  .hero-chip { font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
