/* Service hero */
body #service-section .service-hero {
  background: var(--color-text-inverse);
  padding: var(--spacing-xl) var(--spacing-md);
  margin: 0;
  width: 80%;
  box-sizing: border-box;
  position: relative;
  border: none;
  box-shadow: none !important;
}
#service-section{
  background-color: white;
  padding-top: 30px;
}
/* Two column layout for hero */
body #service-section .service-hero-content {
  display: flex;
  gap: var(--spacing-xl);
  align-items: flex-start;
  max-width: none;
  margin: 0 auto;
  width: 100%;
}
body #service-section .service-hero-text {
  flex: 1;
  min-width: 0;
}
body #service-section .service-hero-details {
  flex: 1;
  min-width: 0;
  gap: var(--spacing-md);
}
#service-section .service-hero-text h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  -webkit-text-stroke: 0.5px #000;
}
#service-section .service-hero-text p {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
  text-align: left;
  max-width: 45ch;
  width: fit-content;
}

/* Service detail cards */
body #service-section .service-detail-card {
  background: var(--color-bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-primary);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-md);
}
#service-section .service-detail-card h3,
#service-section .service-detail-card p {
  color: var(--color-text-primary);
}
body .service-section {
  margin: var(--spacing-md) 0;
}
body .service-section-title {
  color: var(--text-accent);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-align: left;
  line-height: 1.4;
}
body .service-benefit-item {
  margin-bottom: var(--spacing-xs);
  line-height: 1.5;
  text-align: left;
}
body .service-benefit-title {
  color: var(--text-accent);
  font-weight: 500;
}
body .service-benefit-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}
body .menu-content-area .service-content {
  max-width: var(--content-max-width);
  width: 100%;
  text-align: left;
  line-height: var(--line-height-normal);
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
}
.menu-content-area .service-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}
.menu-content-area .service-content p:first-child {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  font-weight: 500;
  text-align: left;
  margin-bottom: 2rem;
}
.menu-content-area .service-content p:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: var(--color-text-secondary);
  text-align: center;
  font-weight: 600;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
}
.menu-content-area .service-content strong {
  color: var(--color-text-inverse);
  font-weight: 600;
}

/* Service benefit list styling */
body .service-benefits {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}
.service-benefits h4 {
  margin-bottom: 1rem;
  font-size: var(--font-size-base);
  color: var(--color-text-inverse);
  font-weight: 600;
  text-align: center;
}
.service-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-benefits li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}
.service-benefits li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: var(--font-weight-bold);
  font-size: 1.1em;
}
.service-benefits li:last-child {
  margin-bottom: 0;
}

/* Menu styling */
#service-section .menu-item-header,
body #careers-section .menu-item-header {
  background: var(--color-text-inverse);
  color: var(--color-text-primary);
}

#service-section .menu-item-header .menu-label,
body #careers-section .menu-item-header .menu-label {
  font-weight: 900;
}
#service-section + .menu-item,
#careers-section + .menu-item {
  background: var(--color-bg-primary);
}
#service-section + .menu-item .menu-item-header,
#careers-section + .menu-item .menu-item-header {
  background: var(--newsletter-bg-primary);
  color: var(--color-text-inverse);
}
#service-section + .menu-item .menu-item-header .menu-label,
#careers-section + .menu-item .menu-item-header .menu-label {
  color: var(--color-text-inverse);
}

/* Light container theme */
.service-content.content-container.container-light,
.contact-content.content-container.container-light {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-md);
  backdrop-filter: none;
}
.service-content.content-container.container-light h1,
.service-content.content-container.container-light h2,
.service-content.content-container.container-light h3,
.service-content.content-container.container-light h4,
.service-content.content-container.container-light h5,
.service-content.content-container.container-light h6,
.service-content.content-container.container-light p,
.service-content.content-container.container-light li,
.service-content.content-container.container-light span,
.service-content.content-container.container-light div,
.contact-content.content-container.container-light h1,
.contact-content.content-container.container-light h2,
.contact-content.content-container.container-light h3,
.contact-content.content-container.container-light h4,
.contact-content.content-container.container-light h5,
.contact-content.content-container.container-light h6,
.contact-content.content-container.container-light p,
.contact-content.content-container.container-light li,
.contact-content.content-container.container-light span,
.contact-content.content-container.container-light div {
  color: var(--color-text-primary);
}

/* Service benefits grid layout */
body .service-benefits-grid {
  display: grid;
  gap: var(--spacing-lg);
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Mobile responsive breakpoints */


@container (min-width: 768px) {
  body .service-benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(var(--component-sm), 1fr));
    gap: var(--space-lg);
  }
}

@container (min-width: 1024px) {
  body .service-benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(var(--component-md), 1fr));
    gap: var(--space-lg);
  }
}

