/* CFFC — Carlos Filipe Fernandes Consulting — design system */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800;900&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  /* neutral theme (default) */
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #4a4a4a;
  --muted: #767676;
  --accent: #d81f26;
  --accent-ink: #ffffff;
  --line: #e6e4df;
  --card: #f6f5f2;
  --nav-bg: rgba(255, 255, 255, 0.92);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

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

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0;
}

.inner { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ── NAV ───────────────────────────────────────────── */
#nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .25s ease;
}
#nav.stuck { border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.cf-mark {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #0a0a0a;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand-text small { font-size: 11px; color: var(--muted); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  opacity: .82;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 34px; }

.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted);
}
.lang-switch span { color: var(--ink); }
.lang-switch a { text-decoration: none; color: var(--muted); opacity: .75; transition: opacity .15s ease; }
.lang-switch a:hover { opacity: 1; }
.lang-switch i { font-style: normal; opacity: .4; }
.foot-legal .lang-switch { color: var(--muted); }
.foot-legal .lang-switch span { color: var(--ink); }

.nav-cta {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  white-space: nowrap;
}

.nav-toggle { display: none; }

/* ── BUTTONS ───────────────────────────────────────── */
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform .15s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta svg { width: 18px; height: 18px; }
.cta.quiet {
  background: none;
  color: var(--ink);
  padding: 14px 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── HERO ──────────────────────────────────────────── */
.hero { padding: 64px 28px 56px; }
.hero-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(40px, 5.4vw, 74px); }
.hero .sub {
  font-size: 17px; line-height: 1.55; color: var(--ink-soft);
  max-width: 52ch; margin: 26px 0 32px;
}
.locale-line { font-size: 14.5px; color: var(--muted); margin: -14px 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.cred-line {
  margin-top: 40px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.hero-photo img.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
}
.hero-photo img.hero-slide.active { opacity: 1; }
.hero-photo .hero-dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
  display: flex; justify-content: center; gap: 7px;
}
.hero-photo .hero-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5);
  transition: background .3s ease, transform .3s ease;
}
.hero-photo .hero-dots span.active { background: #fff; transform: scale(1.25); }
.photo-ph {
  text-align: center; color: var(--muted); padding: 20px;
  font-family: var(--font-body);
}
.photo-ph b {
  display: block; font-family: var(--font-display); text-transform: uppercase;
  font-size: 18px; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 6px;
}
.photo-ph svg { width: 40px; height: 40px; margin: 0 auto 14px; opacity: .5; }

/* ── SECTIONS ──────────────────────────────────────── */
.section { padding: 84px 28px; }
.section h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 40px; }

.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.area-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 34px;
  background: var(--card);
}
.area-card .eyebrow { margin-bottom: 18px; }
.area-card h3 {
  font-size: 28px; margin-bottom: 14px;
}
.area-card p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 18px; }
.area-card ul { margin: 0 0 22px; padding: 0; list-style: none; }
.area-card li {
  font-size: 14.5px; color: var(--ink-soft); padding: 8px 0 8px 20px;
  border-top: 1px solid var(--line); position: relative;
}
.area-card li:first-child { border-top: none; }
.area-card li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.area-card a.link {
  font-weight: 700; font-size: 14.5px; text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}

.quotes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.quote-card {
  border-top: 3px solid var(--accent); padding-top: 18px;
}
.quote-card p {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  text-transform: none; line-height: 1.25; margin: 0; color: var(--ink);
}

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.svc-card h3 { font-size: 19px; margin-bottom: 10px; text-transform: none; letter-spacing: 0; }
.svc-card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.svc-card .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent);
  color: var(--accent-ink); font-family: var(--font-display); font-weight: 800;
  font-size: 14px; margin-bottom: 14px;
}

.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.art-card { text-decoration: none; color: inherit; }
.art-img {
  aspect-ratio: 16/10; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.art-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.art-card:hover .art-img img { transform: scale(1.045); }
.art-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px; display: block;
}
.art-card h3 { font-size: 18px; text-transform: none; letter-spacing: 0; line-height: 1.3; }

.statement {
  text-align: center; padding: 90px 28px; background: var(--ink); color: var(--bg);
}
.statement blockquote {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 800;
  font-size: clamp(28px, 4vw, 46px); max-width: 900px; margin: 0 auto; line-height: 1.08;
}
.statement cite { display: block; margin-top: 24px; font-style: normal; font-size: 13px; opacity: .6; letter-spacing: .06em; text-transform: uppercase; }

