/* ============================================================
   O&J Construções Ltda — style.css
   Palette: Navy #1B2A4A | Steel #5A6E8C | Silver #8E9BAE | White #F8F9FC
   ============================================================ */

:root {
  --navy:   #1B2A4A;
  --navy2:  #152238;
  --steel:  #5A6E8C;
  --silver: #8E9BAE;
  --light:  #F0F3F8;
  --white:  #FFFFFF;
  --accent: #2563EB;        /* electric blue pop */
  --gold:   #C5A028;        /* subtle warm detail */
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Lora', serif;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── SECTION UTILS ── */
.section-pad { padding: 96px 0; }

.section-eyebrow {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-eyebrow.light { color: #6BAEFF; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--steel); font-weight: 600; }
.section-title.light, .section-body.light { color: var(--white); }
.section-title.light em { color: var(--silver); }

.section-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--steel);
  margin-bottom: 16px;
}

/* ── BUTTONS ── */
.btn-primary-oj {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid var(--navy);
  border-radius: 0;
  padding: 14px 32px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-primary-oj:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-oj {
  background: transparent;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 0;
  padding: 14px 32px;
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline-oj:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
  color: var(--white);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
  background: transparent;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
#mainNav.scrolled {
  background: var(--navy2);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.nav-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}
#mainNav.scrolled .nav-logo { filter: none; }

.navbar-toggler {
  border: none;
  filter: invert(1);
}

.navbar-nav .nav-link {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85) !important;
  padding: 8px 14px;
  transition: color var(--transition);
}
.navbar-nav .nav-link:hover { color: var(--white) !important; }

.nav-cta {
  border: 1.5px solid rgba(255,255,255,.4) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  transition: background var(--transition), border-color var(--transition) !important;
}
.nav-cta:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: var(--white) !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1600&q=80') center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(21,34,56,.92) 55%, rgba(21,34,56,.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--silver);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 540px;
  line-height: 1.7;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.hero-scroll-hint span {
  font-family: var(--font-head);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.25);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .25; transform: scaleY(.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--navy);
  padding: 48px 0;
}

.stat-item {
  padding: 28px 16px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 8px;
}

/* ============================================================
   SOBRE
   ============================================================ */
.sobre-section { background: var(--white); }

.sobre-img-wrap {
  position: relative;
  padding: 0 0 40px 0;
}
.sobre-img-main {
  border-radius: 0;
  overflow: hidden;
  position: relative;
}
.sobre-img-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: saturate(.85);
  transition: filter var(--transition);
}
.sobre-img-main:hover img { filter: saturate(1); }

.sobre-img-badge {
  position: absolute;
  bottom: 0;
  left: -20px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.sobre-img-badge i {
  font-size: 2rem;
  color: var(--gold);
}
.sobre-img-badge span {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.4;
}

.sobre-pilares {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.pilar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1.5px solid var(--light);
  padding: 10px 18px;
  transition: border-color var(--transition), background var(--transition);
}
.pilar:hover { border-color: var(--navy); background: var(--light); }
.pilar i { color: var(--steel); font-size: 1rem; }

/* ============================================================
   SERVIÇOS
   ============================================================ */
.servicos-section { background: var(--light); }

.service-card {
  background: var(--white);
  padding: 36px 32px;
  height: 100%;
  border-top: 3px solid transparent;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-top-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(27,42,74,.1);
}
.service-card--cta {
  background: var(--navy);
  border-top-color: var(--gold) !important;
}
.service-card--cta h3, .service-card--cta p { color: var(--white); }
.service-card--cta .service-icon { color: var(--gold); }

.service-icon {
  font-size: 2.2rem;
  color: var(--steel);
  margin-bottom: 20px;
  transition: color var(--transition);
}
.service-card:not(.service-card--cta):hover .service-icon { color: var(--navy); }

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-card p {
  font-size: .95rem;
  color: var(--steel);
  line-height: 1.7;
}

/* ============================================================
   TRABALHE CONOSCO
   ============================================================ */
.trabalhe-section {
  background: var(--navy2);
}

.candidatura-form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  padding: 48px 40px;
}

.candidatura-form .form-label {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 8px;
}

.oj-input {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 0 !important;
  color: var(--white) !important;
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 14px 18px !important;
  transition: border-color var(--transition), background var(--transition) !important;
}
.oj-input::placeholder { color: rgba(255,255,255,.25) !important; }
.oj-input:focus {
  border-color: var(--accent) !important;
  background: rgba(37,99,235,.08) !important;
  box-shadow: none !important;
  color: var(--white) !important;
}
.oj-input option { background: var(--navy2); color: var(--white); }

.form-success {
  text-align: center;
  padding: 48px;
  color: var(--white);
}
.form-success i {
  font-size: 3rem;
  color: #4ADE80;
  display: block;
  margin-bottom: 16px;
}
.form-success p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.75);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  padding: 64px 0 0;
}

.footer-logo {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
}
.footer-tagline {
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--silver);
}

.footer-heading {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  font-size: .9rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-links li i { color: var(--steel); font-size: .9rem; }
.footer-links a {
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 48px;
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p {
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .07em;
  color: rgba(255,255,255,.3);
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float i {
  font-size: 1.6rem;
  color: var(--white);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
}

.wpp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wppPulse 2.4s ease-out infinite;
}
@keyframes wppPulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .sobre-img-badge { left: 0; }
  .candidatura-form { padding: 32px 20px; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 3rem; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat-item:last-child { border-bottom: none; }
  .hero-scroll-hint { display: none; }
  .sobre-img-badge { position: static; margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition-duration: .01ms !important; }
}
