/* ==========================================================================
   Precision Group — Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */

:root {
  /* Colors */
  --color-orange:    #E8751A;
  --color-amber:     #F5A000;
  --color-black:     #1A1A1A;
  --color-charcoal:  #2D2D2D;
  --color-white:     #FFFFFF;
  --color-offwhite:  #F8F7F5;

  /* Typography */
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* --------------------------------------------------------------------------
   Reset & Box Sizing
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-black);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Top Bar
   -------------------------------------------------------------------------- */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 40px;
  width: 100%;
}

.top-bar__social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-bar__social-link {
  color: var(--color-white);
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.top-bar__social-link:hover {
  color: var(--color-orange);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */

.navbar {
  background-color: var(--color-black);
  border-bottom: 2px solid var(--color-orange);
  width: 100%;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
}

.navbar__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.navbar__logo-precision {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-white);
  letter-spacing: 0.08em;
}

.navbar__logo-group {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-orange);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}

.navbar__link:hover {
  color: var(--color-orange);
}

.navbar__cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  background-color: var(--color-orange);
  padding: 10px 22px;
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.navbar__cta:hover {
  background-color: var(--color-amber);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 80px 40px;
}

.hero__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}

.hero__label-icon {
  color: var(--color-orange);
  font-size: 10px;
}

.hero__heading {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1.0;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero__heading-line {
  display: block;
}

.hero__heading-orange {
  color: var(--color-orange);
}

.hero__subtext {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero__buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 50px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.hero__btn--primary {
  background-color: var(--color-orange);
  color: var(--color-white);
  border: 2px solid var(--color-orange);
}

.hero__btn--primary:hover {
  background-color: var(--color-amber);
  border-color: var(--color-amber);
}

.hero__btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.hero__btn--outline:hover {
  background-color: var(--color-orange);
  border-color: var(--color-orange);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  background-color: var(--color-white);
  padding: 100px 0;
  overflow: hidden;
}

.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Image column --- */

.about__image-wrap {
  position: relative;
}

.about__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(80px, 14vw, 160px);
  color: rgba(0, 0, 0, 0.045);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.06em;
  z-index: 0;
}

.about__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 12px;
}

/* --- Carousel (replaces static about__image) --- */

.about__carousel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 520px;
  border-radius: 12px;
  overflow: hidden;
}

.about__carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}

.about__carousel-slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 12px;
}

.about__carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 42px;
  height: 42px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
}

.about__carousel-btn:hover {
  background: rgba(0, 0, 0, 0.78);
}

.about__carousel-btn--prev { left: 12px; }
.about__carousel-btn--next { right: 12px; }

.about__carousel-counter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.about__badge {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: -20px;
  background-color: var(--color-charcoal);
  border-left: 4px solid var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 16px 20px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* --- Text column --- */

.about__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}

.about__label-icon {
  font-size: 10px;
}

.about__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(30px, 3.5vw, 44px);
  color: var(--color-black);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.about__body {
  font-family: var(--font-body);
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 36px;
}

.about__credentials {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.about__credential {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 180px;
}

.about__credential-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background-color: var(--color-orange);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
}

.about__credential-title {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 3px;
}

.about__credential-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: #777;
}

.about__contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid #eee;
}

.about__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background-color: var(--color-orange);
  color: var(--color-white);
  font-size: 18px;
}

.about__contact-label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: #777;
  margin-bottom: 3px;
}

.about__contact-number {
  display: block;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  transition: color 0.2s ease;
}

.about__contact-number:hover {
  color: var(--color-orange);
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services {
  position: relative;
  padding: 100px 0;
  background-repeat: no-repeat;
}

.services__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
}

.services__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.services__header {
  text-align: center;
  margin-bottom: 56px;
}

.services__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}

.services__label-icon {
  font-size: 13px;
}

.services__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.services__subtext {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background-color: var(--color-white);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-bottom: 3px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--color-orange);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.service-card__icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.service-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.service-card__text {
  font-family: var(--font-body);
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 24px;
}

.service-card__link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-orange);
  letter-spacing: 0.04em;
  transition: letter-spacing 0.2s ease;
  align-self: flex-start;
}

.service-card__link:hover {
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */

.pg-section {
  background-color: var(--color-offwhite);
  padding: 100px 0;
}

.pg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.pg-header {
  text-align: center;
  margin-bottom: 60px;
}

.pg-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

.pg-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.pg-underline {
  width: 60px;
  height: 3px;
  background-color: var(--color-orange);
  margin: 16px auto;
}

.pg-subtext {
  font-family: var(--font-body);
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.pg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pg-box {
  background-color: var(--color-orange);
  opacity: 0.75;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pg-box:hover {
  opacity: 1;
  transform: scale(1.03);
}
