
/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2563eb;
  --accent: #f59e0b;
  --bg: #ffffff;
  --text: #1f2937;

--success: #10b981;

--radius: 1rem;
--container-max: 1200px;
--transition: all 0.3s ease-in-out;

--primary: #7b1e3a; /* Burgundy */
--primary-dark: #5a142a;
--accent: #d4af37; /* Gold */
--bg: #fdfaf6; /* Ivory/Off-white */
--text: #1f1f1f;
--surface: #fff;
--blur-bg: rgba(255, 255, 255, 0.8);
--header-shadow: rgba(0, 0, 0, 0.08);


--footer-bg: #2d0000;
--footer-text: #ffffff;
}

html {
  height: 100dvh;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

/* HEADER */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar-links {
  display: flex;
  gap: 1rem;
}
.navbar-links a {
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}
.navbar-links a:hover {
  color: var(--accent);
}


.container {
  width: min(90%, 1200px);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}
.container h2 {
  margin-top: 25px;
}

h1, h2, h3 {
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.7rem;
  height: auto;
  width: 100%;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  background-image: url('/assets/images/button_kaspi.svg'); /* Your SVG path */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding-left: 3rem; /* Room for icon */
  border: none;
  border-radius: 8px;
  background-color: #ff6f61; /* Fallback color */
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.halyk {
  background-image: url('/assets/images/button_halyk.svg'); /* Your SVG path */
}
.kaspi {
  background-image: url('/assets/images/button_kaspi.svg'); /* Your SVG path */
}

.btn-primary:hover {
  background-color: #ff8562;
}

.btn-accent {
  background-color: var(--accent);
  color: #fff;
  padding: 0.75em 1.5em;
  border-radius: 9999px;
  font-weight: bold;
  transition: var(--bg) 0.3s;
}
.btn-accent:hover {
  background-color: #d97706;
}

.progress-bar-container {
  background: #e5e7eb;
  border-radius: 9999px; 
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: auto;
}

.progress-bar {
  height: 1rem;
  transition: width 0.6s ease-in-out;
}


.safe-area {
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Use responsive fluid units */
.text-sm { font-size: clamp(0.875rem, 2vw, 1rem); }
.text-md { font-size: clamp(1rem, 3vw, 1.25rem); }
.text-lg { font-size: clamp(1.25rem, 4vw, 1.5rem); }

.btn-primary, .btn-accent {
  transition: transform 0.2s ease-in-out;
}
.btn-primary:hover,
.btn-accent:hover {
  transform: translateY(-2px) scale(1.03);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
/* Media queries — Desktop enhancements */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}

.navbar .container {
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .navbar .container {
    flex-direction: row;
  }
}


.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-cols-1 {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
}


/* .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
} */
.container {
  width: 100%;
  max-width: 1200px;
  padding-inline: clamp(1rem, 5vw, 2rem);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #fff;
  padding: 0.5rem;
  z-index: 1000;
}

/* Header */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1rem 0;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  height: 40px;
}
.nav-link {
  margin-left: 1.5rem;
  font-weight: 600;
  color: #2563eb;
}


.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(7px);
  background-color: var(--blur-bg);
  box-shadow: 0 2px 6px var(--header-shadow);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
}

.nav-link {
  margin-left: 1rem;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: var(--accent);
}

.logo {
  height: 48px;
}


/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate; /* Ensures layering works */
  overflow: hidden;
  padding: 2rem 1rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/medrese.jpg'); /* Use relative or absolute URL */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  transition: transform 0.3s ease;
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
}
.hero-content {
  position: absolute;
  text-align: center;
  color: #fff;
  z-index: 10;
  bottom: 107px;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 87px;
}
.hero-content p {
  margin: 1rem 0;
  font-size: 1.25rem;
}
.btn {
  margin-top: 25px;
}
.btn {
  font-size: clamp(0.875rem, 2vw, 1rem);
  background-color: #10b981;
  color: white;
  padding: 0.75rem clamp(1rem, 5vw, 2rem);
  border-radius: 999px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #059669;
}

/* Stats */
.donation-stats {
  padding: 4rem 1rem;
  background: #e0f2fe;
  text-align: center;
}
.progress-bar-wrapper {
  height: 20px;
  background: #d1d5db;
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0;
}
.progress-bar {
  height: 100%;
  background: #3b82f6;
  width: 0%;
  transition: width 1s ease-in-out;
}
.btn-secondary {
  margin-top: 1rem;
  display: inline-block;
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.btn-secondary:hover {
  background-color: #1d4ed8;
}

/* About */
.about {
  padding: 4rem 1rem;
  background: white;
  text-align: center;
}
.image-rounded {
  margin-top: 2rem;
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  padding: 2rem 1rem;
  background: #1f2937;
  color: #d1d5db;
  text-align: center;
}



h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}
h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}
p {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.7;
}


.feedback-section {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.feedback-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feedback-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  transition: transform 0.3s;
}

.feedback-card:hover {
  transform: translateY(-8px);
}

