/* ==========================================================================
   Responsive — Multi-breakpoint, matching Yutmaru/Alone template behavior
   ========================================================================== */

/* ---- Large Desktop ≥ 1600px ---- */
@media (min-width: 1600px) {
  .container-wide {
    padding: 0 40px;
  }
}

/* ---- Desktop ≤ 1366px ---- */
@media (max-width: 1366px) {
  .container {
    max-width: 1100px;
  }

  .footer__inner {
    gap: 24px;
  }

  .header__nav ul {
    gap: 24px;
  }
}

/* ---- Small Desktop ≤ 1200px ---- */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .container-wide {
    padding: 0 30px;
  }

  .header__nav ul {
    gap: 18px;
  }

  .header__nav a {
    font-size: 16px;
  }

  .hero-slide__content {
    padding: 15px 60px 200px 60px;
  }

  .services-grid {
    gap: 20px;
  }

  .icon-box {
    padding: 30px;
  }

  .footer__inner {
    grid-template-columns: 42% 30% 26%;
  }
}


/* ---- Tablet ≤ 1024px ---- */
@media (max-width: 1024px) {

  :root {
    --section-py: 45px;
    --card-padding: 30px;
  }

  .container {
    max-width: 780px;
    padding: 0 20px;
  }

  .container-wide {
    padding: 0 20px;
  }

  /* ---- Header ---- */
  .header__nav {
    display: none;
  }

  .btn-menu {
    display: inline-flex;
    align-items: center;
  }

  .header__logo {
    flex: 0 0 auto;
    max-width: none;
  }

  .header__actions {
    flex: 0 0 auto;
    max-width: none;
    gap: 10px;
  }

  .lang-toggle {
    padding: 3px;
  }

  .lang-btn {
    font-size: 13px;
    padding: 5px 10px;
  }

  .header__logo a {
    font-size: 24px;
  }

  /* ---- Hero Slider ---- */
  .hero-slider {
    height: var(--slider-height-tablet);
  }

  .hero-slide__content {
    padding: 15px 40px 180px 40px;
    max-width: 650px;
  }

  .hero-slide__tag {
    font-size: 18px;
  }

  .hero-slide__title {
    font-size: 42px;
  }

  .hero-slider .swiper-button-prev,
  .hero-slider .swiper-button-next {
    width: 48px;
    height: 48px;
  }

  .hero-slider .swiper-button-prev::after,
  .hero-slider .swiper-button-next::after {
    font-size: 16px;
  }

  /* ---- Donation Form ---- */
  .donation-section {
    margin-top: -100px;
  }

  .donation-form-wrap {
    padding: 36px 30px;
  }

  .donation-form-wrap__title {
    font-size: 30px;
  }

  /* ---- About ---- */
  .about-section .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about__counter {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 20px;
  }

  .about__image-wrap {
    max-width: 560px;
  }

  .section-title {
    font-size: 42px;
  }

  /* ---- Services Grid ---- */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .icon-box {
    padding: 28px;
  }

  .icon-box__icon i {
    font-size: 40px;
  }

  .icon-box__title {
    font-size: 20px;
  }

  .icon-box__text {
    font-size: 16px;
  }

  /* ---- Causes ---- */
  .causes-header {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 36px;
  }

  .cause-card__title {
    font-size: 24px;
  }

  /* ---- Impact ---- */
  .impact-section .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .impact__charts {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .impact__gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* ---- FAQ ---- */
  .faq-section .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .faq__image {
    order: -1;
    max-height: 380px;
  }

  .accordion__title {
    font-size: 18px;
  }

  /* ---- Blog ---- */
  .blog-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 36px;
  }

  .blog-card__title {
    font-size: 22px;
  }

  .blog-card__excerpt {
    font-size: 15px;
  }

  /* ---- Team ---- */
  .team-card__name {
    font-size: 24px;
  }

  .team-card__role {
    font-size: 16px;
  }

  /* ---- Footer ---- */
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer__col:first-child {
    grid-column: span 2;
  }

  .footer__main-heading {
    font-size: 36px;
  }

  .footer__gallery-item {
    border-radius: 20px;
  }

  /* ---- CTA ---- */
  .cta-section .section-title {
    font-size: 36px;
  }
}


