/* Arcadia Scaffolding — Custom CSS */

/* ─── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --primary-dark:   #5c1a2a;
  --primary-red:    #cc3333;
  --primary-maroon: #7a1f3d;
  --accent-gold:    #c4a265;
  --bg-light:       #faf9f6;
  --bg-dark:        #1a1118;
  --text-primary:   #1a1118;
  --text-muted:     #6b7280;
  --white:          #ffffff;
  --nav-height:     72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ─── Skip Link ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--primary-red);
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

/* ─── Navigation ────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#nav.scrolled {
  background: rgba(26, 17, 24, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

#nav.at-top { background: transparent; }

.nav-link {
  position: relative;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.82);
  transition: color 0.2s;
  padding: 4px 0;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active { color: #fff; }

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ─── Mobile Menu ───────────────────────────────────────── */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(26, 17, 24, 0.98);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.mobile-nav-link:hover { color: var(--accent-gold); }

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

#hamburger.open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open .hamburger-bar:nth-child(2) { opacity: 0; }
#hamburger.open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ──────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1118 0%, #2d0d1a 55%, #1a1118 100%);
}

.hex-grid {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='69'%3E%3Cpolygon points='30,2 58,17 58,52 30,67 2,52 2,17' fill='none' stroke='rgba(196,162,101,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 69px;
  opacity: 1;
  pointer-events: none;
}

.hero-geo {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 80%;
  background: linear-gradient(135deg, rgba(122,31,61,0.18) 0%, rgba(92,26,42,0.06) 100%);
  clip-path: polygon(20% 0%, 100% 0%, 100% 85%, 0% 100%);
  pointer-events: none;
}

/* ─── Scroll Animations ─────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate][data-delay="1"] { transition-delay: 0.1s; }
[data-animate][data-delay="2"] { transition-delay: 0.2s; }
[data-animate][data-delay="3"] { transition-delay: 0.3s; }
[data-animate][data-delay="4"] { transition-delay: 0.4s; }
[data-animate][data-delay="5"] { transition-delay: 0.5s; }
[data-animate][data-delay="6"] { transition-delay: 0.6s; }

/* ─── Eyebrow labels ────────────────────────────────────── */
.eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.75rem;
}

/* ─── Service Cards ─────────────────────────────────────── */
.service-card {
  background: #fff;
  border-left: 4px solid var(--primary-red);
  padding: 1.75rem 1.5rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

/* ─── Layher Benefit Cards ──────────────────────────────── */
.benefit-card {
  border: 1px solid rgba(196,162,101,0.2);
  border-top: 3px solid var(--accent-gold);
  background: rgba(255,255,255,0.04);
  padding: 1.75rem;
  border-radius: 0 0 8px 8px;
  transition: background 0.2s;
}

.benefit-card:hover {
  background: rgba(255,255,255,0.07);
  border-top-color: var(--primary-red);
}

/* ─── Process Timeline ──────────────────────────────────── */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

@media (max-width: 767px) {
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .process-connector { display: none; }
}

.process-step { position: relative; text-align: center; padding: 0 0.5rem; }

.process-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-red);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(204,51,51,0.12);
}

.process-connector {
  position: absolute;
  top: 26px;
  left: calc(50% + 26px);
  width: calc(100% - 52px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-red), rgba(204,51,51,0.15));
  z-index: 1;
}

/* ─── Sector Cards ──────────────────────────────────────── */
.sector-img-block {
  height: 160px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* ─── Safety Badges ─────────────────────────────────────── */
.safety-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  border: 1px solid rgba(196,162,101,0.25);
  border-radius: 8px;
  flex: 1;
  min-width: 110px;
  text-align: center;
}

/* ─── Contact Form ──────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(204,51,51,0.1);
}

.form-input.error { border-color: #ef4444; }

.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: none;
}

.form-input.error ~ .form-error { display: block; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

/* ─── WhatsApp Button ───────────────────────────────────── */
#whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s, opacity 0.3s;
  animation: wa-pulse 2s ease-out 1.5s 2;
  text-decoration: none;
}

#whatsapp-btn:hover { transform: scale(1.08); }

#whatsapp-btn.hidden-btn {
  opacity: 0;
  pointer-events: none;
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--primary-red);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: #b32c2c; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--accent-gold);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 2px solid var(--accent-gold);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
  transform: translateY(-1px);
}

/* ─── Scroll Indicator ──────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── Angular section divider ───────────────────────────── */
.clip-angle-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
}

.clip-angle-top {
  clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%);
  margin-top: -48px;
}

/* ─── Utility ───────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* Sectors scroll row on mobile */
@media (max-width: 767px) {
  .sectors-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }
  .sectors-row::-webkit-scrollbar { display: none; }
}

/* Stat highlight cards */
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border-bottom: 3px solid var(--primary-red);
}

/* Focus visible */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: 4px;
}
