/* =============================================
   REDPOINT SOLUTIONS — BRAND CSS
   Colors: Red #DC3C44 | Slate #3D4A52 | Warm White #F7F5F2
           Surface #EFECE6 | Warm Tan #654F42 | Slate Mid #5A6B7A
   Fonts: Libre Baskerville (headlines) | Barlow (everything else)
   Rules: Square corners, no shadows, no gradients, generous spacing
   ============================================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #DC3C44;
  --slate: #3D4A52;
  --warm-white: #F7F5F2;
  --surface: #EFECE6;
  --warm-tan: #654F42;
  --slate-mid: #5A6B7A;
  --white: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  color: var(--slate);
  background-color: var(--warm-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* TYPOGRAPHY */
h1, h2, h3 {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  color: var(--slate);
  line-height: 1.2;
}

h1 {
  font-size: 3.25rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

h2.section-heading {
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
  display: inline-block;
}

h2.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background-color: var(--red);
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--red);
}

p {
  font-family: 'Barlow', sans-serif;
  color: var(--slate);
  line-height: 1.7;
}

/* LAYOUT */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

section {
  padding: 6.5rem 0;
}

/* ---- NAVIGATION ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--warm-white);
  border-bottom: 1px solid var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 45px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--warm-tan);
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--slate);
}

.nav-cta {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  background-color: #C72A32;
  padding: 0.6rem 1.5rem;
  border: 2px solid #C72A32;
  border-radius: 4px;
  letter-spacing: 0.3px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
  background-color: #B81F27;
  border-color: #B81F27;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--slate);
  transition: 0.2s;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  background-color: #C72A32;
  padding: 0.9rem 2rem;
  border: 2px solid #C72A32;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #B81F27;
  border-color: #B81F27;
}

/* ---- EYEBROW / LABELS ---- */
.eyebrow {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--warm-tan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}

.section-label {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--warm-tan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 640px;
  margin-bottom: 2.75rem;
}

/* ---- HERO (HOME PAGE) ---- */
.hero {
  padding-top: 80px;
  padding-bottom: 112px;
}

.services-hero {
  position: relative;
  overflow: hidden;
}

.services-hero-content {
  position: relative;
  z-index: 2;
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background-image: url('assets/images/hero/service_pic.png');
  background-position: calc(100% - 165px) bottom;
  background-size: auto 80%;
  background-repeat: no-repeat;
  opacity: 0.9;
  z-index: 1;
}

.services-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to right, var(--warm-white) 0%, var(--warm-white) 40%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.home-hero {
  position: relative;
  overflow: hidden;
}

.home-hero-content {
  position: relative;
  z-index: 2;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background-image: url('assets/images/hero/home_pic.png');
  background-position: calc(100% - 65px) bottom;
  background-size: auto 92%;
  background-repeat: no-repeat;
  opacity: 1.0;
  z-index: 1;
}

.home-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to right, var(--warm-white) 0%, var(--warm-white) 35%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.about-hero {
  position: relative;
  overflow: hidden;
}

.about-hero-content {
  position: relative;
  z-index: 2;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background-image: url('assets/images/hero/about_pic.png');
  background-position: calc(100% - 270px) bottom;
  background-size: auto 80%;
  background-repeat: no-repeat;
  opacity: 1.0;
  z-index: 1;
}

.about-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to right, var(--warm-white) 0%, var(--warm-white) 35%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.08;
  white-space: nowrap;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero .btn-primary {
  font-size: 1.05rem;
}

/* ---- PAGE HERO (SERVICES, ABOUT, CONTACT) ---- */
.page-hero {
  padding: 6rem 0 4rem;
}

.page-hero h1 {
  max-width: 950px;
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  line-height: 1.2;
  word-wrap: break-word;
}

.page-hero p {
  font-size: 1.15rem;
  max-width: 600px;
  line-height: 1.75;
}

/* ---- CREDIBILITY / STATS ---- */
.credibility {
  text-align: center;
  padding: 5rem 0 5rem 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.stat-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stat-number {
  display: block;
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 3.25rem;
  color: var(--slate);
  margin-bottom: 0.35rem;
}

.stat-label {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--slate-mid);
}

.trusted-label {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--warm-tan);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 10px;
}

.logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.customer-logo {
  height: auto;
  max-height: 40px;
  width: auto;
  max-width: 160px;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.customer-logo:hover {
  opacity: 1;
}

/* ---- GRID CARDS ---- */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-2x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Cards on Warm White background get Surface fill */
.card-on-light {
  padding: 2rem;
  background-color: var(--surface);
  border-top: 1px solid rgba(61, 74, 82, 0.25);
}

/* Cards on Surface background get Warm White fill */
.card-on-surface {
  padding: 2rem;
  background-color: var(--warm-white);
  border-top: 1px solid var(--slate-mid);
}

.card-on-light h3,
.card-on-surface h3 {
  font-size: 1rem;
  color: var(--slate);
  margin-bottom: 0.5rem;
}

.card-on-light p,
.card-on-surface p {
  font-size: 1rem;
  line-height: 1.65;
}

/* ---- INDUSTRY CARDS ---- */
.card-on-surface.industry-card {
  padding: 2.5rem 2.25rem;
  background-color: transparent;
  border-top: none;
  position: relative;
}

.industry-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 1.25rem;
  border-radius: 0;
}

.card-on-surface.industry-card::before {
  display: none;
}

.card-on-surface.industry-card .industry-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* ---- REUSABLE SPACING PATTERN (used across pages) ---- */
.block-spacing {
  margin-bottom: 2.1rem;
}

