/* LaundryGoo landing — fresh aqua */

:root {
  --lg-bg: #f3fafb;
  --lg-bg-deep: #e4f4f6;
  --lg-ink: #0f3d45;
  --lg-ink-soft: #3d6670;
  --lg-brand: #0d8a96;
  --lg-accent: #1ecad8;
  --lg-accent-deep: #0a6f7a;
  --lg-white: #ffffff;
  --lg-line: rgba(15, 61, 69, 0.1);
  --lg-shadow: 0 18px 50px rgba(13, 90, 100, 0.12);
  --lg-radius: 18px;
  --lg-font-display: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  --lg-font-body: "IBM Plex Sans Arabic", "Tajawal", sans-serif;
  --lg-header-h: 76px;
  --lg-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body.lg-body {
  margin: 0;
  font-family: var(--lg-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--lg-ink);
  background: var(--lg-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

.lg-container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Preloader */
.lg-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #e8f8fa, #f7fcfd);
  transition: opacity 0.45s var(--lg-ease), visibility 0.45s;
}

.lg-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lg-preloader__pulse {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(13, 138, 150, 0.2);
  border-top-color: var(--lg-brand);
  animation: lg-spin 0.8s linear infinite;
}

@keyframes lg-spin {
  to { transform: rotate(360deg); }
}

/* Header */
.lg-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--lg-header-h);
  transition: background 0.35s var(--lg-ease), box-shadow 0.35s var(--lg-ease), backdrop-filter 0.35s;
}

.lg-header.is-scrolled {
  background: rgba(247, 252, 253, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(15, 61, 69, 0.08);
}

.lg-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lg-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 2;
}

.lg-brand__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.lg-brand__name {
  font-family: var(--lg-font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--lg-ink);
  letter-spacing: -0.01em;
}

.lg-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.lg-nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--lg-ink-soft);
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.25s ease;
}

.lg-nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--lg-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--lg-ease);
}

.lg-nav__link:hover,
.lg-nav__link.is-active {
  color: var(--lg-brand);
}

.lg-nav__link.is-active::after,
.lg-nav__link:hover::after {
  transform: scaleX(1);
}

.lg-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  z-index: 2;
}

.lg-menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--lg-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.lg-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.lg-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.lg-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(30, 202, 216, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(13, 138, 150, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 85%, rgba(164, 230, 236, 0.55), transparent 45%),
    linear-gradient(165deg, #eaf8fa 0%, #f7fcfd 45%, #dff3f6 100%);
}

.lg-hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--lg-hero-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: saturate(1.05) brightness(1.05);
}

.lg-hero__wash {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.55), transparent 35%),
    radial-gradient(circle at 75% 60%, rgba(30, 202, 216, 0.2), transparent 40%);
  animation: lg-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes lg-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.05); }
}

.lg-hero__content {
  padding-block: calc(var(--lg-header-h) + 3rem) 4rem;
  max-width: 720px;
}

.lg-hero__brand {
  margin: 0 0 1rem;
  font-family: var(--lg-font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 5.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--lg-ink);
}

.lg-hero__lead {
  margin: 0 0 2rem;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.75;
  color: var(--lg-ink-soft);
  font-weight: 400;
}

.lg-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.lg-downloads__link {
  display: inline-block;
  transition: transform 0.25s var(--lg-ease), opacity 0.25s ease;
}

.lg-downloads__link:hover {
  transform: translateY(-3px);
  opacity: 0.92;
}

.lg-downloads__link img {
  height: 52px;
  width: auto;
}

/* Reveal on load */
.lg-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: lg-rise 0.8s var(--lg-ease) forwards;
}

.lg-reveal--1 { animation-delay: 0.15s; }
.lg-reveal--2 { animation-delay: 0.32s; }
.lg-reveal--3 { animation-delay: 0.48s; }

@keyframes lg-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features */
.lg-features {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), transparent 20%),
    var(--lg-bg);
}

.lg-features__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.lg-features__image {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  filter: drop-shadow(var(--lg-shadow));
}