.feedback-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feedback-card a {
  color: #007BFF;
  text-decoration: underline;
  font-weight: 600;
}



.footer {
  background-color: #111;
  color: #eee;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  width: 60px;
  margin-bottom: 1rem;
}

.footer-left h3 {
  margin: 0;
  font-size: 1.5rem;
}

.footer-middle p,
.footer-right p {
  margin: 0.5rem 0;
}

.social-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icons img {
  width: 32px;
height: 32px;
  border-radius: 0px 0px 0px 0px;
  object-position: center center;
  width: 100%;
  display: block;
  transition: transform 0.2s;
  
}
.social-icons a {
  outline: none;
  border-radius: 0px 0px 0px 0px;
  background-position: center center;
  border-color: transparent;
  border-style: solid;
  color: #ff8562;
  text-decoration: none;
  display: table-cell;
  vertical-align: middle;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  height: auto;
}
.social-icons a:hover img {
  transform: scale(1.1);
}




/* FOOTER */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 1rem;
  font-size: 0.875rem;
}
.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: start;
}
.logo {
  border-radius: 50%;
}
.footer .logo {
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
}
.footer .title {
  font-size: 1.125rem;
  font-weight: 700;
}
.footer .address {
  margin-bottom: 1rem;
  line-height: 1.5;
}
.footer .bank {
  font-family: monospace;
  margin-top: 0.5rem;
  background: #374151;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #f3f4f6;
}
.footer .socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.footer .socials a {
  color: var(--footer-text);
  transition: var(--transition);
  font-size: 1.25rem;
}
.footer .socials a:hover {
  color: var(--accent);
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 4rem 1rem;
  }
  .hero-content h1 {
    font-size: 2rem;
    
  }
  .hero-content p {
    font-size: 1rem;
  }
}

/* 1. Base: stack full-width buttons on mobile */
.donate-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-inline: auto;
  max-width: 400px; /* optional, to limit width on large screens */
}

.donate-buttons .btn-primary {
  width: 100%;
}

/* 2. Desktop: side-by-side equal-width buttons */
@media (min-width: 768px) {
  .donate-buttons {
    flex-direction: row;
    max-width: none;
  }
  .donate-buttons .btn-primary {
    width: auto;        /* let flex:1 do the sizing */
    flex: 1 1 0;        /* grow and shrink equally */
  }
}

.navbar-links a,
.footer-links a {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s ease;  
}
.navbar-links a:hover,
.footer-links a:hover {
  color: var(--accent);
}
.footer-links {
  font-size: 0.875rem;
}
.footer-links a {
  text-decoration: underline;
  color: #fff;
}

/* ---------- NAVBAR BASE ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Inner flex container */
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

/* Logo */
.logo {
  height: 48px;
  transition: transform 0.2s ease;
}
.logo-link:hover .logo,
.logo-link:focus .logo {
  transform: scale(1.05);
}

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}
.hamburger::before { top: -8px; }
.hamburger::after  { top: 8px; }

/* Menu closed */
.nav-toggle[aria-expanded="false"] .hamburger {
  transform: rotate(0);
}
.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* NAV LIST */
.nav-menu {
  position: absolute;
  inset: 0 0 auto auto;
  top: 100%;
  right: 0;
  background: rgba(255,255,255,0.95);
  width: 100%;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nav-list li {
  text-align: center;
}
.nav-link,
.nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: var(--radius);
}
.nav-link:hover,
.nav-link:focus-visible {
  background: var(--primary-dark);
  color: white;
  outline: none;
}

/* Disabled state for Google Play */
.nav-icon-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.nav-icon-link.disabled:hover {
  background: none;
  color: inherit;
}

/* Store badge images */
.store-badge {
  height: 32px;
  width: auto;
  display: block;
}

/* ---------- DESKTOP OVERRIDES ---------- */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .nav-menu {
    all: unset;
    display: block;
    width: auto;
    background: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: row;
    gap: clamp(1rem, 2vw, 2rem);
    padding: 0;
  }
  .nav-link,
  .nav-icon-link {
    padding: 0.5rem 0;
  }
}

#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

#toast.show {
  opacity: 1;
  pointer-events: auto;
}


/* Layout container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section padding */
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.bg-white {
  background-color: #fff;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

/* Titles */
.text-center {
  text-align: center;
}
.text-3xl {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.3;
}
.font-bold {
  font-weight: 700;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}

/* Paragraph */
.text-lg {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  line-height: 1.7;
}

/* Grid layout for cards */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-cols-1 {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Feedback card styles */
.feedback-card {
  background-color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feedback-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.feedback-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--primary, #7b1e3a);
}
.feedback-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text, #333);
}

/* Button styles */
.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-align: center;
  transition: background-color 0.3s ease;
}
.btn-accent {
  background-color: var(--accent, #d4af37);
  color: white;
}
.btn-accent:hover {
  background-color: #c18d0b;
}

.mt-4 {
  margin-top: 1rem;
}
