/* ============================================
   KRS Moving Solutions — Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy: #2e66b0;
  --navy-deep: #1f4d8a;
  --orange: #f19021;
  --light-gray: #f8f9fa;
  --body-bg: #0a0a0a;
  --white: #ffffff;
  --text-light: #cccccc;
  --text-muted: #999999;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  color: var(--white);
  background-color: var(--body-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #f5a347;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.2;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(46, 102, 176, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--orange);
  transition: background 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero Section (shared base) --- */
.hero {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, rgba(241, 144, 33, 0.15) 100%);
  z-index: 1;
}

.hero-texture {
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 2;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: var(--orange);
  opacity: 0.13;
  transform: skew(-8deg);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 20px 24px 0;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-content .tagline {
  font-family: 'Barlow', sans-serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}

/* Hero with background image */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: opacity 1.5s ease;
}

/* --- Hero Slider (Homepage) --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  margin-top: 70px;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-slider .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-slider .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 45%, rgba(241, 144, 33, 0.2) 100%);
}

.hero-slider .slide-texture {
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

.hero-slider::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: var(--orange);
  opacity: 0.13;
  transform: skew(-8deg);
  z-index: 2;
  pointer-events: none;
}

.hero-slider .hero-content {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  padding-top: 20px;
  width: 90%;
  max-width: 800px;
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 12px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.slider-dots .dot.active {
  background: var(--orange);
  transform: scale(1.2);
}

/* --- Section Layouts --- */
.section {
  padding: 80px 24px;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-navy {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
}

.section-dark {
  background: var(--body-bg);
}

.section-heading {
  font-size: 40px;
  text-align: center;
  margin-bottom: 16px;
}

.section-heading span {
  color: var(--orange);
}

.section-subheading {
  text-align: center;
  font-size: 16px;
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 48px;
  letter-spacing: 1px;
}

/* Orange underline accent on headings */
.accent-underline {
  position: relative;
  display: inline-block;
}

.accent-underline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

/* Section divider */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--orange) 50%, transparent 100%);
  opacity: 0.3;
  max-width: 800px;
  margin: 0 auto;
}

/* --- Two-Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.service-card {
  background: linear-gradient(135deg, rgba(46, 102, 176, 0.3) 0%, rgba(31, 77, 138, 0.5) 100%);
  border: 1px solid rgba(241, 144, 33, 0.1);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(241, 144, 33, 0.4);
  box-shadow: 0 12px 40px rgba(241, 144, 33, 0.15);
}

.service-card img {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--orange);
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-orange {
  background: var(--orange);
  color: var(--navy-deep);
}

.btn-orange:hover {
  background: #f5a347;
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241, 144, 33, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}

.btn-outline:hover {
  background: var(--orange);
  color: var(--navy-deep);
}

/* --- Feature Cards (Services detail) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-grid.two-col-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(241, 144, 33, 0.1);
  transition: all 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(241, 144, 33, 0.4);
  box-shadow: 0 12px 40px rgba(241, 144, 33, 0.15);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--orange);
  transition: height 0.4s ease;
  z-index: 2;
}

.feature-card:hover::before {
  height: 100%;
}

.feature-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.feature-card .card-label {
  padding: 16px;
  text-align: center;
  background: rgba(46, 102, 176, 0.4);
}

.feature-card .card-label h3 {
  font-size: 16px;
  color: var(--orange);
}

/* --- Manufacturer Logo Grid --- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.logo-grid img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.4s ease;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px;
}

.logo-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-4px);
}

/* --- Partners Section --- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  align-items: center;
}

.partners-grid img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s ease;
}

.partners-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.partners-grid img.light-logo {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px;
}

/* --- Contact / Form Section --- */
.contact-section {
  position: relative;
}

.contact-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Oswald', sans-serif;
  font-size: 180px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(241, 144, 33, 0.04);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.form-container {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(46, 102, 176, 0.2);
  border: 1px solid rgba(241, 144, 33, 0.2);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(241, 144, 33, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* Checkbox group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

/* Google Maps embed */
.map-container {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(241, 144, 33, 0.2);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* --- Team Grid (About page) --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-member {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(241, 144, 33, 0.2);
  border: 1px solid rgba(241, 144, 33, 0.4);
}

.team-member::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--orange);
  transition: width 0.4s ease;
  z-index: 3;
}

.team-member:hover::before {
  width: 100%;
}

.team-member img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.team-member .member-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  z-index: 2;
}

