/* =======================
   1. Base Styles (Home)
======================= */
body {
  /* Custom cursor removed for better accessibility */
  background-image: url('/assets/images/heroImage.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: black;
  position: relative; /* keep overlay anchoring */
  margin: 0;
}

/* Dark overlay above background, below content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
  pointer-events: none;
}

/* =======================
   2. Layout
======================= */

/* IMPORTANT: do not lock to 100vh (breaks footer + scroll) */
.layout-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Sidebar/menu layer */
.site-sidebar {
  width: 100px;
  background-color: #fff;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  padding: 40px 20px;

  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;

  z-index: 1000; /* always above overlay + main content */
  overflow: visible;
}

/* Main content sits to the right of fixed sidebar */
.site-main {
  margin-left: 100px;
  padding: 40px;
  flex: 1;              /* fills remaining height in column layout */
  position: relative;
  z-index: 1;           /* above body::before overlay */
  box-sizing: border-box;
}

/* =======================
   3. Navigation
======================= */
.logo {
  position: relative;
}
.logo img {
  width: 220px;
  height: auto;
  margin-bottom: 120px;
  transform: rotate(-90deg);
  display: block;
  max-width: none;
  position: absolute;
  left: -100px;
  top: -40px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: auto;
  margin-top: 320px;
}
.nav-menu a {
  color: black;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}
.nav-menu a:hover {
  color: red;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}
.hamburger div {
  width: 25px;
  height: 3px;
  background-color: black;
  transition: all 0.3s ease;
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 0px;
  margin-bottom: 60px;
}
.social-icons a {
  background-color: black;
  border: 2px solid white;
  color: white;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
  background-color: red;
  transform: scale(1.1);
}

/* =======================
   4. Hero Section
======================= */
.hero {
  position: relative;
  z-index: 1;
  padding: 25px 40px 0px;
  text-align: center;
  color: white;
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 0;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
  text-align: center;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
}

.hero-subtitle {
  font-family: 'Oswald', serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: white;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  animation: fadeInUp 1.2s ease-out both;
}

.accent-line-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  margin-bottom: 20px;
}
.accent-line {
  height: 3px;
  width: 100px;
  background-color: white;
  opacity: 1;
  transition: all 0.3s ease;
  border: none;
  animation: expandLine 1.2s ease forwards, fadeInUp 1s ease-out both;
}

/* =======================
   5. Routing Section
======================= */
.routing-overview {
  padding: 60px 20px;
  margin: 0px auto 120px;
  max-width: 1200px;
  text-align: center;
  color: white;
}
.routing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.routing-card {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.routing-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
}
.routing-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: white;
}

.routing-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}
.routing-card-link:hover .routing-card {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.25);
}
.routing-card-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 6px;
  border-radius: 12px;
}

/* =======================
   Footer — CENTERED
======================= */

.footer-wrapper {
  width: 100%;
}

.site-footer {
  background-color: #111;
  color: #eee;
  font-family: 'Oswald', sans-serif;
  padding: 40px 20px;
  box-sizing: border-box;
  text-align: center;
}

/* Center everything inside */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;   /* stack, not split */
  align-items: center;      /* horizontal centering */
  gap: 20px;
}

/* Remove left/right bias */
.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Navigation links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links-title {
  margin-bottom: 6px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: red;
}

/* Social icons centered */
.footer-social-icons {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.footer-social-icons a {
  background-color: #222;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease;
  box-shadow: 0 0 0 2px #fff inset;
}

.footer-social-icons a:hover {
  background-color: red;
  transform: scale(1.1);
  box-shadow: 0 0 0 2px red inset;
}

/* Bottom copyright stays centered */
.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
  color: #aaa;
  text-align: center;
}

/* =======================
   12. Keyframe Animations
======================= */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes expandLine {
  from { width: 0; opacity: 0; }
  to   { width: 100px; opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

/* =======================
   13. Responsive Media Queries
======================= */
@media (max-width: 767px) {
  /* Mobile performance fix: scroll backgrounds instead of fixed */
  body {
    background-attachment: scroll;
  }
  
  .site-sidebar {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 20px;
    position: relative; /* mobile: sidebar becomes top bar */
  }
  .hamburger {
    display: flex;
    order: 0;
    margin-left: 10px;
  }
  .logo {
    order: 1;
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0;
    margin-right: 10px;
  }
  .logo img {
    width: 140px;
    transform: none;
    position: static;
    margin: 0 auto;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .nav-menu.active {
    display: flex;
    margin-top: 20px;
  }
  .social-icons { display: none; }

  .site-main {
    margin-left: 0;
    padding: 20px;
  }

  .hero {
    height: auto;
    padding: 60px 20px 40px;
  }
  .hero-title { font-size: 2.8rem; }
  .hero-subtitle { font-size: 1.1rem; padding: 0 10px; }
  .accent-line { width: 60px; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .hero-title { font-size: 3.5rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .accent-line { width: 70px; }
  .logo img { width: 160px; left: -70px; top: -35px; }
  .nav-menu a { font-size: 1rem; }
  .social-icons a { width: 32px; height: 32px; font-size: 1rem; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero-title { font-size: 4.2rem; }
  .accent-line { width: 90px; }
  .logo img { width: 180px; left: -90px; top: -35px; }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  .hero-title { font-size: 5rem; }
  .accent-line { width: 95px; }
  .logo img { width: 200px; left: -95px; top: -40px; }
}

@media (min-width: 1441px) {
  .hero-title { font-size: 5.5rem; }
  .accent-line { width: 100px; }
  .logo img { width: 220px; left: -100px; top: -40px; }
}

/* ------------------------------------------------------------
   Foundation button interactivity
   Restores affordance for all action elements
------------------------------------------------------------ */

.fc-btn,
.fc-inline-link {
  cursor: pointer;
}

.fc-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.fc-btn:active {
  transform: translateY(0);
}
