/* ============================================================
   TOROS ENGINEERING — main.css  (REVAMP v2)
   Black · White · Red — Premium Industrial
   ============================================================ */

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

:root {
  --black:       #0D0D0D;
  --dark:        #1A1A1A;
  --dark-2:      #242424;
  --dark-3:      #2E2E2E;
  --red:         #C8272D;
  --red-dark:    #9E1C21;
  --red-light:   #E03338;
  --white:       #FFFFFF;
  --off-white:   #F7F8FA;
  --grey-light:  #F0F0F0;
  --grey:        #AAAAAA;
  --grey-mid:    #6B7280;
  --grey-dark:   #3D4148;
  --border:      #E5E7EB;
  --border-dark: #2C2C2C;
  --dark-text:   #1A1A1A;
  --body-text:   #3D4148;
  --muted:       #6B7280;
  --input-bg:    #F3F4F6;

  --font-display: 'Oswald', sans-serif;
  --font-heading: 'Barlow Semi Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:    4px;
  --radius-md: 6px;

  --shadow:    0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 6px 28px rgba(0,0,0,0.11);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.16);

  --transition:      0.22s ease;
  --transition-slow: 0.38s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
}
.hero-slider, .clients-marquee-row, .ticker-wrap { touch-action: pan-y; }
img { max-width: 100%; height: auto; display: block; }
a   { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* ---- Skip Link ---- */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--red); color: var(--white);
  padding: 8px 16px; border-radius: var(--radius);
  font-weight: 600; z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 16px; color: var(--white); }

/* ---- Focus ---- */
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  color: var(--dark-text);
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: 0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 600; font-family: var(--font-heading); letter-spacing: 0.01em; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-heading); line-height: 1.3; letter-spacing: 0; }

p { margin-bottom: 1rem; color: var(--grey-mid); font-size: 0.95rem; line-height: 1.78; }
p:last-child { margin-bottom: 0; }
strong { color: var(--black); font-weight: 600; }

/* ---- Utilities ---- */
.text-red   { color: var(--red)    !important; }
.text-white { color: var(--white)  !important; }
.text-grey  { color: var(--grey)   !important; }
.text-black { color: var(--black)  !important; }
.text-center { text-align: center; }
.text-left   { text-align: left; }

.font-display { font-family: var(--font-display); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }
.italic { font-style: italic; }

.mt-8  { margin-top: 8px;  } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px;  } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ---- Red accent line ---- */
.red-line {
  display: block; width: 48px; height: 4px;
  background: var(--red); margin-bottom: 18px;
}
.red-line.center { margin-left: auto; margin-right: auto; }
.red-line.sm { width: 32px; height: 3px; }

/* ---- Eyebrow label ---- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--red); display: block; margin-bottom: 10px;
}
.eyebrow::after {
  content: '';
  display: block;
  width: 36px; height: 2px;
  background: var(--red);
  margin: 6px auto 0;
}
.eyebrow + .red-line { display: none; }
.enq-text .eyebrow::after { background: rgba(255,255,255,0.4); }
.eyebrow-white { color: rgba(255,255,255,0.6); }

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Section-header stagger: eyebrow -> red-line -> heading -> subtext ---- */
.eyebrow, .red-line {
  opacity: 0; transition: opacity 0.5s ease, transform 0.5s ease;
}
.eyebrow { transform: translateY(10px); }
.red-line { transform: scaleX(0); transform-origin: left center; }
.red-line.center { transform-origin: center center; }
.eyebrow.visible, .red-line.visible { opacity: 1; }
.eyebrow.visible { transform: translateY(0); }
.red-line.visible { transform: scaleX(1); }
.red-line.visible { transition-delay: 0.1s; }

.sec-head h2, .sec-head .sec-sub {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.sec-head h2.visible { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.sec-head .sec-sub.visible { opacity: 1; transform: translateY(0); transition-delay: 0.32s; }

/* Enquiry/CTA section — heading from left, form from right */
.enq-text.reveal { transform: translateX(-50px); }
.enq-form-col.reveal { transform: translateX(50px); }
.enq-text.reveal.visible, .enq-form-col.reveal.visible { transform: translateX(0); }

/* About section — text from left, image from right */
.who-text.reveal { transform: translateX(-60px); }
.who-img-block.reveal { transform: translateX(60px); }
.who-text.reveal.visible, .who-img-block.reveal.visible { transform: translateX(0); }

/* Alternating left/right entrance for product grids */
.home-products-grid > .reveal:nth-child(odd),
.prod-grid > .reveal:nth-child(odd) {
  transform: translateX(-70px);
}
.home-products-grid > .reveal:nth-child(even),
.prod-grid > .reveal:nth-child(even) {
  transform: translateX(70px);
}
.home-products-grid > .reveal.visible,
.prod-grid > .reveal.visible {
  transform: translateX(0);
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.13s; }
.stagger-3 { transition-delay: 0.21s; }
.stagger-4 { transition-delay: 0.29s; }
.stagger-5 { transition-delay: 0.37s; }
.stagger-6 { transition-delay: 0.45s; }

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .eyebrow, .red-line, .sec-head h2, .sec-head .sec-sub {
    opacity: 1 !important; transform: none !important;
  }
}

/* ---- Loading shimmer ---- */
.loading-placeholder {
  background: linear-gradient(90deg, var(--grey-light) 25%, #e6e6e6 50%, var(--grey-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Print ---- */
@media print {
  .topbar, .navbar, .mobile-nav, .mobile-nav-backdrop, .hamburger,
  .wa-float, .call-float, .back-top, .scroll-progress, .page-load-bar,
  .custom-cursor, .cookie-banner, .sticky-enquiry-bar, .nav-search-panel,
  .hero-slider, .slider-controls, .slider-arrows, .btn, .ticker-wrap,
  .clients-marquee-row, .footer, footer { display: none !important; }
  * { animation: none !important; transition: none !important; box-shadow: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .section { padding: 12px 0 !important; }
}

/* ============================================================
   LOGO — FOOTER + NAVBAR
   ============================================================ */
.footer-logo-link {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
}
.footer-logo-img {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}
.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  height: 76px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}
