/* =========================================================
   webfix — landing page styles
   ========================================================= */

:root {
  /* Brand colors */
  --orange: #f0561f;
  --orange-dark: #d6440f;
  --orange-light: #ff7a45;

  --indigo-light: #7d6cf0;
  --indigo-dark: #4a2fc9;

  --navy: #1c2333;
  --navy-soft: #262e42;
  --heading-navy: #1e2a4a;

  --surface: #ffffff;
  --surface-alt: #f2f1f6;
  --border-color: #e7e6ee;

  --text-body: #6b7280;
  --text-body-light: #a9b0c3;

  --amber: #f5a623;
  --blue-accent: #2fb8e6;
  --purple-accent: #6c5ce7;
  --pink-accent: #ef4f7a;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-card: 0 10px 30px rgba(30, 30, 60, 0.08);
  --shadow-card-hover: 0 18px 40px rgba(30, 30, 60, 0.14);

  --font-heading: "Baloo 2", "Poppins", sans-serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
}

/* -----------------------------------------------------------
   Reset
----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--heading-navy);
  margin: 0 0 16px;
  line-height: 1.25;
}

p {
  margin: 0 0 16px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -----------------------------------------------------------
   Buttons
----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(240, 86, 31, 0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--heading-navy);
  box-shadow: var(--shadow-card);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

/* -----------------------------------------------------------
   Topbar
----------------------------------------------------------- */
.topbar {
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  padding: 8px 16px;
}

.topbar a {
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.topbar a:hover {
  color: var(--orange-light);
  border-color: var(--orange-light);
}

/* -----------------------------------------------------------
   Header
----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
}

.site-header.scrolled {
  box-shadow: 0 6px 20px rgba(20, 20, 40, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--orange);
  flex-shrink: 0;
}

/* logo.svg is a 300x300 lockup (icon + baked-in black text) with the
   icon glyph occupying roughly x:35-95 y:120-180. Crop to just the
   icon via a scaled/positioned background so it stays crisp at small
   sizes and works on both light and dark section backgrounds. */
.logo-icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background-image: url("../images/logo.svg");
  background-repeat: no-repeat;
  background-size: 182px 182px;
  background-position: -21px -73px;
}

.logo-light {
  color: #fff;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-weight: 500;
  color: var(--heading-navy);
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--heading-navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -----------------------------------------------------------
   Hero
----------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 15% 10%, #8b7cf6 0%, #6a4fe0 35%, #4a2fc9 70%, #3d24b0 100%);
  padding: 90px 0 160px;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 35%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto 60px;
}

.hero-visual {
  max-width: 720px;
  margin: 0 auto;
}

.hero-illustration-img {
  width: 100%;
  height: auto;
}

.hero-cut {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1;
}

/* -----------------------------------------------------------
   Section heading (shared)
----------------------------------------------------------- */
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-heading p {
  color: var(--text-body);
  font-size: 1.02rem;
}

.section-heading.light h2,
.section-heading.light p {
  color: #fff;
}

.section-heading.light p {
  color: rgba(255, 255, 255, 0.65);
}

/* -----------------------------------------------------------
   Features section (logos + cards)
----------------------------------------------------------- */
.features-section {
  padding: 90px 0 100px;
  background: var(--surface-alt);
}

.logos-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-bottom: 90px;
  opacity: 0.5;
}

.logos-strip span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading-navy);
  letter-spacing: 0.5px;
}

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

.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.icon-blue {
  background: #e3edff;
  color: #3b7bf6;
}

.icon-purple {
  background: #ece7ff;
  color: var(--purple-accent);
}