.block-spacing:last-child {
  margin-bottom: 0;
}

/* ---- SERVICES PAGE SPECIFIC ---- */
.service-block {
  margin-bottom: 3.5rem;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-block > p {
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2.5rem;
}

.service-list li {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  color: var(--slate);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.service-list li::before {
  content: '|';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-weight: bold;
}

.section-divider {
  border: none;
  width: 80%;
  height: 1px;
  background-color: #d6d3cf;
  margin: 3rem auto;
  padding: 0;
}

/* Center-aligned divider on credibility section (home page) */
.credibility .section-divider {
  margin: 0 auto;
}

/* APPROACH GRID */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.approach-card {
  padding: 2rem;
  background: var(--surface);
  border-top: 1px solid rgba(61, 74, 82, 0.25);
}

.approach-card h3 {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--slate);
  margin-bottom: 0.5rem;
}

.approach-card p {
  color: var(--slate);
}

/* ---- ABOUT PAGE SPECIFIC ---- */
.badge-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1.5rem;
  margin-top: 60px;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  width: 95%;
}

.badge-row img {
  height: 140px;
  width: auto;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.spec-col {
  background-color: white;
  padding: 1.75rem;
  text-align: left;
  border-top: 1px solid var(--slate-mid);
}

.spec-label {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--slate);
  margin-bottom: 1rem;
  display: block;
}

.spec-col p {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: var(--slate);
  margin-bottom: 0.5rem;
}

/* Three-column layout for Specialized Certifications card */
.spec-col:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem 1rem;
}

.spec-col:last-child .spec-label {
  grid-column: 1 / -1;
}

.team-compact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.team-card {
  background-color: var(--surface);
  padding: 1.5rem;
  text-align: center;
}

.team-image {
  width: 65%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  background-color: var(--surface);
  display: block;
  margin: 0 auto 0.75rem;
}

.team-member-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 0.15rem;
}

.team-title {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  color: var(--warm-tan);
  font-weight: 500;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.value-item {
  padding: 2rem;
  border-top: 3px solid var(--warm-tan);
  background: var(--warm-white);
}

.value-item h3 {
  margin-bottom: 0.4rem;
}

.value-item p {
  font-size: 1rem;
}

.stability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stability-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ---- TESTIMONIAL ---- */
.testimonial-section {
  text-align: center;
  padding: 0;
}

.testimonial-quote-mark {
  font-family: 'Libre Baskerville', serif;
  color: var(--red);
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-family: 'Barlow', sans-serif;
  font-size: 1.45rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: var(--slate);
}

.testimonial-attribution {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--slate-mid);
  margin: 0;
}

/* ---- CTA SECTION (Slate) ---- */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  color: var(--warm-white);
  max-width: 680px;
  margin: 0 auto 1rem;
}

.cta-sub {
  color: rgba(244, 241, 236, 0.9);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}

/* ---- CONTACT FORM ---- */
.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--slate);
  letter-spacing: 0.3px;
}

.cta-section .form-group label {
  color: var(--warm-white);
}

.form-group input,
.form-group textarea {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-mid);
  border-radius: 0;
  background-color: var(--warm-white);
  color: var(--slate);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--warm-tan);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-mid);
  opacity: 0.6;
}

.form .btn-primary {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.form-success p {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.2rem;
  color: var(--warm-white);
  text-align: center;
  padding: 2rem 0;
}

.form-error {
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  color: #DC3C44;
  background-color: rgba(220, 60, 68, 0.08);
  border: 1px solid rgba(220, 60, 68, 0.25);
  padding: 0.65rem 1rem;
  margin-bottom: 0.5rem;
}

.cta-section .form-error {
  color: #f7d0d2;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-section .form-success p {
  color: var(--slate);
}

/* ---- FOOTER ---- */
.footer {
  background-color: var(--slate);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}


.footer-brand img {
  height: 35px;
  width: auto;
}

.footer-brand p {
  color: var(--slate-mid);
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-copy {
  text-align: right;
}

.footer-links a {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--warm-white);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy p {
  font-size: 0.8rem;
  color: var(--warm-white);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }

  .grid-2x3,
  .grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-compact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stability-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .logo-grid {
    gap: 3rem;
  }
}

@media (max-width: 800px) {
  section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  h1 {
    font-size: 2rem;
    white-space: normal;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .hero h1 {
    white-space: normal;
  }

  .services-hero::before,
  .services-hero::after {
    display: none;
  }

  .home-hero::before,
  .home-hero::after {
    display: none;
  }

  .about-hero::before,
  .about-hero::after {
    display: none;
  }

  .page-hero {
    padding: 5rem 0 3rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--warm-white);
    flex-direction: column;
    padding: 1.5rem 2.5rem 2rem;
    border-bottom: 1px solid var(--surface);
    gap: 1.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    align-self: flex-start;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2x2,
  .grid-2x3,
  .grid-3col {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .team-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stability-grid,
  .stability-grid-3 {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .spec-col:last-child {
    grid-template-columns: 1fr;
  }

  .badge-row img {
    max-height: 90px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
  }

  .footer-copy {
    text-align: center;
  }

  .logo-grid {
    gap: 2.5rem 2rem;
  }

  .customer-logo {
    height: auto;
    max-height: 36px;
    max-width: 160px;
  }
}

@media (max-width: 768px) {
  .page-hero h1 br {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .stat-grid,
  .stat-grid-3 {
    grid-template-columns: 1fr;
  }

  .team-compact-grid {
    grid-template-columns: 1fr;
  }
}
