/*
Theme Name: Pace Technology
...
*/

/* Reset & Global (unchanged) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #F0F4F8;
  color: #001219;
  font-family: 'Figtree', sans-serif;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Heading Scale (unchanged) */
.heading-xl { font-size: clamp(40px, 8vw, 56px); font-weight: 700; }
.heading-l  { font-size: clamp(32px, 6vw, 48px); font-weight: 700; }
.heading-m  { font-size: clamp(32px, 5vw, 40px); font-weight: 700; }
.heading-s  { font-size: clamp(18px, 4vw, 24px); font-weight: 700; }
.heading-xs { font-size: clamp(16px, 3.5vw, 20px); font-weight: 700; }
.heading-xxs { font-size: clamp(16px, 3vw, 18px); font-weight: 400; }

/* Body Text (unchanged) */
.body-large  { font-size: clamp(16px, 3vw, 18px); font-weight: 400; }
.body-medium { font-size: clamp(14px, 2.5vw, 16px); font-weight: 400; }
.body-small  { font-size: clamp(12px, 2vw, 14px); font-weight: 400; }

/* Container (unchanged) */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Colors (unchanged) */
.bg-primary { background-color: #005F73; }
.bg-accent  { background-color: #EE9B00; }
.bg-secondary { background-color: #0A9396; }
.bg-background-accent { background-color: #94D2BD; }
.text-primary { color: #005F73; }
.text-accent { color: #EE9B00; }

/* Buttons (unchanged) */
.btn {
  display: inline-block;
  background-color: #EE9B00;
  color: #001219;
  padding: 12px 30px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.btn:hover {
  background-color: #d48700;
  transform: scale(1.02);
  color: #001219;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid #EE9B00;
  color: #001219;
}

.btn-outline:hover {
  background: #EE9B00;
  color: #001219;
}

/* Icon Box (unchanged) */
.icon-box {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 32px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
  height: 100%;
}

.icon-box:hover {
  box-shadow: 0 16px 30px rgba(0,95,115,0.08);
}

.service-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

/* Testimonials (unchanged) */
.testimonial-card {
  background: white;
  border-radius: 32px;
  padding: 2rem;
  height: 100%;
}

.stars {
  color: #EE9B00;
  font-size: 1.4rem;
  letter-spacing: 4px;
  margin-bottom: 1rem;
}

/* Carousel - updated for dynamic visible slides */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 2rem;
}

.carousel-slide {
  flex: 0 0 auto; /* width set by JS based on data-visible */
  min-width: 0;   /* allow shrinking */
}

/* Dots (unchanged) */
.carousel-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.dot {
  width: 14px;
  height: 14px;
  background: #94D2BD;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dot.active {
  background: #005F73;
  width: 36px;
}

/* Accordion (unchanged) */
.accordion-item {
  background: white;
  border-radius: 20px;
  margin-bottom: 12px;
  padding: 0 20px;
}

.accordion-header {
  padding: 18px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.accordion-header span {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.accordion-item.open .accordion-header span {
  transform: rotate(180deg);
}

.accordion-content {
  padding-bottom: 20px;
  display: none;
}

.accordion-item.open .accordion-content {
  display: block;
}

/* Hero Section (unchanged) */
.hero-bg {
  background: linear-gradient(rgba(0,18,25,0.7), rgba(0,18,25,0.5)), url('wp-content/themes/pacetech/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  width: 100%;
}

.hero-content {
  padding: 120px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Grid Layouts (unchanged) */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 800px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes (unchanged) */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.full-width-bg {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 50px 0;
}

/* Forms (unchanged) */
input,
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #94D2BD;
  border-radius: 30px;
  font-family: 'Figtree', sans-serif;
  margin-top: 8px;
  font-size: 16px;
}

label {
  font-weight: 600;
  margin-top: 16px;
  display: block;
  color: #001219;
}

/* Image carousel slides – fixed 16:9 aspect ratio */
.image-carousel .carousel-slide {
  position: relative;
  padding-top: 56.25%; /* 16:9 (9 / 16 = 0.5625) */
  overflow: hidden;
  border-radius: 32px;
}

.image-carousel .carousel-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* crops/zooms to fill the box without distortion */
}

/* Newsletter (unchanged) */
.newsletter {
  background: #005F73;
  color: white;
  border-radius: 48px;
  padding: 3rem;
}

/* Navigation (unchanged) */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: white;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #005F73;
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #001219;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #EE9B00;
}

.nav-links a.active {
  border-bottom: 3px solid #EE9B00;
}

/* Who We Are Image (unchanged) */
.who-we-are-image {
  background: #94D2BD;
  border-radius: 40px;
  min-height: 300px;
  background-image: linear-gradient(145deg, #0A9396, #94D2BD);
}

/* Blog Images (unchanged) */
.blog-img {
  height: 160px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  background-size: cover;
  background-position: center;
}

/* Footer (unchanged) */
footer {
  background: #001219;
  color: #F0F4F8;
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
}

/* WordPress Editor Styles (unchanged) */
.wp-block {
  max-width: 1280px;
}

/* Mobile Responsiveness (unchanged) */
@media (max-width: 600px) {
  .hero-content {
    padding: 80px 20px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .nav-links {
    gap: 1rem;
    margin-top: 1rem;
  }
  
  nav {
    flex-direction: column;
  }
}

/* NEW: map placeholder style (optional) */
.map-placeholder {
  background: #94D2BD;
  border-radius: 32px;
  font-weight: 500;
}