/* GenTech Solutions — site institucional */

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ===== Tokens ===== */
:root {
  --color-navy: #002F6C;
  --color-blue: #004AAD;
  --color-graphite: #1D1F21;
  --color-bg: #F7F8FA;
  --color-surface: #FFFFFF;
  --color-border: #DCE1E8;
  --color-ink-muted: #57677A;

  --gradient-gourmet: linear-gradient(135deg, #B8621E, #D4864A, #F0B86E);
  --gradient-shop: linear-gradient(135deg, #1D5C8A, #4A9FD4);
  --gradient-brand: linear-gradient(135deg, var(--color-navy), var(--color-blue));

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;

  --section-padding: clamp(3rem, 6vw, 6rem);
  --header-offset: 88px;
}

/* ===== Base ===== */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-graphite);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-navy);
  text-wrap: balance;
  line-height: 1.15;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

p.lede { font-size: 1.1rem; color: var(--color-ink-muted); max-width: 60ch; }

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

section { padding-block: var(--section-padding); scroll-margin-top: var(--header-offset); }

/* ===== Buttons ===== */
.btn-primary, .btn-ghost, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--color-navy); color: #fff; }
.btn-primary:hover { background: var(--color-blue); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn-ghost:hover { background: var(--color-navy); color: #fff; }
.btn-outline { background: var(--color-surface); color: var(--color-navy); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-navy); }

.gradient-text {
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* ===== Scroll reveal (wired up in Task 11) ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Header & navegação ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-graphite);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  border-radius: var(--radius-pill);
}