.icon-pink {
  background: #ffe6ec;
  color: var(--pink-accent);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* -----------------------------------------------------------
   About / Who are we
----------------------------------------------------------- */
.about-section {
  background: var(--navy);
  padding: 100px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.about-text p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-illustration-img {
  width: 100%;
  height: auto;
}

/* -----------------------------------------------------------
   Why choose us
----------------------------------------------------------- */
.why-section {
  padding: 100px 0;
  background: #fff;
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.why-text p {
  font-size: 1rem;
}

.why-process {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.process-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-icon svg {
  width: 30px;
  height: 30px;
}

.process-amber {
  border-color: var(--amber);
  color: var(--amber);
}

.process-orange {
  border-color: var(--orange);
  color: var(--orange);
}

.process-blue {
  border-color: var(--blue-accent);
  color: var(--blue-accent);
}

.process-arrow {
  color: #c7cad6;
  flex-shrink: 0;
}

.process-arrow svg {
  width: 22px;
  height: 22px;
}

/* -----------------------------------------------------------
   Services
----------------------------------------------------------- */
.services-section {
  background: var(--navy);
  padding: 110px 0 90px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 50px;
}

.service-card {
  padding: 40px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:first-child {
  border-left: none;
}

.service-fill {
  background: var(--orange);
  color: rgba(255, 255, 255, 0.92);
}

.service-fill h3 {
  color: #fff;
}

.service-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
}

.service-outline h3 {
  color: #fff;
}

.service-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: #fff;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.service-card p {
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 6.5px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

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

/* -----------------------------------------------------------
   Stats
----------------------------------------------------------- */
.stats-section {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat h3 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 6px;
}

.stat span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

/* -----------------------------------------------------------
   Portfolio
----------------------------------------------------------- */
.portfolio-section {
  padding: 100px 0;
  background: #fff;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 44px;
}

.filter-btn {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-body-light);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  color: var(--heading-navy);
}

.filter-btn.active {
  color: #17b899;
  border-color: #17b899;
}

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

.portfolio-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #eceafe, #fbe6ea);
  display: none;
}

.portfolio-item.is-visible {
  display: block;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-item.no-image img {
  display: none;
}

.portfolio-item.no-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent 40%),
    linear-gradient(135deg, #cfc7fb, #f7cdd8);
}

/* -----------------------------------------------------------
   Testimonials
----------------------------------------------------------- */
.testimonial-section {
  background: var(--surface-alt);
  padding: 100px 0;
}

.testimonial-carousel {
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.45s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo-light), var(--orange));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-header strong {
  display: block;
  font-size: 0.95rem;
  color: var(--heading-navy);
}

.testimonial-header span {
  font-size: 0.82rem;
  color: var(--text-body-light);
}

.social-badge {
  width: 22px;
  height: 22px;
  margin-left: auto;
  flex-shrink: 0;
}

.testimonial-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #d3d3de;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dots button.active {
  background: var(--heading-navy);
  transform: scale(1.3);
}

/* -----------------------------------------------------------
   CTA / Newsletter
----------------------------------------------------------- */
.cta-section {
  padding: 110px 0 100px;
  background: #fff;
  position: relative;
}

.cta-inner {
  text-align: center;
  max-width: 640px;
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 40px;
}

.cta-form {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.cta-form input {
  flex: 1;
  max-width: 340px;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--surface-alt);
  font-family: inherit;
  font-size: 0.95rem;
}

.cta-form input:focus {
  outline: 2px solid var(--orange-light);
  outline-offset: 2px;
}

.cta-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #17b899;
  min-height: 1.2em;
}

/* -----------------------------------------------------------
   Footer
----------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  margin: 18px 0 24px;
  max-width: 340px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-icons a:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-3px);
}

.social-icons svg {
  width: 17px;
  height: 17px;
}

.footer-col h4 {
  color: #7fa7ff;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.footer-bottom p {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
}

/* -----------------------------------------------------------
   Responsive
----------------------------------------------------------- */
@media (max-width: 960px) {
  .about-inner,
  .why-inner {
    grid-template-columns: 1fr;
  }

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

  .about-visual {
    order: -1;
  }

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

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:nth-child(3) {
    border-left: none;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .header-actions .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 0;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .service-card {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .service-card:first-child {
    border-top: none;
  }

  .why-process {
    flex-wrap: wrap;
  }

  .cta-form {
    flex-direction: column;
    align-items: center;
  }

  .cta-form input {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .logos-strip {
    gap: 24px;
  }

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

  .hero {
    padding: 60px 0 120px;
  }
}