@container (min-width: 1400px) {
  body .service-benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(var(--component-lg), 1fr));
    gap: var(--space-xl);
    justify-content: center;
  }
}

/* Mobile hero styling */

@container (min-width: 768px) {
  .service-hero,
  .career-hero,
  .about-hero,
  body .news-hero {
    padding: var(--space-xl) var(--space-lg);
  }
}

/* Service content */
body #service-section .service-content-section {
  background: var(--color-text-inverse);
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-2xl);
  margin: var(--spacing-lg) 0 0;
  width: 100%;
  color: #000;
  box-sizing: border-box;
}
#service-section .service-content-section h2 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: #000;
  margin: 0 0 var(--spacing-5xl) 0;
  text-align: center;
}
body #service-section .service-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin: 0 0 var(--spacing-xxl) 0;
}
body #service-section .service-benefit-card {
  background: rgb(241, 241, 241);
  /* border: 1px solid rgba(0, 0, 0, 0.08); */
  border-radius: var(--border-radius-md);
  padding: var(--spacing-xl);
}
#service-section .service-benefit-card h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: #000;
  margin-bottom: var(--spacing-md);
}
#service-section .service-benefit-card p {
  font-size: var(--font-size-base);
  font-weight: 400;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}
body #service-section .service-why-section {
  max-width: var(--content-max-width);
  margin: 0 auto;
  text-align: center;
  padding-top: var(--spacing-lg);
}
#service-section .service-why-section h3 {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: #000;
  margin: 0 0 var(--spacing-lg) 0;
}
#service-section .service-why-section p {
  font-size: 1.125rem;
  font-weight: 400;
  color: #000;
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}
#service-section .service-why-section p[data-translate="service.tagline"],
#service-section .service-why-section p:last-child {
  text-align: center;
  font-weight: 600;
  color: #000;
  margin-top: var(--spacing-lg);
  margin-bottom: 0;
}

/* Brand tagline styling */
.hardbyte-tagline,
#service-section .service-why-section .hardbyte-tagline,
#service-section .service-why-section strong.hardbyte-tagline {
  color: #000 ;
  text-transform: uppercase !important;
  font-family: 'Michroma', sans-serif !important;
  font-size: 0.95em ;
  letter-spacing: 0.5px ;
  font-weight: 600 ;
  display: inline-block;
}
#service-section .service-why-section strong {
  color: #000 ;
  text-transform: uppercase !important;
  font-family: 'Michroma', sans-serif !important;
  font-size: 0.95em ;
  letter-spacing: 0.5px ;
  font-weight: 600 ;
}
body #service-section {
  margin-bottom: 0;
}
.menu-item#service-section {
  margin-bottom: 0;
}

/* Responsive Design - Media Queries */

/* Critical Mobile Breakpoint - Force Stacking */
@media (max-width: 768px) {
  /* Force service hero elements to stack */
  body .service-hero-content {
    flex-direction: column !important;
    gap: var(--spacing-lg) !important;
  }
  
  /* Force all service content to full width */
  body .service-hero-text,
  body .service-hero-image,
  body .service-detail-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
  }
  
  /* Force service grids to single column */
  body .service-benefits-grid,
  body .service-features-grid {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-md) !important;
  }
  
  /* Ensure service text paragraphs are responsive */
  #service-section .service-hero-text p {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Service cards responsive */
  body .service-detail-card {
    padding: var(--spacing-sm) !important;
    margin-bottom: var(--spacing-sm) !important;
  }
}

/* Extra Small Screens */
@media (max-width: 480px) {
  /* Aggressive responsive adjustments */
  .service-hero,
  .career-hero,
  .about-hero,
  body .news-hero {
    padding: var(--space-sm) var(--space-xs) ;
  }
  .service-hero h1,
  .career-hero h1,
  .about-hero h1,
  .news-hero h1 {
    font-size: clamp(1.2rem, 6vw, 1.8rem) ;
    line-height: 1.2 ;
    margin-bottom: var(--space-sm) ;
  }
  
  /* Service section specific */
  #service-section .service-hero-text p {
    font-size: var(--font-size-sm) !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
  }
  
  body .service-detail-card {
    padding: var(--spacing-xs) !important;
  }
}

@media (min-width: 480px) and (max-width: 640px) {
  body .service-benefits-grid {
    grid-template-columns: 1fr;
  }
  :not(.menu-content-area) .service-benefits-grid {
    gap: var(--space-sm);
    padding: 0 var(--space-sm);
  }
  body .menu-content-area .service-benefits-grid {
    padding: 0 ;
  }
}

@media (max-width: 479px) {
  body .service-benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    padding: 0;
  }
  body .menu-content-area .service-benefits-grid {
    margin: 0 ;
    padding: 0 ;
  }
}
