/* ============================================
   CSS Variables & Reset
   ============================================ */

:root {
  /* Container Sizes */
  --container-small:  60rem;     /* 960px */
  --container-medium: 75rem;     /* 1200px */
  --container-large:  80.375rem; /* ~1286px */
  --banner-spacer:    3.125rem;
  
  /* Spacing */
  --padding-global: 6%;
  
  /* Colors */
  --color-primary: #006694;
  --color-primary-hover: #006694;
  --color-text: #384d57;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f9fc;
  --color-border: #e5e7eb;

  --color-btn-primary: #ffb703;
  --color-btn-on-primary: var(--color-text);
  
  /* Typography */
  --font-family:  Inter, Arial, sans-serif;

  
  /* Transitions */
  --transition: 0.3s ease;
}

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


body {
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-bg);
  font-weight: 500;
  line-height: 150%;

  min-height: 100vh;
}

/* ============================================
   Layout Containers
   ============================================ */

.padding-global {
  padding-left: var(--padding-global);
  padding-right: var(--padding-global);
}

.padding-global-medium {
  padding-left: var(--padding-global);
  padding-right: var(--padding-global);
}

.container-medium, .container-small, .container-large {
    margin-right: auto !important;
    margin-left: auto !important;
}

.container-small {
  max-width: var(--container-small);
}

.container-medium {
    max-width: var(--container-medium);
    margin-left: auto;
    margin-right: auto;
}

.container-large {
  max-width: var(--container-large);
}

@media (min-width: 768px) {
  :root {
    --padding-global: 6%;
  }
}

@media (min-width: 1024px) {
  :root {
    --padding-global: 6%;
  }
}

/* ============================================
   Notification Bar
   ============================================ */

.notification-bar {
  background-color: var(--color-primary);
  color: white;
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: transform var(--transition);
}

.notification-bar.hidden {
  transform: translateY(-100%);
}

.notification-text {
  margin: 0;
}

.notification-link {
  color: white;
  text-decoration: underline;
  margin-left: 8px;
}

.notification-link:hover {
  opacity: 0.8;
}

/* ============================================
   Header
   ============================================ */
  /*------*/

  /* Header visibility transitions using CSS variables */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: var(--total-header-height);
}

/* Main header positioning based on notification height */
.main-header {
  margin-top: var(--notification-height);
  transition: transform 0.3s ease, margin-top 0.3s ease;
}

/* Hidden state - everything hidden */
header.header-hidden {
  transform: translateY(calc(-1 * var(--total-header-height)));
}

/* When notification is hidden, adjust main header position */
.notification-bar.notification-hidden + .main-header {
  margin-top: 0;
  transform: translateY(calc(-1 * var(--notification-height)));
}

/* Main header visible animation */
.main-header.nav-visible {
  transform: translateY(0);
}

/* Notification bar transitions */
.notification-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: top;
  height: var(--notification-height);
}

.notification-bar.notification-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.notification-bar.notification-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Body padding for content */
body {
  padding-top: var(--total-header-height);
  transition: padding-top 0.3s ease;
}

/* When only nav is visible */
body.nav-only-visible {
  padding-top: var(--main-header-height);
}

/* When everything is hidden */
body.header-hidden {
  padding-top: 0;
}

/* Optional: Add background when scrolled */
header:not(.at-top) .main-header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Optional: Smooth transitions for child elements */
.header__inner {
  transition: padding 0.3s ease;
}


  /*-----*/ 

.main-header {
  background-color: #0000;
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  transition: all var(--transition);
}

.main-header.scrolled {
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--color-border);
}

.main-header.hidden {
  transform: translateY(-100%);
}

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

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.logo-image {
  max-width: 11rem;
}

/* ============================================
   Mobile Menu Toggle Button
   ============================================ */

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition);
}

/* Hamburger Animation when active */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   Navigation - Mobile First
   ============================================ */

.main-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background-color: white;
  flex-direction: column;
  padding: 24px;
  gap: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--color-border);
}

.main-nav.active {
  display: flex;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  padding: 12px 0;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--color-primary);
}

/* ============================================
   Header Actions - Mobile
   ============================================ */

.header-actions {
  display: none;
  gap: 16px;
  align-items: center;
}

/* Show button in mobile menu */
@media (max-width: 767px) {
  .main-nav.active ~ .header__inner .header-actions {
    display: flex;
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .nav-link-mobile {
    display: none;
  }
}

/* ============================================
   Desktop Navigation
   ============================================ */

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    gap: 32px;
    background: none;
    box-shadow: none;
    border: none;
  }
  
  .nav-link {
    font-size: 16px;
    padding: 0;
  }
  
  .header-actions {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
}
/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;   
    text-decoration: none;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    border-radius: 6.25rem;
    justify-content: center;
    align-items: center;
    height: 2.5rem;
    padding: 0 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .3s ease-in-out;
    align-self: start;
}

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

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

.btn-ghost {
  background-color: transparent;
  color: var(--color-text);
}

.btn-ghost:hover {
  background-color: var(--color-bg-alt);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
}

.hero-section h1 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--color-text-light);
  margin-bottom: 40px;
}


/* ============================================
   Sections
   ============================================ */

.upayme-section {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(4rem, 8vw, 8rem) 0;
    scroll-snap-align: start;
}

.upayme-section--alt {
  background-color: var(--color-bg-alt);
}

/* ============================================
   Two Column Layout
   ============================================ */

.two-column {
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    grid-template-rows: auto;
    grid-template-columns: 50% 50%;
    grid-auto-columns: 1fr;
    align-items: center;
    display: grid;
}

.two-column__visual {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;

    width: calc(45rem);
    position: relative;
    left: -6rem;
} 

.two-column__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 24rem;
}

@media screen and (max-width: 991px) {
    .two-column {
        grid-column-gap: 2rem;
        grid-row-gap: 2rem;
        flex-flow: column;
        justify-content: center;
        align-items: flex-start;
        display: flex;
    }
    .two-column__content {
        z-index: 10;
        max-width: none;
        position: relative; 
    }
    .two-column__visual {
        left: unset;
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .two-column__visual img {
        transform: scale(1.4);
        margin-top: 1rem;
    }
}


/* ============================================
   One Column Layout
   ============================================ */

    .one-column {}

    .one-column__content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .one-column__content_text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .one-column .eyebrow {
        margin-bottom: 1rem;
    }

/* ============================================
   Eyebrow
   ============================================ */

.eyebrow {
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    display: flex;
}

.eyebrow__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eyebrow__text {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 100%;
}

/* ============================================
   Section Content
   ============================================ */

.section-title {
    letter-spacing: -.03em;
    text-wrap: balance;
    font-size: 2.625rem;
    font-weight: 700;
    line-height: 120%;
}

.section-text {
  color: var(--color-text-light);
  letter-spacing: .01em;
  font-size: 1rem;
  line-height: 150%;
}

@media screen and (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }
}

/* ============================================
   Feature Cards
   ============================================ */

.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card {
  background-color: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-light);
}

.section-image {
    vertical-align: middle;
    max-width: 100%;
    display: inline-block;
}

/* ============================================
   Footer
   ============================================ */

.main-footer {
  background-color: var(--color-text);
  color: white;
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer__text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer__heading {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: white;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* ============================================
   Scroll Snap (Optional)
   ============================================ */

html.scroll-snap {
  scroll-snap-type: y mandatory;
}

[data-snap] {
  scroll-snap-align: start;
}