/* ── FOOTER ────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 64px 28px 30px; background: var(--bg); }
.foot-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 44px;
}
.foot-brand p { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; max-width: 30ch; }
.foot-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px;
}
.foot-col a {
  display: block; text-decoration: none; font-size: 14.5px; font-weight: 500;
  color: var(--ink); margin-bottom: 10px; opacity: .85;
}
.foot-col a:hover { opacity: 1; }
.foot-legal {
  max-width: 1180px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12.5px; color: var(--muted);
}
.foot-legal a { text-decoration: none; color: var(--muted); }
.foot-legal a:hover { color: var(--ink); }

/* ── THEME: DESPORTO (yellow / black) ─────────────── */
body[data-theme="desporto"] {
  --bg: #0c0c0c;
  --ink: #ffffff;
  --ink-soft: #cfcfcf;
  --muted: #8f8f8f;
  --accent: #f4c218;
  --accent-ink: #0c0c0c;
  --line: #2a2a2a;
  --card: #161616;
  --nav-bg: rgba(12, 12, 12, 0.9);
}
body[data-theme="desporto"] .nav-cta { background: var(--accent); color: var(--accent-ink); }
body[data-theme="desporto"] .statement { background: var(--accent); color: #0c0c0c; }

/* ── THEME: CORPORATE (green / beige) ─────────────── */
body[data-theme="corporate"] {
  --bg: #ece4d2;
  --ink: #1f3327;
  --ink-soft: #3c5346;
  --muted: #74806f;
  --accent: #34573f;
  --accent-ink: #ece4d2;
  --line: #d6cab0;
  --card: #e2d8bf;
  --nav-bg: rgba(236, 228, 210, 0.92);
}
body[data-theme="corporate"] .statement { background: #1f3327; color: #ece4d2; }

/* ── MOTION ────────────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.rv.in { opacity: 1; transform: none; }

.hero-photo img {
  animation: photo-in .9s cubic-bezier(.16,1,.3,1) both;
}
@keyframes photo-in {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: none; }
}

.cta:not(.quiet) { transition: transform .15s ease, box-shadow .2s ease; }
.cta:not(.quiet):hover { box-shadow: 0 10px 24px rgba(0,0,0,.16); }
body[data-theme="desporto"] .cta:not(.quiet):hover { box-shadow: 0 10px 26px rgba(244,194,24,.28); }
body[data-theme="corporate"] .cta:not(.quiet):hover { box-shadow: 0 10px 24px rgba(31,51,39,.22); }

.area-card, .svc-card, .art-card {
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, border-color .25s ease;
}
.area-card:hover, .art-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(0,0,0,.09); }
.svc-card:hover { transform: translateY(-3px); }
body[data-theme="desporto"] .area-card:hover, body[data-theme="desporto"] .art-card:hover { border-color: var(--accent); box-shadow: none; }
body[data-theme="corporate"] .area-card:hover, body[data-theme="corporate"] .art-card:hover { box-shadow: 0 16px 34px rgba(31,51,39,.14); }

.art-img { overflow: hidden; }
.art-card { display: block; }

.nav-links a { position: relative; transition: opacity .15s ease; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--accent); transition: right .25s cubic-bezier(.16,1,.3,1);
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

.quote-card { transition: border-color .25s ease; }
.quote-card:hover { border-color: var(--ink); }

/* ── LEGAL PAGES ───────────────────────────────────── */
.legal-head { padding: 56px 28px 20px; max-width: 760px; margin: 0 auto; }
.legal-head .back {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--muted); font-size: 13.5px; font-weight: 600; margin-bottom: 28px;
}
.legal-head h1 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 10px; }
.legal-head .updated { font-size: 13px; color: var(--muted); margin-top: 14px; }
.legal-body { max-width: 760px; margin: 0 auto; padding: 10px 28px 90px; }
.legal-body h2 {
  font-family: var(--font-body); text-transform: none; letter-spacing: 0;
  font-weight: 700; font-size: 18px; margin: 40px 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.legal-body ul { padding-left: 20px; }
.legal-body a { color: var(--accent); }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-right .lang-switch { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; aspect-ratio: 4/5; max-height: 62vh; }
  .areas-grid, .svc-grid, .articles-grid { grid-template-columns: 1fr; }
  .quotes-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .quotes-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ── WHATSAPP FLOAT ────────────────────────────────── */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 480px) {
  .wa-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .wa-float svg { width: 25px; height: 25px; }
}
