/**
 * @file
 * Main stylesheet for Forttech Theme.
 *
 * Scala Sans Pro is loaded in fonts.css (variable: --font-scala-sans-pro).
 * Use class .font-scala-sans-pro or set font-family where needed.
 */

/* Base styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Typography - Montserrat for headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

/* Inter for body text, paragraphs, and small text */
p, span, div, a, li, td, th,
.body-text, .text-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Small text and mentions */
small, .small, .text-small, .mention {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}

/* Opt-in: Scala Sans Pro (see css/fonts.css — add licensed .woff2 files under fonts/) */
.font-scala-sans-pro {
  font-family: var(--font-scala-sans-pro);
}

/* Service styles */

/* Prevent horizontal scroll on service pages */
html.node-type-service,
body.node-type-service {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Remove padding from containers for service-hero to break out */
body.node-type-service main .container {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}

body.node-type-service .row {
  margin-left: 0;
  margin-right: 0;
}

body.node-type-service .content-area {
  padding-left: 0;
  padding-right: 0;
}

body.node-type-service .node--type-service {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
}

body.node-type-service .service-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
}

/* Restore padding for content after service-hero */
body.node-type-service .service-hero ~ .section-divider,
body.node-type-service .service-hero ~ .service-icon,
body.node-type-service .service-hero ~ .service-summary,
body.node-type-service .service-hero ~ .node__content {
  padding-left: 2rem;
  padding-right: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 140px 80px;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 60vh;
    box-sizing: border-box;
  }

  .service-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }

  .service-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(
      180deg,
      rgba(194, 190, 190, 0.75) 0%,
      rgba(33, 51, 50, 0.75) 72.6%,
      rgba(194, 190, 190, 0) 100%
    );

    z-index: 2;
  }

  .service-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
  }

  .service-hero p,
  .service-hero__features {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
  }
  
  .service-hero__features {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .service-hero__features p {
    margin-bottom: 0.5rem;
  }
  
  .service-hero__features p:last-child {
    margin-bottom: 0;
  }

  .service-hero-content {
    position: relative;
    z-index: 3;
  }

  @media (max-width: 768px) {
    .service-hero {
      padding: 40px 20px;
      min-height: 50vh;
    }
    
    .service-hero img {
      height: 100%;
      min-height: 100%;
      object-fit: cover;
    }

    .service-hero h1 {
      font-size: 2rem;
    }

    .service-hero p {
      font-size: 1rem;
    }
  }

.section-divider {
  width: 100%;
  max-width: 1312px;
  height: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 1);
  margin: 40px auto 0 auto;
}

.service-summary {
  font-size: 1.1rem;
  color: #666;
  margin: 2.5rem auto 1rem auto;
  p {
    text-align: justify;
  }
}

/* Team Member styles */
.node--type-team-member {
  text-align: center;
  padding: 2rem;
}

.team-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-position {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.team-email a {
  color: #007bff;
  text-decoration: none;
}

.team-social {
  margin-top: 1rem;
}

/* Testimonial styles */
.node--type-testimonial {
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-rating {
  margin-bottom: 1.5rem;
}

.testimonial-rating .star {
  color: #ddd;
  font-size: 1.5rem;
}

.testimonial-rating .star.active {
  color: #ffc107;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-photo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-name {
  font-weight: bold;
}

.testimonial-company {
  color: #666;
  font-size: 0.9rem;
}

/* Portfolio styles */
.node--type-portfolio {
  margin-bottom: 3rem;
}

.portfolio-images {
  margin-bottom: 2rem;
}

.portfolio-images img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.portfolio-info {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.portfolio-info .label {
  font-weight: bold;
  margin-right: 0.5rem;
}

.portfolio-url a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.portfolio-url a:hover {
  background-color: #0056b3;
}

/* Page Title styles */
#block-forttech-theme-pagetitle {
  text-align: center;
}