/* =========================================================
   WEBPLEX SOLUTION - HOME PAGE
   Light professional design
   ========================================================= */

:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text-dark: #0b1220;
  --muted: #667085;
  --muted-light: #98a2b3;

  --primary: #8b2cf0;
  --primary-dark: #7324c6;
  --primary-soft: #f3e9fd;

  --blue: #1f63ea;

  --pink: #f0209e;

  --cyan: #0fb4f7;

  /* Logo colours: pink -> violet -> blue (-> cyan) */

  --brand-gradient: linear-gradient(135deg, var(--pink) 0%, var(--primary) 52%, var(--blue) 100%);

  --text-gradient: linear-gradient(110deg, var(--pink) 0%, var(--primary) 38%, var(--blue) 72%, var(--cyan) 100%);
  --blue-soft: #ebf1fd;

  --green: #18a66a;
  --border: #e4e7ec;
  --border-dark: #d0d5dd;

  --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 18px 50px rgba(16, 24, 40, 0.09);
  --shadow-lg: 0 30px 80px rgba(16, 24, 40, 0.12);

  --container: 1180px;
  --radius: 20px;
}

/* =========================================================
   RESET
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden; /* Prevents background scrolling when mobile menu is open */
}

button, a {
  font-family: "Inter", sans-serif;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =========================================================
   DOT BACKGROUND
   ========================================================= */

.site-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(139, 44, 240, 0.28) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  opacity: 0.8;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.85) 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.85) 75%, transparent 100%);
}

/* =========================================================
   COMMON
   ========================================================= */

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 115px 0;
}

.section-label {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-heading h2 {
  color: var(--text-dark);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading p {
  max-width: 620px;
  margin: 17px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 3D reveal: elements tip forward out of the page as they scroll in.
   An animation (not a transition) is used so hover transforms and the
   3D card tilt keep working once the reveal has finished. */
.reveal {
  opacity: 0;
}

.reveal.visible {
  opacity: 1;
  animation: revealFlip3d 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

@keyframes revealFlip3d {
  from {
    opacity: 0;
    transform-origin: 50% 0%;
    transform: perspective(1000px) translateY(46px) rotateX(-16deg);
  }
  to {
    opacity: 1;
    transform-origin: 50% 0%;
    transform: perspective(1000px) translateY(0) rotateX(0deg);
  }
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 76px;
  padding: 12px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 233, 242, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo {
  flex-shrink: 0;
  
}

.logo img {
  width: 158px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.nav-button,
.contact-us-btn {
  min-height: 42px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.nav-button {
  color: #535d70;
}

.nav-button:hover {
  color: var(--primary);
  background: #f5ecfe;
}

.nav-button.active {
  color: var(--primary);
  background: #f3e9fd;
}

.contact-us-btn {
  margin-left: 7px;
  padding-inline: 19px;
  color: #ffffff;
  background: var(--brand-gradient);
  box-shadow: 0 8px 20px rgba(139, 44, 240, 0.20);
}

.contact-us-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(139, 44, 240, 0.28);
}

/* Animated Menu Icon */
.menu-icon {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #fff;
  z-index: 1001; /* Keep above full screen menu */
  transition: all 0.3s ease;
}

.menu-icon .bar {
  width: 21px;
  height: 2px;
  border-radius: 10px;
  background: var(--text-dark);
  transition: all 0.3s ease;
}

/* Hamburger to X Animation */
.menu-icon.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-icon.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-icon.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 90px;
  overflow: hidden;
}

.hero-grid {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-dark);
  font-size: clamp(40px, 7vw, 90px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 800;
}

/* Headline lines flip up into place in 3D */
.hero h1 .h1-line {
  display: inline-block;
  padding: 0.06em 0 0.14em; /* room for descenders under background-clip text */
  margin: -0.06em 0 -0.14em;
  transform-origin: 50% 100%;
  animation: headlineFlip3d 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

.hero h1 .h1-line + .h1-line {
  animation-delay: 0.28s;
}

@keyframes headlineFlip3d {
  from {
    opacity: 0;
    transform: perspective(700px) translateY(30px) rotateX(-80deg);
  }
  to {
    opacity: 1;
    transform: perspective(700px) translateY(0) rotateX(0deg);
  }
}

.hero-description {
  max-width: 720px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 25px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: #ffffff;
  background: var(--brand-gradient);
  box-shadow: 0 14px 32px rgba(139, 44, 240, 0.22);
}

.button-primary:hover {
  box-shadow: 0 18px 38px rgba(139, 44, 240, 0.30);
}

.button-outline {
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-dark);
}

.button-outline:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: #ffffff;
}

.hero-points {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 42px;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--brand-gradient);
}

/* =========================================================
   INTRO
   ========================================================= */

.intro-section {
  padding: 70px 0 95px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.58);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 80px;
  align-items: end;
}

.intro-heading h2 {
  max-width: 680px;
  color: var(--text-dark);
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.intro-copy {
  max-width: 510px;
}

.intro-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 65px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  padding: 25px 22px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item strong {
  display: block;
  color: var(--text-dark);
  font-size: 25px;
  letter-spacing: -0.03em;
}

.stat-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

/* =========================================================
   SERVICES
   ========================================================= */

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

.service-card {
  position: relative;
  min-height: 295px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #e1c8fb;
  box-shadow: var(--shadow-md);
}

.service-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -100px;
  bottom: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 44, 240, 0.12), transparent 70%);
  transition: transform 0.3s ease;
}

