/* Brand: identidade/design-guide.md (Sunny Gold Coast) */
:root {
  --sand: #faf6ee;
  --sand-2: #f4eee0;
  --navy: #0b2540;
  --navy-2: #2b4560;
  --sun: #ff9f43;
  --sun-hover: #ffae63;
  --sun-text: #c25e0c;
  --teal: #2ec4b6;
  --teal-deep: #0f8f84;
  --white: #fff;
  --line: rgba(11, 37, 64, 0.12);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(11, 37, 64, 0.06), 0 12px 32px -12px rgba(11, 37, 64, 0.18);
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--white); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sun); color: var(--navy); font-weight: 600; text-decoration: none;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--sun);
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--sun-hover); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--line); }
.btn--ghost:hover { background: var(--white); border-color: var(--navy); }
.btn--small { padding: 9px 18px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 246, 238, 0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand small { color: var(--navy-2); font-size: 0.78rem; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--teal-deep); }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero__inner { position: relative; z-index: 1; }
.hero h1 { max-width: 8.4em; }
.hero h1 span { display: block; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--sun-text); position: relative; z-index: 0; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.16em;
  background: var(--teal); border-radius: 4px; opacity: 0.55; z-index: -1;
}
.lead { font-size: 1.2rem; max-width: 34em; color: var(--navy-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { display: flex; gap: 40px; margin: 48px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 0.85rem; color: var(--navy-2); }
.stats dd { margin: 0; font-family: var(--head); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.hero__stack { position: absolute; right: max(20px, calc(50% - 590px)); top: 56px; width: 440px; height: 560px; }
.hero__stack img {
  position: absolute; width: 210px; border-radius: 28px; border: 6px solid var(--navy);
  box-shadow: 0 30px 60px -20px rgba(11, 37, 64, 0.45); aspect-ratio: 390 / 844; object-fit: cover; object-position: top;
}
.hero__stack img:nth-child(1) { left: 0; top: 70px; transform: rotate(-7deg); }
.hero__stack img:nth-child(2) { left: 115px; top: 0; z-index: 2; }
.hero__stack img:nth-child(3) { left: 230px; top: 90px; transform: rotate(7deg); }

/* Brands marquee */
.brands { border-block: 1px solid var(--line); padding: 22px 0; background: var(--white); }
.brands__label { font-size: 0.8rem; color: var(--navy-2); margin-bottom: 10px; }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { display: flex; gap: 56px; padding: 0 28px; margin: 0; list-style: none; flex-shrink: 0; animation: scroll 38s linear infinite; }
.marquee li { font-family: var(--head); font-weight: 600; font-size: 1.5rem; white-space: nowrap; color: var(--navy-2); }
@keyframes scroll { to { transform: translateX(-100%); } }

/* Sections */
.section { padding: 96px 0; }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head p:last-child { color: var(--navy-2); }
.section--navy { background: var(--navy); color: var(--sand); }
.section--navy .eyebrow { color: var(--sun); }
.section--navy .section__head p:last-child { color: rgba(250, 246, 238, 0.75); }
.section--sand { background: var(--sand-2); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  font: inherit; font-size: 0.92rem; font-weight: 500; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy);
}
.chip span { color: var(--navy-2); opacity: 0.7; margin-left: 4px; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--sand); border-color: var(--navy); }
.chip[aria-pressed="true"] span { color: var(--sun); opacity: 1; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s, box-shadow 0.2s;
}
.card.in { opacity: 1; transform: none; }
.card[hidden] { display: none; }
.card:hover { box-shadow: 0 1px 2px rgba(11, 37, 64, 0.06), 0 24px 48px -16px rgba(11, 37, 64, 0.3); }
.card__link { display: block; text-decoration: none; height: 100%; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-2); }
.card__media > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s; }
.card:hover .card__media > img:first-child { transform: scale(1.03); }
.card__phone {
  position: absolute; right: 18px; bottom: -40px; width: 22%; border-radius: 16px;
  border: 4px solid var(--navy); box-shadow: 0 12px 30px -8px rgba(11, 37, 64, 0.5);
  transition: transform 0.4s;
}
.card:hover .card__phone { transform: translateY(-12px); }
.card--cover .card__media > img:first-child { object-fit: contain; padding: 20px; }
.card__body { padding: 24px 26px 28px; }
.card__niche { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 6px; }
.card__body h3 { font-size: 1.6rem; margin-bottom: 6px; }
.card__tagline { color: var(--navy-2); }
.card__angle { font-family: var(--head); font-weight: 600; font-size: 1.05rem; margin: -0.4em 0 0.9em; }
.card__angle span { font-family: var(--body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun-text); margin-right: 6px; }
.card__more { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--sun-text); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; background: var(--sand-2); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { border-top: 2px solid rgba(250, 246, 238, 0.2); padding-top: 22px; }
.steps span { font-family: var(--head); font-weight: 800; font-size: 2.6rem; color: var(--sun); display: block; margin-bottom: 10px; }
.steps p { color: rgba(250, 246, 238, 0.75); font-size: 0.97rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 5px solid var(--teal); }
.service:nth-child(2n) { border-top-color: var(--sun); }
.service p { color: var(--navy-2); font-size: 0.97rem; margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.about__text p { color: var(--navy-2); }
.about__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about__list li { background: var(--white); border-radius: 14px; padding: 16px; font-size: 0.9rem; color: var(--navy-2); }
.about__list strong { display: block; color: var(--navy); font-family: var(--head); font-size: 1.05rem; }

/* CTA */
.section--cta { background: var(--sun); }
.cta { text-align: center; max-width: 720px; }
.cta p { font-size: 1.15rem; }
.cta .hero__actions { justify-content: center; }
.section--cta .btn { background: var(--navy); color: var(--sand); border-color: var(--navy); }
.section--cta .btn--ghost { background: transparent; color: var(--navy); border-color: rgba(11, 37, 64, 0.35); }
.section--cta .btn--ghost:hover { background: rgba(255, 255, 255, 0.35); }
.cta__mail { margin-top: 18px; font-weight: 600; font-size: 1rem !important; }

.foot { background: var(--navy); color: rgba(250, 246, 238, 0.7); font-size: 0.85rem; padding: 28px 0; }
.foot__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot p { margin: 0; }

/* Case study dialog */
dialog {
  width: min(1000px, 100% - 24px); max-height: calc(100% - 32px); padding: 0; border: 0;
  border-radius: 24px; background: var(--sand); color: var(--navy); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
}
dialog::backdrop { background: rgba(11, 37, 64, 0.6); backdrop-filter: blur(4px); }
dialog[open] { animation: pop 0.25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(16px); } }
body:has(dialog[open]) { overflow: hidden; }
.case__close {
  position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: var(--sand); font-size: 1.6rem; line-height: 1;
}
.case { padding: 40px 48px 36px; }
.case__head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.case__tagline { font-size: 1.2rem; color: var(--navy-2); }
.case__gallery { display: flex; gap: 14px; overflow-x: auto; margin: 28px -48px; padding: 0 48px 10px; scroll-snap-type: x mandatory; }
.case__gallery img {
  height: 360px; width: auto; border-radius: 14px; box-shadow: var(--shadow); scroll-snap-align: start; flex-shrink: 0;
}
.case__gallery--cover img:first-child { background: var(--white); }
.case__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.case__grid h3 { font-size: 1.05rem; color: var(--teal-deep); margin-bottom: 6px; }
.case__grid p { color: var(--navy-2); margin: 0; }
.case__angle { grid-column: 1 / -1; background: var(--navy); color: var(--sand); border-radius: 16px; padding: 20px 22px; }
.case__grid .case__angle h3 { color: var(--sun); }
.case__grid .case__angle p { color: var(--sand); font-family: var(--head); font-weight: 600; font-size: 1.2rem; line-height: 1.35; }
.case__shows { background: var(--white); border-radius: 16px; padding: 20px; border-left: 5px solid var(--sun); }
.case__shows p { color: var(--navy); font-weight: 500; }
.case__note { font-size: 0.85rem; color: var(--navy-2); margin-top: 20px; }
.case__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.case__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.case__nav a { text-decoration: none; font-weight: 600; color: var(--navy-2); }
.case__nav a:hover { color: var(--sun-text); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s, transform 0.6s; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .hero__stack { opacity: 0.18; right: -80px; }
  .steps, .services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-toggle {
    display: block; font: inherit; font-weight: 600; background: var(--navy); color: var(--sand);
    border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer;
  }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    display: none;
  }
  .menu-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .hero { padding: 28px 0 48px; }
  .hero h1 { font-size: min(2.6rem, 10vw); max-width: none; }
  .lead { font-size: 1.08rem; }
  .hero__actions { margin-top: 24px; }
  .hero__stack { display: none; }
  .stats { gap: 28px; }
  .stats dd { font-size: 2rem; }
  .section { padding: 72px 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 0 20px 6px; }
  .chip { white-space: nowrap; }
  .grid, .steps, .services, .about, .case__grid, .about__list { grid-template-columns: 1fr; }
  .about { gap: 32px; }
  .case { padding: 28px 22px; }
  .case__gallery { margin: 24px -22px; padding: 0 22px 10px; }
  .case__gallery img { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card, .reveal { opacity: 1; transform: none; }
}
