/* ==========================================================================
   Ultrafer — Dobradiça Averon System
   CSS puro, mobile-first, sem frameworks.
   Tema "luxo editorial" — preto profundo, dourado champagne, glassmorphism.
   ========================================================================== */

:root {
  --paper: #f7f2e6;
  --paper-alt: #efe6d2;
  --ink: #0a0906;
  --ink-soft: #14120d;
  --steel: #4a4438;
  --accent: #b4893a;
  --accent-light: #e8cf94;
  --gold-deep: #8a6a1f;
  --gold: #cba135;
  --gold-light: #f1dfa8;
  --gold-gradient: linear-gradient(120deg, #8a6a1f 0%, #d9b869 22%, #f6ecc9 48%, #d9b869 74%, #8a6a1f 100%);
  --line: rgba(20,18,13,0.12);
  --line-gold: rgba(203,161,53,0.35);
  --muted: #7a7263;
  --white: #fbf8f0;

  --glass-bg: rgba(255,252,244,0.55);
  --glass-bg-dark: rgba(20,18,13,0.5);
  --glass-border: rgba(203,161,53,0.28);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 260ms var(--ease-premium);

  --shadow-soft: 0 28px 60px -26px rgba(10,9,6,0.4);
  --shadow-card: 0 18px 40px -22px rgba(10,9,6,0.28);
  --shadow-gold: 0 10px 30px -8px rgba(203,161,53,0.35);

  --font: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-mono: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 900px 500px at 12% -6%, rgba(203,161,53,0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 12%, rgba(203,161,53,0.06), transparent 55%),
    var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2 {
  font-family: var(--font-display); letter-spacing: -0.01em; color: var(--ink); line-height: 1.1; margin: 0 0 0.38em; font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-family: var(--font); font-weight: 600; font-size: 1.1rem; color: var(--ink); margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--steel); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 34px; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.83rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 650ms var(--ease-premium);
  pointer-events: none;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold-gradient);
  background-size: 220% 100%;
  background-position: 0% 0%;
  color: var(--ink);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { background-position: 100% 0%; box-shadow: 0 16px 40px -10px rgba(203,161,53,0.55), var(--shadow-soft); }

.btn-ghost { background: rgba(203,161,53,0.06); color: var(--ink); border-color: rgba(180,137,58,0.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(203,161,53,0.14); border-color: var(--gold); }
.hero .btn-ghost { color: var(--gold-light); border-color: rgba(241,223,168,0.4); background: rgba(255,255,255,0.04); }
.hero .btn-ghost:hover { background: rgba(203,161,53,0.16); border-color: var(--gold-light); }

/* ---------- Header ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 200;
  background: var(--gold-gradient);
  box-shadow: 0 0 12px rgba(203,161,53,0.6);
  transition: width 80ms linear;
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 100;
  pointer-events: none;
}
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 200px;
  background: linear-gradient(180deg,
    rgba(10,9,6,0.65) 0%,
    rgba(10,9,6,0.58) 20%,
    rgba(10,9,6,0.46) 38%,
    rgba(10,9,6,0.3) 54%,
    rgba(10,9,6,0.17) 68%,
    rgba(10,9,6,0.08) 80%,
    rgba(10,9,6,0.02) 92%,
    rgba(10,9,6,0) 100%);
  pointer-events: none;
}
.header-inner { position: relative; display: flex; align-items: center; padding: 14px 0; pointer-events: auto; }
.header-logo { height: 24px; width: auto; filter: brightness(0) invert(1); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 105vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; filter: brightness(0.62) blur(1.5px); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,9,6,0.95) 0%, rgba(10,9,6,0.8) 42%, rgba(10,9,6,0.55) 68%, rgba(10,9,6,0.82) 100%),
    radial-gradient(ellipse 700px 500px at 85% 100%, rgba(203,161,53,0.14), transparent 60%);
}
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 120px 0 90px; }
.hero-text { max-width: 560px; }
.hero-logo-mark { height: 40px; width: auto; margin-bottom: 30px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.74rem; font-weight: 600;
  color: var(--accent); margin-bottom: 18px; font-family: var(--font-mono);
  position: relative; padding-left: 30px;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 22px; height: 1px;
  background: var(--gold-gradient); transform: translateY(-50%);
}
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { max-width: 14ch; color: #fff; }
.hero-subtitle { max-width: 46ch; font-size: 1.1rem; color: #d9d6cd; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0 8px; }
.hero-card {
  position: relative; flex: none; width: 320px; margin: 0; padding: 1px;
  background: var(--gold-gradient); border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6), var(--shadow-gold);
}
.hero-card::before {
  content: ""; position: absolute; inset: -30px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(203,161,53,0.28), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero-card img { width: 100%; height: auto; border-radius: calc(var(--radius-lg) - 0.5px); display: block; }

/* Cutout product shot: no frame/background/glow, image placed plain */
.hero-card-cutout {
  width: 540px; padding: 0; background: none; box-shadow: none;
}
.hero-card-cutout::before { content: none; }
.hero-card-cutout img { border-radius: 0; }

.text-gold { color: var(--gold-light); font-style: italic; }

.btn-arrow { display: inline-block; transition: transform var(--transition); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Hero feature badges ---------- */
.hero-badges { display: flex; align-items: flex-start; gap: 26px; margin: 32px 0 4px; flex-wrap: wrap; }
.hero-badge { flex: 1; min-width: 120px; display: flex; flex-direction: column; gap: 10px; }
.hero-badge-icon {
  display: flex; align-items: center; color: var(--gold);
}
.hero-badge-icon svg { width: 42px; height: 42px; }
.hero-badge-icon-text { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--gold); }
.hero-badge h4 {
  font-family: var(--font); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: #fff; margin: 0;
}
.hero-badge-sub {
  font-family: var(--font); font-size: 0.72rem; font-weight: 400; line-height: 1.35;
  color: #b3ab9c; margin: -4px 0 0; max-width: 17ch;
}

/* ---------- Hero quality seal ---------- */
.hero-seal {
  position: absolute; right: 40px; bottom: 40px; z-index: 3;
  width: 160px; height: 160px;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.5));
}
.hero-seal img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- Sections ---------- */
.section { padding: 108px 0; scroll-margin-top: 90px; }
.section-bg { scroll-margin-top: 90px; }
.section-alt { background: var(--white); position: relative; }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; margin-bottom: 2.3em; }
.section-cta { display: flex; justify-content: center; margin-top: 52px; }

