/* ======================================================
   YEDID BRASIL — Design System
   Modern · Institutional · Clean
   ====================================================== */

/* ---- Variables ---- */
:root {
  --navy:        #0B1D3A;
  --navy-mid:    #132951;
  --blue:        #1D4ED8;
  --blue-hover:  #1A3DBF;
  --blue-pale:   #EFF6FF;
  --green:       #059669;
  --green-pale:  #ECFDF5;
  --text:        #111827;
  --text-md:     #374151;
  --text-sm:     #6B7280;
  --text-xs:     #9CA3AF;
  --border:      #E5E7EB;
  --border-soft: #F3F4F6;
  --bg:          #FFFFFF;
  --bg-alt:      #F9FAFB;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:      0 4px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.09), 0 4px 16px rgba(0,0,0,0.05);
  --radius:      12px;
  --radius-lg:   20px;
  --container:   1200px;
  --transition:  160ms ease;
}

/* ---- Utility ---- */
.text-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* ---- Container ---- */
.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .container { padding-inline: 2.5rem; }
}
@media (min-width: 1100px) {
  .container { padding-inline: 3rem; }
}

/* ---- Section backgrounds ---- */
.bg-alt  { background: var(--bg-alt); }
.bg-dark { background: var(--navy); color: #fff; }

/* ---- Section spacing ---- */
.section { padding-block: 7rem; }

/* ---- Labels (eyebrow text) ---- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
}
/* ---- Section header ---- */
.section-header {
  max-width: 48rem;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.section-header p {
  font-size: 1.125rem;
  color: var(--text-md);
  max-width: 42rem;
  line-height: 1.6;
}
.section-header p + p {
  margin-top: 1rem;
}
.section-header p.section-header-note {
  max-width: 100%;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  color: var(--text-md);
  box-shadow: var(--shadow-sm);
}


/* ======================================================
   HEADER
   ====================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.25rem;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.logo-img {
  width: auto;
  height: 2.75rem;
  object-fit: contain;
}
.logo-img-sm {
  height: 2.25rem;
}
.logo-icon {
  display: none;
}
.logo-icon-sm {
  display: none;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.logo-country {
  font-size: 0.75rem;
  color: var(--text-sm);
  font-weight: 500;
}

/* Nav */
.nav {
  display: none;
  gap: 0.25rem;
}
.nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-md);
  transition: background var(--transition), color var(--transition);
}
.nav a:hover {
  background: var(--bg-alt);
  color: var(--text);
}

/* Header CTAs */
.header-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(29,78,216,0.28);
}
.btn-primary:hover { background: var(--blue-hover); box-shadow: 0 6px 20px rgba(29,78,216,0.35); }

.btn-primary-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(29,78,216,0.25);
  border-radius: 8px;
  border: 1.5px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-primary-sm:hover { background: var(--blue-hover); transform: translateY(-1px); }

.btn-ghost-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  color: var(--text-md);
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-ghost-sm:hover { background: var(--bg-alt); border-color: #D1D5DB; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue-pale); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); }

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  border-radius: 10px;
}
.btn + .btn { margin-left: 0; }


/* ======================================================
   HERO
   ====================================================== */
.hero {
  padding-block: 5rem 4rem;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem 0.45rem 0.7rem;
  background: var(--blue-pale);
  color: var(--blue);
  border: 1px solid rgba(29,78,216,0.15);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* Headline */
.hero-content h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(3rem, 7.5vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1.4rem;
}
.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-md);
  max-width: 46ch;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

/* Hero Trust */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.trust-avatars {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.avatar-group {
  display: flex;
  margin-right: 0.25rem;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }
.trust-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-sm);
}

/* Hero visual */
.hero-visual {
  position: relative;
}
.hero-card-stack {
  position: relative;
  z-index: 1;
}
.hero-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}
.hero-img-wrap:hover {
  transform: perspective(1000px) rotateY(0deg);
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.card-1 {
  top: 15%;
  left: -2rem;
  animation-delay: 0s;
}
.card-2 {
  bottom: 20%;
  right: -1.5rem;
  animation-delay: -3s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.card-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 10px;
  flex-shrink: 0;
}
.card-icon svg { width: 1.1rem; height: 1.1rem; }
.card-info { display: flex; flex-direction: column; line-height: 1.2; }
.card-info strong { font-size: 0.875rem; color: var(--text); }
.card-info span { font-size: 0.75rem; color: var(--text-sm); }

.hero-alert {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
}
.alert-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: #FEF9C3;
  border-radius: 8px;
  color: #92400E;
}
.alert-icon svg { width: 16px; height: 16px; }
.hero-alert strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.hero-alert p { color: var(--text-sm); margin: 0; line-height: 1.4; font-size: 0.75rem; }


/* ======================================================
   VALUES STRIP
   ====================================================== */
.values-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding-block: 1.1rem;
  overflow: hidden;
}
.values-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-sm);
}
.values-inner .sep {
  color: var(--border);
  font-size: 1.2rem;
  line-height: 1;
  display: none;
}


