/* ========================================
   LoRhino — Agency Theme Styles
   Based on Start Bootstrap "Agency"
   Bootstrap 5.2.3, Montserrat + Roboto Slab
   ======================================== */

/* --- Variables --- */
:root {
  --bs-primary: #ffc800;
  --bs-primary-rgb: 255, 200, 0;
}

/* --- Global --- */
html {
  scroll-padding-top: 4.5rem;
}

body {
  font-family: "Roboto Slab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #212529;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

a {
  color: #ffc800;
}

a:hover {
  color: #d4a600;
}

.text-primary {
  color: #ffc800 !important;
}

.bg-primary {
  background-color: #ffc800 !important;
}

/* --- Buttons --- */
.btn-primary {
  background-color: #ffc800;
  border-color: #ffc800;
  color: #212529;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #d4a600;
  border-color: #d4a600;
  color: #212529;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.btn-social {
  height: 2.5rem;
  width: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
}

/* ========================================
   NAVBAR
   ======================================== */
#mainNav {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: #212529;
  transition: padding-top 0.3s, padding-bottom 0.3s;
}

#mainNav .navbar-brand {
  color: #ffc800;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.0625em;
}

#mainNav .navbar-nav .nav-item .nav-link {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 0.0625em;
  padding: 0.75rem 0;
}

#mainNav .navbar-nav .nav-item .nav-link.active,
#mainNav .navbar-nav .nav-item .nav-link:hover {
  color: #ffc800;
}

@media (min-width: 992px) {
  #mainNav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border: none;
    background-color: transparent;
    transition: padding-top 0.3s, padding-bottom 0.3s;
  }

  #mainNav .navbar-brand {
    font-size: 1.75em;
  }

  #mainNav .navbar-nav .nav-item .nav-link {
    padding: 1.1rem 1rem !important;
  }

  #mainNav.navbar-shrink {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: #212529;
  }

  #mainNav.navbar-shrink .navbar-brand {
    font-size: 1.25em;
  }
}

/* ========================================
   MASTHEAD
   ======================================== */
.masthead {
  padding-top: 10.5rem;
  padding-bottom: 6rem;
  text-align: center;
  color: #fff;
  background-image: url("../img/rhino-with-pod.jpg");
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center center;
  background-size: cover;
  position: relative;
}

.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(33, 37, 41, 0.6);
}

.masthead > .container {
  position: relative;
  z-index: 1;
}

.masthead .masthead-subheading {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 25px;
  font-family: "Roboto Slab", serif;
}

.masthead .masthead-heading {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  font-family: "Montserrat", sans-serif;
}

@media (min-width: 768px) {
  .masthead {
    padding-top: 17rem;
    padding-bottom: 12.5rem;
  }
  .masthead .masthead-subheading {
    font-size: 2.25rem;
  }
  .masthead .masthead-heading {
    font-size: 4.5rem;
  }
}

/* ========================================
   PAGE SECTIONS
   ======================================== */
.page-section {
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .page-section {
    padding: 9rem 0;
  }
}

.page-section h2.section-heading {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.page-section h3.section-subheading {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  font-family: "Roboto Slab", serif;
  margin-bottom: 4rem;
}

/* ========================================
   RESERVES
   ======================================== */
.reserve-item {
  padding: 1.5rem;
}

.reserve-item h4 {
  font-size: 1.1rem;
}

.reserve-link {
  font-family: "Roboto Slab", serif;
  font-size: 0.9rem;
  color: #ffc800;
  text-decoration: none;
}

.reserve-link:hover {
  color: #d4a600;
  text-decoration: underline;
}

/* ========================================
   TIMELINE (Agency "About" pattern)
   ======================================== */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 2px;
  margin-left: -1.5px;
  content: "";
  background-color: #e9ecef;
}

.timeline > li {
  position: relative;
  min-height: 50px;
  margin-bottom: 50px;
}

.timeline > li:last-child {
  margin-bottom: 0;
}

.timeline > li .timeline-panel {
  position: relative;
  float: right;
  width: 100%;
  padding: 0 20px 0 100px;
  text-align: center;
}

