/* ============================================================
   DESERT AGENCY — style.css
   Paleta: Areia #EDE0D4 | Terracota #C1603A | Dark #8B3A1E
           Âmbar #E8A87C | Off-white #F8F2EC | Dark #1A1410
   ============================================================ */

/* --- Custom Properties ----------------------------------- */
:root {
  --areia:      #EDE0D4;
  --terracota:  #C1603A;
  --terra-dark: #8B3A1E;
  --amber:      #E8A87C;
  --offwhite:   #F8F2EC;
  --dark:       #1A1410;
  --darker:     #120E0A;
  --text:       #2C1F16;
  --muted:      #7A5C4A;
  --muted-light: rgba(122, 92, 74, 0.6);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Jost', system-ui, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --trans: 0.28s var(--ease);

  --radius:  6px;
  --radius-lg: 14px;
  --max-w:   1180px;
}

/* --- Reset ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--areia);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; transition: color var(--trans); }
ul, ol { list-style: none; }
address { font-style: normal; }
button { font-family: var(--sans); cursor: pointer; background: none; border: none; }

/* --- Typography ------------------------------------------ */
h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.15;
  color: var(--dark);
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.8vw, 3rem);  font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem);  font-weight: 600; }
p  { font-size: clamp(0.9rem, 1.4vw, 1rem); color: var(--muted); }
em { font-style: italic; color: var(--terracota); }

/* --- Layout ---------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* --- Scroll Animations ------------------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- Labels ---------------------------------------------- */
.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 1rem;
}
.label--light { color: rgba(232, 168, 124, 0.9); }

