/* ============================================================
   Isovalle – Design System
   Paleta: Navy #0A1F3D · Azul #1B4F9C · Tipografia: Inter
   Mobile-first responsive
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Tokens ── */
:root {
  --navy:          #0A1F3D;
  --navy-dark:     #071529;
  --navy-90:       rgba(10,31,61,.9);
  --blue:          #1B4F9C;
  --blue-light:    #2E6CC7;
  --blue-xlight:   #EBF2FF;
  --gold:          #E8A020;
  --gold-dark:     #C98810;
  --white:         #FFFFFF;
  --gray-50:       #F4F7FB;
  --gray-100:      #E8EEF6;
  --gray-200:      #CDD8ED;
  --gray-400:      #8FA3C0;
  --gray-600:      #4E6180;
  --gray-800:      #1E2D45;
  --text:          #0D1B2A;
  --text-muted:    #546E7A;
  --success:       #1A8754;
  --error:         #C0392B;

  --shadow-xs: 0 1px 4px rgba(10,31,61,.08);
  --shadow-sm: 0 2px 8px rgba(10,31,61,.10);
  --shadow-md: 0 6px 20px rgba(10,31,61,.12);
  --shadow-lg: 0 16px 48px rgba(10,31,61,.18);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --transition: 240ms cubic-bezier(.4,0,.2,1);
  --nav-height: 70px;
  --container:  1200px;
  --px:         clamp(1rem, 5vw, 2.5rem);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--px);
}
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--alt { background: var(--gray-50); }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-xlight);
  padding: .3rem .9rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.section-title { margin-bottom: 1rem; color: var(--navy); }
.section-subtitle { color: var(--text-muted); max-width: 60ch; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,160,32,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,79,156,.35);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--navy-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--px);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.nav__logo img { height: 38px; width: auto; }
.nav__logo-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
}
.nav__links {
  display: none;
  align-items: center;
  gap: .25rem;
}
.nav__link {
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: all var(--transition);
  position: relative;
}
.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav__cta { margin-left: .75rem; }
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .4rem;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav__mobile {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--navy-dark);
  padding: 1rem var(--px) 1.5rem;
  display: none;
  flex-direction: column;
  gap: .25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  z-index: 1001;
  max-height: calc(85vh);
  overflow-y: auto;
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { font-size: 1rem; padding: .65rem 1rem; }
.nav__mobile .btn { width: 100%; justify-content: center; margin-top: .5rem; }

/* Desktop nav */
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__hamburger { display: none; }
}

/* Page offset for fixed nav */
.page-content { padding-top: 0; }

/* ── Hero ── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--blue) 100%);
  color: var(--white);
  padding-block: clamp(4rem, 12vw, 8rem);
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(27,79,156,.5) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9999px;
  padding: .4rem 1rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .05em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.hero__title span { color: var(--gold); }
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}
.hero__logo {
  width: clamp(100px, 18vw, 160px);
  margin-inline: auto;
  margin-bottom: 2rem;
  filter: brightness(0) invert(1) drop-shadow(0 4px 16px rgba(0,0,0,.4));
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero__locations {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.hero__location-chip {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9999px;
  padding: .35rem .9rem;
  font-size: .8rem;
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
}

/* ── Stats bar ── */
.stats {
  background: var(--blue);
  color: var(--white);
  padding-block: 2.5rem;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stats__number {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
}
.stats__label {
  font-size: .85rem;
  opacity: .85;
  margin-top: .35rem;
}

/* ── Cards de diferenciais ── */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.card-feature {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  opacity: 0;
  transition: opacity var(--transition);
}
.card-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-200);
}
.card-feature:hover::before { opacity: 1; }
.card-feature__icon {
  width: 52px; height: 52px;
  background: var(--blue-xlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
}
.card-feature__icon svg { width: 26px; height: 26px; }
.card-feature__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}
.card-feature__text { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* ── Contato ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition);
}
.contact-item:hover { box-shadow: var(--shadow-sm); }
.contact-item__icon {
  width: 44px; height: 44px;
  background: var(--blue-xlight);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__label { font-size: .75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.contact-item__value { font-size: .95rem; color: var(--navy); font-weight: 500; margin-top: .15rem; }
.contact-item__value a { color: var(--blue); transition: color var(--transition); }
.contact-item__value a:hover { color: var(--blue-light); }
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 380px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.social-links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  border-radius: 9999px;
  font-size: .82rem;
  font-weight: 600;
  background: var(--blue-xlight);
  color: var(--blue);
  transition: all var(--transition);
}
.social-link:hover { background: var(--blue); color: var(--white); }

/* ── Formulário Trabalhe Conosco ── */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  max-width: 680px;
  margin-inline: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-800);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.field label .required { color: var(--error); margin-left: .2rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .925rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,79,156,.12);
}
.field textarea { resize: vertical; min-height: 100px; }
.field--error input,
.field--error select,
.field--error textarea { border-color: var(--error); }
.field__error-msg {
  font-size: .78rem;
  color: var(--error);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.file-upload {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.file-upload:hover { border-color: var(--blue); background: var(--blue-xlight); }
.file-upload input[type=file] { display: none; }
.file-upload__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  color: var(--text-muted);
  font-size: .9rem;
}
.file-upload__label svg { color: var(--blue); }
.file-upload__name { font-size: .8rem; color: var(--blue); font-weight: 500; min-height: 1.2em; }

.alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}
.alert-success {
  background: #EDFAF4;
  border: 1px solid #A3E4C1;
  color: var(--success);
}
.alert-error {
  background: #FEF0EF;
  border: 1px solid #F5B7B1;
  color: var(--error);
}