.service-card:hover::after {
  transform: scale(1.25);
}

.service-number {
  position: absolute;
  top: 24px;
  right: 25px;
  color: #d0d5dd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 11px;
  border: 1px solid #e9d6fc;
  border-radius: 15px;
  background: var(--primary-soft);
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3 {
  margin-top: 24px;
  color: var(--text-dark);
  font-size: 18px;
  letter-spacing: -0.025em;
}

.service-card p {
  max-width: 440px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
}

.service-wide {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 23px;
  align-items: start;
  grid-column: span 2;
  min-height: 210px;
  background: linear-gradient(115deg, #ffffff 0%, #f9f5fe 100%);
}

.service-wide .service-icon {
  grid-row: span 2;
}

.service-wide-content {
  max-width: 700px;
}

.service-wide-content h3 {
  margin-top: 0;
}

/* =========================================================
   TECHNOLOGY
   ========================================================= */

.technology-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.technology-header {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 50px;
}

.technology-header h2 {
  max-width: 700px;
  color: var(--text-dark);
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.technology-header p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.technology-marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: #fbfcfe;
}

.technology-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: technologyScroll 28s linear infinite;
}

.technology-item {
  min-width: 145px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(16, 24, 40, 0.03);
}

.technology-item img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

@keyframes technologyScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   FEATURES
   ========================================================= */

.features-section {
  background: linear-gradient(180deg, #f4f6fa 0%, #f9fafc 100%);
}

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

.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 21px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--blue-soft);
}

.feature-tag {
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature-card h3 {
  margin-top: 6px;
  color: var(--text-dark);
  font-size: 15px;
}

.feature-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

/* =========================================================
   WHY WEBPLEX
   ========================================================= */

.why-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: center;
}

.why-heading h2 {
  max-width: 500px;
  color: var(--text-dark);
  font-size: clamp(34px, 4vw, 51px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.why-heading p {
  max-width: 460px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.why-heading .button {
  margin-top: 28px;
}

.why-list {
  display: flex;
  flex-direction: column;
}

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
}

.why-item:first-child {
  border-top: 1px solid var(--border);
}

.why-icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #ffffff;
}

.why-item span {
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
}

.why-item h3 {
  margin-top: 4px;
  color: var(--text-dark);
  font-size: 15px;
}

.why-item p {
  max-width: 510px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

/* =========================================================
   TESTIMONIALS (cards: assets/testimonial-cards.css)
   ========================================================= */

.testimonials-section {
    padding-top: 0;
}

.home-reviews__rating {
    width: fit-content;
    margin: -25px auto 30px;
    padding: 9px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    color: var(--muted);
    font-size: 13px;
}

.home-reviews__rating[hidden] {
    display: none;
}

.home-reviews__rating strong {
    color: var(--text-dark);
    font-size: 15px;
}

.home-reviews__actions {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================================================
   CTA
   ========================================================= */

.cta-section {
  padding-bottom: 115px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 78px 45px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(125deg, #161c2b, #381261);
  box-shadow: var(--shadow-lg);
}

.cta-box::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 78, 242, 0.45), transparent 68%);
}

.cta-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.20) 0.7px, transparent 0.7px);
  background-size: 24px 24px;
  opacity: 0.14;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.cta-content .section-label {
  color: #d0aaf9;
}

