/* ═══════════════════════════════════════════════════════
   maatli_style.css  —  Shared Design System
   Font: Poppins  |  Palette: Dark brown + warm cream/gold
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --hero-bg:      #1a0c02;
  --page-bg:      #fce9a0;    /* warm sand — body bg */
  --card-bg:      #f5c842;    /* golden yellow app cards */
  --ink:          #0f0d00;    /* near-black text */
  --cream:        #ffdb9c;    /* logo colour / light text on dark */
  --footer-bg:    #0f0d00;
  --footer-txt:   #fce9a0;

  /* Legal pages */
  --legal-bg:     #1a0c02;
  --legal-txt:    #fce9a0;
  --legal-muted:  rgba(252,233,160,0.65);
  --legal-accent: #ffdb9c;
  --legal-border: rgba(252,233,160,0.12);

  --radius:       28px;
  --radius-sm:    16px;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img  { display: block; max-width: 100%; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--page-bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════
   HERO  (homepage only)
═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background-color: var(--hero-bg);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 88px 40px 108px;
  overflow: hidden;
}


/* Real background image */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/hero/maatli_header_bg.webp");
  background-size: cover;
  background-position: center 35%;
  opacity: 0.5;
}

/* Gradient overlay so text is always readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15,13,0,0.22)  0%,
      rgba(15,13,0,0.08) 40%,
      rgba(15,13,0,0.55) 100%
    ),
    radial-gradient(ellipse 90% 70% at 50% 45%,
      transparent 35%,
      rgba(15,13,0,0.45) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

/* Hero logo */
.hero-logo {
  width: clamp(240px, 46vw, 480px);
  height: auto;
  margin-bottom: auto;
}

/* Hero tagline */

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--cream);
  opacity: 0.9;
  line-height: 1.65;
  max-width: 460px;
  margin-top: auto;    
  margin-bottom: 10px;
}
.hero-tagline strong {
  font-weight: 700;
  display: block;
  color: var(--cream);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   CHARIOTEERS SECTION
═══════════════════════════════════════════════════════ */
.charioteers {
  background: var(--page-bg);
  padding: 72px 40px 52px;
  text-align: center;
}
.charioteers h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.charioteers p {
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  font-weight: 400;
  color: var(--ink);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ═══════════════════════════════════════════════════════
   APP CARDS
═══════════════════════════════════════════════════════ */
.apps-section {
  background: var(--page-bg);
  padding: 16px 40px 52px;
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.app-row {
  position: relative;
  display: flex;
  align-items: center;
}

/* Yellow card */
.app-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  flex: 1;
  padding: 40px 44px;
  min-height: 215px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Stag: card text left, phone right */
.app-row.stag .app-card { padding-right: 185px; }

/* OOO: card text right, phone left */
.app-row.ooo .app-card {
  padding-left: 185px;
  align-items: flex-end;
  text-align: right;
}

.app-card h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.app-card p {
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
  font-weight: 500;
  color: var(--ink);
  opacity: 0.75;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 210px;
}
.app-row.ooo .app-card p { text-align: right; }

/* Download button */
.btn-download {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  width: fit-content;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,13,0,0.25);
}

/* Phone image wrapper */
.phone-wrap {
  position: absolute;
  z-index: 5;
  filter: drop-shadow(0 16px 36px rgba(15,13,0,0.28));
}
.app-row.stag .phone-wrap { right: -8px; top: -52px; }
.app-row.ooo  .phone-wrap { left: -8px;  top: -52px; }
.phone-wrap img { width: 158px; height: auto; }

/* ═══════════════════════════════════════════════════════
   CAREERS STRIP
═══════════════════════════════════════════════════════ */
.careers-strip {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px 72px;
  width: 100%;
}
.careers-box {
  background: rgba(255,255,255,0.42);
  border: 1.5px solid rgba(15,13,0,0.14);
  border-radius: var(--radius);
  padding: 26px 36px;
  text-align: center;
}
.careers-box p {
  font-size: clamp(0.85rem, 1.5vw, 0.97rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.65;
}
.careers-box p strong {
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   SHARED FOOTER
═══════════════════════════════════════════════════════ */
footer {
  background: var(--footer-bg);
  color: var(--footer-txt);
  font-family: 'Poppins', sans-serif;
  padding: 52px 64px 24px;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(252,233,160,0.1);
}

/* Footer logo */
.footer-logo { width: 130px; height: auto; flex-shrink: 0; }

/* Links */
.footer-links-group {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--footer-txt);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  white-space: nowrap;
  line-height: 1.4;
}
.footer-col a i {
  font-size: 16px;
}
.footer-col a:hover { opacity: 1; }

/* Social icons */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}
.social-icon {
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.social-icon:hover { opacity: 1; transform: translateY(-2px); }
.social-icon img  { width: 26px; height: 26px; }

/* Footer copyright */
.footer-bottom {
  padding-top: 18px;
  font-size: 0.72rem;
  color: var(--footer-txt);
  opacity: 0.32;
  font-weight: 300;
}

/* ═══════════════════════════════════════════════════════
   LEGAL PAGES  (terms & privacy)
   — dark brown background, cream text
═══════════════════════════════════════════════════════ */
.legal-page {
  background: var(--legal-bg);
  min-height: 100vh;
}

/* Legal header strip (just logo, no nav) */
.legal-header {
  background: var(--legal-bg);
  padding: 36px 0 28px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--legal-border);
}
.legal-header-logo { width: 160px; height: auto; }

/* Legal body content */
.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 52px 40px 80px;
}

/* Page title + date row */
.legal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.legal-title-row h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--legal-accent);
  letter-spacing: -0.01em;
}
.legal-date {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--legal-muted);
  white-space: nowrap;
  padding-top: 6px;
}

