/* ==========================================================================
   Base — reset, custom properties, typography
   ========================================================================== */

:root {
  /* Colors — sampled directly from the A Cascata logo (assets/Logo PNG pequeno.png) */
  --color-dark-green: #5b3317; /* brown — logo outline / "CASCATA" wordmark */
  --color-orange: #f49712; /* orange — logo base bar / the "A" */
  --color-muted-green: #8a6a4d; /* muted brown, derived for secondary text */
  --color-gold: #f9b55c; /* tan/gold — logo crown fill */
  --color-cream: #fff8ec;
  --color-cream-soft: #f7ead3;
  --color-white: #ffffff;
  --color-text: #5b3317;
  --color-text-muted: #8a6a4d;

  /* Typography */
  --font-heading: 'Jost', sans-serif;
  --font-body: 'Jost', sans-serif;
  --font-accent: 'Outfit', sans-serif;

  /* Spacing */
  --gap-xs: 10px;
  --gap-sm: 16px;
  --gap-md: 28px;
  --gap-lg: 32px;

  /* Layout */
  --content-max-width: 1336px;
  --header-height: 100px;
  --radius-sm: 4px;
  --radius-lg: 200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  /* Flex/grid children default to min-width:auto, which floors them at
     their unwrapped text width instead of letting them wrap — this is
     what was pushing the hero title/paragraph past 100vw on mobile. */
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

/* Never put overflow-x:hidden/clip on html or body — breaks position:fixed
   and position:sticky on this site (WhatsApp button, sticky header). Contain
   overflow locally on the component that causes it instead. */

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

h1, h2, h3, h4 {
  /* Avoids a lone word wrapping onto its own line; ignored gracefully
     by browsers that don't support it yet. */
  text-wrap: balance;
}

.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Arrow-fill button (pill, circular fill reveal on hover) ---------- */
.btn-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
  padding-right: 64px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.btn-arrow--primary {
  background-color: var(--color-dark-green);
  color: var(--color-white);
  --fill-bg: var(--color-white);
  --fill-text: var(--color-dark-green);
}

.btn-arrow__text {
  position: relative;
  z-index: 2;
}

.btn-arrow__text--fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 28px;
  padding-right: 64px;
  color: var(--fill-text);
  clip-path: inset(4px 4px 4px calc(100% - 52px) round 999px);
  transition: clip-path 0.45s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  z-index: 3;
  pointer-events: none;
}

/* The growing background fill — no icon inside it, just a color layer
   that expands from a small circle (at rest) to the full pill (hover). */
.btn-arrow__fill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: calc(100% - 52px);
  right: 4px;
  border-radius: 999px;
  background-color: var(--fill-bg);
  transition: left 0.45s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  z-index: 1;
}

/* The arrow icon — a fixed-size circle pinned to the right edge that never
   moves or resizes; it just sits on top of the growing fill underneath. */
.btn-arrow__icon {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 4px;
  width: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fill-text);
  z-index: 4;
  pointer-events: none;
}

.btn-arrow__icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (hover: hover) {
  .btn-arrow:hover .btn-arrow__text--fill {
    clip-path: inset(0 0 0 0 round 999px);
  }

  .btn-arrow:hover .btn-arrow__fill {
    left: 4px;
  }
}

.section-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 8px;
}

.section-badge--sm {
  font-size: 14px;
}

.section-badge--on-dark {
  color: var(--color-gold);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-dark-green);
  font-size: 40px;
  line-height: 1.2;
}

.section-title em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-orange);
}

.section-text {
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-muted-green);
}