.nav-menu {
  position: fixed;
  inset: 0 0 0 30%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  border-left: 1px solid var(--color-border);
}
.nav-menu.is-open { transform: translateX(0); }
.nav-menu ul { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); width: 100%; }
.nav-menu a { position: relative; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--color-graphite); }
.nav-menu a:hover { color: var(--color-blue); }
.nav-menu a.is-active { color: var(--color-blue); }
.nav-menu a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--color-blue);
  border-radius: var(--radius-pill);
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    inset: auto;
    transform: none;
    background: none;
    border-left: none;
  }
  .nav-menu ul { flex-direction: row; gap: var(--space-4); padding: 0; }
  .nav-menu a { font-size: 0.97rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu { transition: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #002F6C 0%, #004AAD 55%, #1D5C8A 100%);
}
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255, 255, 255, 0.85); }
.hero .gradient-text {
  background: linear-gradient(135deg, #fff, #BFD9F5);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero .btn-primary { background: #fff; color: var(--color-navy); }
.hero .btn-primary:hover { background: #BFD9F5; color: var(--color-navy); }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.hero .btn-ghost:hover { background: #fff; color: var(--color-navy); }

.hero__decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__glow {
  position: absolute;
  top: 10%;
  right: 8%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
  filter: blur(12px);
}
.hero__nodes { position: absolute; top: 0; right: 0; width: 60%; max-width: 420px; height: auto; }

.hero__inner { position: relative; z-index: 2; max-width: 720px; display: flex; flex-direction: column; gap: var(--space-3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }

@media (min-width: 640px) {
  .hero__inner { gap: var(--space-4); }
}
@media (max-width: 639px) {
  .hero__nodes { opacity: 0.5; width: 45%; }
  .hero__glow { width: 140px; height: 140px; }
}

/* ===== Sobre ===== */
.about { background: var(--color-surface); }
.about__text { display: grid; gap: var(--space-2); max-width: 720px; margin-top: var(--space-3); color: var(--color-ink-muted); font-size: 1.02rem; }

@media (min-width: 1024px) {
  .about__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: var(--space-5);
  }
  .about__inner > h2,
  .about__inner > .about__highlights,
  .about__inner > .about__text {
    grid-column: 1;
  }
  .about__text { max-width: none; }
  .about__inner::after {
    content: '';
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: stretch;
    min-height: 320px;
    border-radius: var(--radius-lg);
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cg stroke='%23ffffff' stroke-width='1' opacity='0.25'%3E%3Cline x1='60' y1='40' x2='140' y2='90'/%3E%3Cline x1='140' y1='90' x2='110' y2='190'/%3E%3Cline x1='110' y1='190' x2='200' y2='230'/%3E%3Cline x1='60' y1='40' x2='30' y2='140'/%3E%3C/g%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='60' cy='40' r='5' opacity='0.5'/%3E%3Ccircle cx='140' cy='90' r='6' opacity='0.75'/%3E%3Ccircle cx='110' cy='190' r='7'/%3E%3Ccircle cx='200' cy='230' r='5' opacity='0.5'/%3E%3Ccircle cx='30' cy='140' r='4' opacity='0.4'/%3E%3C/g%3E%3C/svg%3E"),
      linear-gradient(120deg, #002F6C 0%, #004AAD 55%, #1D5C8A 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: 70%, cover;
  }
}

.about__highlights { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.about__highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-graphite);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.about__highlight:hover { background: #fff; border-color: var(--color-navy); }
.about__highlight-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy), var(--color-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== Nossas soluções — SEÇÃO PROTEGIDA =====
   Aprovada: não alterar estrutura, cores, espaçamento ou texto.
   Regras abaixo neutralizam mudanças globais (tipografia) que afetariam esta seção. */
.solutions { background: var(--color-bg); }
.solutions h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.solutions .lede { max-width: none; }

.solutions__grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.product-card {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0, 47, 108, 0.12); }

.product-card__blob {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  z-index: 1;
  opacity: 0.10;
}
.product-card--gourmet .product-card__blob { background: radial-gradient(circle, #B8621E, transparent 70%); }
.product-card--shop .product-card__blob { background: radial-gradient(circle, #1D5C8A, transparent 70%); }

.product-card__tag,
.product-card__icon,
.product-card h3,
.product-card p,
.product-card__cta {
  position: relative;
  z-index: 2;
}

.product-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card--gourmet .product-card__icon { background: var(--gradient-gourmet); }
.product-card--shop .product-card__icon { background: var(--gradient-shop); }

.product-card__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}
/* Solid (not gradient) fills for text-bearing elements: white text needs 4.5:1,
   which the gradients' lighter stops fail (as low as 1.8:1). The full gradient
   is kept for the decorative, aria-hidden icon background below. */
.product-card--gourmet .product-card__tag { background: #A85A1B; }
.product-card--shop .product-card__tag { background: #1D5C8A; }

.product-card p { color: var(--color-ink-muted); }

.product-card__cta { align-self: flex-start; }
.product-card--gourmet .product-card__cta { background: #A85A1B; }
.product-card--shop .product-card__cta { background: #1D5C8A; }

.cta-banner {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  background: var(--color-navy);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
}
.cta-banner p { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.cta-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.cta-banner .btn-ghost:hover { background: #fff; color: var(--color-navy); }

@media (min-width: 640px) {
  .solutions__grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Propósito & Expansão ===== */
.purpose {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #002F6C 0%, #004AAD 100%);
}
.purpose h2 { color: #fff; }
.purpose .lede { color: rgba(255, 255, 255, 0.85); }
.purpose__decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.purpose__decor::before {
  content: '';
  position: absolute;
  bottom: 5%;
  left: 8%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  filter: blur(18px);
}
.purpose__decor svg { position: absolute; bottom: -8%; left: -4%; width: 340px; height: auto; opacity: 0.85; }
.purpose__inner { position: relative; z-index: 2; max-width: 720px; }
.expansion__inner { max-width: 720px; }

.expansion { background: var(--color-bg); }
.expansion .cta-banner {
  margin-top: var(--space-4);
  padding: var(--space-4);
  box-shadow: 0 16px 32px rgba(0, 47, 108, 0.12);
}

/* ===== Contato ===== */
.contact { position: relative; overflow: hidden; background: var(--color-navy); color: #fff; }
.contact h2 { color: #fff; }
.contact .lede { color: rgba(255,255,255,0.75); }
.contact__decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.contact__decor svg { position: absolute; top: -5%; right: -3%; width: 320px; height: auto; }
.contact > .container { position: relative; z-index: 2; }

.contact__grid {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.contact-tile {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.contact-tile:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.contact-tile__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.6); }
.contact-tile__value { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; overflow-wrap: break-word; }
.contact-tile--static { cursor: default; }
.contact-tile__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease;
}
.contact-tile:hover .contact-tile__icon { transform: scale(1.08); }

@media (min-width: 640px) {
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .contact-tile__value { font-size: 0.97rem; }
}
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: repeat(6, 1fr); }
  .contact__grid > :nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .contact__grid > :nth-child(2) { grid-column: 3 / 5; grid-row: 1; }
  .contact__grid > :nth-child(4) { grid-column: 5 / 7; grid-row: 1; }
  .contact__grid > :nth-child(3) { grid-column: 1 / 4; grid-row: 2; }
  .contact__grid > :last-child:nth-child(odd) { grid-column: 4 / 7; grid-row: 2; }
  .contact-tile__value { font-size: 1.05rem; }
  .contact__grid > :nth-child(1) .contact-tile__value { white-space: nowrap; }
}

/* ===== Footer ===== */
.site-footer { background: var(--color-graphite); color: rgba(255,255,255,0.7); padding-block: var(--space-5) var(--space-3); }
.site-footer .site-logo { color: #fff; }

.site-footer__grid { display: grid; gap: var(--space-4); }
.site-footer__brand { display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__tagline { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); max-width: 320px; margin: 0; }

.site-footer__heading { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.58); margin-bottom: var(--space-2); }
.site-footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer__links a { transition: color 0.15s ease; }
.site-footer__links a:hover { color: #fff; }

.site-footer__contact { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.site-footer__contact a { transition: color 0.15s ease; }
.site-footer__contact a:hover { color: #fff; }
.site-footer__contact p { margin: 0; color: rgba(255, 255, 255, 0.7); }

.site-footer__bottom { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer__copy { font-size: 0.8rem; margin: 0; }

@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}