/* ---- Large Mobile / Small Tablet ≤ 767px ---- */
@media (max-width: 767px) {

  :root {
    --section-py: 36px;
    --card-padding: 24px;
    --site-top-offset: 85px;
  }

  body {
    font-size: 16px;
    line-height: 1.6;
  }

  /* ---- Top Bar ---- */
  .top-bar {
    padding: 8px 0;
  }

  .top-bar__tagline {
    display: none;
  }

  .top-bar__contact {
    display: flex;
    gap: 16px;
    font-size: 13px;
  }

  .top-bar .container-wide {
    justify-content: center;
    text-align: center;
  }

  .top-bar__social {
    display: none;
  }

  /* ---- Header ---- */
  .site-header .container-wide {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .header__logo a {
    font-size: 20px;
    gap: 8px;
  }

  .header__logo .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .btn-menu {
    font-size: 14px;
    padding: 6px 14px;
  }

  .btn-donate {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-circle);
    justify-content: center;
    font-size: 0;
    gap: 0;
  }

  .btn-donate .heart-icon {
    font-size: 16px;
    display: inline-flex;
  }

  /* ---- Hero Slider ---- */
  .hero-slider {
    height: var(--slider-height-mobile);
  }

  .hero-slide__content {
    padding: 15px 15px 140px 15px;
    max-width: 100%;
  }

  .hero-slide__tag {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .hero-slide__title {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .hero-slide__btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  .hero-slider .swiper-button-prev,
  .hero-slider .swiper-button-next {
    display: none;
  }

  .hero-slider .swiper-pagination {
    bottom: 20px;
  }

  /* ---- Donation Form ---- */
  .donation-section {
    margin-top: -70px;
  }

  .donation-form-wrap {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .donation-form-wrap__title {
    font-size: 26px;
    margin-bottom: 6px;
  }

  .donation-form-wrap__subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .donation-levels {
    gap: 8px;
  }

  .donation-level {
    padding: 10px 18px;
    font-size: 15px;
  }

  .donation-custom {
    flex-direction: column;
    gap: 10px;
  }

  .donation-custom input {
    width: 100%;
  }

  .donation-submit {
    width: 100%;
    justify-content: center;
  }

  /* ---- Section Tags & Titles ---- */
  .section-tag {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .section-title {
    font-size: 30px;
    margin-bottom: 18px;
  }

  /* ---- About ---- */
  .about-section .container {
    gap: 28px;
  }

  .about__image-wrap {
    max-width: 100%;
  }

  .about__text {
    font-size: 16px;
  }

  .about__feature-item {
    font-size: 15px;
  }

  .about__content .btn {
    width: 100%;
    justify-content: center;
  }

  /* ---- Services ---- */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services-section .section-header {
    margin-bottom: 30px;
  }

  .icon-box {
    padding: 24px;
  }

  .icon-box__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
  }

  .icon-box__icon i {
    font-size: 36px;
  }

  .icon-box__title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .icon-box__text {
    font-size: 15px;
    line-height: 1.6;
  }

  /* ---- Causes ---- */
  .causes-header {
    margin-bottom: 28px;
  }

  .causes-header__desc {
    font-size: 15px;
  }

  .cause-card__body {
    padding: 20px 24px 24px;
  }

  .cause-card__title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .cause-card__meta {
    font-size: 14px;
  }

  /* ---- Donations ---- */
  .donations-section .section-header {
    margin-bottom: 30px;
  }

  .donation-card__body {
    padding: 22px 24px;
  }

  .donation-card__title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .progress-stats {
    font-size: 14px;
  }

  .donation-card .btn--small {
    width: 100%;
    justify-content: center;
  }

  /* ---- Impact ---- */
  .impact__gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .impact__gallery-item {
    border-radius: 20px;
  }

  .impact__gallery-item:first-child {
    grid-row: span 1;
  }

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

  .circle-chart__svg {
    width: 120px;
    height: 120px;
  }

  .circle-chart__value {
    font-size: 24px;
  }

  .circle-chart__label {
    font-size: 13px;
  }

  .impact__big-stat .number {
    font-size: 48px;
  }

  .impact__big-stat .label {
    font-size: 15px;
  }

  /* ---- Team ---- */
  .team-section .section-header {
    margin-bottom: 30px;
  }

  .team-card__image {
    border-radius: 24px;
    margin-bottom: 14px;
  }

  .team-card__name {
    font-size: 22px;
  }

  .team-card__role {
    font-size: 15px;
  }

  /* ---- FAQ ---- */
  .faq-section .container {
    gap: 28px;
  }

  .faq__image {
    max-height: 300px;
    border-radius: 24px;
  }

  .faq__image img {
    border-radius: 24px;
  }

  .accordion__header {
    padding: 18px 0;
  }

  .accordion__title {
    font-size: 16px;
  }

  .accordion__content {
    font-size: 15px;
    padding-bottom: 18px;
  }

  /* ---- Blog ---- */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-filter__btn {
    padding: 6px 16px;
    font-size: 14px;
  }

  .blog-card__body {
    padding: 20px 24px;
  }

  .blog-card__meta {
    font-size: 13px;
  }

  .blog-card__title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .blog-card__excerpt {
    font-size: 14px;
    margin-bottom: 14px;
  }

  /* ---- CTA ---- */
  .cta-section .section-title {
    font-size: 28px;
  }

  .cta-section .cta-text {
    font-size: 15px;
  }

  .cta-section .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-section .cta-actions .btn {
    justify-content: center;
  }

  /* ---- Footer ---- */
  .site-footer {
    padding-top: 40px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__col:first-child {
    grid-column: span 1;
  }

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

  .footer__main-heading {
    font-size: 30px;
    margin-bottom: 24px;
  }

  .footer__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .footer__links a {
    font-size: 16px;
  }

  .footer__description {
    font-size: 14px;
  }

  .footer__contact-info {
    font-size: 14px;
  }

  .footer__widget-title {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .footer__post-title {
    font-size: 16px;
  }

  .footer__post-thumb {
    width: 80px;
    height: 65px;
  }

  .footer__gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .footer__gallery-item {
    border-radius: 16px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding: 18px 20px;
    border-radius: 24px 24px 0 0;
  }

  .footer__bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer__bottom-links a {
    font-size: 14px;
  }

  .footer__copyright {
    font-size: 13px;
  }

  /* ---- General Button Mobile ---- */
  .btn {
    padding: 12px 28px;
    font-size: 16px;
  }

  .btn--small {
    padding: 10px 22px;
    font-size: 15px;
  }

  /* ---- Swiper Mobile Overrides ---- */
  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .hero-slider .swiper-pagination-bullet-active {
    width: 24px;
  }

  /* ---- Mobile Nav Overlay ---- */
  .mobile-nav-overlay a {
    font-size: 24px;
  }

  .mobile-nav-overlay ul {
    gap: 20px;
  }

  /* ---- Reveal / Animation — reduce motion on mobile ---- */
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    transform: translateY(20px);
  }

  .reveal-left {
    transform: translateX(-20px);
  }

  .reveal-right {
    transform: translateX(20px);
  }
}


/* ---- Small Mobile ≤ 480px ---- */
@media (max-width: 480px) {

  :root {
    --site-top-offset: 78px;
  }

  .container {
    padding: 0 16px;
  }

  .container-wide {
    padding: 0 16px;
  }

  /* Hero */
  .hero-slider {
    height: 420px;
  }

  .hero-slide__content {
    padding: 10px 16px 100px 16px;
  }

  .hero-slide__tag {
    font-size: 14px;
  }

  .hero-slide__title {
    font-size: 26px;
    line-height: 1.15;
  }

  .hero-slide__btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Donation */
  .donation-section {
    margin-top: -60px;
  }

  .donation-form-wrap {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .donation-form-wrap__title {
    font-size: 22px;
  }

  .donation-level {
    padding: 8px 14px;
    font-size: 14px;
  }

  /* Titles */
  .section-title {
    font-size: 26px;
  }

  .section-tag {
    font-size: 14px;
  }

  .section-tag::before {
    width: 24px;
    height: 4px;
  }

  /* About counter */
  .counter-badge {
    min-width: 130px;
    min-height: 130px;
    padding: 20px 24px;
  }

  .counter-badge__number {
    font-size: 42px;
  }

  .counter-badge__label {
    font-size: 13px;
  }

  /* Impact charts */
  .impact__charts {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .circle-chart__svg {
    width: 100px;
    height: 100px;
  }

  .circle-chart__value {
    font-size: 20px;
  }

  .circle-chart__label {
    font-size: 12px;
  }

  .impact__big-stat .number {
    font-size: 40px;
  }

  /* Services */
  .icon-box {
    padding: 20px;
  }

  .icon-box__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }

  .icon-box__icon i {
    font-size: 30px;
  }

  .icon-box__title {
    font-size: 17px;
  }

  .icon-box__text {
    font-size: 14px;
  }

  /* Cards */
  .cause-card__body {
    padding: 18px 20px 20px;
  }

  .cause-card__title {
    font-size: 20px;
  }

  .donation-card__body {
    padding: 18px 20px;
  }

  .donation-card__title {
    font-size: 18px;
  }

  .blog-card__body {
    padding: 18px 20px;
  }

  .blog-card__title {
    font-size: 18px;
  }

  /* Accordion */
  .accordion__header {
    padding: 15px 0;
  }

  .accordion__title {
    font-size: 15px;
  }

  .accordion__content {
    font-size: 14px;
  }

  /* Team */
  .team-card__name {
    font-size: 20px;
  }

  .team-card__role {
    font-size: 14px;
  }

  .team-card__image {
    border-radius: 20px;
  }

  /* Footer */
  .footer__main-heading {
    font-size: 26px;
  }

  .footer__gallery {
    gap: 5px;
  }

  .footer__gallery-item {
    border-radius: 12px;
  }

  .footer__bottom {
    padding: 16px;
    border-radius: 20px 20px 0 0;
  }

  /* CTA */
  .cta-section .section-title {
    font-size: 24px;
  }

  .cta-section .cta-text {
    font-size: 14px;
  }

  /* General */
  .btn {
    padding: 11px 24px;
    font-size: 15px;
  }

  .header__logo a {
    font-size: 18px;
  }

  .header__logo .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .btn-donate {
    width: 34px;
    height: 34px;
  }

  .btn-donate .heart-icon {
    font-size: 14px;
  }

  .btn-menu {
    font-size: 13px;
    padding: 5px 12px;
  }

  .lang-btn {
    font-size: 12px;
    padding: 4px 8px;
  }
}


/* ---- Extra Small ≤ 375px ---- */
@media (max-width: 375px) {

  .hero-slider {
    height: 380px;
  }

  .hero-slide__title {
    font-size: 22px;
  }

  .hero-slide__tag {
    font-size: 13px;
  }

  .section-title {
    font-size: 24px;
  }

  .donation-form-wrap__title {
    font-size: 20px;
  }

  .donation-level {
    padding: 8px 12px;
    font-size: 13px;
  }

  .footer__main-heading {
    font-size: 22px;
  }

  .header__logo a {
    font-size: 17px;
  }
}


/* ---- Reduced Motion Preference ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-slide__bg {
    animation: none !important;
  }

  .parallax-img {
    transform: none !important;
  }
}


/* ---- High Contrast Preference ---- */
@media (prefers-contrast: high) {
  :root {
    --color-muted: #666666;
    --color-border: #999999;
  }

  .icon-box {
    border-width: 3px;
  }
}