/* --- Section headers ------------------------------------- */
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head h2 { margin-top: 0.4rem; }

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--trans), transform var(--trans), box-shadow var(--trans);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--terracota);
  color: #fff;
  box-shadow: 0 4px 22px rgba(193, 96, 58, 0.32);
}
.btn--primary:hover {
  background: var(--terra-dark);
  box-shadow: 0 6px 28px rgba(193, 96, 58, 0.44);
  transform: translateY(-2px);
}
.btn--ghost {
  color: var(--dark);
  border-color: rgba(26, 20, 16, 0.25);
}
.btn--ghost:hover {
  border-color: var(--terracota);
  color: var(--terracota);
  transform: translateY(-2px);
}
.btn--amber {
  background: var(--amber);
  color: var(--dark);
  font-weight: 600;
}
.btn--amber:hover {
  background: #d4935c;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(232, 168, 124, 0.4);
}
.btn--ghost-light {
  color: rgba(237, 224, 212, 0.85);
  border-color: rgba(237, 224, 212, 0.3);
}
.btn--ghost-light:hover {
  border-color: rgba(237, 224, 212, 0.7);
  color: var(--areia);
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  padding-block: 1.4rem;
  transition: padding var(--trans), background var(--trans), box-shadow var(--trans);
}
.nav--filled {
  background: rgba(248, 242, 236, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 0.9rem;
  box-shadow: 0 1px 0 rgba(26, 20, 16, 0.07);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.nav__cactus {
  width: 22px;
  height: 32px;
  flex-shrink: 0;
}
.nav__logo span {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.01em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.875rem;
  color: var(--text);
}
.nav__links a:not(.nav__cta-link):hover { color: var(--terracota); }
.nav__cta-link {
  background: var(--terracota);
  color: #fff !important;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.85rem !important;
}
.nav__cta-link:hover { background: var(--terra-dark) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 201;
  position: relative;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark);
  transition: var(--trans);
  transform-origin: center;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--offwhite);
  padding-block: clamp(6rem, 12vw, 9rem) clamp(4rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__orb--1 {
  width: min(70vw, 700px);
  height: min(70vw, 700px);
  background: radial-gradient(ellipse at 60% 40%, rgba(237, 224, 212, 0.9) 0%, transparent 65%);
  right: -10%;
  top: -15%;
}
.hero__orb--2 {
  width: min(50vw, 550px);
  height: min(40vw, 400px);
  background: radial-gradient(ellipse, rgba(232, 168, 124, 0.14) 0%, transparent 70%);
  right: 5%;
  bottom: 5%;
}
.hero__orb--3 {
  width: min(30vw, 350px);
  height: min(30vw, 350px);
  background: radial-gradient(ellipse, rgba(193, 96, 58, 0.07) 0%, transparent 70%);
  left: -5%;
  bottom: -8%;
}
.hero__line {
  position: absolute;
  right: 12%;
  top: 18%;
  width: 1px;
  height: 42%;
  background: linear-gradient(to bottom, transparent, rgba(193, 96, 58, 0.3), transparent);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero__content { max-width: 600px; }
.hero__title { margin-block: 0.2rem 1.25rem; }
.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2.25rem;
  font-weight: 300;
  line-height: 1.75;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__dune-svg {
  width: 100%;
  max-width: 440px;
  opacity: 0.85;
  animation: floatDune 6s ease-in-out infinite;
}
@keyframes floatDune {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.hero__scroll-bar {
  width: 1px;
  height: 38px;
  background: var(--muted-light);
  animation: scrollBar 2s ease infinite;
}
@keyframes scrollBar {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ============================================================
   CARDS (shared base)
   ============================================================ */
.card {
  background: var(--offwhite);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  border: 1px solid rgba(193, 96, 58, 0.1);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(26, 20, 16, 0.09);
  border-color: rgba(193, 96, 58, 0.24);
}
.card__icon { width: 44px; height: 44px; margin-bottom: 1.4rem; }
.card__icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: 0.6rem; color: var(--dark); }
.card p { font-size: 0.93rem; line-height: 1.7; }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { background: var(--areia); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--dark); }
.services .section__head h2 { color: var(--areia); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: rgba(237, 224, 212, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service__card {
  background: var(--dark);
  padding: 3rem 2.5rem;
  position: relative;
  transition: background var(--trans);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service__card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 2.5rem; right: 2.5rem;
  height: 1px;
  background: linear-gradient(to right, var(--terracota), transparent);
  opacity: 0;
  transition: opacity var(--trans);
}
.service__card:hover { background: #201510; }
.service__card:hover::after { opacity: 1; }

.service__icon { width: 52px; height: 52px; margin-bottom: 0.5rem; }
.service__icon svg { width: 100%; height: 100%; }

.service__badge {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracota);
}
.service__card h3 { color: var(--areia); font-size: 1.3rem; }
.service__card > p { color: rgba(237, 224, 212, 0.55); font-size: 0.93rem; line-height: 1.8; flex: 1; }

.service__foot {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.service__foot span {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(237, 224, 212, 0.35);
  border: 1px solid rgba(237, 224, 212, 0.12);
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.05em;
  transition: var(--trans);
}
.service__card:hover .service__foot span {
  border-color: rgba(193, 96, 58, 0.3);
  color: rgba(237, 224, 212, 0.55);
}

/* ============================================================
   CASES
   ============================================================ */
.cases { background: var(--offwhite); }

.cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 1.5rem;
}
.case__card {
  background: var(--areia);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  border: 1px solid rgba(193, 96, 58, 0.13);
  transition: transform var(--trans), box-shadow var(--trans);
}
.case__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(26, 20, 16, 0.1);
}
.case__card--accent {
  background: var(--dark);
}
.case__type {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 1.25rem;
}
.case__card--accent .case__type { color: var(--amber); }

.case__header { margin-bottom: 0.25rem; }
.case__header h3 {
  font-size: 1.9rem;
  color: var(--dark);
  line-height: 1.1;
}
.case__card--accent .case__header h3 { color: var(--areia); }

.case__segment {
  font-size: 0.82rem;
  color: var(--muted);
  display: block;
  margin-top: 0.2rem;
  margin-bottom: 1.5rem;
}
.case__card--accent .case__segment { color: rgba(237, 224, 212, 0.45); }

.case__divider {
  height: 1px;
  background: linear-gradient(to right, var(--terracota), transparent);
  opacity: 0.35;
  margin-bottom: 1.5rem;
}
.case__desc {
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.case__card--accent .case__desc { color: rgba(237, 224, 212, 0.55); }

.case__metrics {}
.case__metric {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.case__metric-before,
.case__metric-after {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--muted);
}
.case__metric-after { color: var(--terracota); font-weight: 600; }
.case__card--accent .case__metric-after { color: var(--amber); }
.case__arrow { flex-shrink: 0; }
.case__metric-label {
  font-size: 0.78rem;
  color: var(--muted-light);
  letter-spacing: 0.04em;
}
.case__card--accent .case__metric-label { color: rgba(237, 224, 212, 0.3); }

.cases__note {
  text-align: center;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--muted-light);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--areia); }

.process__track {
  position: relative;
  margin-top: 1rem;
}
.process__line {
  position: absolute;
  top: 28px;
  left: calc(1.75rem / 2);
  right: calc(1.75rem / 2);
  height: 1px;
  background: linear-gradient(to right,
    var(--terracota) 0%,
    rgba(193, 96, 58, 0.4) 50%,
    rgba(193, 96, 58, 0.15) 100%);
  pointer-events: none;
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.process__step {
  background: var(--offwhite);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid rgba(193, 96, 58, 0.1);
  position: relative;
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}
.process__step:hover {
  transform: translateY(-4px);
  border-color: rgba(193, 96, 58, 0.35);
  box-shadow: 0 10px 36px rgba(26, 20, 16, 0.08);
}
.process__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--terracota);
  border: 2px solid var(--offwhite);
  outline: 1.5px solid var(--terracota);
  position: absolute;
  top: -5px;
  left: 1.75rem;
}
.process__num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(193, 96, 58, 0.12);
  line-height: 1;
  margin-bottom: 1rem;
  user-select: none;
}
.process__step h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.process__step p  { font-size: 0.88rem; line-height: 1.65; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final {
  background: var(--dark);
  padding-block: clamp(5rem, 10vw, 8rem);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-final__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-final__orb {
  position: absolute;
  width: min(90vw, 900px);
  height: min(90vw, 900px);
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(193, 96, 58, 0.09) 0%,
    rgba(232, 168, 124, 0.04) 40%,
    transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.cta-final__inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.cta-final__pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(232, 168, 124, 0.3);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.75rem;
}
.cta-final__title {
  color: var(--areia);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1.25rem;
}
.cta-final__sub {
  color: rgba(237, 224, 212, 0.55);
  font-weight: 300;
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.cta-final__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.cta-final__handle {
  font-size: 0.8rem;
  color: rgba(237, 224, 212, 0.25);
  letter-spacing: 0.06em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--darker);
  color: var(--areia);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.footer__logo span { color: var(--areia); }
.footer__tagline {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: rgba(237, 224, 212, 0.45);
  line-height: 1.7;
}
.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(237, 224, 212, 0.15);
  color: rgba(237, 224, 212, 0.5);
  transition: var(--trans);
}
.footer__social a:hover {
  border-color: var(--terracota);
  color: var(--terracota);
  background: rgba(193, 96, 58, 0.1);
  transform: translateY(-2px);
}
.footer__nav-title {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 224, 212, 0.3);
  margin-bottom: 1.25rem;
}
.footer__nav ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__nav a {
  font-size: 0.88rem;
  color: rgba(237, 224, 212, 0.55);
}
.footer__nav a:hover { color: var(--areia); }
.footer__contact p,
.footer__contact a {
  display: block;
  font-size: 0.88rem;
  color: rgba(237, 224, 212, 0.55);
  margin-bottom: 0.45rem;
}
.footer__contact a:hover { color: var(--areia); }

.footer__bottom {
  border-top: 1px solid rgba(237, 224, 212, 0.07);
  padding-block: 1.25rem;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer__bottom p {
  font-size: 0.75rem;
  color: rgba(237, 224, 212, 0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .process__line { display: none; }
  .process__steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .process__dot { display: none; }
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    display: none;
  }
  .hero__line { display: none; }
  .hero__content { max-width: 100%; }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  /* Mobile nav overlay */
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--offwhite);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--trans);
  }
  .nav__links.open {
    opacity: 1;
    pointer-events: all;
  }
  .nav__links a { font-size: 1.25rem !important; }
  .nav__cta-link { padding: 0.75rem 2rem !important; font-size: 1rem !important; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }

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

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

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

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

  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .problem__grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

/* ============================================================
   FOCUS & ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--terracota);
  outline-offset: 3px;
  border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .fade-up { opacity: 1; transform: none; }
}
