/* ===================================================================
   Pragma Enterprises Holdings Inc. — Landing page
   Paleta: grafite + prata, com acento metálico champanhe
   =================================================================== */

:root {
  /* Chumbo / graphite (levemente aquecido para um preto mais nobre) */
  --ink-900: #121418;
  --ink-800: #181b20;
  --ink-700: #22262d;
  --ink-600: #2c3138;
  --ink-500: #3b414a;

  /* Prata / silver */
  --silver-100: #f5f7f9;
  --silver-200: #e7eaef;
  --silver-300: #d3d8e0;
  --silver-400: #b7bdc8;
  --silver-500: #969dab;

  /* Acento metálico — champanhe/platina (alto padrão) */
  --gold-100: #ecdcc0;
  --gold-300: #d8bd92;
  --gold-500: #c2a06a;

  --line: rgba(255, 255, 255, 0.09);
  --line-dark: rgba(20, 24, 29, 0.10);

  --accent: linear-gradient(135deg, #f3ead9 0%, #d8bd92 45%, #c2a06a 100%);
  --accent-line: linear-gradient(90deg, var(--gold-300), var(--gold-500));
  --silver-sheen: linear-gradient(120deg, #ffffff 0%, #d4d9e0 45%, #9aa1ac 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 24px 60px -28px rgba(10, 12, 15, 0.55);
  --shadow-lg: 0 40px 90px -40px rgba(8, 10, 13, 0.7);

  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-head: "Sora", "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--silver-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(194, 160, 106, 0.28); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }

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

/* Barra de progresso de leitura */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent-line); z-index: 100;
  transition: width .1s linear;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-head); color: var(--ink-900); line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: var(--accent-line); display: inline-block;
}
.section-head.center .eyebrow { justify-content: center; }

.accent {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, #2c3138, #15181d);
  color: var(--silver-200);
  box-shadow: 0 12px 26px -14px rgba(10, 12, 15, 0.7);
}
/* brilho que varre o botão no hover */
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(236, 220, 192, 0.35), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(10, 12, 15, 0.78); }
.btn-primary:hover::after { left: 140%; }
.btn-ghost {
  background: transparent; color: var(--ink-800);
  border-color: var(--silver-400);
}
.btn-ghost:hover { border-color: var(--gold-500); color: var(--ink-900); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 247, 249, 0.7);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(245, 247, 249, 0.92);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 8px 30px -18px rgba(10, 12, 15, 0.4);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; transition: height .35s var(--ease); }
.site-header.scrolled .nav { height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-5deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-weight: 800; letter-spacing: 0.16em; font-size: 1.05rem; color: var(--ink-900); }
.brand-text small { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver-500); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { position: relative; font-size: 0.95rem; font-weight: 500; color: var(--ink-600); transition: color .15s; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent-line); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink-900); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink-800); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 120% at 80% -10%, #2c3138 0%, #181b20 42%, #121418 100%);
  color: var(--silver-200);
  padding: clamp(84px, 12vw, 148px) 0 clamp(64px, 9vw, 104px);
}
.hero-photo {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(18,20,24,0.94) 0%, rgba(18,20,24,0.78) 42%, rgba(18,20,24,0.42) 100%),
    linear-gradient(0deg, rgba(18,20,24,0.85) 0%, rgba(18,20,24,0) 55%);
}
.hero-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(90% 80% at 70% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 80% at 70% 0%, #000 30%, transparent 75%);
  opacity: .35; z-index: -1;
  animation: gridDrift 28s linear infinite alternate;
}
@keyframes gridDrift { to { transform: translate(28px, 18px); } }
/* brilho metálico difuso */
.hero::before {
  content: ""; position: absolute; top: -160px; right: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 189, 146, 0.16), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.hero .eyebrow { color: var(--gold-300); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.lead { font-size: clamp(1.02rem, 1.7vw, 1.22rem); color: var(--silver-300); max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 48px; }
.hero .btn-ghost { color: var(--silver-200); border-color: rgba(255,255,255,0.22); }
.hero .btn-ghost:hover { border-color: var(--gold-500); color: #fff; }

.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; color: #fff; }
.hero-stats span { font-size: 0.85rem; color: var(--silver-500); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: #fff; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { position: relative; }

.two-col { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.col-text p { margin-bottom: 16px; color: var(--ink-600); }
.col-text strong { color: var(--ink-900); }

.check-list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink-700); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--silver-100);
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 3px;
  border-left: 2px solid var(--ink-900); border-bottom: 2px solid var(--ink-900);
  transform: rotate(-45deg);
}

/* visual card */
.col-visual { display: flex; }
.visual-card {
  position: relative; width: 100%; aspect-ratio: 4 / 3.4;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, #2c3138, #121418);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.visual-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual-stripes {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 26px),
    radial-gradient(80% 60% at 30% 20%, rgba(216,189,146,0.12), transparent 60%);
  animation: stripeShift 18s linear infinite alternate;
}
@keyframes stripeShift { to { background-position: 60px 0, 0 0; } }
.visual-tag {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(20,24,29,0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--silver-200); font-size: 0.82rem; font-weight: 500;
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #7ee08a; box-shadow: 0 0 0 0 rgba(126,224,138,0.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(126,224,138,0); } 100% { box-shadow: 0 0 0 0 rgba(126,224,138,0); } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; overflow: hidden;
  background: var(--silver-100); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-line);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--silver-300); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px;
  background: linear-gradient(150deg, #2c3138, #15181d); color: var(--gold-300);
  margin-bottom: 18px; transition: transform .4s var(--ease);
}
.card:hover .card-icon { transform: translateY(-3px) scale(1.06); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.94rem; color: var(--ink-600); }

