/* ==========================================================================
   Call2Close Design System
   ========================================================================== */
:root {
  /* Color Palette */
  --color-navy: #2F4156;
  --color-navy-dark: #1F2D3D;
  --color-teal: #567C8D;
  --color-teal-light: #709CB0;
  --color-sky-blue: #C8D9E6;
  --color-beige: #F5EFEB;
  --color-white: #FFFFFF;

  /* Typography */
  --font-primary: 'Outfit', sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Effects */
  --shadow-sm: 0 4px 6px rgba(47, 65, 86, 0.05);
  --shadow-md: 0 10px 15px rgba(47, 65, 86, 0.1);
  --shadow-lg: 0 20px 25px rgba(47, 65, 86, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-bg-dark: rgba(47, 65, 86, 0.85);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-navy);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Utility Classes */
.text-teal {
  color: var(--color-teal);
}

.text-navy {
  color: var(--color-navy);
}

.text-white {
  color: var(--color-white);
}

.bg-beige {
  background-color: var(--color-beige);
}

.bg-sky-blue {
  background-color: var(--color-sky-blue);
}

.bg-navy {
  background-color: var(--color-navy);
}

.text-center {
  text-align: center;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  font-weight: var(--fw-bold);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
  color: #4a5d72;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  font-family: inherit;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background-color: var(--color-teal);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-teal-light);
}

.btn-secondary {
  background-color: var(--color-beige);
  color: var(--color-navy);
  border: 1px solid var(--color-sky-blue);
}

.btn-secondary:hover {
  background-color: var(--color-sky-blue);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  padding: 1rem 0;
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1001;
}

.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-normal);
}

.header.scrolled .logo-img {
  height: 60px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: var(--fw-medium);
  color: var(--color-navy);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-teal);
  transition: var(--transition-normal);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-navy);
  cursor: pointer;
  z-index: 1001;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-white) 0%, #eef3f7 100%);
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--color-sky-blue);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(86, 124, 141, 0.2);
  /* Light teal */
  bottom: -50px;
  left: -50px;
  animation-delay: -5s;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--color-beige);
  top: 40%;
  left: 30%;
  animation-duration: 15s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.05);
  }

  100% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.badge {
  display: inline-block;
  background-color: var(--color-sky-blue);
  color: var(--color-navy);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: var(--fw-extrabold);
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.highlight {
  color: var(--color-teal);
  position: relative;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  border-top: 1px solid rgba(47, 65, 86, 0.1);
  padding-top: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: var(--fw-bold);
  color: var(--color-teal);
  line-height: 1;
}

.stat-text {
  font-size: 0.875rem;
  color: var(--color-navy);
  font-weight: var(--fw-medium);
}

/* Glass Card UI (Hero Mockup) */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.browser-mockup {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
}

.browser-bar {
  background: var(--color-beige);
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.mockup-content {
  padding: 2rem;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-sky-blue);
  position: relative;
}

.mockup-header i {
  font-size: 2rem;
}

.mockup-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.time {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 0.8rem;
  color: #888;
}

.mockup-details p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.mockup-action {
  margin-top: 2rem;
}

.floating-badge {
  position: absolute;
  bottom: -20px;
  left: -30px;
  background: var(--color-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: bounce 3s infinite ease-in-out;
}

.floating-badge i {
  font-size: 1.5rem;
}

.floating-badge div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.floating-badge strong {
  color: var(--color-navy);
}

.floating-badge span {
  font-size: 0.875rem;
  color: #777;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ==========================================================================
   Trust Slider Section (Featured In)
   ========================================================================== */
.featured-section {
  background-color: var(--color-white);
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.featured-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1400px;
}

.logo-slider-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  /* Fading edges */
  mask-image: linear-gradient(to right,
      transparent,
      black 10%,
      black 90%,
      transparent);
  -webkit-mask-image: linear-gradient(to right,
      transparent,
      black 10%,
      black 90%,
      transparent);
}

.logo-slider {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}

.logo-slider:hover {
  animation-play-state: paused;
}

.slide {
  width: 200px;
  /* Fixed width for each slide to ensure smooth calculation */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
}

.slide img {
  max-height: 50px;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.6;
  transition: var(--transition-normal);
}

.slide img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.filter-grayscale {
  filter: grayscale(100%) brightness(200%);
  /* Makes them white-ish on dark bg */
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    /* Translate by width of one set of logos (4 logos * 200px slide width = -800px) */
    transform: translateX(-800px);
  }
}

/* ==========================================================================
   Benefits / Features Section
   ========================================================================== */
.benefits {
  padding: var(--spacing-xl) 0;
}

.section-header {
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border-top: 4px solid var(--color-teal);
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--color-sky-blue);
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.benefit-card h3 {
  font-size: 1.5rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
}

.service-card {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border-top: 4px solid var(--color-navy);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.service-card .service-icon {
  width: 60px;
  height: 60px;
  background: var(--color-sky-blue);
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  flex-grow: 1;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
  padding: var(--spacing-xl) 0;
}

.testimonials .section-header {
  margin-bottom: 60px;
}

.testimonials-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: flex-start;
}

.testimonials-scroll-wrapper {
  height: 600px;
  /* Taller for multi-column layout */
  overflow: hidden;
  position: relative;
  /* Fading edges at top and bottom */
  mask-image: linear-gradient(to bottom,
      transparent,
      black 10%,
      black 90%,
      transparent);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent,
      black 10%,
      black 90%,
      transparent);
}

