/* ==========================================================================
   AGÊNCIA DAMASSA — Design System
   Navy #02146F · Blue #007BFF · Orange #FF4900 · Off-white #F2F3F4
   Display: Montserrat 900 · Body: Sora
   ========================================================================== */

:root {
  --navy: #02146F;
  --blue: #007BFF;
  --orange: #FF4900;
  --offwhite: #F2F3F4;
  --white: #FFFFFF;
  --ink: #0A1330;
  --muted: #5b6280;

  --font-display: "Montserrat", sans-serif;
  --font-body: "Sora", sans-serif;

  --container: 1180px;
  --radius: 18px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}
.eyebrow--light { color: #8fb8ff; }

.section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 780px;
  color: var(--navy);
}
.section__title--light { color: var(--white); }

.section__lead {
  font-size: 17px;
  line-height: 1.65;
  color: #c4cdea;
  max-width: 620px;
  margin: 0 0 56px;
}

.text-orange { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(255,73,0,.6);
}
.btn--orange:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -6px rgba(255,73,0,.7); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--white); transform: translateY(-2px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled {
  background: rgba(2,20,111,.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 8px 30px -12px rgba(0,0,0,.4);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
  opacity: .88;
  transition: opacity .2s;
  position: relative;
}
.nav__link:hover { opacity: 1; }
.nav__link--cta {
  background: var(--orange);
  padding: 10px 20px;
  border-radius: 999px;
  opacity: 1;
}
.nav__link--cta:hover { background: #e64000; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.hamburger span {
  display: block; height: 2px; width: 22px;
  background: var(--white); margin: 0 auto;
  transition: transform .3s, opacity .3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(78vw, 340px);
  height: 100vh;
  background: var(--navy);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 110px 32px 40px;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-menu__cta {
  margin-top: 20px;
  background: var(--orange);
  text-align: center;
  border-radius: 999px;
  border-bottom: none !important;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy);
  padding: 168px 0 96px;
  overflow: hidden;
}
.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: url('../midia/padrao-clara.svg');
  background-repeat: repeat;
  background-size: 240px 60px;
  opacity: .05;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--white);
  font-size: clamp(34px, 5.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.hero__subtitle {
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.65;
  color: #c4cdea;
  max-width: 560px;
  margin: 0 0 40px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* pattern divider strip between sections */
.pattern-strip {
  height: 46px;
  background-image: url('../midia/padrao-navy.svg');
  background-repeat: repeat-x;
  background-size: 176px 46px;
  background-position: center;
  background-color: var(--offwhite);
}
.pattern-strip--dark {
  background-image: url('../midia/padrao-clara.svg');
  background-color: var(--navy);
}

/* ==========================================================================
   SECTIONS (generic)
   ========================================================================== */
.section { padding: 100px 0; }
.section--navy { background: var(--navy); }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  border: 1px solid rgba(2,20,111,.08);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(2,20,111,.28);
}
.service-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18.5px;
  margin: 0 0 10px;
  color: var(--navy);
}
.service-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ---------- Process ---------- */
.process {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.process__step {
  border-top: 2px solid rgba(255,255,255,.16);
  padding-top: 22px;
}
.process__number {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--orange);
  margin-bottom: 14px;
  letter-spacing: .05em;
}
.process__step h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--white);
  margin: 0 0 10px;
}
.process__step p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #b7c0e2;
  margin: 0;
}

/* ---------- Projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 8px;
}
.project {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(2,20,111,.08);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.project:hover { transform: translateY(-6px); box-shadow: 0 28px 54px -26px rgba(2,20,111,.3); }

.project--wide { grid-column: span 3; display: grid; grid-template-columns: 1.15fr 1fr; }
.project--wide .project__media { height: 100%; }
.project--wide.project--reverse { grid-template-columns: 1fr 1.15fr; }
.project--wide.project--reverse .project__media { order: 2; }
.project--wide.project--reverse .project__body { order: 1; }

.project__media { aspect-ratio: 4/3; overflow: hidden; background: #e2e5ee; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project:hover .project__media img { transform: scale(1.05); }

.project__body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.project__tag {
  display: inline-block;
  align-self: flex-start;
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.project__body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  color: var(--navy);
  margin: 0 0 10px;
}
.project__body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ---------- Sobre ---------- */
.section--sobre { background: var(--white); }
.sobre__inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.sobre__media {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--orange);
}
.sobre__media img { width: 100%; height: 100%; object-fit: cover; }
.sobre__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 18px;
}
.sobre__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.sobre__tools span {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--offwhite);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- CTA / Contato ---------- */
.section--cta {
  position: relative;
  background: linear-gradient(155deg, var(--navy) 0%, #050c3c 100%);
  padding: 110px 0;
  overflow: hidden;
  text-align: center;
}
.cta__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--white);
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.15;
  margin: 0 0 20px;
}
.cta__text {
  font-size: 17px;
  line-height: 1.6;
  color: #c4cdea;
  margin: 0 0 36px;
}
.cta__actions { margin-bottom: 40px; }
.cta__contacts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 14.5px;
  font-weight: 600;
  color: #c4cdea;
}
.cta__contacts a:hover { color: var(--white); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: #050c3c; padding: 36px 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer__logo { height: 22px; opacity: .8; }
.footer p { margin: 0; font-size: 13px; color: #8a92b8; }

/* ==========================================================================
   WHATSAPP FAB
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.4);
  z-index: 90;
  animation: fab-pulse 2.6s ease-in-out infinite;
  transition: transform .25s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 34px; height: 34px; }

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 10px 30px -8px rgba(0,0,0,.4), 0 0 0 0 rgba(37,211,102,.45); }
  50% { box-shadow: 0 10px 30px -8px rgba(0,0,0,.4), 0 0 0 10px rgba(37,211,102,0); }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .services { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }

  .project--wide { grid-column: span 2; grid-template-columns: 1fr; }
  .project--wide.project--reverse { grid-template-columns: 1fr; }
  .project--wide.project--reverse .project__media { order: 1; }
  .project--wide.project--reverse .project__body { order: 2; }
  .project--wide .project__media { aspect-ratio: 16/9; }

  .projects { grid-template-columns: repeat(2, 1fr); }

  .sobre__inner { grid-template-columns: 1fr; gap: 40px; }
  .sobre__media { max-width: 340px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .hero { padding: 128px 0 72px; }
  .section { padding: 72px 0; }

  .services { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .project--wide { grid-column: span 1; }

  .hero__actions .btn, .cta__actions .btn { width: 100%; justify-content: center; }
  .hero__actions { flex-direction: column; }

  .footer__inner { flex-direction: column; text-align: center; }

  .whatsapp-fab { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .whatsapp-fab svg { width: 30px; height: 30px; }
}
