/* ════════════════════════════════════════════════════════
   TADAKADO — Design System (Tadakado & Merchant pages)
   Organised as:
     1. Design Tokens  (:root)
     2. Reset & Base
     3. Layout Utilities
     4. Typography Utilities
     5. Button Components
     6. Trusted By (logo marquee)
     7. Shared Pill Navbar
     8. Shared TK-Footer
     9. Mobile Navbar
════════════════════════════════════════════════════════ */


/* ────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   Edit here to retheme the entire site.
──────────────────────────────────────────────────────── */
:root {
  /* — Brand colours — */
  --color-primary:        #103294;
  --color-primary-hover:  #0d2677;
  --color-gold:           #FFB100;
  --color-gold-light:     #FFD154;
  --color-sky:            #2694F5;
  --color-success:        #22C55E;
  --color-danger:         #F87171;
  --color-info:           #7ECFFF;

  /* — Neutral palette — */
  --color-dark:           #282E40;
  --color-muted:          #555D6E;
  --color-subtle:         #959DA3;
  --color-white:          #ffffff;
  --color-bg:             #F8F9FE;
  --color-bg-card:        #dde4f5;

  /* — Dark surface palette (dark sections / footer) — */
  --color-navy:           #0B1F5E;
  --color-navy-deep:      #080F2E;

  /* — Tinted backgrounds — */
  --color-primary-tint:   #EEF4FF;
  --color-sky-tint:       #EDF5FF;
  --color-gold-tint:      #FFF8E6;
  --color-warm-tint:      #FFFAEF;

  /* — Typography — */
  --font-family:          'Poppins', sans-serif;

  --font-size-2xs:        11px;
  --font-size-xs:         12px;
  --font-size-sm:         13px;
  --font-size-base:       14px;
  --font-size-md:         15px;
  --font-size-lg:         16px;
  --font-size-xl:         18px;
  --font-size-2xl:        20px;
  --font-size-3xl:        clamp(22px, 2.5vw, 36px);
  --font-size-4xl:        clamp(24px, 3vw, 40px);
  --font-size-5xl:        clamp(28px, 3.5vw, 48px);
  --font-size-6xl:        clamp(32px, 4vw, 56px);

  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

  --line-height-tight:    1.1;
  --line-height-snug:     1.3;
  --line-height-normal:   1.5;
  --line-height-relaxed:  1.65;
  --line-height-loose:    1.7;

  /* — Spacing scale (4-point grid) — */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-7:   28px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-14:  56px;
  --space-16:  64px;
  --space-18:  72px;
  --space-20:  80px;

  /* — Border radius — */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  24px;
  --radius-3xl:  32px;
  --radius-4xl:  40px;
  --radius-full: 100px;

  /* — Shadows — */
  --shadow-xs:   0 2px 10px rgba(27,37,68,.07);
  --shadow-sm:   0 2px 12px rgba(27,37,68,.08);
  --shadow-md:   0 2px 16px rgba(27,37,68,.10);
  --shadow-lg:   0 6px 28px rgba(27,37,68,.12);
  --shadow-card: 0 20px 60px rgba(16,50,148,.12);

  /* — Layout — */
  --nav-height:        72px;
  --max-width:         1280px;
  --section-padding-x: var(--space-20);
  --section-padding-y: var(--space-20);
}


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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-dark);
  line-height: var(--line-height-normal);
  overflow-x: hidden;
}

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

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

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


/* ────────────────────────────────────────────────────────
   3. LAYOUT UTILITIES
──────────────────────────────────────────────────────── */
.sec {
  padding: var(--section-padding-y) var(--section-padding-x);
}

.sec-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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


/* ────────────────────────────────────────────────────────
   4. TYPOGRAPHY UTILITIES
──────────────────────────────────────────────────────── */
.sec-eyebrow {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-dark);
  text-align: center;
}

.sec-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-dark);
  line-height: var(--line-height-snug);
}

.sec-subtitle {
  font-size: var(--font-size-md);
  color: var(--color-muted);
  line-height: var(--line-height-relaxed);
  margin-top: var(--space-3);
}