/* Intro paragraphs */
.legal-intro {
  margin-bottom: 36px;
}
.legal-intro p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--legal-txt);
  line-height: 1.85;
  margin-bottom: 14px;
  opacity: 0.88;
}

/* Section block */
.legal-section {
  margin-bottom: 30px;
}
.legal-section h2 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--legal-txt);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
/* Sub-headings (italic labels like "A. Info You Provide") */
.legal-section h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--legal-txt);
  opacity: 0.9;
  margin: 14px 0 6px;
  font-style: italic;
}
.legal-section p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--legal-txt);
  line-height: 1.85;
  margin-bottom: 10px;
  opacity: 0.85;
}
.legal-section ul {
  list-style: none;
  margin: 8px 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-section ul li {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--legal-txt);
  opacity: 0.85;
  line-height: 1.75;
  padding-left: 16px;
  position: relative;
}
.legal-section ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--legal-accent);
  font-weight: 700;
}

/* Contact email highlight */
.legal-email {
  font-weight: 700;
  color: var(--legal-accent);
  text-decoration: none;
}
.legal-email:hover { text-decoration: underline; }

/* Divider between sections */
.legal-divider {
  border: none;
  border-top: 1px solid var(--legal-border);
  margin: 24px 0;
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in   { animation: fadeUp 0.8s 0.05s ease both; }
.fade-in-2 { animation: fadeUp 0.8s 0.18s ease both; }
.fade-in-3 { animation: fadeUp 0.8s 0.32s ease both; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  .hero { padding: 72px 24px 92px; }
  .charioteers { padding: 56px 24px 44px; }
  .apps-section  { padding: 12px 20px 44px; gap: 48px; }
  .careers-strip { padding: 0 20px 60px; }
  footer { padding: 44px 28px 20px; }

  .app-row.stag .app-card { padding-right: 130px; }
  .app-row.ooo  .app-card { padding-left:  130px; }
  .phone-wrap img { width: 118px; }

  .footer-links-group { gap: 28px; }
  .legal-body { padding: 44px 24px 72px; }
  .legal-title-row { flex-direction: column; gap: 6px; }
}

@media (max-width: 420px) {
  .app-card h3  { font-size: 1.05rem; }
  .app-card p   { font-size: 0.78rem; }
  .btn-download { font-size: 0.8rem; padding: 9px 22px; }
  .phone-wrap img { width: 100px; }
  .app-row.stag .app-card { padding-right: 110px; }
  .app-row.ooo  .app-card { padding-left:  110px; }
}

/* modal box */
.custom-modal .modal-content {
  background: var(--hero-bg);
  color: var(--cream);
  border-radius: var(--radius);
  border: none;
}

/* header */
.custom-modal .modal-header {
  border-bottom: 1px solid var(--legal-border);
}

.custom-modal .modal-title {
  color: var(--cream);
}

/* close button */
.custom-modal .btn-close {
  filter: invert(1);
}

/* labels */
.custom-modal label {
  color: var(--legal-muted);
}

/* inputs */
.custom-modal .form-control {
  background: #2b1505;
  color: var(--cream);
  border: 1px solid var(--legal-border);
  border-radius: var(--radius-sm);
}

.custom-modal .form-control::placeholder {
  color: rgba(255, 219, 156, 0.5);
}

/* focus */
.custom-modal .form-control:focus {
  border-color: var(--card-bg);
  box-shadow: none;
}

/* button */
.custom-modal .btn-primary {
  background: var(--card-bg);
  color: var(--ink);
  border: none;
  border-radius: var(--radius-sm);
}

/* small text */
.custom-modal p {
  color: var(--legal-muted);
}

/* links */
.custom-modal a {
  color: var(--card-bg);
}