/*
 * Global stylesheet for the Printer Support website
 *
 * Defines the color scheme, typography and layout for the
 * navigation bar, hero banner, content sections, product cards
 * and footer. Responsive styles ensure the site looks good on
 * both desktop and mobile devices.
 */

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* Navigation bar styles */
header {
  background-color: #004080;
  color: #ffffff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0 20px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

nav a:hover {
  text-decoration: underline;
}

/* Mobile menu toggle button hidden by default */
#mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
}

/* Responsive navigation for small screens */
@media (max-width: 768px) {
  /* Hide the navigation list on mobile and present it as a vertical menu */
  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #004080;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 10px 0;
    z-index: 1000;
  }
  /* When nav has the class 'open', show the menu */
  nav.open ul {
    display: flex;
  }
  nav li {
    margin: 10px 0;
  }
  /* Show the hamburger toggle on mobile */
  #mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 12px;
    right: 20px;
    z-index: 1100;
  }
}

/* Hero banner styles */
.hero {
  position: relative;
  background-image: url('../images/printer_repair.jpg');
  background-size: cover;
  background-position: center;
  height: 400px;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* Dark overlay to improve text contrast on the hero image */
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.hero h1 {
  font-size: 52px;
  margin-bottom: 20px;
  z-index: 1;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  z-index: 1;
}

/* Call‑to‑action button */
.cta-button {
  display: inline-block;
  background-color: #ff9900;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  text-decoration: none;
  z-index: 1;
}

.cta-button:hover {
  background-color: #e68a00;
}

/* Generic section styles */
.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #ffffff;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #004080;
}

/* Testimonials and authenticity section */
.testimonials {
  background-color: #f1f6fc;
  border-radius: 8px;
  padding: 40px 20px;
  margin-top: 20px;
}

.testimonial-item {
  margin-bottom: 25px;
  font-style: italic;
  position: relative;
  padding-left: 40px;
}

.testimonial-item::before {
  content: '\201C'; /* left double quotation mark */
  font-size: 40px;
  position: absolute;
  left: 0;
  top: -10px;
  color: #ff9900;
}

.testimonial-author {
  font-weight: bold;
  margin-top: 5px;
  color: #004080;
}

.section p {
  margin-bottom: 15px;
  font-size: 16px;
}

/* Unordered list styling in support section */
.section ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.section li {
  margin-bottom: 10px;
  list-style: disc;
}

/* Product grid styles for the Buy page */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  width: calc(33.33% - 20px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card img {
  width: 100%;
  height: auto;
}

.product-card h3 {
  margin: 10px;
  font-size: 20px;
  color: #004080;
}

.product-card p {
  margin: 0 10px 10px 10px;
  font-size: 14px;
  flex-grow: 1;
}

.buy-button {
  display: block;
  margin: 10px;
  padding: 10px;
  background-color: #004080;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.buy-button:hover {
  background-color: #003060;
}

/* Footer styles */
.footer {
  background-color: #004080;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

/* Footer links */
.footer a {
  color: #ffffff;
  text-decoration: underline;
  margin: 0 8px;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  nav li {
    /* Reduce vertical space and allow items to wrap into two columns on small screens */
    margin: 5px 0;
    width: 50%;
    text-align: center;
  }
  .hero {
    height: 300px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 16px;
  }
  .product-card {
    width: 100%;
  }
}

/* Support page specific styles */
/* Smaller hero banner for the support page with its own background image */
.support-hero {
  background-image: url('../images/support_banner.jpg');
  background-size: cover;
  background-position: center;
  height: 300px;
  position: relative;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  /* Add top padding so the hero text isn’t hidden beneath the sticky header */
  padding-top: 60px;
}

/* Optional overlay to darken the support hero image for better contrast */
.support-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

/* Ensure content inside the support hero appears above the overlay */
.support-hero > div {
  position: relative;
  z-index: 1;
}

/* Text container inside the support hero */
.support-hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
  z-index: 1;
}

.support-hero p {
  font-size: 18px;
  z-index: 1;
}

/* Adjust call‑to‑action button spacing inside the support hero */
.support-hero .cta-button {
  margin-top: 15px;
}

/* Image within the support page content */
.support-image {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Stylized illustration image used on the support page */
.support-art {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Container for multiple images on the support page */
.support-images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Ensure images share space evenly on wider screens */
.support-images img {
  width: 100%;
}

@media (min-width: 768px) {
  .support-images img {
    width: 48%;
  }
}

/* Sticky call‑to‑action button that stays visible in the corner */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff9900;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 1100;
}

.sticky-cta:hover {
  background-color: #e68a00;
}

@media (max-width: 600px) {
  .sticky-cta {
    font-size: 14px;
    padding: 10px 16px;
    bottom: 15px;
    right: 15px;
  }
}

/* Services page styles */
.services-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  /* Add a soft gradient background for visual interest */
  background: linear-gradient(135deg, #f0f8ff 0%, #e4f0fb 50%, #f0f8ff 100%);
  position: relative;
  overflow: hidden;
}

.services-hero-content {
  flex: 1 1 50%;
}

.services-hero-image {
  flex: 1 1 40%;
  text-align: center;
}

.services-hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Decorative diagonal stripes at the bottom of the services hero */
.services-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0.3) 10px, transparent 10px, transparent 20px);
  pointer-events: none;
  /* Place stripes behind the hero content */
  z-index: -1;
}