.timeline > li .timeline-panel ul {
  display: inline-block;
  text-align: left;
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.timeline > li .timeline-panel ul li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.timeline > li .timeline-image {
  position: absolute;
  z-index: 100;
  left: 0;
  width: 80px;
  height: 80px;
  margin-left: 0;
  text-align: center;
  color: #fff;
  border: 7px solid #e9ecef;
  border-radius: 100%;
  background-color: #ffc800;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline > li .timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline > li .timeline-image img.img-contain {
  object-fit: contain;
  padding: 15%;
  background: #fff;
}

.timeline > li .timeline-image h4 {
  font-size: 0.6rem;
  line-height: 1.3;
  margin: 0;
}

.timeline > li.timeline-inverted > .timeline-panel {
  text-align: center;
}

.timeline > li .timeline-heading h4 {
  margin-top: 0;
  color: inherit;
  font-size: 1.1rem;
}

.timeline > li .timeline-heading .subheading {
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 400;
  font-family: "Roboto Slab", serif;
  color: #6c757d;
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
  }

  .timeline > li {
    min-height: 100px;
    margin-bottom: 100px;
  }

  .timeline > li .timeline-panel {
    float: left;
    width: 41%;
    padding: 0 20px 20px 30px;
    text-align: center;
  }

  .timeline > li .timeline-image {
    left: 50%;
    width: 100px;
    height: 100px;
    margin-left: -50px;
  }

  .timeline > li .timeline-image h4 {
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .timeline > li.timeline-inverted > .timeline-panel {
    float: right;
    padding: 0 30px 20px 20px;
    text-align: center;
  }
}

@media (min-width: 992px) {
  .timeline > li {
    min-height: 150px;
  }

  .timeline > li .timeline-panel {
    padding: 0 20px 20px;
  }

  .timeline > li .timeline-image {
    width: 150px;
    height: 150px;
    margin-left: -75px;
  }

  .timeline > li .timeline-image h4 {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .timeline > li.timeline-inverted > .timeline-panel {
    padding: 0 20px 20px;
  }
}

@media (min-width: 1200px) {
  .timeline > li .timeline-panel {
    padding: 0 20px 20px 100px;
  }
  .timeline > li.timeline-inverted > .timeline-panel {
    padding: 0 100px 20px 20px;
  }

  .timeline > li .timeline-image {
    width: 170px;
    height: 170px;
    margin-left: -85px;
  }

  .timeline > li .timeline-image h4 {
    font-size: 0.95rem;
  }
}

/* ========================================
   PARTNERS
   ======================================== */
.partner-link {
  text-decoration: none;
  color: #212529;
  display: block;
  transition: opacity 0.2s;
}

.partner-link:hover {
  opacity: 0.8;
  color: #212529;
}

.partner-logo-wrap {
  height: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0.75rem;
  border-radius: 8px;
  background: #fff;
}

.partner-logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.reserve-pill {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 2px solid #e9ecef;
  border-radius: 50rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #212529;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.reserve-pill:hover {
  border-color: #ffc800;
  background-color: rgba(255, 200, 0, 0.08);
  color: #212529;
}

/* ========================================
   CONTACT / TEAM
   ======================================== */
.team-member {
  margin-bottom: 1rem;
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #212529;
  color: #ffc800;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 7px solid #e9ecef;
  object-fit: cover;
}

.team-avatar--sm {
  width: 80px;
  height: 80px;
  font-size: 1.2rem;
  border-width: 5px;
}

.team-member h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.team-member a {
  font-family: "Roboto Slab", serif;
  font-size: 0.85rem;
}

#contactForm .form-control {
  padding: 1rem;
  border: 1px solid #ced4da;
  font-family: "Roboto Slab", serif;
}

#contactForm .form-group-textarea textarea {
  height: 100%;
  min-height: 10rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: #212529;
  color: #fff;
  font-size: 0.85rem;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  color: #ffc800;
}

.page-tool .footer {
  margin-top: auto;
}

/* ========================================
   DOWNLINK SCHEDULER
   ======================================== */
.page-tool {
  background-color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 4.5rem;
}

.dl-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  width: 100%;
  padding: 40px;
  margin: 2rem auto;
}

.dl-card header {
  text-align: center;
  margin-bottom: 40px;
}

.dl-card h1 {
  font-size: 2rem;
  color: #212529;
  margin-bottom: 10px;
}

.dl-card .subtitle {
  color: #6c757d;
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  font-family: "Roboto Slab", serif;
}

.dl-card .form-group {
  margin-bottom: 30px;
}

.dl-card label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #212529;
  margin-bottom: 10px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dl-card select,
.dl-card input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: "Roboto Slab", serif;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: white;
  transition: border-color 0.3s;
}

.dl-card select:focus,
.dl-card input:focus {
  outline: none;
  border-color: #ffc800;
}

.interval-input {
  margin-top: 15px;
  display: none;
}

.interval-input.active {
  display: block;
}

.help-text {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 5px;
}

.network-selector {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.network-option {
  flex: 1;
  min-width: 120px;
}

.network-option input[type="radio"] {
  display: none;
}

.network-option label {
  display: block;
  padding: 12px 20px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: normal;
}

.network-option input:checked + label {
  background: #ffc800;
  color: #212529;
  border-color: #ffc800;
}

.network-option label:hover {
  border-color: #ffc800;
}

.btn-generate {
  width: 100%;
  padding: 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.0625em;
  color: #212529;
  background: #ffc800;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-generate:hover {
  background: #d4a600;
  transform: translateY(-2px);
}

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

.output-section {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  display: none;
}

.output-section.active {
  display: block;
}

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

.output-group:last-child {
  margin-bottom: 0;
}

.output-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #212529;
  margin-bottom: 8px;
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.output-container {
  display: flex;
  gap: 10px;
}

.output-value {
  flex: 1;
  padding: 12px 16px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  word-break: break-all;
}

.btn-copy {
  padding: 12px 24px;
  background: #212529;
  color: #ffc800;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.3s;
  white-space: nowrap;
}

.btn-copy:hover {
  background: #343a40;
}

.btn-copy.copied {
  background: #198754;
  color: #fff;
}

.instruction {
  margin-top: 15px;
  padding: 12px;
  background: #fff3cd;
  border-left: 4px solid #ffc800;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #212529;
  font-style: italic;
}

@media (max-width: 600px) {
  .dl-card {
    padding: 20px;
    margin: 1rem;
  }

  .dl-card h1 {
    font-size: 1.5rem;
  }

  .network-selector {
    flex-direction: column;
  }

  .network-option {
    min-width: 100%;
  }
}
