/* ═══════════════════════════════════════════════
   OLASCO ENGINEERING — SHARED STYLESHEET
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;600;700;800;900&family=Barlow:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --flame:   #E8530A;
  --ember:   #F97316;
  --gold:    #D4A847;
  --steel:   #5A6470;       /* darkened for legibility on light bg */
  --iron:    #F4F5F7;       /* was dark — now light grey */
  --forge:   #FFFFFF;       /* was near-black — now white */
  --plate:   #EDEEF1;       /* was dark plate — now light card bg */
  --smoke:   #D8DADE;       /* subtle mid-tone */
  --white:   #F0F2F5;
  --nav-h:   72px;

  /* Text colours */
  --text-primary:   #111316;
  --text-secondary: #3A4049;
  --text-muted:     #afb2b6;
  --border:         rgba(0,0,0,0.08);
  --border-flame:   rgba(232,83,10,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--forge);
  color: var(--text-secondary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Noise overlay — reduced opacity for light bg */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.18;
}

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--forge); }
::-webkit-scrollbar-thumb { background: var(--flame); }

/* Display typography */
h1, h2, h3, h4, .display {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

/* ─── NAVIGATION ─── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.5rem;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
}
#navbar.scrolled {
  background: rgba(17,19,22,0.96);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border-flame);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

#navbar.scrolled .nav-logo { color: #fff; }
#navbar.scrolled .nav-logo sub { color: rgba(255,255,255,0.35); }
#navbar.scrolled .nav-links a { color: rgba(255,255,255,0.6); }
#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active { color: #fff; }
#navbar.scrolled .hamburger span { background: #fff; }
.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-logo span { color: var(--flame); }
.nav-logo sub {
  display: block;
  font-size: 0.45rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: -4px;
  vertical-align: baseline;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 1px;
  background: var(--flame);
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--flame);
  border: none;
  padding: 0.6rem 1.6rem;
  cursor: pointer;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-cta:hover { background: var(--ember); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  transition: 0.3s;
}

/* ─── MOBILE MENU ─── */
#mobileMenu {
  display: none;
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.98);
  z-index: 600;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
#mobileMenu.open { display: flex; }
#mobileMenu a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}
#mobileMenu a:hover { color: var(--flame); }
.mobile-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2.4rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  transition: color 0.2s;
}
.mobile-close:hover { color: var(--text-primary); }

/* ─── PAGE HERO (shared across inner pages) ─── */
.page-hero {
  height: 52vh;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 0 3.5rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--text-primary);   /* hero stays dark — intentional contrast */
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 30% 50%, rgba(232,83,10,0.10) 0%, transparent 70%),
    linear-gradient(150deg, #1a1d21 30%, #1e0d03 100%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232,83,10,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,83,10,0.09) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: radial-gradient(ellipse 100% 100% at 20% 50%, black 20%, transparent 85%);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 1200px; }
.page-hero-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--flame);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}
.page-hero-tag::before {
  content: '';
  width: 35px; height: 1px;
  background: var(--flame);
}
.page-hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  color: #fff;
  line-height: 0.9;
}
.page-hero h1 em { font-style: normal; color: var(--flame); }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  position: absolute;
  bottom: 1.5rem; right: 3.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; }
.breadcrumb a:hover { color: var(--flame); }
.breadcrumb span { color: var(--flame); }

/* ─── LAYOUT UTILITIES ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3.5rem;
}
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

.section-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--flame);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.section-tag::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--flame);
}
.section-title {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.section-title em { font-style: normal; color: var(--flame); }
.section-lead {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 520px;
}

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, var(--flame), rgba(232,83,10,0.05));
  margin: 0;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 2rem;
  cursor: pointer;
  border: none;
  transition: 0.2s;
}
.btn-primary {
  background: var(--flame);
  color: #fff;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-primary:hover { background: var(--ember); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(0,0,0,0.18);
}
.btn-outline:hover { border-color: var(--flame); color: var(--flame); }

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── FOOTER ─── */
footer {
  background: var(--text-primary);   /* footer stays dark */
  border-top: 1px solid rgba(232,83,10,0.15);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-brand p {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  margin-top: 1.1rem;
  max-width: 280px;
}
.footer-brand .nav-logo { color: #fff; }
.footer-brand .nav-logo span { color: var(--flame); }
.footer-brand .nav-logo sub { color: rgba(255,255,255,0.35); }
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(232,83,10,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: 0.2s;
  font-size: 0.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
}
.footer-social a:hover { border-color: var(--flame); color: var(--flame); background: rgba(232,83,10,0.06); }
.footer-col h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 1.4rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul li a {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
}
.footer-bottom .cert-badges {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.cert-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(232,83,10,0.5);
  border: 1px solid rgba(232,83,10,0.2);
  padding: 0.25rem 0.6rem;
  text-transform: uppercase;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  #navbar { padding: 0 1.5rem; }
  .nav-links, .nav-cta { display: none !important; }
  .hamburger { display: flex; }
  .container { padding: 0 1.5rem; }
  .section { padding: 4rem 0; }
  .page-hero { padding: 0 1.5rem 3rem; min-height: 320px; }
  .breadcrumb { right: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ═══════════════════════════════════════ */
#wa-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35), 0 2px 8px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: waPop 0.5s cubic-bezier(0.175,0.885,0.32,1.275) 2s both;
}
#wa-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45), 0 4px 12px rgba(0,0,0,0.2);
}
#wa-btn:hover .wa-tooltip { opacity: 1; transform: translateX(0); pointer-events: auto; }
#wa-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
#wa-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: waPulse 2.5s ease-out 2.5s infinite;
}
.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateX(6px) translateY(-50%);
  background: var(--text-primary);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(37,211,102,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
@keyframes waPop {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes waPulse {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.7); }
}
@media (max-width: 768px) {
  #wa-btn { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; }
  #wa-btn svg { width: 24px; height: 24px; }
  .wa-tooltip { display: none; }
}

/* ═══════════════════════════════════════
   COOKIE CONSENT BANNER
   ═══════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 800;
  background: #fff;
  border-top: 1px solid var(--border-flame);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.08);
}
#cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 240px;
}
.cookie-icon {
  width: 22px; height: 22px; min-width: 22px;
  color: var(--flame);
  margin-top: 1px;
}
.cookie-text strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.cookie-text p {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}
.cookie-btn-primary {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--flame);
  border: none;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition: background 0.2s;
}
.cookie-btn-primary:hover { background: var(--ember); }
.cookie-btn-secondary {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.cookie-btn-secondary:hover { border-color: var(--text-primary); color: var(--text-primary); }
@media (max-width: 768px) {
  .cookie-inner { padding: 1.25rem 1.5rem; flex-direction: column; gap: 1rem; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}

/* ═══════════════════════════════════════
   FORM MESSAGE STATES
   ═══════════════════════════════════════ */
.form-msg.success {
  border: 1px solid rgba(22,163,74,0.25);
  background: rgba(22,163,74,0.05);
  color: #16a34a;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}
.form-msg.error {
  border: 1px solid rgba(220,38,38,0.25);
  background: rgba(220,38,38,0.05);
  color: #dc2626;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}
.form-msg.warn {
  border: 1px solid rgba(202,138,4,0.25);
  background: rgba(202,138,4,0.05);
  color: #ca8a04;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}