.cta-content h2 {
  font-size: clamp(32px, 4vw, 51px);
  line-height: 1.07;
  letter-spacing: -0.05em;
}

.cta-content p {
  max-width: 590px;
  margin: 17px auto 0;
  color: #c7cede;
  font-size: 13px;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

/* =========================================================
   DEFAULT DESKTOP FOOTER
   ========================================================= */

.site-footer {
  padding: 65px 0 22px;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 70px;
  align-items: start;
}

.footer-brand-column {
  max-width: 330px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
}

.footer-logo img {
  width: 145px;
  height: auto;
}

.footer-brand-column p {
  max-width: 300px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.footer-label {
  display: block;
  margin-bottom: 17px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-column > a {
  color: #667085;
  font-size: 12px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column > a:hover {
  color: var(--primary);
  transform: translateX(3px);
}
/* -------------------------
   CONTACT DETAILS (ICON LAYOUT)
   ------------------------- */

.footer-contact {
  gap: 16px;
}

.footer-contact .contact-link {
  display: flex;
  flex-direction: row; /* Align icon and text horizontally */
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.25s ease, color 0.25s ease;
}

.footer-contact .contact-link span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* Hover effects */
.footer-contact .contact-link:hover .footer-icon {
  transform: scale(1.15); /* Icon gently pops on hover */
}

.footer-contact .contact-link:hover span {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

.footer-bottom-brand {
  color: var(--text-dark);
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-bottom-brand:hover {
  color: var(--primary);
}

/* =========================================================
   MEDIA QUERIES (FULLY RESPONSIVE CASCADE)
   ========================================================= */

/* Tablets & Small Laptops (Max Width: 992px) */
@media (max-width: 992px) {
  .menu-icon {
    display: flex;
  }
  
  /* Animated Full Screen Menu */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    overflow-y: auto; 
    
    /* Animation initial state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
  }

  .nav-button, .contact-us-btn {
    width: 100%;
    max-width: 250px;
    font-size: 18px; 
    padding: 15px;
    justify-content: center;
  }
  
  .nav-button {
    background: transparent;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .technology-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .why-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .why-heading {
    max-width: 100%;
  }

  /* Transition footer to 2 columns before mobile */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 45px;
  }
  
  /* Make sure brand column spans both columns and is ready to center */
  .footer-brand-column {
    grid-column: 1 / -1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Tablets Landscape & Large Phones (Max Width: 768px) */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 60px 0;
  }

  .hero h1 {
    font-size: clamp(38px, 9vw, 55px);
  }

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

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
  
  .stat-item:nth-child(2) {
    border-right: none;
  }

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

  .service-wide {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

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

  /* --- CENTERED FOOTER FOR MOBILE --- */
  .site-footer {
    text-align: center;
    padding: 50px 0 20px;
  }

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

  /* Explicitly center all columns using flexbox */
  .footer-brand-column, 
  .footer-column {
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin: 0 auto;
    width: 100%;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-brand-column p {
    margin: 16px auto 0;
  }

  .footer-label {
    text-align: center;
    width: 100%;
  }

  .footer-column > a:hover {
    transform: translateY(-2px); /* Jump up instead of sliding right */
  }

  .footer-contact > a {
    align-items: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    text-align: center;
  }
}

/* Mobile Phones (Max Width: 480px) */
@media (max-width: 480px) {
  .container {
    width: calc(100% - 30px);
  }
  
  .section {
    padding: 70px 0;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-points {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .stat-item:last-child {
    border-bottom: none;
  }

  .feature-card {
    grid-template-columns: 1fr;
    text-align: center;
    place-items: center;
  }
  
  .why-item {
    grid-template-columns: 1fr;
    text-align: center;
    place-items: center;
  }

  .cta-actions,
  .home-reviews__actions {
    flex-direction: column;
    width: 100%;
  }

  .home-reviews__actions .button {
    width: 100%;
  }

  .home-reviews__rating {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 18px;
    text-align: center;
  }
  
  .cta-actions .button {
    width: 100%;
  }

  .cta-box {
    padding: 50px 25px;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}