/*
  Realsky Freight Logistics Theme CSS
  Clean layout, compliant with the exact user requirements.
*/

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

:root {
  --primary-navy: #111e3b;
  --accent-blue: #3d5fc4;
  --accent-red: #cf2e2e;
  --bg-light: #f3f6fa;
  --text-dark: #222222;
  --text-muted: #555555;
  --border-color: #d2dbe5;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* Typography styles */
h1, h2, h3, h4, .font-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Navigation items stylesheet */
#navbar-main {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 82px;
  background-color: #ffffff !important;
}

.navbar-brand {
  padding: 0 !important;
  margin: 0 !important;
}

.navbar-brand-logo {
  object-fit: contain;
  transition: transform 0.2s ease;
  margin: 0;
  padding: 0;
  display: block;
}

.btn-nav-pill {
  background-color: var(--accent-blue) !important;
  color: #ffffff !important;
  border-radius: 25px !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  box-shadow: 0 4px 10px rgba(61, 95, 196, 0.2);
  transition: all 0.2s ease-in-out;
  display: inline-block;
  text-decoration: none;
}

.btn-nav-pill:hover {
  background-color: #2b49ab !important;
  transform: translateY(-1px);
}

.nav-link-custom {
  color: var(--text-dark) !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  transition: color 0.15s ease-in-out;
  text-decoration: none;
}

.nav-link-custom:hover {
  color: var(--accent-blue) !important;
}

/* Hero Section with exact 41% Opacity Overlay details */
.hero-sec-custom {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  min-height: 520px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-dark-overlay {
  width: 100%;
  flex-grow: 1;
  background-color: rgba(0, 0, 0, 0.15); /* light general dimming */
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.hero-rectangle-box {
  background-color: rgba(0, 0, 0, 0.41) !important; /* EXACTLY 41% opacity rectangle */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hero-left-heading {
  font-size: 3.2rem;
  line-height: 1.15;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.border-start-lg {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 991px) {
  html {
    scroll-padding-top: 67px;
  }
  .border-start-lg {
    border-left: none;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .hero-left-heading {
    font-size: 2.1rem;
  }
  .hero-dark-overlay {
    padding: 40px 0;
  }
  #navbar-main {
    min-height: 65px;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }
  .navbar-brand-logo {
    height: 60px !important;
    width: auto !important;
  }
  .btn-nav-pill {
    font-size: 0.8rem;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .nav-link-custom {
    font-size: 0.82rem;
  }
}

@media (max-width: 575.98px) {
  html {
    scroll-padding-top: 57px;
  }
  .hero-left-heading {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
  }
  .welcome-badge {
    margin-bottom: 8px !important;
  }
  .welcome-heading {
    font-size: 1.05rem !important;
    margin-bottom: 8px !important;
  }
  .welcome-body-text {
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
    margin-bottom: 8px !important;
  }
  .hero-dark-overlay {
    padding: 24px 0 !important;
  }
  .hero-rectangle-box {
    padding: 16px !important;
  }
  #navbar-main {
    min-height: 55px;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }
  .navbar-brand-logo {
    height: 48px !important;
    width: auto !important;
  }
  .btn-nav-pill {
    font-size: 0.68rem !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  .nav-link-custom {
    font-size: 0.70rem !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
  }
  .navbar-nav-custom {
    gap: 4px !important;
  }
  .freight-image-container,
  .freight-image-placeholder {
    height: 180px;
  }
}

.welcome-badge {
  background-color: #ffffff;
  color: #000000;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 12px;
}

.welcome-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.welcome-body-text {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  font-weight: 400;
}

/* Our Services Layout (2 Columns Desktop, 1 Column Mobile) */
.section-padding {
  padding: 80px 0;
}

.bg-light-blue {
  background-color: #f2f5fa;
}

.section-top-heading {
  font-size: 2.22rem;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: -0.01em;
}

.heading-horizontal-bar {
  width: 100px;
  height: 4px;
  background-color: #333333;
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

/* Custom Red-Headed Cards */
.custom-freight-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.custom-freight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.freight-card-header {
  background-color: var(--accent-red);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.freight-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Image blocks with unique contour alignment rules */
.freight-image-container {
  height: 230px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e1e9f1;
}

.freight-display-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder box contour exactly as rendered in empty mockup screens */
.freight-image-placeholder {
  height: 230px;
  border-radius: 8px;
  border: 1.5px dashed #cbd5e1;
  background-color: #f8fafc;
}

.freight-card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Royal blue Inquire Button positioned bottom-right */
.btn-freight-inquire {
  background-color: var(--accent-blue);
  color: #ffffff;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(61, 95, 196, 0.15);
  transition: all 0.15s ease-in-out;
}

.btn-freight-inquire:hover {
  background-color: #2b49ab;
  transform: scale(1.03);
}

/* Projects and About Sections */
.max-width-text {
  max-width: 800px;
}

.desc-paragraph {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.bg-pale-gray {
  background-color: #f7fafc;
}

/* Footer elements */
.footer-pale {
  background-color: #ffffff;
  color: var(--text-dark);
}

.footer-accent-title {
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.footer-bold-subtitle {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.15rem;
}

.footer-desc-text {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-mid-heading {
  font-size: 1.15rem;
  color: var(--primary-navy);
  font-weight: 700;
  border-bottom: 2px solid #eeeeee;
  padding-bottom: 8px;
}

.company-sub-bold {
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
}

.bullet-box {
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: bold;
}

.info-line-style {
  font-size: 0.93rem;
  color: var(--text-dark);
}

.hours-card {
  border-left: 4px solid var(--accent-blue) !important;
}

.font-sans-ui {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Form inputs customized to look neat and corporate */
.form-label-custom {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
}

.form-select.small-dropdown,
.form-control.small-input {
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: 6px;
  border-color: #cbd5e1;
}

.btn-cta-calc {
  background-color: var(--accent-blue) !important;
  border: none !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 4px 10px rgba(61, 95, 196, 0.2);
  transition: all 0.15s ease-in-out;
}

.btn-cta-calc:hover {
  background-color: #2b49ab !important;
  transform: translateY(-1px);
}

.footer-quote-pane {
  background-color: #fafbfc;
}

/* Inquiry Modals custom */
.small-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.btn-modal-submit {
  background-color: var(--accent-blue);
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.btn-modal-submit:hover {
  background-color: #2b49ab;
}

/* Anchor transition target corrections */
html {
  scroll-behavior: smooth;
}
