/* ============================================
   JG GESSO — design tokens
   Signature: a "sanca" (cove-light) profile —
   a soft glowing curve that stands for hidden
   light channels carved into gesso ceilings.
   ============================================ */

:root {
  --navy: #35366B;
  --navy-deep: #24254a;
  --blue: #0098DA;
  --gray-dark: #4B4B4D;
  --gray-light: #D2D3D5;
  --paper: #F7F7F8;
  --white: #FFFFFF;

  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", -apple-system, sans-serif;

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--gray-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }

p { color: var(--gray-dark); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue);
  display: inline-block;
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-light);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.logo span { color: var(--blue); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--blue);
}
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--navy);
  position: relative; transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }

/* ---------- hero (sanca signature) ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  overflow: hidden;
  padding: 120px 0 100px;
  color: var(--white);
}
.sanca-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 320px;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { max-width: 720px; padding-top: 40px; }
.hero h1 { color: var(--white); margin: 20px 0 22px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p.lead {
  color: var(--gray-light);
  font-size: 1.15rem;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 30px -8px rgba(0,152,218,0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -6px rgba(0,152,218,0.75); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stats .stat b {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--white);
}
.hero-stats .stat span { font-size: 0.85rem; color: var(--gray-light); }

.hero-stats-uniform { gap: 40px; }
.stat-plain {
  font-family: var(--body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--white);
  position: relative;
  padding-left: 18px;
}
.stat-plain::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 18px; font-size: 1.05rem; }
.section-alt { background: var(--paper); }

.molding-divider { width: 100%; height: 28px; display: block; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-light);
  border: 1px solid var(--gray-light);
}
.service-card { background: var(--white); padding: 40px 32px; transition: background 0.25s ease; }
.service-card:hover { background: var(--paper); }
.service-num { font-family: var(--display); font-size: 0.85rem; color: var(--blue); font-weight: 700; letter-spacing: 0.08em; }
.service-card h3 { margin: 18px 0 12px; }
.service-card p { font-size: 0.95rem; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar-icon { width: 52px; height: 52px; margin-bottom: 22px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: 0.95rem; }

.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.about-copy p { margin-bottom: 18px; font-size: 1.02rem; }

.home-slideshow { position: relative; width: 100%; height: 100%; }
.home-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.home-slideshow .slide.active { opacity: 1; }
.home-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,37,74,0.05), rgba(36,37,74,0.35));
  pointer-events: none;
}
.slideshow-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.slideshow-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.slideshow-dots button.active { background: var(--white); transform: scale(1.2); }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.strip .cell { aspect-ratio: 1; background: var(--gray-light); }

.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--gray-light); max-width: 480px; margin: 18px auto 36px; }
.cta-band .btn-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

footer { background: var(--navy-deep); color: var(--gray-light); padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { font-family: var(--display); font-size: 1.3rem; color: var(--white); margin-bottom: 14px; }
.footer-logo span { color: var(--blue); }
footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 28px; font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: #25D366;
  color: var(--white);
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }

.page-hero { background: linear-gradient(180deg, var(--navy-deep), var(--navy)); color: var(--white); padding: 72px 0 56px; }
.page-hero h1 { color: var(--white); margin-top: 14px; font-size: clamp(2rem, 4vw, 3rem); }
.breadcrumb { font-size: 0.85rem; color: var(--gray-light); }
.breadcrumb .blue { color: var(--blue); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  padding: 36px;
  margin-bottom: 20px;
}
.contact-card .label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 8px;
  display: block;
}
.contact-card .value { font-family: var(--display); font-size: 1.3rem; color: var(--navy); }

.map-frame { border-radius: 4px; overflow: hidden; border: 1px solid var(--gray-light); aspect-ratio: 4/3; }

/* quote form (orçamento page) */
.quote-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.quote-form {
  background: var(--paper);
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 40px;
}
.quote-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin: 18px 0 8px;
}
.quote-form label:first-of-type { margin-top: 0; }
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--gray-light);
  border-radius: 5px;
  font-family: var(--body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--gray-dark);
}
.quote-form textarea { resize: vertical; min-height: 90px; }
.quote-form button {
  width: 100%;
  margin-top: 26px;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.quote-form button:hover { background: var(--navy); transform: translateY(-1px); }
.quote-form .note { font-size: 0.78rem; color: var(--gray-dark); margin-top: 12px; text-align: center; }
.quote-perks { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.quote-perks li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.98rem; }
.quote-perks li svg { flex-shrink: 0; margin-top: 3px; }

@media (max-width: 900px) {
  .quote-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.reveal { opacity: 0; transform: translateY(16px); animation: revealIn 0.7s ease forwards; }
@keyframes revealIn { to { opacity: 1; transform: translateY(0); } }
