/* ===========================================
   TERAVIVE - Multipage Commercial Website v2
   Cleaner, less saturated, catalog-style layout
   =========================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #002A3A;
  --navy-2: #073B4C;
  --navy-soft: #0E5366;
  --green: #1B7340;
  --green-soft: #2B8B51;
  --orange: #E07020;
  --cream: #F8F3EA;
  --cream-2: #FDF9F3;
  --white: #FFFFFF;
  --gray-50: #FCFCFC;
  --gray-100: #F4F4F2;
  --gray-200: #E7E4DE;
  --gray-300: #D4D0C8;
  --gray-500: #6F6A63;
  --gray-700: #3B3B3B;
  --gray-900: #1B1B1B;
  --font-display: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 12px 28px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 52px rgba(0,0,0,0.14);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  color: var(--gray-700);
  background: var(--white);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.85rem, 3vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
p { color: var(--gray-500); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--green);
  margin-bottom: 10px;
}
.eyebrow-light { color: #DDEEE5; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.narrow { max-width: 820px; text-align: center; }

.section { padding: 72px 0; }
.section-light { background: var(--gray-100); }
.section-catalog { background: var(--cream-2); }
.section-dark { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--white); }
.section-cta { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); }
.section-cta-lite { background: var(--cream-2); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }

.section-header {
  text-align: center;
  margin-bottom: 34px;
}
.section-header.compact { margin-bottom: 26px; }
.section-header-center {
  max-width: 760px;
  margin: 0 auto 32px;
}
.section-desc {
  max-width: 740px;
  margin: 12px auto 0;
  font-size: 1.04rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 249, 243, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 42, 58, 0.08);
}
.site-header.scrolled { box-shadow: 0 10px 24px rgba(0,0,0,0.06); }
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img, .brand .brand-logo {
  height: 80px;
  width: auto;
}
.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
  opacity: .85;
  transition: opacity .2s ease, color .2s ease;
}
.main-nav a:hover { color: var(--green); opacity: 1; }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(27,115,64,.18);
  transition: transform .2s ease, background .2s ease;
}
.header-cta:hover { background: var(--green-soft); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}

/* Hero */
.hero, .page-hero {
  background: radial-gradient(circle at top right, rgba(27,115,64,.08), transparent 34%), linear-gradient(180deg, var(--cream-2) 0%, var(--white) 100%);
  padding: 72px 0 64px;
}
.sector-hero {
  background: radial-gradient(circle at top left, rgba(224,112,32,.11), transparent 30%), linear-gradient(180deg, var(--cream-2) 0%, var(--white) 100%);
}
.hero-grid, .page-hero-grid, .split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px;
  align-items: center;
}
.hero-copy,
.page-hero-grid > div,
.split-grid > div { min-width: 0; }
.hero-copy h1,
.page-hero h1 {
  margin: 8px 0 18px;
  max-width: 11ch;
}
.page-hero h1 { max-width: 13ch; }
.hero-subtitle, .page-hero p, .simple-hero p {
  font-size: 1.08rem;
  max-width: 680px;
  margin-bottom: 24px;
}
.hero-actions, .inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-media, .page-hero-image, .image-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04);
  max-width: 560px;
  justify-self: center;
}
.hero-media img, .page-hero-image img, .image-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center center;
  background: var(--gray-100);
}
.hero-media figcaption, .image-card figcaption {
  padding: 10px 14px;
  font-size: .83rem;
  background: rgba(255,255,255,.94);
  color: var(--gray-500);
}
.simple-hero { text-align: center; }
.simple-hero h1, .simple-hero p { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: .98rem;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(27,115,64,.15);
}
.btn-primary:hover { background: var(--green-soft); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-soft); }
.btn-outline { border: 1.5px solid rgba(0,42,58,.18); color: var(--navy); background: var(--white); }
.btn-outline:hover { border-color: var(--navy); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-block { width: 100%; }

/* Home helpers */
.quick-intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.quick-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.quick-card strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 1.06rem;
}

/* Cards */
.cards-grid { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: .84rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 8px; }
.card a {
  display: inline-flex;
  margin-top: 14px;
  font-weight: 800;
  text-decoration: none;
  color: var(--green);
}
.card-minimal { padding: 24px; }

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.mini-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 22px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mini-card strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* Equipment */
.equipment-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.equipment-strip article,
.family-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.equipment-strip img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center center;
}
.equipment-strip h3 { padding: 16px 18px 4px; }
.equipment-strip p { padding: 0 18px 18px; }

.equipment-family-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.equipment-family {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 28px;
  background: var(--white);
  border-radius: 28px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: 26px;
}
.equipment-family.reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.equipment-family.reverse img { order: 2; }
.equipment-family img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center center;
  border-radius: 18px;
  background: var(--gray-100);
}
.product-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  font-size: .84rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.tag-blue { background: var(--navy); }
.tag-green { background: var(--green); }
.tag-orange { background: var(--orange); }
.tag-navy { background: var(--navy-soft); }
.model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.model-chips span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--navy);
  font-size: .84rem;
  font-weight: 800;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.step p { color: rgba(255,255,255,.82); font-size: .96rem; }