/* ---------- Portfolio ---------- */
.portfolio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.proj {
  position: relative; min-height: 300px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; color: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  isolation: isolate;
}
.proj::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transition: transform .7s var(--ease);
}
.proj::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18,20,24,0) 25%, rgba(18,20,24,0.9) 100%);
}
.proj:hover::before { transform: scale(1.07); }
.proj-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.proj:hover .proj-photo { transform: scale(1.07); }
.proj-a::before { background-image: radial-gradient(70% 90% at 80% 0%, rgba(216,189,146,.12), transparent 60%), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 42px), linear-gradient(135deg, #3b414a, #15181d); }
.proj-b::before { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 30px), linear-gradient(135deg, #4a505a, #1a1d22); }
.proj-c::before { background-image: radial-gradient(60% 80% at 20% 100%, rgba(216,189,146,.1), transparent 60%), linear-gradient(135deg, #2c3138, #20242a); }
.proj-d::before { background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 36px), linear-gradient(135deg, #5a606b, #23272e); }
.proj-body { padding: 26px; position: relative; transition: transform .4s var(--ease); }
.proj:hover .proj-body { transform: translateY(-4px); }
.proj-status {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: rgba(244,246,248,0.16); border: 1px solid rgba(255,255,255,0.22);
  margin-bottom: 12px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.status-live { background: rgba(126,224,138,0.18); border-color: rgba(126,224,138,0.4); }
.status-soon { background: rgba(216,189,146,0.2); border-color: rgba(216,189,146,0.5); color: var(--gold-100); }
.proj-body h3 { color: #fff; }
.proj-body p { font-size: 0.9rem; color: var(--silver-300); margin-top: 4px; }

/* ---------- Métricas (dark) ---------- */
.section-dark { background: radial-gradient(120% 120% at 50% 0%, #2c3138, #121418); color: var(--silver-200); }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--gold-300); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metric {
  text-align: center; padding: 30px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.metric:hover { transform: translateY(-5px); border-color: rgba(216,189,146,0.4); background: rgba(255,255,255,0.04); }
.metric strong { display: block; font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; color: #fff; }
.metric span { font-size: 0.86rem; color: var(--silver-500); }

/* ---------- Contato ---------- */
.contact-col { align-items: start; }
.contact-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: var(--ink-700); }
.ci { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ink-800); color: var(--gold-300); font-size: 1rem; transition: transform .3s var(--ease); }
.contact-list li:hover .ci { transform: translateY(-2px); }
.contact-list a:hover { color: var(--ink-900); text-decoration: underline; }

.contact-form {
  background: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-700); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink-800);
  padding: 12px 14px; border: 1px solid var(--silver-300); border-radius: var(--radius-sm);
  background: var(--silver-100); transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(194,160,106,0.18); background: #fff;
}
.field textarea { resize: vertical; }
.form-note { font-size: 0.86rem; min-height: 1.2em; }
.form-note.ok { color: #2e7d4f; }
.form-note.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--silver-400); padding-top: 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand p { margin-top: 10px; max-width: 320px; font-size: 0.92rem; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-nav a { position: relative; font-size: 0.92rem; transition: color .15s; }
.footer-nav a:hover { color: var(--gold-300); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 30px; font-size: 0.82rem; color: var(--silver-500); }
.footer-credit { color: var(--gold-500); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(245,247,249,0.98); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px 24px 20px; transform: translateY(-130%); transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .nav-links .btn { margin-top: 12px; }
  .nav-toggle { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .portfolio { grid-template-columns: 1fr; }
  /* mobile: usa o corte retrato e remove o zoom extra do hero */
  .hero-photo { animation: none; transform: none; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-grid, .visual-stripes, .dot { animation: none; }
}
