/* ============================================================
   NEXUS ASSURANCE — Design System
   Premium editorial aesthetic. No templates. No gimmicks.
   ============================================================ */

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

:root {
  /* Palette — muted, warm, authoritative */
  --ink: #0B1120;
  --ink-90: #1A2035;
  --ink-70: #2E3448;
  --stone: #F4F0EA;
  --stone-dark: #E8E2D8;
  --warm-white: #FAF8F5;
  --parchment: #F0EBE1;
  --gold: #A6894A;
  --gold-hover: #8E7340;
  --gold-faint: rgba(166, 137, 74, 0.08);
  --gold-border: rgba(166, 137, 74, 0.2);
  --charcoal: #2C2925;
  --text: #3D3A35;
  --text-secondary: #7A7568;
  --text-light: #A09B91;
  --border: #E2DDD4;
  --border-light: #EDEAE4;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-y: clamp(80px, 10vw, 120px);
  --max-w: 1140px;
  --max-w-narrow: 760px;

  /* Misc */
  --radius: 6px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.container--narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.t-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.t-display--hero { font-size: clamp(2.8rem, 5.5vw, 4.2rem); }
.t-display--section { font-size: clamp(2rem, 3.5vw, 2.8rem); }
.t-display--sub { font-size: clamp(1.5rem, 2.5vw, 1.9rem); }

.t-display em {
  font-style: italic;
  color: var(--gold);
}

.t-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.t-body { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; }
.t-body--lg { font-size: 1.05rem; }
.t-body--sm { font-size: 0.82rem; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--ink);
  padding: 9px 28px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar strong { color: var(--gold); font-weight: 700; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.nav__mark {
  width: 36px;
  height: 36px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: -0.03em;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--charcoal);
  line-height: 1.2;
}
.nav__brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 1px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav__links a {
  display: block;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.nav__links a:hover { color: var(--charcoal); background: var(--stone); }
.nav__links a[data-current] { color: var(--charcoal); }
.nav__cta {
  margin-left: 8px;
  padding: 9px 20px !important;
  background: var(--ink) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  border-radius: var(--radius) !important;
  letter-spacing: 0.01em;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav__cta:hover {
  background: var(--ink-70) !important;
  transform: translateY(-1px);
}
.nav__mobile {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__mobile span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--charcoal);
  margin: 5px 0;
}

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__mobile { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
/* Subtle grain texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 28px 80px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: start;
}
.hero__content { padding-top: 16px; }
.hero__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero__text {
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero stats bar */
.hero__stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.hero__stat {}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.hero__stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

/* Accent line on left */
.hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  z-index: 2;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding: 48px 20px 56px; }
  .hero__stats { gap: 28px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--gold);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(166, 137, 74, 0.25);
}
.btn--outline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn--outline:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.btn--dark {
  background: var(--ink);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--ink-70);
  transform: translateY(-1px);
}
.btn--full { width: 100%; justify-content: center; }
.btn--lg { padding: 16px 32px; font-size: 0.95rem; }

/* ============================================================
   FORM (audit / contact)
   ============================================================ */
.form-panel {
  background: var(--white);
  padding: 36px 32px 32px;
  position: relative;
}
.form-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}
.form-panel__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.form-panel__sub {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--warm-white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-faint);
  background: var(--white);
}
.field input::placeholder { color: var(--text-light); }
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 14px;
  letter-spacing: 0.02em;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--section-y) 0; }
.section--stone { background: var(--stone); }
.section--ink { background: var(--ink); }
.section--ink .t-display { color: var(--white); }
.section--ink .t-body { color: rgba(255,255,255,0.45); }
.section--ink .t-label { color: var(--gold); }

.section__header {
  margin-bottom: 56px;
}
.section__header--center { text-align: center; }
.section__header .t-display { margin-bottom: 14px; }
.section__header .t-body { max-width: 520px; }
.section__header--center .t-body { margin: 0 auto; }
.section__header .t-label { margin-bottom: 14px; display: block; }

/* Horizontal rule accent */
.rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 20px 0;
}
.rule--center { margin: 20px auto; }

/* ============================================================
   SERVICE BLOCKS (editorial, not cards)
   ============================================================ */
.service-blocks {
  display: grid;
  gap: 0;
}
.service-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.service-block:last-child { border-bottom: none; }
.service-block__num {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--stone-dark);
  line-height: 1;
}
.service-block__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.service-block__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
}

@media (max-width: 640px) {
  .service-block { grid-template-columns: 1fr; gap: 12px; }
  .service-block__num { font-size: 2.5rem; }
}

/* ============================================================
   PRODUCT LIST (clean, no cards)
   ============================================================ */
.product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.product-item {
  padding: 28px 24px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-decoration: none;
  color: var(--charcoal);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
}
.product-item:nth-child(3n) { border-right: none; }
.product-item:hover { background: var(--stone); }
.product-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.product-item__name {
  font-weight: 700;
  font-size: 0.88rem;
}
.product-item__tag {
  font-size: 0.68rem;
  color: var(--text-light);
  font-weight: 500;
  margin-left: auto;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .product-list { grid-template-columns: repeat(2, 1fr); }
  .product-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .product-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 480px) {
  .product-list { grid-template-columns: 1fr; }
  .product-item { border-right: none !important; }
}

/* ============================================================
   STEPS (horizontal process)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.step__num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.step__num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.step__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 12px;
}
.step__text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   TESTIMONIALS (pull quotes)
   ============================================================ */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.quote {
  padding: 0 4px;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: -8px;
}
.quote__text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 20px;
}
.quote__author {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--charcoal);
}
.quote__loc {
  font-size: 0.72rem;
  color: var(--text-light);
}
.quote__divider {
  width: 24px;
  height: 1px;
  background: var(--gold);
  margin-top: 16px;
}

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

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--ink);
  padding: 72px 28px;
  text-align: center;
  position: relative;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 14px;
}
.cta-banner p {
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #080D1A;
  padding: 52px 0 0;
}
.footer__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h5 {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 18px;
}
.footer p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.8;
}
.footer a {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer a:hover { color: var(--gold); }
.footer__bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding: 20px 28px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom span {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.18);
}
.footer__bottom a {
  display: inline;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WHATSAPP
   ============================================================ */
.wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s;
  text-decoration: none;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 26px; height: 26px; fill: white; }

/* ============================================================
   PAGE HEADER (subpages)
   ============================================================ */
.page-header {
  background: var(--ink);
  padding: 56px 0 48px;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166,137,74,0.3), transparent);
}
.page-header .t-label {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-header .t-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 12px;
}
.page-header p {
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
  max-width: 520px;
}

/* ============================================================
   CONTENT BLOCKS (for subpages)
   ============================================================ */
.content-block {
  padding: 48px 0;
  border-bottom: 1px solid var(--border-light);
}
.content-block:last-child { border-bottom: none; }
.content-block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.content-block p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 14px;
  max-width: 640px;
}
.content-block ul {
  list-style: none;
  margin: 16px 0;
}
.content-block li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.content-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

/* Two-column layout for service detail */
.content-two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.content-two-col__label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--charcoal);
  position: sticky;
  top: 100px;
}

@media (max-width: 640px) {
  .content-two-col { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