.testimonials-scroll-track {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 10px 0;
  /* Add slight padding so blur doesn't cut card shadows */
}

.track-up {
  animation: scroll-up 35s linear infinite;
}

.track-down {
  animation: scroll-down 35s linear infinite;
}

.testimonials-scroll-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(47, 65, 86, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  max-width: 600px;
  margin: 0 auto;
  /* Center the cards in the column */
}

.testimonial-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.quote-icon {
  font-size: 4rem;
  color: var(--color-teal);
  line-height: 1;
  font-family: Georgia, serif;
  opacity: 0.3;
  margin-bottom: -20px;
}

.quote {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-navy);
  margin-bottom: 30px;
  flex-grow: 1;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(47, 65, 86, 0.1);
  padding-top: 24px;
}

.testimonial-footer .name {
  font-weight: var(--fw-bold);
  font-size: 1rem;
  color: var(--color-navy);
}

.testimonial-footer .role {
  font-size: 0.85rem;
  color: #4a5d72;
}

.testimonial-footer .stat {
  font-weight: var(--fw-extrabold);
  color: var(--color-teal);
  font-size: 0.9rem;
}

@keyframes scroll-up {
  0% {
    transform: translateY(0);
  }

  100% {
    /* Translate by height of original content + gap */
    transform: translateY(calc(-50% - 15px));
  }
}

@keyframes scroll-down {
  0% {
    /* Start offset so it loops correctly downwards */
    transform: translateY(calc(-50% - 15px));
  }

  100% {
    transform: translateY(0);
  }
}

/* Response multi-column testimonials */
@media (max-width: 992px) {
  .testimonials-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .track-3 {
    display: none;
    /* Hide 3rd column on tablet */
  }
}

@media (max-width: 768px) {
  .testimonials-columns {
    grid-template-columns: 1fr;
  }

  .track-down {
    /* Make the 2nd column act like the first one on mobile so it doesn't look weird scrolling opposite near each other */
    animation: scroll-up 35s linear infinite;
  }
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.quote-icon {
  font-size: 4rem;
  color: var(--color-teal);
  line-height: 1;
  font-family: Georgia, serif;
  opacity: 0.3;
  margin-bottom: -20px;
}

.quote {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-navy);
  margin-bottom: 30px;
  flex-grow: 1;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(47, 65, 86, 0.1);
  padding-top: 24px;
}

.testimonial-footer .name {
  font-weight: var(--fw-bold);
  font-size: 1rem;
  color: var(--color-navy);
}

.testimonial-footer .role {
  font-size: 0.85rem;
  color: #4a5d72;
}

.testimonial-footer .stat {
  font-weight: var(--fw-extrabold);
  color: var(--color-teal);
  font-size: 0.9rem;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  padding: var(--spacing-lg) 0;
  background-color: var(--color-beige);
}

.glass-card-dark {
  background: var(--glass-bg-dark);
  color: var(--color-white);
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.glass-card-dark h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.glass-card-dark p {
  color: var(--color-sky-blue);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 1rem;
}

.cta-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.cta-form input:focus {
  box-shadow: 0 0 0 3px rgba(86, 124, 141, 0.5);
}

.cta-disclaimer {
  font-size: 0.875rem !important;
  opacity: 0.7;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-navy-dark);
  color: var(--color-white);
  padding: var(--spacing-xl) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  display: block;
  height: 80px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  color: var(--color-sky-blue);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  background: var(--color-teal);
  transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul a {
  color: var(--color-sky-blue);
}

.footer-links ul a:hover {
  color: var(--color-white);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--color-sky-blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-sky-blue);
  font-size: 0.875rem;
}

.footer-bottom p {
  color: inherit;
  font-size: inherit;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   Animations & Intersection Observer Classes
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
  .hero {
    align-items: flex-start;
    padding-top: 9rem;
    padding-bottom: 4rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .floating-badge {
    left: -3%;
    /* transform: translateX(-50%) !important; */
    /* Overrides bounce for centering basically */
    bottom: -30px;
    animation: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    background: var(--color-white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--color-white);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition-normal);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    font-size: 1.25rem;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}