/* ---------- Glassmorphism cards ---------- */
.feature-card,
.axis-card,
.stat-card,
.gallery-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.feature-card {
  padding: 34px 26px; border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: var(--shadow-soft), var(--shadow-gold); }
.feature-index {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 14px; display: block;
  background: var(--gold-gradient); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; margin: 0; }

/* ---------- Product sections ---------- */
/* ---------- Full-bleed background section ---------- */
.section-bg { position: relative; display: flex; align-items: center; overflow: hidden; padding: 108px 0; color: #fff; background: var(--ink); }
.section-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.section-bg-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,9,6,0.84) 0%, rgba(10,9,6,0.58) 38%, rgba(10,9,6,0.18) 68%, rgba(10,9,6,0.44) 100%),
    radial-gradient(ellipse 600px 500px at 10% 100%, rgba(203,161,53,0.14), transparent 60%);
}
.section-bg-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.section-bg-content { max-width: 560px; }
.section-bg-card { flex: none; width: 420px; }
.section-bg-content h2 { color: #fff; }
.section-bg-content p { color: #d9d6cd; }
.section-bg-content .product-features li { color: #d9d6cd; }
.section-bg-content .product-tag { color: var(--gold-light); border-color: rgba(241,223,168,0.35); background: rgba(255,255,255,0.04); }

.product-block { display: flex; align-items: center; gap: 64px; }
.product-block-reverse { flex-direction: row-reverse; }
.product-text { flex: 1; min-width: 0; }
.product-figure {
  flex: 1; min-width: 0; margin: 0; padding: 56px; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); background: var(--white); border: 1px solid var(--line-gold);
  position: relative;
}
.product-figure::before {
  content: ""; position: absolute; inset: -40px; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(203,161,53,0.12), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.product-figure-plain { padding: 0; box-shadow: none; background: transparent; border: none; }
.product-figure-plain::before { content: none; }
.product-figure img { position: relative; z-index: 1; width: 100%; height: auto; display: block; transition: transform 700ms var(--ease-premium); }
.product-figure:hover img { transform: scale(1.03); }
.product-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line-gold); border-radius: var(--radius-pill); padding: 6px 16px; margin-bottom: 18px;
  background: rgba(203,161,53,0.06);
}
.product-features { display: flex; flex-direction: column; gap: 13px; margin: 24px 0 28px; }
.product-features li { padding-left: 24px; position: relative; color: var(--steel); font-size: 0.95rem; }
.product-features li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ---------- 4D axes ---------- */
.axes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.axis-card {
  padding: 28px 22px; border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.axis-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.axis-number {
  font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin: 0 0 10px;
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.axis-card h3 { font-size: 0.98rem; margin-bottom: 6px; }
.axis-card p { font-size: 0.85rem; margin: 0; }

/* ---------- Stats / specs ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.stat-card {
  text-align: center; padding: 30px 16px; border-radius: var(--radius-md);
  transition: transform var(--transition), border-color var(--transition);
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.stat-number {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 600; margin: 0;
  color: var(--gold);
}
.stat-label { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 9px 0 0; }

/* Compatible lines strip */

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.gallery-item { border-radius: var(--radius-md); overflow: hidden; transition: transform var(--transition), border-color var(--transition); }
.gallery-item:hover { transform: translateY(-4px); border-color: var(--gold); }
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 700ms var(--ease-premium); }
.gallery-item:hover img { transform: scale(1.04); }

/* ---------- Contact / Cadastro ---------- */
.contact-form {
  max-width: 560px; margin: 0 auto; text-align: left; padding: 44px 40px;
  background: linear-gradient(160deg, rgba(26,23,16,0.90) 0%, rgba(13,11,7,0.94) 100%);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid rgba(203,161,53,0.34);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft), 0 1px 0 rgba(255,255,255,0.08) inset;
  position: relative; overflow: hidden;
}
.contact-form::before {
  content: ""; position: absolute; top: -80px; right: -80px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(203,161,53,0.22), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; z-index: 1; }
.form-row { margin-bottom: 18px; position: relative; z-index: 1; }
.form-row-full { grid-column: 1 / -1; }
.form-row label { display: block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 9px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 13px 16px; border: 1px solid rgba(203,161,53,0.4); border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: inherit; background: rgba(255,255,255,0.07); color: #f4efe2;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-row input::placeholder, .form-row textarea::placeholder { color: #8a8478; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(203,161,53,0.18); background: rgba(255,255,255,0.07); }
.contact-form .btn { width: 100%; margin-top: 4px; }
.contact-note { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink);
  color: #cfd1d2; padding: 60px 0 0;
  border-top: 1px solid rgba(203,161,53,0.2);
}
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: var(--gold-gradient);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 36px; }
.footer-brand-logo { height: 26px; width: auto; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-col p { font-size: 0.88rem; margin: 0 0 6px; color: #a9adae; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.85rem; color: #a9adae; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { padding: 20px 24px max(20px, env(safe-area-inset-bottom)); text-align: center; font-size: 0.78rem; color: #6b6f73; border-top: 1px solid rgba(203,161,53,0.12); }

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: rgba(10,9,6,0.85); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(203,161,53,0.25);
}
.mobile-cta-bar .btn { width: 100%; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 650ms var(--ease-premium), transform 650ms var(--ease-premium), filter 650ms var(--ease-premium); }
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { filter: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; align-items: flex-start; padding: 100px 24px 60px; }
  .hero-card { width: 240px; align-self: center; order: -1; margin-bottom: 20px; }
  .hero-card-cutout { width: 320px; max-width: 100%; }
  .hero-badges { gap: 10px; }
  .hero-badge { min-width: calc(50% - 5px); flex: none; }
  .hero-seal { width: 88px; height: 88px; top: 356px; right: 44px; bottom: auto; }
  .product-block, .product-block-reverse { flex-direction: column; gap: 32px; }
  .section-bg-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .section-bg-content { max-width: 100%; }
  .section-bg-card { width: 100%; max-width: 340px; align-self: center; order: -1; margin-bottom: 4px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .axes-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .header-inner { justify-content: center; }
  .hero-text { padding: 24px 0 40px; }
  .contact-form { padding: 30px 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 74px; }
}
/* Guard rail: never let anything cause horizontal scroll on any screen */
html, body { overflow-x: hidden; max-width: 100%; }
