/* ============================================================
   Berri Reformas — styles.css
   Palette: corporate blue + orange, trust & seriousness.
   ============================================================ */

:root {
  --bg:         #f6f8fb;
  --bg-2:       #eef2f8;
  --paper:      #ffffff;
  --navy:       #0b2545;
  --navy-2:     #123a6b;
  --blue:       #1e5eff;
  --blue-2:     #144bd6;
  --orange:     #ff7a2f;
  --orange-2:   #e6631c;
  --ink:        #10233f;
  --ink-soft:   #33455f;
  --ink-mute:   #64748b;
  --line:       rgba(11, 37, 69, 0.10);
  --line-strong:rgba(11, 37, 69, 0.18);
  --shadow-sm:  0 6px 20px rgba(11, 37, 69, 0.08);
  --shadow-md:  0 16px 40px rgba(11, 37, 69, 0.12);
  --shadow-lg:  0 30px 70px rgba(11, 37, 69, 0.18);
  --radius:     18px;
  --radius-sm:  12px;
  --ff-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --ff-body:    "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--ff-display); color: var(--navy); margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
em { font-style: normal; color: var(--orange); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 1rem; }

.container-x { max-width: 1240px; margin-inline: auto; padding-inline: 24px; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 3; opacity: 0.025; pointer-events: none; mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
}

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 999;
  background: linear-gradient(140deg, var(--navy) 0%, var(--blue-2) 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, clip-path 0.7s ease;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-mark { display: flex; gap: 4px; font-family: var(--ff-display); font-weight: 700; font-size: 3rem; color: #fff; }
.splash-mark span { display: inline-block; opacity: 0; transform: translateY(16px); animation: splashLetter 0.6s ease forwards; }
.splash-mark span:nth-child(2) { animation-delay: 0.12s; color: var(--orange); }
.splash-mark span:nth-child(1) { animation-delay: 0s; }
@keyframes splashLetter { to { opacity: 1; transform: translateY(0); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.nav-inner {
  max-width: 1240px; margin-inline: auto; padding-inline: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav.is-solid { background: rgba(255,255,255,0.86); backdrop-filter: blur(16px) saturate(160%); box-shadow: var(--shadow-sm); padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff; font-family: var(--ff-display); font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(30,94,255,0.35);
}
.brand-name { font-family: var(--ff-display); font-weight: 600; font-size: 1.1rem; color: var(--navy); }
.brand-name em { color: var(--orange); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.94rem; font-weight: 500; color: var(--ink-soft); position: relative; padding-bottom: 4px; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--orange); transition: right 0.3s ease; }
.nav-links a:hover::after { right: 0; }
.nav-links a:hover { color: var(--navy); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.nav-burger span { width: 22px; height: 2px; background: var(--navy); display: block; transition: transform .3s ease, opacity .3s ease; }

/* ---------- Language switch ---------- */
.lang-switch { display: flex; align-items: center; gap: 2px; background: rgba(11,37,69,0.06); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: none; padding: 6px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.03em; color: var(--ink-mute); transition: background .25s ease, color .25s ease;
}
.lang-switch button.is-active { background: var(--navy); color: #fff; }
.lang-switch button:hover:not(.is-active) { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
  color: #fff; box-shadow: 0 10px 26px rgba(255,122,47,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255,122,47,0.42); }
.btn-ghost { background: rgba(11,37,69,0.05); color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(11,37,69,0.1); transform: translateY(-2px); }
.nav-cta { padding: 10px 20px; font-size: 0.88rem; }
.btn-whatsapp { background: #128c4a; color: #fff; margin-top: 22px; box-shadow: 0 10px 24px rgba(18,140,74,0.3); }
.btn-whatsapp:hover { transform: translateY(-2px); }

.map-wrap {
  margin-top: 26px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); aspect-ratio: 16/10;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.85) contrast(1.02); }
.btn-submit { width: 100%; margin-top: 6px; position: relative; }
.btn-submit.is-sending { pointer-events: none; opacity: 0.85; }
.btn-submit.is-sent { background: linear-gradient(135deg, #16a34a, #15803d); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 140px 24px 100px; overflow: hidden;
  background: radial-gradient(ellipse at top, #eef3fc 0%, var(--bg) 55%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.hero-photo::after { content: ""; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(246,248,251,0.55) 0%, rgba(246,248,251,0.88) 78%, var(--bg) 100%);
}
.hero-blueprint { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.22; mix-blend-mode: multiply; }
.hero-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 620px at 18% 20%, rgba(30,94,255,0.16) 0%, transparent 60%),
    radial-gradient(circle 620px at 84% 78%, rgba(255,122,47,0.16) 0%, transparent 60%);
  filter: blur(10px);
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.kicker {
  display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-2); background: rgba(30,94,255,0.08); padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-title { font-size: clamp(2.4rem, 5.6vw, 4.6rem); margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 640px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: var(--ff-display); font-size: 2.2rem; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 0.85rem; color: var(--ink-mute); margin-top: 4px; text-align: center; max-width: 140px; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 20px; z-index: 1;
}
.hero-scroll span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 3px; background: var(--orange); animation: scrollDot 1.8s ease infinite; }
@keyframes scrollDot { 0% { top: 8px; opacity: 1; } 70% { opacity: 1; } 100% { top: 24px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll span { animation: none; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; background: var(--navy); padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.marquee-track {
  display: flex; gap: 18px; white-space: nowrap; width: max-content;
  animation: marqueeScroll 28s linear infinite;
  font-family: var(--ff-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.85);
}
.marquee-track span:nth-child(2n) { color: var(--orange); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Section head ---------- */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; padding-inline: 24px; }
.section-head-left { text-align: left; max-width: 480px; margin: 0; }
.eyebrow { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-2); margin-bottom: 12px; display: block; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 16px; }
.section-sub { color: var(--ink-mute); font-size: 1.02rem; }

/* ---------- Services ---------- */
.services { padding: 110px 24px; max-width: 1240px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease;
  background: linear-gradient(140deg, rgba(30,94,255,0.06), rgba(255,122,47,0.06));
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
}
.service-card h3 { font-size: 1.18rem; margin-bottom: 10px; position: relative; z-index: 1; }
.service-card p { color: var(--ink-mute); font-size: 0.95rem; position: relative; z-index: 1; }

/* ---------- Advantages ---------- */
.advantages { background: var(--navy); padding: 110px 24px; color: #fff; position: relative; overflow: hidden; }
.advantages::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle 500px at 90% 10%, rgba(255,122,47,0.14), transparent 60%),
              radial-gradient(circle 500px at 5% 90%, rgba(30,94,255,0.2), transparent 60%);
}
.advantages-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; position: relative; z-index: 1; }
.advantages .section-head h2, .advantages .section-head .eyebrow { color: #fff; }
.advantages .section-head h2 em { color: var(--orange); }
.advantages .section-sub { color: rgba(255,255,255,0.68); margin-bottom: 26px; }
.advantages-photo { width: 100%; max-width: 340px; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.1); }
.advantages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-content: start; }
.advantage-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 24px; backdrop-filter: blur(6px); transition: background .3s ease, transform .3s ease; }
.advantage-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-4px); }
.advantage-card h3 { color: #fff; font-size: 1.02rem; margin-bottom: 8px; }
.advantage-card p { color: rgba(255,255,255,0.62); font-size: 0.9rem; }

/* ---------- Process ---------- */
.process { padding: 110px 24px; max-width: 1240px; margin: 0 auto; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { position: relative; padding: 30px 22px; border-left: 2px solid var(--line-strong); }
.process-num { font-family: var(--ff-display); font-size: 1.6rem; font-weight: 700; color: var(--orange); display: block; margin-bottom: 14px; }
.process-step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.process-step p { color: var(--ink-mute); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 110px 0; background: var(--bg-2); }
.testimonials-note { display: block; margin-top: 10px; font-size: 0.82rem; color: var(--ink-mute); font-style: italic; }
.testimonials-track {
  display: flex; gap: 22px; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory;
  padding: 8px 24px 28px; max-width: 1240px; margin: 0 auto;
}
.testimonial-card {
  scroll-snap-align: start; min-width: 340px; max-width: 380px; flex: 0 0 auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); position: relative;
}
.testimonial-badge {
  position: absolute; top: 18px; right: 18px; font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--orange-2); background: rgba(255,122,47,0.1); padding: 4px 10px; border-radius: 999px;
}
.testimonial-quote { font-size: 1.6rem; color: var(--orange); line-height: 1; margin-bottom: 10px; display: block; }
.testimonial-text { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 20px; }
.testimonial-name { font-weight: 600; color: var(--navy); }
.testimonial-role { font-size: 0.85rem; color: var(--ink-mute); display: block; margin-top: 2px; }

/* ---------- Reviews (Trustindex) ---------- */
.reviews { padding: 0 24px 110px; max-width: 1000px; margin: 0 auto; }
.reviews-widget { min-height: 80px; }
.reviews-pending {
  border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 28px;
  text-align: center; color: var(--ink-mute); font-size: 0.95rem; background: var(--paper);
}

/* ---------- FAQ ---------- */
.faq { padding: 110px 24px; max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--ff-display); font-size: 1.05rem; font-weight: 600; color: var(--navy);
}
.faq-q .faq-plus { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
.faq-q .faq-plus::before, .faq-q .faq-plus::after { content: ""; position: absolute; background: var(--orange); top: 50%; left: 50%; }
.faq-q .faq-plus::before { width: 10px; height: 2px; transform: translate(-50%,-50%); }
.faq-q .faq-plus::after { width: 2px; height: 10px; transform: translate(-50%,-50%); transition: transform .3s ease; }
.faq-item.is-open .faq-plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding-bottom: 22px; color: var(--ink-mute); font-size: 0.96rem; max-width: 640px; }
.faq-item.is-open .faq-a { max-height: 240px; }

/* ---------- CTA final ---------- */
.cta-final { padding: 100px 24px; }
.cta-final-inner {
  max-width: 900px; margin: 0 auto; text-align: center; padding: 64px 40px; border-radius: 28px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-final-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-final-inner p { color: rgba(255,255,255,0.75); margin-bottom: 30px; }

/* ---------- Contact ---------- */
.contact { padding: 110px 24px; max-width: 1240px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.contact-info .section-sub { margin-top: 16px; margin-bottom: 30px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-label { font-size: 0.8rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.04em; }
.contact-list a { font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.contact-list a:hover { color: var(--orange-2); }

.contact-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; background: var(--bg);
  transition: border-color .25s ease, box-shadow .25s ease; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30,94,255,0.12); }
.form-note { font-size: 0.82rem; color: var(--ink-mute); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 56px 24px 30px; }
.footer-inner { max-width: 1240px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name em { color: var(--orange); }
.footer-tag { font-size: 0.9rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin: 6px 0; }
.footer-links a:hover { color: var(--orange); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .advantages-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .lang-switch { transform: scale(0.92); }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .cta-final-inner { padding: 44px 24px; }
}
@media (max-width: 760px) {
  .nav.is-menu-open .nav-links {
    display: flex; position: fixed; inset: 74px 16px auto 16px; flex-direction: column; gap: 4px;
    background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow-lg); z-index: 90;
  }
  .nav.is-menu-open .nav-links a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .nav-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.is-active span:nth-child(2) { opacity: 0; }
  .nav-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