/* Inline tag / pill label */
.tag {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  background: var(--color-primary-tint);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: var(--space-4);
}

.tag--gold {
  color: #B45309;
  background: #FEF3C7;
}


/* ────────────────────────────────────────────────────────
   5. BUTTON COMPONENTS
──────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 var(--space-7);
  background: var(--color-primary);
  border-radius: var(--radius-full);
  border: none;
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  transition: background .2s;
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 var(--space-7);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  background: transparent;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  transition: all .2s;
}

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


/* ────────────────────────────────────────────────────────
   6. TRUSTED BY (logo marquee)
──────────────────────────────────────────────────────── */
.trusted {
  padding: var(--space-16) var(--section-padding-x);
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-7);
  overflow: hidden;
}

.runway {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.runway::before,
.runway::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.runway::before {
  left: 0;
  background: linear-gradient(to right, var(--color-white), transparent);
}

.runway::after {
  right: 0;
  background: linear-gradient(to left, var(--color-white), transparent);
}

.runway-track {
  display: flex;
  width: max-content;
  animation: rl 36s linear infinite;
}

.runway-track-r {
  animation: rr 36s linear infinite;
}

@keyframes rl {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes rr {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.runway-track:hover,
.runway-track-r:hover {
  animation-play-state: paused;
}

.logo-slot {
  width: 168px;
  height: 108px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}

.logo-slot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


/* ────────────────────────────────────────────────────────
   7. SHARED PILL NAVBAR (tadakado / merchant pages)
──────────────────────────────────────────────────────── */
.navbar {
  width: 1216px; height: 64px; padding: 0 24px;
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  background: #fff; box-shadow: 0px 2px 16px rgba(27,37,68,0.10);
  border-radius: 100px; display: flex; justify-content: space-between;
  align-items: center; z-index: 200;
}

.tada-logo { display: flex; align-items: flex-end; gap: 1.5px; text-decoration: none; }

.nav-link {
  padding: 8px 16px; color: #282E40; font-size: 14px;
  font-weight: 400; line-height: 20px; text-decoration: none; border-radius: 100px;
  transition: color 0.2s, box-shadow 0.2s;
}
.nav-link:hover {
  color: #103294;
  background: #F0F2F5;
}

.btn-demo-nav {
  height: 40px; padding: 8px 16px; background: #103294; border-radius: 100px;
  color: #fff; font-family: 'Poppins', sans-serif; font-size: 14px;
  font-weight: 500; line-height: 20px; border: none; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center;
  transition: background .2s;
}
.btn-demo-nav:hover { background: #3B5CE8; }


/* ────────────────────────────────────────────────────────
   8. SHARED TK-FOOTER (tadakado / merchant pages)
──────────────────────────────────────────────────────── */
.tk-footer { background: linear-gradient(180deg, #fff 0%, #F3F9FF 100%); padding: 0; }

/* ── Main row: 3 columns ── */
.tk-footer-inner {
  max-width: 1216px; margin: 0 auto; padding: 60px 24px 48px;
  box-sizing: border-box; width: 100%;
  display: flex; align-items: flex-start; gap: 40px;
}

/* ── Left: brand + badges ── */
.tk-footer-brand { display: flex; flex-direction: column; gap: 16px; flex-shrink: 0; }
.tk-footer-logo img { height: 32px; width: auto; }
.tk-footer-stores { display: flex; gap: 8px; }
.tk-footer-store-badge { width: 140px; height: 52px; object-fit: contain; border-radius: 8px; }
.tk-footer-badges { display: flex; align-items: center; gap: 8px; }
.tk-footer-badge-lg { width: 160px; height: 60px; object-fit: contain; border-radius: 8px; }
.tk-footer-badge-sm { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; }

/* ── Middle: site map ── */
.tk-footer-nav { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; align-items: start; justify-items: start; padding-top: 6px; }
.tk-footer-nav a { color: #103294; font-size: 14px; font-weight: 400; line-height: 1.3; }
.tk-footer-nav a:hover { text-decoration: underline; }

/* ── Right: Follow Us + social icons ── */
.tk-footer-follow { display: flex; flex-direction: column; gap: 16px; flex-shrink: 0; padding-top: 6px; }
.tk-footer-follow-title { font-size: 16px; font-weight: 700; color: #1B2544; line-height: 1.3; }
.tk-footer-social { display: flex; align-items: center; gap: 20px; }
.tk-footer-social-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; text-decoration: none;
}
.tk-footer-social-btn svg { width: 32px; height: 32px; }

/* ── Addresses ── */
.tk-footer-addresses {
  max-width: 1216px; margin: 0 auto; padding: 32px 24px;
  box-sizing: border-box; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  border-top: 1px solid #DBDFE9;
}
.tk-footer-addr { display: flex; flex-direction: column; gap: 8px; }
.tk-footer-addr-country { font-size: 14px; font-weight: 700; color: #1B2544; }
.tk-footer-addr-text { font-size: 13px; color: #848C9D; line-height: 1.5; }
.tk-footer-addr-link { font-size: 13px; font-weight: 600; color: #103294; text-decoration: none; width: fit-content; }
.tk-footer-addr-link:hover { text-decoration: underline; }

/* ── Bottom bar ── */
.tk-footer-bottom { border-top: 1px solid #DBDFE9; }
.tk-footer-bottom-inner {
  max-width: 1216px; margin: 0 auto; padding: 24px;
  box-sizing: border-box;
  display: flex; justify-content: space-between; align-items: center;
}
.tk-footer-copyright { font-size: 14px; color: #848C9D; }
.tk-footer-legal { display: flex; gap: 40px; }
.tk-footer-legal a { font-size: 14px; font-weight: 700; color: #103294; }
.tk-footer-legal a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .navbar { width: calc(100% - 48px); }
}
@media (max-width: 900px) {
  .navbar { top: 12px; }
  .tk-footer-inner { flex-direction: column; gap: 32px; padding: 40px 24px 32px; }
  .tk-footer-nav { justify-items: start; }
  .tk-footer-addresses { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .tk-footer-bottom-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .tk-footer-legal { gap: 20px; flex-wrap: wrap; }
}


/* ────────────────────────────────────────────────────────
   9. MOBILE NAVBAR (pill navbar used by tadakado / merchant pages)
──────────────────────────────────────────────────────── */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: 8px;
}
.navbar-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #282E40;
  border-radius: 2px;
  transition: all .3s;
}
.navbar-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-hamburger.open span:nth-child(2) { opacity: 0; }
.navbar-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.navbar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  /* Space between the divider line and the first menu item below it — increase to push menu items further down */
  padding: 96px 24px 24px;
}
.navbar-drawer::before {
  content: '';
  position: absolute;
  /* Distance from the top of the overlay to the divider line.
     The logo/X row ends at 60px (top:20px + height:40px).
     76px means there is 16px of gap above the line.
     Increase this value to add more space above the line. */
  top: 76px;
  left: 0;
  right: 0;
  /* Thickness of the divider line — increase for a thicker line */
  height: 2px;
  background: #E5E7EB;
}
.navbar-drawer {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  z-index: 999;
  display: none;
}
.navbar-drawer.open {
  display: flex;
  animation: navFadeIn .2s ease;
}
@keyframes navFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.navbar-drawer-logo {
  position: absolute;
  top: 20px;
  left: 24px;
  height: 40px;
  display: flex;
  align-items: center;
}
.navbar-drawer-logo img {
  height: 24px; /* logo size in the mobile overlay — increase for bigger */
  width: auto;
}
.navbar-drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.navbar-drawer .nav-link {
  padding: 16px 8px;
  font-size: 16px; /* menu item font size in the mobile overlay — adjust as needed */
  font-weight: 400;
  border-bottom: none;
  color: #282E40;
  display: block;
  text-align: left;
}
.navbar-drawer .btn-demo-nav {
  width: 100%;
  padding: 0;
  height: 48px;
  font-size: 16px;
  justify-content: center;
  margin-top: 24px;
  border-radius: 100px;
  text-align: center;
}

@media (max-width: 640px) {
  .navbar .nav-links,
  .navbar > .btn-demo-nav { display: none; }
  .navbar-hamburger { display: flex; }
}
