/* ======================================================
   COMPONENTS STYLESHEET
   Contains all blocks which I may repeat
====================================================== */

/* ======================================================
   HERO SECTION
====================================================== */
#hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
#hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* About page hero: shift image down a bit to reveal faces */
.about-hero img {
  object-position: center 35%;
}

#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.hero-text .subheading {
  font-size: 1.5rem;
  font-weight: 450;
  margin: 0;
}
.hero-text .tagline {
  font-size: 1.5rem;
  font-weight: 300;
  margin-top: 10px;
}
/* ======================================================
   STATS SECTION
====================================================== */
#stats {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 80px 20px;
  gap: 40px;
}
.stat {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  margin: 20px;
}
.stat .count {
  font-size: 3rem;
  font-weight: 700;
  color: #15386b;
  margin-bottom: 10px;
}
.stat h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.stat p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: #dddddd;
  max-width: 340px;
  margin: 0 auto;
}
.count-wrap {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.plus {
  font-size: 3.5rem;
  font-weight: 700;
  color: #15386b;
  line-height: 1;
}

/* ======================================================
   REVIEWS SECTION
====================================================== */
.reviews-section {
  padding: 60px 20px;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-weight: 600;
  color: #cbcbcb;
  margin-bottom: 40px;
}

.reviews-title {
  font-size: 1.8rem;
  margin-bottom: 40px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.review-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  text-align: left;
  transition: all 0.3s ease;
}
.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(21,56,107,0.35);
}
.review-card h3 { color: #111; }
.review-card p { color: #444; }
.review-card .stars { color: #f5b301; }
.review-card .author { font-weight: 600; color: #333; }

.cta, .cta-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

#hero .cta .btn {
  width: 240px;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

/* ======================================================
   TRANSFORMATION SECTION
====================================================== */
.transformation-section {
  background-color: var(--bg-page);
  color: white;
  text-align: center;
  padding: 80px 20px;
}
.transformation-section h2 { font-size: 2rem; }
.transformation-section .subtext { color: #ccc; margin-bottom: 50px; }

.transformation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 1200px) {
  .transformation-grid { grid-template-columns: repeat(3, 1fr); }
}

.transformation-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  background-color: var(--bg-surface-alt);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.transformation-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.transformation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.transformation-card img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.transformation-card h3 { color: #e9d609; margin-top: 16px; }
.transformation-card p { color: #ddd; padding: 10px 20px 30px; }

/* ======================================================
   BOTTOM CTA SECTION
====================================================== */
#bottom-cta {
  background: linear-gradient(180deg, #181818 0%, #232323 100%);
  padding: 100px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

#bottom-cta h2 {
  color: #e9d609;
  font-size: 2rem;
}

#bottom-cta p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

/* Overlay */
#popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Popup box */
.popup-container #popup-box {
  background: #fff;
  color: #111;
  width: min(420px, 90vw);
  max-width: 90vw;
  padding: 32px 26px 38px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  position: relative;
  text-align: left;
  animation: fadeIn 0.3s ease;
}

/* Close button */
#popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #333;
  text-align: right;
  display: block;
  margin: 0;
  padding: 0;
}

/* Form */
#quote-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#quote-form label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

#quote-form input,
#quote-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 0.95rem;
}
.popup-container #popup-box h2 {
  color: #111;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

#popup-submit {
  width: 100%;
  background-color: #15386b;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#popup-submit:hover {
  background-color: #133464;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(21, 56, 107, 0.3);
}

/* Floating call button */
#topBtn {
  display: inline-flex;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background-color: #15386b;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  opacity: 1;
  visibility: visible;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

#topBtn:hover {
  background-color: #133464;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

#topBtn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================================
   POPUP OVERLAY
========================================= */
#popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

/* Center container */
.popup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#popup-box {
  background: #fff;
  color: #111;
  width: 100%;
  max-width: 420px;
  padding: 32px 26px 38px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  position: relative;
  text-align: left;
  animation: fadeIn 0.3s ease;
}

/* Close button */
#popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #333;
}

#quote-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#quote-form label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

#quote-form input,
#quote-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 0.95rem;
  box-sizing: border-box;
}

#popup-box h2 {
  color: #111;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Submit button */
#popup-submit {
  width: 100%;
  background-color: #15386b;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 6px;
}

#popup-submit:hover {
  background-color: #133464;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(21, 56, 107, 0.3);
}