/* ======================================================
   SERVICES
   ====================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.service-card {
  padding: 2.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--blue);
}
.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  background: var(--blue-pale);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--blue);
  color: #fff;
}
.service-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--blue);
  transition: color 0.3s ease;
}
.service-card:hover .service-icon svg {
  color: #fff;
}
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 1rem;
  color: var(--text-sm);
  line-height: 1.6;
  margin: 0;
}


/* ======================================================
   HOW IT WORKS
   ====================================================== */
.how-section {
  background: #fff;
  position: relative;
  overflow: hidden;
}

.how-layout {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.how-intro {
  text-align: center;
  margin-inline: auto;
}

.how-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  position: relative;
}

@media (min-width: 1024px) {
  .how-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  /* Connecting line */
  .how-cards::before {
    content: "";
    position: absolute;
    top: 3rem;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-pale) 0%, var(--border) 50%, var(--blue-pale) 100%);
    z-index: 0;
  }
}

.how-card {
  position: relative;
  z-index: 1;
}

.how-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.how-card-inner::before { display: none; }

.how-card-head {
  margin-bottom: 2rem;
  position: relative;
}

.how-step {
  width: 4rem;
  height: 4rem;
  font-size: 1.25rem;
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue-pale);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.how-card:hover .how-step {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

.how-icon {
  position: absolute;
  bottom: -0.5rem;
  right: -0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--navy);
  color: #fff;
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
}

.how-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  color: #fff;
  display: block;
}

.how-card-inner h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.how-card-inner p {
  font-size: 1.0625rem;
  color: var(--text-md);
  max-width: 28ch;
}


/* ======================================================
   ABOUT
   ====================================================== */
.about-inner {
  display: grid;
  gap: 3rem;
}
.about-text h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.about-text p {
  font-size: 1.125rem;
  color: var(--text-md);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 54ch;
}
.about-text p:last-of-type { margin-bottom: 2rem; }
.value-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.value-chips span {
  padding: 0.5rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* Coverage box */
.coverage-box {
  background: var(--navy);
  color: #fff;
  border-radius: 32px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.coverage-box::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: var(--blue);
  filter: blur(100px);
  opacity: 0.3;
}
.coverage-header .label {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
}
.coverage-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.coverage-header p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.coverage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.coverage-tags span {
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s ease;
}
.coverage-tags span:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}


/* ======================================================
   FAQ
   ====================================================== */
.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 64rem;
}
.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-list details[open] {
  box-shadow: var(--shadow);
  border-color: var(--blue);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.faq-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  background: var(--blue-pale);
  border-radius: 10px;
  color: var(--blue);
  transition: all 0.3s ease;
}
.faq-icon svg { width: 1.1rem; height: 1.1rem; }
details[open] .faq-icon { transform: rotate(180deg); background: var(--blue); color: #fff; }
.faq-list p {
  padding: 0 2rem 1.75rem;
  font-size: 1.0625rem;
  color: var(--text-md);
  line-height: 1.6;
  margin: 0;
  border-top: 1px solid var(--border-soft);
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding-top: 6rem;
  padding-bottom: 3rem;
}
.footer-inner {
  display: grid;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { margin-bottom: 1.5rem; }
.footer-brand p {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  max-width: 32ch;
  line-height: 1.6;
}
.footer-brand .logo-brand { color: #fff; font-size: 1.5rem; }
.footer-brand .logo-country { color: rgba(255,255,255,0.5); font-size: 1rem; }
.footer-brand .logo-img { height: 3rem; }
.footer-brand .logo-icon { display: none; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-content: flex-start;
}
.footer-nav a {
  padding: 0;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s ease;
  font-weight: 600;
}
.footer-nav a:hover {
  color: #fff;
  background: transparent;
}
.footer-bottom {
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}


/* ======================================================
   RESPONSIVE — tablet (≥ 640px)
   ====================================================== */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-inner .sep { display: inline; }
}

/* ======================================================
   RESPONSIVE — desktop (≥ 900px)
   ====================================================== */
@media (min-width: 900px) {

  .nav { display: flex; }

  /* Hero split */
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
  .hero-visual { padding-bottom: 2.5rem; }
  .hero-alert { width: 100%; max-width: 320px; left: 0; transform: none; bottom: -1rem; }
  .floating-card { padding: 1rem 1.25rem; }
  .card-1 { left: -3.5rem; }
  .card-2 { right: -2.5rem; }

  /* Services 3 cols */
  .services-grid { grid-template-columns: repeat(3, 1fr); }

  /* About split */
  .about-inner { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: start; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ======================================================
   RESPONSIVE — large desktop (≥ 1100px)
   ====================================================== */
@media (min-width: 1100px) {
  .hero { padding-block: 6.5rem 5rem; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 5rem; }

  .section { padding-block: 6.5rem; }
}
