/* ==========================================================================
   SS Construction — shared stylesheet
   Loaded on every page alongside the Tailwind CDN build. Anything that is
   easier to express as plain CSS (textures, keyframes, nav underline state)
   lives here instead of as a wall of utility classes in the markup.
   ========================================================================== */

:root {
  --brand-red: #d81324;
  --brand-red-dark: #a80f1c;
  --brand-charcoal: #141517;
  --brand-charcoal-light: #1f2124;
  --brand-silver: #9aa0a6;
}

html {
  scroll-behavior: smooth;
}

/* Alpine.js: hide elements gated by x-show before Alpine has initialised */
[x-cloak] {
  display: none !important;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  background-color: #f7f7f8;
}

h1, h2, h3, h4, .font-heading {
  font-family: "Oswald", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.01em;
}

/* Steel/diamond-plate style texture used behind the hero + CTA sections */
.texture-plate {
  background-color: var(--brand-charcoal);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05) 0, transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.04) 0, transparent 40%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 26px);
}

.texture-carbon {
  background-color: #0f1011;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Red "hazard stripe" accent used as a divider under headings and the header top bar */
.hazard-stripe {
  height: 6px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--brand-red) 0 14px,
    #141517 14px 28px
  );
}

/* Nav link underline state, driven by main.js matching body[data-page] */
.nav-link {
  position: relative;
  color: #d4d4d8;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #ffffff;
}
.nav-link-active {
  color: #ffffff !important;
}
.nav-link-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--brand-red);
}

/* Section title with red tick mark, used throughout */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-red);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.section-kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--brand-red);
  display: inline-block;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
  box-shadow: 0 6px 18px -6px rgba(216, 19, 36, 0.55);
}
.btn-primary:hover {
  background: var(--brand-red-dark);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 1.7rem;
  border-radius: 0.375rem;
  border: 2px solid rgba(255,255,255,0.55);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Card hover lift used for service/portfolio/team cards */
.card-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -18px rgba(20, 21, 23, 0.35);
}

/* Placeholder project tiles (portfolio + service imagery) until real site
   photography is supplied — swap the background-image / gradient per tile. */
.placeholder-tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #2b2d30 0%, #1a1b1d 60%, #0f1011 100%);
}
.placeholder-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg, rgba(255,255,255,0.05) 0 10px, transparent 10px 20px
  );
  opacity: 0.5;
}
.placeholder-tile .tile-icon {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

/* WhatsApp floating action button */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,0.45);
  animation: fab-pulse 2.6s infinite;
}
.whatsapp-fab:hover { animation: none; transform: scale(1.06); }

@keyframes fab-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 10px 25px -8px rgba(0,0,0,0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0), 0 10px 25px -8px rgba(0,0,0,0.45); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 25px -8px rgba(0,0,0,0.45); }
}

/* Simple fade-in used on scroll-triggered elements via Alpine's x-intersect-free fallback */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox-backdrop {
  background: rgba(10, 10, 11, 0.92);
}
