/* ============================================ */
/*              SETUP & VARIABLES               */
/* ============================================ */

/* Using :root to define variables for easy theme changes */
:root {
  --primary-bg: #ffffff;
  --secondary-bg: #f8f9fa;
  --text-color: #212529;
  --primary-action: #03b8c8;
  --secondary-accent: #cc24c2;
  --footer-bg: #212529;
  --footer-text: #ffffff;

  --font-family: "Inter", sans-serif;
  --header-height: 80px;
}

/* Basic Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--primary-bg);
  line-height: 1.6;
}

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

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: 2.8rem;
}
h2 {
  font-size: 2.2rem;
}
h3 {
  font-size: 1.5rem;
  font-weight: 400;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-action);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-accent);
}

/* ============================================ */
/*                 UTILITY CLASSES              */
/* ============================================ */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.btn-primary:hover {
  background-color: #029aa8;
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-action);
  border: 2px solid var(--primary-action);
}

.btn-secondary:hover {
  background-color: var(--primary-action);
  color: white;
  transform: translateY(-2px);
}

.bg-light {
  background-color: var(--secondary-bg);
}

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

/* ============================================ */
/*                    HEADER                    */
/* ============================================ */

.header {
  background-color: var(--primary-bg);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-color);
  position: relative;
  padding-left: 15px;
}

.logo:hover {
  color: var(--text-color);
}

.logo-graphic {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 30px;
  background: linear-gradient(
    180deg,
    var(--primary-action) 50%,
    var(--secondary-accent) 50%
  );
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-action);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-color);
  cursor: pointer;
}

/* ============================================ */
/*              HOMEPAGE SECTIONS               */
/* ============================================ */

.content-section {
  padding: 80px 0;
}

/* --- Section 1: Hero --- */
.hero-section {
  position: relative;
  height: calc(100vh - var(--header-height));
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: url("https://images.unsplash.com/photo-1682888813789-c39fe30921e2?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
    no-repeat center center/cover;
  color: white;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(33, 37, 41, 0.6); /* Dark overlay */
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-content .container {
  max-width: 800px;
}

.hero-content h1 {
  color: white;
  font-size: 3.5rem;
}

.hero-content h3 {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.trust-badges {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  padding: 20px 0;
  z-index: 2;
}

.trust-badges .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 500;
}

.badge i {
  font-size: 1.8rem;
  color: var(--primary-action);
}

/* --- Section 2 & 5: Two Column Layouts --- */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-column-layout .column-left,
.two-column-layout .column-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.two-column-layout img {
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- Section 3: Transformations --- */
.before-after-slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  aspect-ratio: 1200 / 700;
  overflow: hidden;
  cursor: col-resize;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.before-image,
.after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.after-image {
  width: 50%; /* Initial position */
  overflow: hidden;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%; /* Initial position */
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-handle .slider-arrow {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: white;
  color: var(--primary-action);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.slider-handle .left {
  left: -18px;
}
.slider-handle .right {
  right: -18px;
}

.as-seen-in {
  margin: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.as-seen-in span {
  font-weight: 700;
  font-size: 1.2rem;
}

.as-seen-in img {
  opacity: 0.7;
  height: 40px;
}

/* --- Section 4: Process --- */
.process-intro {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.process-infographic {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.process-step {
  flex: 1;
  text-align: center;
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-action);
  color: white;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: 0 auto 15px auto;
  transition: background-color 0.3s ease;
}

.process-step:hover .step-icon {
  background-color: var(--secondary-accent);
}

.process-step h3 {
  font-size: 1.1rem;
}

.process-arrow {
  font-size: 2rem;
  color: var(--primary-action);
  margin-top: 25px;
}

/* --- Section 5: Stories --- */
.pull-quote {
  border-left: 4px solid var(--primary-action);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  font-size: 1.2rem;
}

.pull-quote p {
  margin-bottom: 10px;
}

.pull-quote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--text-color);
}

/* --- Section 6: Guide --- */
.guide-intro {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.guide-visual {
  width: 250px;
  height: 300px;
  border: 2px solid var(--text-color);
  background-color: white;
  margin: 0 auto 30px auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-shadow: 5px 5px 0 var(--secondary-accent);
}

.guide-visual i {
  font-size: 5rem;
  color: var(--primary-action);
  margin-bottom: 20px;
}

.guide-visual h3 {
  font-size: 1.5rem;
  color: var(--text-color);
}

/* ============================================ */
/*                    FOOTER                    */
/* ============================================ */

.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary-action);
}

.footer-logo {
  color: var(--footer-text);
  font-size: 1.3rem;
  margin-bottom: 15px;
  display: inline-block;
}

.footer-logo:hover {
  color: var(--footer-text);
}

.footer p,
.footer-column li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #adb5bd;
}

.footer a {
  color: #adb5bd;
}

.footer a:hover {
  color: white;
}

.footer-nav {
  list-style: none;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  font-size: 1.5rem;
}

.footer-bottom-bar {
  background-color: #111315;
  padding: 20px 0;
  text-align: center;
}

.footer-bottom-bar p {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
}

/* ============================================ */
/*              RESPONSIVE DESIGN               */
/* ============================================ */

/* --- Tablet (up to 1024px) --- */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2rem;
  }

  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .reverse-on-mobile {
    grid-template-areas: "image" "text";
  }
  .reverse-on-mobile .column-left {
    grid-area: text;
  }
  .reverse-on-mobile .column-right {
    grid-area: image;
  }

  .process-infographic {
    flex-direction: column;
    align-items: center;
  }
  .process-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

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

/* --- Mobile (up to 768px) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  h1 {
    font-size: 2rem;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  .content-section {
    padding: 60px 0;
  }

  /* Mobile Navigation */
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--primary-bg);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 40px;
  }
  .nav.active {
    transform: translateX(0);
  }
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .nav-link {
    font-size: 1.5rem;
  }
  .header-cta {
    display: none;
  }
  .hamburger {
    display: block;
  }

  .hero-section {
    height: auto;
    min-height: 90vh;
    padding: 100px 0;
  }
  .trust-badges .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

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