/* ===========================================================
   C&T Serviços Engenharia — stylesheet
   =========================================================== */

:root{
  --navy: #16294f;
  --navy-2: #1a3466;
  --blue: #1074c7;
  --blue-light: #3d9be0;
  --gray-dark: #4d4d4d;
  --gray-mid: #6b7280;
  --gray-line: #e4e8ee;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --text: #1c2331;

  --font-head: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(22,41,79,0.06);
  --shadow-md: 0 12px 32px rgba(22,41,79,0.10);
  --shadow-lg: 0 24px 60px rgba(22,41,79,0.16);

  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
h1,h2,h3,h4{ font-family: var(--font-head); color: var(--navy); margin: 0; line-height: 1.2; font-weight: 700; }
p{ margin: 0; }
svg{ display: block; }
.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary{
  background: #25D366;
  color: #0b2914;
  box-shadow: 0 8px 20px rgba(37,211,102,0.35);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,211,102,0.45); }
.btn-ghost{
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-line);
}
.btn-ghost:hover{ border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.hero .btn-ghost{ color: #fff; border-color: rgba(255,255,255,0.35); }
.hero .btn-ghost:hover{ border-color: #fff; }
.btn-lg{ padding: 15px 28px; font-size: 1rem; }
.btn-sm{ padding: 10px 18px; font-size: .88rem; }
.btn-block{ width: 100%; }

/* ===== Header ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 78px;
}
.brand-logo{ height: 46px; width: auto; }
.nav{
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}
.nav a{
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray-dark);
  position: relative;
  padding: 6px 0;
}
.nav a:hover{ color: var(--blue); }
.header-actions{ display: flex; align-items: center; gap: 14px; }
.nav-toggle{
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  padding: 6px;
}

@media (max-width: 900px){
  .nav{
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a{ width: 100%; padding: 14px 0; border-bottom: 1px solid var(--gray-line); }
  .nav-toggle{ display: inline-flex; }
  .header-actions .btn span{ display: none; }
  .header-actions .btn{ padding: 12px; }
}
@media (max-width: 560px){
  .header-actions .btn span{ display: inline; }
  .header-actions .btn-sm{ padding: 10px 14px; font-size: .8rem; }
}

/* ===== Hero ===== */
.hero{
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 55%, #0f6bb8 130%);
  padding: 120px 0 100px;
  color: #fff;
}
.hero-bg{
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(16,116,199,0.55) 0%, rgba(16,116,199,0) 45%),
    radial-gradient(circle at 10% 90%, rgba(16,116,199,0.35) 0%, rgba(16,116,199,0) 50%);
  pointer-events: none;
}
.hero-bg::before{
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.05);
}
.hero-bg::after{
  content: "";
  position: absolute;
  left: -80px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,0.05);
}
.hero-inner{ position: relative; max-width: 760px; }
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #cfe0f7;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.eyebrow .dot{ width: 7px; height: 7px; border-radius: 50%; background: #37e08a; box-shadow: 0 0 0 4px rgba(55,224,138,0.25); }
.hero h1{
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-lead{
  font-size: 1.1rem;
  color: #d7e2f2;
  max-width: 600px;
  margin-bottom: 38px;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Stats ===== */
.stats{ background: var(--bg-alt); border-bottom: 1px solid var(--gray-line); }
.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 24px;
}
.stat{ text-align: center; }
.stat-number{
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 6px;
}
.stat-label{ font-size: .9rem; color: var(--gray-mid); }
@media (max-width: 760px){
  .stats-grid{ grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}

/* ===== Sections ===== */
.section{ padding: 100px 0; }
.section-alt{ background: var(--bg-alt); }
.section-head{ max-width: 680px; margin-bottom: 56px; }
.kicker{
  color: var(--blue);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.section-lead{ color: var(--gray-mid); font-size: 1.05rem; }

@media (max-width: 640px){
  .section{ padding: 70px 0; }
  .section-head{ margin-bottom: 40px; }
}

/* ===== History block ===== */
.history-block{
  background: var(--bg-alt);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 40px;
}
.history-block h3{ font-size: 1.05rem; margin-bottom: 10px; }
.history-block p{ color: var(--gray-dark); font-size: .98rem; line-height: 1.7; max-width: 820px; }

/* ===== About cards ===== */
.cards-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.info-card{
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.info-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-4px); }
.info-icon{
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--blue), var(--navy-2));
  color: #fff;
  border-radius: 14px;
  margin-bottom: 20px;
}
.info-card h3{ font-size: 1.15rem; margin-bottom: 10px; }
.info-card p{ color: var(--gray-mid); font-size: .96rem; }

