/* ============================================================
   REVER — Main Stylesheet
   Gradient: #F3F4F6 → #CAE4F2 → #00395E
   CTA Button: #72AA34
   ============================================================ */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --color-bg-light: #F3F4F6;
  --color-bg-mid: #CAE4F2;
  --color-bg-dark: #00395E;
  --color-primary: #00395E;
  --color-primary-light: #0a5a8a;
  --color-accent: #72AA34;
  --color-accent-hover: #5f9228;
  --color-white: #FFFFFF;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-400: #9CA3AF;
  --color-gray-600: #4B5563;
  --color-gray-800: #1F2937;
  --color-text: #1F2937;
  --color-text-muted: #4B5563;

  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 4px 24px rgba(0, 57, 94, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(0, 57, 94, 0.14);
  --shadow-phone: 0 20px 60px rgba(0, 57, 94, 0.18);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ---------- UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition);
  padding: 12px 28px;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(114, 170, 52, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 57, 94, 0.08);
  transition: var(--transition);
}

.header--scrolled {
  box-shadow: 0 2px 20px rgba(0, 57, 94, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo img {
  width: 120px;
}

.header__menu {
  display: flex;
  gap: 32px;
}

.header__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-primary);
  position: relative;
  transition: var(--transition);
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
  border-radius: 2px;
}

.header__link:hover::after {
  width: 100%;
}

.header__link:hover,
.header__link--active {
  color: var(--color-accent);
}

.header__link--active::after {
  width: 100%;
}

.header__cta {
  font-size: 0.85rem;
  padding: 10px 22px;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.header__hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--color-primary);
  border-radius: 4px;
  transition: var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg-mid) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 420px;
  line-height: 1.7;
}

.hero__image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__phone {
  position: relative;
  z-index: 2;
  width: 320px;
  filter: drop-shadow(var(--shadow-phone));
  animation: float 6s ease-in-out infinite;
}

.hero__phone-bg {
  position: absolute;
  z-index: 1;
  width: 280px;
  right: -20px;
  top: 30px;
  opacity: 0.6;
  filter: blur(2px);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- FEATURES ---------- */
.features {
  padding: 100px 0;
  background: var(--color-white);
}

.features__heading {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: 56px;
  max-width: 520px;
}

.features__heading--accent {
  font-style: italic;
  color: var(--color-primary);
}

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

/* ---------- FEATURE CARD ---------- */
.feature-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

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

.feature-card__icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.feature-card__text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---------- SITE FOOTER (Showcase + Footer unified) ---------- */
.site-footer {
  background: linear-gradient(135deg,
    var(--color-bg-dark) 0%,
    var(--color-bg-dark) 40%,
    #0a4d75 55%,
    #1a6fa0 65%,
    #3a8fbf 78%,
    var(--color-bg-mid) 100%
  );
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 48px;
}

/* -- Showcase area -- */
.showcase__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.showcase__image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase__watermark {
  position: absolute;
  font-size: clamp(16rem, 28vw, 22rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  left: -10%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}

.showcase__circle {
  width: clamp(260px, 28vw, 380px);
  height: clamp(260px, 28vw, 380px);
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 2;
}

.showcase__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase__content {
  position: relative;
  z-index: 2;
}

.showcase__text {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

.showcase__text strong {
  color: var(--color-white);
  font-weight: 700;
}

/* -- Divider between showcase & footer links -- */
.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  margin: 60px 0;
}

/* -- Footer links area -- */
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer__brand img {
  width: 120px;
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  max-width: 240px;
}

.footer__contact-item {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.footer__links h4,
.footer__company h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

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

.footer__company p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  line-height: 1.6;
}

/* -- Store badges -- */
.footer__stores h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer__store-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__store-badges .store-badge,
.footer__store-badges a {
  display: block;
  width: 150px;
  transition: var(--transition);
}

.footer__store-badges a:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.footer__store-badges img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__inner {
    gap: 40px;
  }

  .hero__phone {
    width: 260px;
  }

  .hero__phone-bg {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    padding: 100px 32px 40px;
    transition: right 0.35s ease;
    z-index: 999;
  }

  .header__nav.open {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    gap: 24px;
  }

  .header__link {
    font-size: 1.05rem;
  }

  .header__cta {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .header__hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .header__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__image {
    order: -1;
  }

  .hero__phone {
    width: 240px;
  }

  .hero__phone-bg {
    width: 200px;
    right: 10%;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .showcase__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .showcase__text {
    margin-left: auto;
    margin-right: auto;
  }

  .showcase__image-wrap {
    justify-content: center;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .footer__brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer__tagline {
    margin: 0 auto 16px;
  }
}

@media (max-width: 480px) {
  .features__grid {
    grid-template-columns: 1fr;
  }

  .hero__phone {
    width: 200px;
  }

  .hero__phone-bg {
    display: none;
  }

  .btn--lg {
    width: 100%;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    text-align: center;
  }
}

/* ---------- OVERLAY (mobile menu) ---------- */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

.overlay.active {
  display: block;
}