/* Add decorative radial highlights to the printing service hero background */
.services-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Use multiple radial gradients to create soft circles of light */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 80%);
  z-index: -2;
  pointer-events: none;
}

.services-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.services-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1 1 200px;
}

.services-columns li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.services-columns li::before {
  content: '\2022'; /* bullet dot */
  position: absolute;
  left: 0;
  top: 0;
  color: #ff9900;
  font-size: 20px;
  line-height: 1;
}

.services-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.services-card {
  flex: 1 1 calc(33.333% - 20px);
  background-color: #f1f6fc;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.services-card h3 {
  color: #004080;
  margin-bottom: 10px;
}

.services-card p {
  font-size: 14px;
}

@media (max-width: 768px) {
  .services-hero {
    flex-direction: column;
  }
  .services-card {
    flex: 1 1 100%;
  }
}

/* Additional styles for the services page enhancements */

/* Shipping section layout */
.shipping-section .shipping-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.shipping-image {
  flex: 1 1 40%;
  text-align: center;
}
.shipping-image img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.shipping-text {
  flex: 1 1 50%;
}
.shipping-text h2 {
  color: #004080;
  margin-bottom: 15px;
}
.shipping-text p {
  margin-bottom: 15px;
  font-size: 16px;
}

/* Latest products grid */
.latest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.latest-card {
  flex: 1 1 calc(33.333% - 20px);
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.latest-card img {
  width: 100%;
  height: auto;
}
.latest-card h3 {
  margin: 10px 0 5px 0;
  font-size: 18px;
  color: #004080;
}
.latest-card .price {
  font-weight: bold;
  color: #ff9900;
  margin-bottom: 10px;
}
.latest-card .buy-button {
  margin: 10px;
  padding: 10px;
  background-color: #004080;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  display: block;
  font-weight: bold;
}
.latest-card .buy-button:hover {
  background-color: #003060;
}

@media (max-width: 768px) {
  .latest-card {
    flex: 1 1 100%;
  }
}

/* Vertical toll‑free bar style */
.vertical-bar {
  position: fixed;
  top: 40%;
  left: 0;
  background-color: #000;
  color: #fff;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  z-index: 1200;
}

/* Call bubble style */
.call-bubble {
  position: fixed;
  bottom: 80px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: #007bff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 1200;
}
.call-bubble a {
  color: #fff;
  font-size: 24px;
  text-decoration: none;
}
.call-bubble:hover {
  background-color: #005cbf;
}

/* Chat overlay styles */
.chat-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 200px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-overlay .chat-header {
  background-color: #004080;
  color: #ffffff;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
}
.chat-overlay .chat-header span {
  display: block;
  font-weight: normal;
  font-size: 12px;
}
.chat-overlay .chat-button {
  background-color: #ff9900;
  color: #ffffff;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  border-top: 1px solid #ddd;
}
.chat-overlay .chat-button:hover {
  background-color: #e68a00;
}

/* Styles for the interactive troubleshooting wizard */
.troubleshoot-section {
  margin-top: 40px;
}

.troubleshoot-section label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #004080;
}

.troubleshoot-section select {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  margin-top: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 16px;
}