.lg-features__list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.lg-feature {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.1rem;
  align-items: start;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--lg-line);
}

.lg-feature:last-child {
  border-bottom: 0;
}

.lg-feature__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}

.lg-feature__icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.lg-feature__text {
  margin: 0;
  font-size: 1.05rem;
  color: var(--lg-ink-soft);
  padding-top: 0.35rem;
}

.lg-reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--lg-ease), transform 0.7s var(--lg-ease);
}

.lg-reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lg-feature.lg-reveal-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.lg-feature.lg-reveal-on-scroll:nth-child(3) { transition-delay: 0.16s; }

/* Contact */
.lg-contact {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background:
    radial-gradient(ellipse 50% 40% at 10% 0%, rgba(30, 202, 216, 0.12), transparent 50%),
    linear-gradient(180deg, var(--lg-bg-deep), #ecf7f9);
}

.lg-contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.lg-section-title {
  margin: 0 0 1.35rem;
  font-family: var(--lg-font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--lg-ink);
  line-height: 1.25;
}

.lg-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lg-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lg-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lg-field__label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--lg-ink-soft);
}

.lg-field input,
.lg-field textarea {
  width: 100%;
  border: 1px solid var(--lg-line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--lg-ink);
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lg-field input:focus,
.lg-field textarea:focus {
  outline: none;
  border-color: var(--lg-accent);
  box-shadow: 0 0 0 3px rgba(30, 202, 216, 0.2);
}

.lg-btn {
  align-self: start;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--lg-white);
  background: linear-gradient(135deg, var(--lg-brand), var(--lg-accent-deep));
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  min-height: 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 10px 28px rgba(13, 138, 150, 0.28);
}

.lg-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(13, 138, 150, 0.35);
}

.lg-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.lg-contact__copy {
  margin: 0 0 1.5rem;
  color: var(--lg-ink-soft);
  font-size: 1.02rem;
}

.lg-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.lg-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 50%;
  /* Dark circle so white/light dashboard icons stay visible */
  background: var(--lg-ink);
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lg-social a:hover {
  transform: translateY(-2px);
  background: var(--lg-brand);
  box-shadow: 0 10px 24px rgba(13, 138, 150, 0.28);
}

.lg-social img {
  width: 100%;
  height: 100%;
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
  display: block;
}

/* Footer */
.lg-footer {
  padding: 1.5rem 0 2rem;
  text-align: center;
  color: var(--lg-ink-soft);
  font-size: 0.92rem;
  background: #ecf7f9;
  border-top: 1px solid var(--lg-line);
}

.lg-footer p {
  margin: 0;
}

/* Privacy page */
.lg-policy {
  padding: calc(var(--lg-header-h) + 3rem) 0 4rem;
  min-height: 70vh;
}

.lg-policy__title {
  margin: 0 0 1.5rem;
  font-family: var(--lg-font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--lg-ink);
}

.lg-policy__body {
  max-width: 720px;
  color: var(--lg-ink-soft);
  font-size: 1.05rem;
  white-space: pre-wrap;
}

/* Responsive */
@media (max-width: 900px) {
  .lg-features__grid,
  .lg-contact__grid {
    grid-template-columns: 1fr;
  }

  .lg-features__visual {
    order: -1;
  }

  .lg-features__image {
    max-width: 280px;
  }

  .lg-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .lg-menu-toggle {
    display: block;
  }

  .lg-nav {
    position: fixed;
    inset: 0;
    background: rgba(243, 250, 251, 0.97);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .lg-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .lg-nav__list {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .lg-nav__link {
    font-size: 1.25rem;
    font-family: var(--lg-font-display);
    font-weight: 700;
  }

  .lg-hero__content {
    padding-block: calc(var(--lg-header-h) + 2.5rem) 3.5rem;
  }

  .lg-downloads__link img {
    height: 46px;
  }

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

  .lg-feature__icon,
  .lg-feature__icon img {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .lg-hero__wash,
  .lg-preloader__pulse,
  .lg-reveal {
    animation: none !important;
  }

  .lg-reveal,
  .lg-reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