/* ── Sobre page ── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .about-intro { grid-template-columns: 1fr 1fr; }
}
.about-logo-wrap {
  background: linear-gradient(135deg, var(--navy-dark), var(--blue));
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-logo-wrap img {
  filter: brightness(0) invert(1);
  max-width: 200px;
}
.about-text h2 { color: var(--navy); margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }

/* ── Footer ── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding-block: 3rem 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer__logo { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.footer__logo img { height: 36px; filter: brightness(0) invert(1); }
.footer__logo-name { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.footer__desc { font-size: .85rem; line-height: 1.7; }
.footer__col-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}
.footer__links { display: flex; flex-direction: column; gap: .4rem; }
.footer__links a {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: 1.25rem;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}
.footer__bottom a {
  color: rgba(255,255,255,.6);
  text-decoration: underline;
  transition: color var(--transition);
}
.footer__bottom a:hover {
  color: var(--white);
}

/* ── Errors ── */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem var(--px);
}
.error-page__code { font-size: 6rem; font-weight: 800; color: var(--gray-200); line-height: 1; }
.error-page__title { font-size: 1.5rem; color: var(--navy); margin-bottom: .75rem; }
.error-page__text { color: var(--text-muted); margin-bottom: 2rem; }

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mt-6  { margin-top: 3rem; }
.mb-4  { margin-bottom: 2rem; }
.gap-2 { gap: 1rem; }

/* ── Simulador & Orçamento Responsivo ── */
.sim-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.sim-summary {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.laje-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: .5rem;
  align-items: center;
  background: var(--gray-50);
  padding: .75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}
.laje-row .laje-name {
  grid-column: 1 / -1;
  width: 100%;
}
.laje-row input {
  width: 100%;
  box-sizing: border-box;
}

.laje-types-wrapper {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sim-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.sim-inputs-grid .full-width {
  grid-column: 1 / -1;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.modal-form-grid .full-width {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .laje-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
    background: transparent;
    padding: 0;
    border: none;
  }
  .laje-row .laje-name {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .sim-card {
    padding: 1.25rem;
  }
  .laje-types-wrapper {
    flex-direction: column;
    gap: .5rem;
  }
  .sim-inputs-grid,
  .modal-form-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .sim-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .sim-summary > div:last-child {
    text-align: left !important;
  }
}

/* ── Ajuste de Botões Responsivos em Mobile ── */
.btn {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .btn-lg {
    padding: .85rem 1.25rem;
    font-size: .95rem;
    white-space: normal;
    text-align: center;
    word-break: break-word;
  }
  .quote-cta-box {
    padding: 1.25rem !important;
  }
}