.team-member .member-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.team-member .member-info p {
  font-size: 13px;
  color: var(--orange);
  font-weight: 500;
}

.team-grid.centered {
  justify-content: center;
}

/* --- FAQ Items --- */
.faq-item {
  margin-bottom: 48px;
  transition: all 0.4s ease;
}

.faq-item:hover {
  transform: translateY(-4px);
}

.faq-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.faq-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--orange);
  transition: height 0.4s ease;
  z-index: 2;
}

.faq-item:hover .faq-image::before {
  height: 100%;
}

.faq-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.faq-item h3 {
  font-size: 24px;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.faq-item h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--orange);
}

.faq-item p {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.7;
  margin-top: 16px;
}

/* --- Footer --- */
.footer {
  background: linear-gradient(180deg, var(--navy-deep) 0%, #1f4d8a 100%);
  padding: 40px 24px;
  text-align: center;
  border-top: 2px solid rgba(241, 144, 33, 0.2);
}

.footer p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer .tagline {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(241, 144, 33, 0.5);
}

.footer .footer-links {
  font-size: 13px;
  margin-top: 6px;
}

.footer .footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer .footer-links a:hover {
  color: var(--orange, #f19021);
  text-decoration: underline;
}

/* Hidden staff login link — subtle, sits in the bottom corner of the footer.
   Looks like a tiny copyright symbol to casual visitors. */
.staff-link {
  position: absolute;
  bottom: 12px;
  left: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(241, 144, 33, 0.12);
  display: inline-block;
  transition: all 0.25s ease;
  z-index: 10;
}

.staff-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(241, 144, 33, 0.6);
  transform: translate(-50%, -50%);
  transition: all 0.25s ease;
}

.staff-link:hover {
  background: var(--orange);
  transform: scale(1.3);
}

.staff-link:hover::before {
  background: var(--navy-deep);
}

.footer {
  position: relative;
}

/* --- International Impact page --- */
.impact-hero-stat {
  display: inline-block;
  padding: 24px 32px;
  margin: 12px;
  border-radius: 12px;
  background: rgba(241, 144, 33, 0.1);
  border: 1px solid rgba(241, 144, 33, 0.3);
  text-align: center;
  min-width: 160px;
}

.impact-hero-stat .stat-num {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 42px;
  color: var(--orange);
  line-height: 1;
  display: block;
}

.impact-hero-stat .stat-lbl {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  margin-top: 6px;
  display: block;
}

.impact-stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero, .hero-slider {
    height: 500px;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .section-heading {
    font-size: 32px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero, .hero-slider {
    height: 450px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content .tagline {
    font-size: 16px;
  }

  .section {
    padding: 60px 20px;
  }

  .section-heading {
    font-size: 28px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(31, 77, 138, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 2px solid var(--orange);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .feature-grid.two-col-grid {
    grid-template-columns: 1fr;
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-watermark {
    font-size: 80px;
  }

  .faq-image img {
    height: 200px;
  }
}

/* ============================================
   Accessibility & Responsive polish
   ============================================ */

/* Skip-to-content link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-orange, #f19021);
  color: #1f4d8a;
  padding: 12px 20px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* Visible focus rings (keyboard users) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #f19021;
  outline-offset: 2px;
}

/* Responsive typography */
.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}
.hero-content h1 {
  font-size: clamp(2rem, 7vw, 4.5rem);
}
.hero-content .tagline {
  font-size: clamp(1rem, 2.5vw, 1.375rem);
}

/* Contact watermark — prevent horizontal overflow */
.contact-watermark {
  max-width: 100vw;
  overflow: hidden;
  word-break: break-all;
}

/* Intermediate breakpoint: tablet */
@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tight mobile */
@media (max-width: 520px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .contact-watermark {
    font-size: clamp(3rem, 18vw, 8rem);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .slide {
    transition: none !important;
  }
}

/* Hero overlay — darken on small screens so text remains legible */
@media (max-width: 640px) {
  .slide-overlay {
    background: rgba(10, 22, 40, 0.7);
  }
}