/* Lists / docs */
.check-list { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
}
.doc-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.doc-item {
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--navy);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.doc-grid.inverted .doc-item {
  background: rgba(255,255,255,.10);
  color: var(--white);
  border-color: rgba(255,255,255,.12);
}

/* Resources */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.resource-card {
  background: var(--white);
  border-radius: 22px;
  padding: 26px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 250px;
}
.resource-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .74rem;
  font-weight: 800;
  color: var(--white);
  background: var(--navy);
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.resource-card p { margin: 8px 0 18px; flex-grow: 1; }

/* CTA */
.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-row p { margin-top: 8px; max-width: 720px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
}
.contact-info h2 { color: var(--white); margin-bottom: 12px; }
.contact-info > p { color: rgba(255,255,255,.82); margin-bottom: 18px; }
.contact-links { display: grid; gap: 10px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--white);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}
.contact-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--green);
  font-weight: 800;
  font-size: .76rem;
}
.contact-whatsapp .contact-icon { background: #25D366; }
.contact-note {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.82);
}
.contact-form {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.contact-form label {
  display: block;
  font-size: .9rem;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 4px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 15px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid var(--gray-300);
  font: inherit;
  background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--green);
}
.contact-form textarea { resize: vertical; }

/* Legal */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: 34px;
}
.legal-date { font-size: .88rem; color: var(--gray-500); margin: 8px 0 24px; }
.legal-content section { margin-bottom: 22px; }
.legal-content h2 { font-size: 1.15rem; margin-bottom: 8px; }
.legal-content a { color: var(--green); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-note {
  font-size: .88rem;
  font-style: italic;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--gray-100);
  margin-bottom: 22px;
}

/* Footer */
.site-footer {
  background: #0B2230;
  color: rgba(255,255,255,.78);
  padding: 54px 0 24px;
}
.footer-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: var(--cream);
  border-radius: 16px;
  margin-bottom: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer-brand img {
  width: 160px;
  height: auto;
  border-radius: 0;
}
.footer-brand p {
  max-width: 360px;
  color: rgba(255,255,255,.72);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links strong {
  color: var(--white);
  margin-bottom: 4px;
}
.footer-links a {
  color: rgba(255,255,255,.74);
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  text-align: center;
  color: rgba(255,255,255,.52);
  font-size: .88rem;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
}
.whatsapp-float:hover { transform: scale(1.05); }



.header-inner { justify-content: space-between; }
.main-nav { flex-wrap: wrap; }
.main-nav a.active,
.main-nav a[aria-current="page"] { color: var(--green); opacity: 1; }

.hero-copy,
.page-hero-grid > div:first-child { max-width: 640px; }
.hero-media img, .page-hero-image img, .image-card img { max-height: 460px; }
.equipment-strip article { display: flex; flex-direction: column; }
.equipment-strip p { flex-grow: 1; }
.equipment-family { padding: 22px; }
.equipment-family img { max-height: 400px; }

.footer-brand { max-width: 360px; }
.footer-links a { line-height: 1.45; }

/* Extra visual cleanup */
main { overflow-x: hidden; }
.hero-subtitle, .page-hero p, .simple-hero p, .section-desc { max-width: 60ch; }
.quick-card, .card, .resource-card, .equipment-family, .equipment-strip article { background: #fff; }

/* Responsive */
@media (max-width: 1100px) {
  .brand img, .brand .brand-logo { height: 72px; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: .92rem; }
  .equipment-strip,
  .cards-4,
  .resource-grid,
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 94px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 16px;
    background: rgba(253,249,243,.98);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
  .header-cta { display: none; }
  .hero-grid,
  .page-hero-grid,
  .split-grid,
  .contact-grid,
  .equipment-family,
  .equipment-family.reverse { grid-template-columns: 1fr; }
  .equipment-family.reverse img { order: 0; }
  .quick-intro,
  .cards-3,
  .mini-card-grid { grid-template-columns: 1fr 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1120px); }
  .section, .hero, .page-hero { padding: 54px 0; }
  .header-inner { min-height: 78px; }
  .brand img, .brand .brand-logo { height: 62px; }
  .hero-copy h1,
  .page-hero h1,
  .simple-hero h1 { max-width: none; }
  .hero-subtitle,
  .page-hero p,
  .simple-hero p { font-size: 1rem; }
  .hero-actions,
  .inline-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .quick-intro,
  .cards-3,
  .cards-4,
  .equipment-strip,
  .resource-grid,
  .steps-grid,
  .mini-card-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-media img,
  .page-hero-image img,
  .image-card img,
  .equipment-family img,
  .equipment-strip img { aspect-ratio: 4 / 3; }
  .legal-content,
  .contact-form { padding: 22px; }
  .whatsapp-float { right: 18px; bottom: 18px; }
}