@media (max-width: 860px){
  .cards-3{ grid-template-columns: 1fr; }
}

/* ===== Sector grid ===== */
.sector-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sector-card{
  background: #fff;
  border: 1px solid var(--gray-line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sector-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-sm); border-left-color: var(--navy-2); }
@media (max-width: 760px){
  .sector-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .sector-grid{ grid-template-columns: 1fr; }
}

/* ===== Services ===== */
.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
.service-card{
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.service-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-icon{
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,116,199,0.1);
  color: var(--blue);
  border-radius: 12px;
  margin-bottom: 18px;
}
.service-card h3{ font-size: 1.1rem; margin-bottom: 8px; }
.service-card p{ color: var(--gray-mid); font-size: .93rem; }

@media (max-width: 860px){
  .service-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .service-grid{ grid-template-columns: 1fr; margin-bottom: 56px; }
}

.norms-title{ font-size: 1.3rem; margin-bottom: 24px; }
.norms-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.norm-card{
  background: var(--navy);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  color: #fff;
}
.norm-tag{
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.norm-card p{ font-size: .88rem; color: #dbe6f4; }
@media (max-width: 900px){
  .norms-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .norms-grid{ grid-template-columns: 1fr; }
}

/* ===== Portais ===== */
.portal-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.portal-card{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.portal-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--blue); }
.portal-card h3{ font-size: 1.05rem; margin-bottom: 8px; }
.portal-card p{ color: var(--gray-mid); font-size: .9rem; margin-bottom: 18px; }
.portal-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--blue);
  font-weight: 600;
  font-size: .9rem;
}
@media (max-width: 900px){
  .portal-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .portal-grid{ grid-template-columns: 1fr; }
}

/* ===== Team photo ===== */
.team-photo-wrap{
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.team-photo{
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ===== Team ===== */
.team-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.team-card{
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: left;
  transition: box-shadow .25s ease, transform .25s ease;
}
.team-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-avatar{
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--blue), var(--navy-2));
  color: #fff;
  margin-bottom: 20px;
}
.team-card h3{ font-size: 1.2rem; margin-bottom: 4px; }
.team-role{ color: var(--blue); font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.team-desc{ color: var(--gray-mid); font-size: .95rem; }
@media (max-width: 700px){
  .team-grid{ grid-template-columns: 1fr; }
}

/* ===== Contact ===== */
.contact-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form{
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row{ margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-row label{ font-size: .88rem; font-weight: 600; color: var(--navy); }
.form-row input,
.form-row select,
.form-row textarea{
  border: 1.5px solid var(--gray-line);
  border-radius: 10px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: #fbfcfe;
  transition: border-color .2s ease, box-shadow .2s ease;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(16,116,199,0.15);
}

.contact-info{ display: flex; flex-direction: column; gap: 16px; }
.contact-item{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color .2s ease, transform .2s ease;
  font-size: .92rem;
  color: var(--gray-dark);
}
.contact-item:hover{ border-color: var(--blue); transform: translateX(3px); }
.contact-item strong{ display: block; color: var(--navy); font-size: .95rem; margin-bottom: 2px; }
.contact-icon{
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,116,199,0.1);
  color: var(--blue);
}
.social-row{ display: flex; gap: 12px; margin-top: 4px; }
.social-btn{
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,116,199,0.1);
  color: var(--blue);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social-btn:hover{ background: var(--blue); color: #fff; transform: translateY(-2px); }
.social-btn-dark{ background: rgba(255,255,255,0.08); color: #cfe0f7; }
.social-btn-dark:hover{ background: var(--blue); color: #fff; }

.map-wrap{
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-line);
  margin-top: 4px;
}
.map-wrap iframe{ display: block; }

@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.site-footer{ background: var(--navy); color: #d7e2f2; padding-top: 70px; }
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo{ height: 40px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p{ font-size: .9rem; color: #aebede; margin-bottom: 20px; max-width: 280px; }
.footer-col h4{ color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer-col{ display: flex; flex-direction: column; gap: 12px; font-size: .9rem; }
.footer-col a:hover{ color: #fff; }
.footer-bottom{ padding: 22px 0; }
.footer-bottom-inner{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
  color: #91a3c4;
}
@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom-inner{ flex-direction: column; text-align: center; }
}

/* ===== Floating WhatsApp ===== */
.whatsapp-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,0.45);
  z-index: 90;
  transition: transform .2s ease;
}
.whatsapp-float:hover{ transform: scale(1.08); }

/* ===== Reveal on scroll ===== */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
