/* ==========================================
   HUIS TALJE - RESPONSIVE STYLES
   Built to work with:
   - styles.css
   - buttons.css
   - get-involved.css
   - inside.css
   - projects.css
   ========================================== */

/* ==========================================
   GLOBAL RESPONSIVE SAFETY
   ========================================== */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
a {
    min-height: 44px;
}

.btn {
    white-space: nowrap;
}

.carousel-controls,
.team-carousel-wrapper,
.budget-accordion-container,
.wishlist-carousel-track,
.team-carousel,
.stories-grid,
.puzzle-grid,
.story-cards {
    max-width: 100%;
}

.schedule-card,
.story-card,
.support-option-card,
.donation-main-card,
.event-card,
.bank-detail,
.info-list-item,
.wishlist-item,
.profile-card-container {
    max-width: 100%;
}

/* ==========================================
   XL SCREENS
   ========================================== */
@media (min-width: 1400px) {
    .header-content,
    .footer-content,
    .home-events-container,
    .support-options-grid,
    .donation-layout,
    .hero-content-wrapper,
    .team-carousel-wrapper,
    .carousel-controls {
        max-width: 1280px;
    }

    .hero-text {
        font-size: 50px;
    }

    .section-title {
        font-size: 58px;
    }

    .section-title-left {
        font-size: 42px;
    }

    .accordion-card.active {
        width: 560px;
        min-height: 280px;
    }

    .puzzle-img {
        width: 270px;
    }

    .projects-hero-title {
        font-size: 60px;
    }

    .stories-grid {
        gap: 70px 55px;
    }
}

/* ==========================================
   LARGE DESKTOP / SMALL LAPTOP
   ========================================== */
@media (max-width: 1200px) {
    .header-content,
    .footer-content,
    .home-events-container,
    .support-options-grid,
    .donation-layout,
    .hero-content-wrapper,
    .team-carousel-wrapper,
    .carousel-controls {
        max-width: 100%;
    }

    /* Home */
    .home-events-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .home-events-intro p {
        max-width: 100%;
    }

    .story-cards {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .accordion-card.active {
        width: min(100%, 520px);
        height: auto;
        min-height: 250px;
    }

    .puzzle-row {
        gap: 28px;
    }

    .puzzle-img {
        width: 220px;
    }

    /* Get involved */
    .support-options-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .bank-details-grid {
        grid-template-columns: 1fr;
    }

    .budget-accordion-item.active {
        width: 400px;
    }

    .wishlist-item {
        min-width: calc((100% - 40px) / 3);
    }

    /* Inside */
    .day-program-section,
    .night-program-section {
        gap: 50px;
    }

    .program-icon {
        width: 210px;
    }

    .team-carousel {
        gap: 20px;
    }

    /* Projects */
    .projects-hero-title {
        font-size: 46px;
    }

    .puzzle-card {
        width: 340px;
        height: 304px;
    }

    .stories-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 40px 30px;
        padding: 0 20px;
    }

    .stories-grid .story-card:nth-child(1),
    .stories-grid .story-card:nth-child(2),
    .stories-grid .story-card:nth-child(3),
    .stories-grid .story-card:nth-child(4) {
        width: 100%;
        justify-self: stretch;
    }
}

/* ==========================================
   TABLET
   ========================================== */
@media (max-width: 992px) {
    /* Typography */
    h1,
    .hero-text,
    .projects-hero-title,
    .inside-hero h1,
    .get-involved-hero h1 {
        font-size: 38px;
        line-height: 1.3;
    }

    h2,
    .section-title,
    .section-title-center {
        font-size: 38px;
    }

    .section-title-left {
        font-size: 30px;
        margin-left: 0;
        text-align: center;
    }

    h3 {
        font-size: 22px;
    }

    p,
    .projects-hero-text,
    .success-intro,
    .team-subtitle,
    .be-part-section > p,
    .support-option-card > p,
    .home-events-intro p,
    .donation-card-header p,
    .inside-hero > p,
    .get-involved-hero > p {
        font-size: 15px;
    }

    /* Header */
    .header-content {
        padding: 0 16px;
    }

    nav ul {
        gap: 16px;
        padding-bottom: 12px;
    }

    nav a {
        font-size: 15px;
    }

    .logo-image {
        width: 60px;
    }

    .dropdown-menu {
        min-width: 220px;
    }

    /* Home */
    .hero {
        padding: 30px 16px;
    }

    .hero-subtext {
        font-size: 16px;
    }

    .our-story {
        padding: 60px 16px 30px;
    }

    .accordion-card {
        width: 105px;
        height: 220px;
    }

    .accordion-card.active {
        width: min(100%, 560px);
        padding: 18px;
    }

    .card-content {
        max-height: 185px;
    }

    .what-we-do {
        padding: 20px 16px 70px;
    }

    .puzzle-img {
        width: 200px;
    }

    .puzzle-description {
        font-size: 16px;
        max-width: 650px;
    }

    .event-title {
        font-size: 24px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }

    .newsletter {
        max-width: 100%;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* Get involved */
    .get-involved-hero {
        padding: 50px 16px 0;
    }

    .support-options-section,
    .budget-section,
    .wishlist-section,
    .donation-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .support-option-card {
        padding: 26px 22px;
    }

    .support-option-card h2 {
        font-size: 36px;
    }

    .budget-accordion-container {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .wishlist-item {
        min-width: 220px;
    }

    .donation-main-card {
        padding: 24px;
    }

    /* Inside */
    .day-program-section,
    .night-program-section {
        flex-direction: column;
        gap: 35px;
        padding: 40px 16px;
    }

    .night-program-section {
        flex-direction: column;
    }

    .program-content {
        max-width: 100%;
    }

    .program-icon {
        width: 180px;
    }

    .day-program-section h2,
    .night-program-section h2,
    .meet-team-section h2,
    .be-part-section h2 {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .schedule-card {
        max-width: 100%;
    }

    .team-carousel-wrapper {
        gap: 16px;
    }

    .profile-card-container {
        width: 220px;
        height: 260px;
    }

    /* Projects */
    .projects-hero {
        min-height: auto;
        background-size: cover;
        background-position: center right;
    }

    .hero-content-wrapper {
        padding: 40px 16px 26px;
    }

    .section-title-center {
        font-size: 30px;
    }

    .puzzle-grid {
        gap: 28px;
    }

    .stories-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        max-width: 700px;
        gap: 55px;
    }

    .success-header {
        max-width: 100%;
        padding: 0 16px;
        margin-bottom: 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .success-header h2,
    .success-intro {
        margin-left: 0;
        max-width: 100%;
    }

    .success-stories {
        padding: 160px 16px 80px;
    }

    .longline-bg {
        top: -40px;
    }

    .doodles-bg {
        height: 700px;
        bottom: -120px;
    }
}

/* ==========================================
   MOBILE
   ========================================== */
@media (max-width: 768px) {
    /* Typography */
    h1,
    .hero-text,
    .projects-hero-title,
    .inside-hero h1,
    .get-involved-hero h1 {
        font-size: 30px;
    }

    h2,
    .section-title,
    .section-title-center {
        font-size: 32px;
    }

    .section-title-left {
        font-size: 26px;
        text-align: center;
        margin-left: 0;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
        line-height: 1.7;
    }

    section {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Buttons */
    .btn {
        min-width: 124px;
        max-width: 100%;
        padding: 11px 24px;
        font-size: 14px;
    }

    /* Header */
    header {
        padding-top: 10px;
    }

    .logo {
        margin-bottom: 10px;
    }

    .nav-divider {
        margin: 10px auto;
    }

    nav ul {
        gap: 12px 14px;
        justify-content: center;
        padding-bottom: 10px;
    }

    nav a {
        font-size: 14px;
        padding: 8px 0;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        left: auto;
        transform: none;
        width: 100%;
        min-width: 100%;
        margin-top: 8px;
        border-radius: 14px;
    }

    .dropdown-menu a {
        justify-content: flex-start;
        text-align: left;
        min-height: 44px;
    }

    /* Back to top */
    .back-to-top {
        width: 84px;
        right: 14px;
        top: 100px;
    }

    /* Home */
    .hero {
        padding: 24px 14px;
    }

    .clothesline {
        margin-bottom: 30px;
    }

    .hero-subtext {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .our-story {
        padding: 48px 14px 24px;
    }

    .section-title {
        margin-bottom: 34px;
    }

    .story-cards {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .accordion-card {
        width: 95px;
        height: 190px;
        border-radius: 12px;
    }

    .card-title {
        font-size: 15px;
    }

    .accordion-card.active {
        width: 100%;
        max-width: 100%;
        min-height: 240px;
        height: auto;
        padding: 16px;
    }

    .accordion-card.active .card-title {
        font-size: 18px;
    }

    .card-icon {
        width: 26px;
        height: 26px;
    }

    .card-content {
        font-size: 13px;
        max-height: 180px;
    }

    .doodle-background {
        top: 120px;
    }

    .home-events-section {
        padding: 36px 14px 56px;
    }

    .home-events-container {
        gap: 24px;
    }

    .home-events-intro {
        padding-top: 0;
        text-align: center;
    }

    .home-events-intro p {
        max-width: 100%;
    }

    .home-events-list {
        gap: 18px;
    }

    .event-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .event-title {
        font-size: 21px;
        margin-bottom: 14px;
    }

    .event-detail {
        font-size: 14px;
        gap: 8px;
    }

    .event-badge1 {
        right: 16px;
        top: -12px;
        font-size: 12px;
        padding: 5px 12px;
    }

    .events-manager {
        margin-top: 24px;
    }

    .event-form-actions {
        flex-direction: column;
    }

    .event-form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .what-we-do {
        padding: 16px 14px 56px;
    }

    .puzzle-row {
        width: 100%;
        gap: 18px;
    }

    .puzzle-img {
        width: 170px;
    }

    .puzzle-description {
        font-size: 15px;
        margin: 22px auto 22px;
    }

    /* Get involved */
    .get-involved-hero {
        padding: 40px 14px 0;
    }

    .get-involved-hero > p {
        font-size: 14px;
    }

    .option-buttons {
        flex-direction: column;
        align-items: center;
    }

    .option-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .support-options-section {
        padding: 50px 14px;
    }

    .support-options-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .support-option-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .support-option-card h2 {
        font-size: 30px;
        margin-bottom: 14px;
    }

    .support-option-card > p {
        margin-bottom: 20px;
    }

    .info-list {
        gap: 14px;
    }

    .info-list-item {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .info-list-item h3 {
        font-size: 18px;
    }

    .support-option-actions {
        flex-direction: column;
    }

    .support-option-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .budget-section {
        padding: 56px 14px;
    }

    .budget-section h2 {
        font-size: 34px;
        margin-bottom: 28px;
    }

    .pink-line-decoration {
        top: -20px;
    }

    .budget-accordion-item {
        width: 90px;
        height: 200px;
    }

    .budget-year-label {
        font-size: 18px;
    }

    .budget-accordion-item.active {
        width: 320px;
        padding: 18px;
    }

    .budget-accordion-item.active .budget-year-label {
        font-size: 20px;
    }

    .budget-breakdown {
        font-size: 13px;
        max-height: 150px;
    }

    .wishlist-section {
        padding: 64px 14px 14px;
    }

    .wishlist-section h2 {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .carousel-controls {
        gap: 10px;
        overflow: hidden;
    }

    .carousel-nav-btn {
        width: 42px;
        height: 42px;
    }

    .wishlist-item {
        min-width: 180px;
        padding: 22px 14px;
        border-radius: 18px;
    }

    .wishlist-item h3 {
        font-size: 16px;
    }

    .wishlist-item p {
        font-size: 13px;
    }

    .wishlist-item-icon {
        width: 68px;
        height: 68px;
    }

    .donation-section {
        padding: 60px 14px;
    }

    .donation-section h2 {
        font-size: 32px;
    }

    .donation-subtitle {
        margin-bottom: 28px;
    }

    .donation-main-card {
        padding: 20px 16px;
        border-radius: 22px;
    }

    .donation-card-header h3,
    .donation-help-inline h3 {
        font-size: 24px;
    }

    .bank-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bank-detail {
        padding: 14px;
        border-radius: 16px;
    }

    .bank-label {
        font-size: 12px;
    }

    .bank-value {
        font-size: 14px;
        word-break: break-word;
    }

    .donation-help-inline {
        margin-top: 24px;
        padding-top: 20px;
    }

    .donation-help-list {
        gap: 10px;
    }

    .donation-help-list li {
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 14px;
    }

    /* Inside */
    .inside-hero {
        padding: 40px 14px 0;
    }

    .inside-hero > p {
        margin-bottom: 34px;
    }

    .hero-illustration {
        margin: 24px 0 0;
    }

    .hero-image {
        width: 100%;
    }

    .day-program-section,
    .night-program-section,
    .meet-team-section,
    .be-part-section {
        padding: 40px 14px;
    }

    .day-program-section h2,
    .night-program-section h2,
    .meet-team-section h2,
    .be-part-section h2 {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .program-icon {
        width: 150px;
    }

    .schedule-header,
    .schedule-row {
        grid-template-columns: 120px 1fr;
    }

    .schedule-header {
        padding: 14px 16px;
    }

    .schedule-body {
        padding: 14px 16px;
    }

    .schedule-column-title {
        font-size: 16px;
    }

    .time-slot .start-time {
        font-size: 16px;
    }

    .time-slot .end-time {
        font-size: 14px;
    }

    .task-description .task-title {
        font-size: 12px;
    }

    .task-description .task-detail {
        font-size: 11px;
    }

    .short-wave {
        width: 60%;
        margin-top: -40px;
    }

    .long-wave {
        margin-top: -120px;
    }

    .team-carousel {
        gap: 16px;
    }

    .profile-card-container {
        width: 200px;
        height: 240px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .action-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Projects */
    .projects-hero {
        min-height: 380px;
        background-position: center right;
        background-size: cover;
    }

    .hero-content-wrapper {
        padding: 34px 14px 24px;
    }

    .projects-hero-text {
        font-size: 14px;
        max-width: 100%;
    }

    .section-title-center,
    .projects .section-title-left {
        font-size: 26px;
        padding: 0 12px;
    }

    .current-projects,
    .past-projects {
        padding: 40px 14px;
    }

    .puzzle-grid {
        gap: 20px;
    }

    .puzzle-card {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 400 / 357;
    }

    .success-stories {
        padding: 100px 14px 50px;
    }

    .success-header {
        padding: 0 14px;
        margin-bottom: 30px;
    }

    .success-intro {
        font-size: 14px;
    }

    .stories-grid {
        padding: 0 14px;
        gap: 40px;
    }

    .story-card {
        min-height: auto;
        padding: 28px 20px;
        border-radius: 20px;
    }

    .story-card h3 {
        font-size: 20px;
        margin-top: 40px;
    }

    .story-card p {
        font-size: 14px;
    }

    .story-icon {
        width: 58px;
        height: 58px;
    }

    .longline-bg {
        top: 0;
    }

    .doodles-bg {
        width: 100%;
        height: 520px;
        left: 0;
        bottom: -80px;
    }

    /* Footer */
    .footer-main {
        padding: 40px 14px 18px;
    }

    .footer-content {
        gap: 24px;
    }

    .footer-section {
        width: 100%;
        text-align: center;
    }

    .footer-logo-img {
        height: 110px;
        width: auto;
    }

    .newsletter-form {
        width: 100%;
    }

    .newsletter input {
        font-size: 13px;
    }

    .social-icons {
        justify-content: center;
        gap: 12px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================
   SMALL MOBILE
   ========================================== */
@media (max-width: 480px) {
    h1,
    .hero-text,
    .projects-hero-title,
    .inside-hero h1,
    .get-involved-hero h1 {
        font-size: 26px;
    }

    h2,
    .section-title,
    .section-title-center {
        font-size: 28px;
    }

    .section-title-left {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 13px;
    }

    /* Buttons */
    .btn {
        width: 100%;
        max-width: 280px;
        min-width: 0;
        padding: 11px 20px;
        font-size: 14px;
    }

    /* Header */
    .logo-image {
        width: 48px;
    }

    nav ul {
        flex-direction: column;
        gap: 6px;
    }

    nav a {
        font-size: 15px;
        padding: 8px;
    }

    .dropdown-menu {
        border-radius: 12px;
    }

    .dropdown-menu a {
        padding: 10px 14px;
        font-size: 14px;
    }

    /* Home */
    .hero {
        padding: 18px 12px;
    }

    .hero-subtext {
        font-size: 13px;
    }

    .our-story {
        padding: 40px 12px 20px;
    }

    .story-cards {
        gap: 10px;
    }

    .accordion-card {
        width: 82px;
        height: 160px;
    }

    .accordion-card.active {
        min-height: 220px;
        padding: 14px;
    }

    .card-title {
        font-size: 14px;
    }

    .accordion-card.active .card-title {
        font-size: 17px;
    }

    .card-content {
        font-size: 12px;
        max-height: 160px;
    }

    .puzzle-img {
        width: 145px;
    }

    .puzzle-description {
        font-size: 14px;
    }

    .event-card {
        padding: 18px 14px;
    }

    .event-title {
        font-size: 19px;
    }

    .event-detail {
        font-size: 13px;
    }

    /* Get involved */
    .support-option-card h2,
    .budget-section h2,
    .wishlist-section h2,
    .donation-section h2 {
        font-size: 28px;
    }

    .support-option-card,
    .donation-main-card {
        padding: 18px 14px;
    }

    .info-list-item {
        padding: 16px 14px;
    }

    .budget-accordion-item {
        width: 82px;
        height: 180px;
    }

    .budget-accordion-item.active {
        width: 280px;
        padding: 16px;
    }

    .wishlist-item {
        min-width: 160px;
        padding: 18px 12px;
    }

    .bank-value {
        font-size: 13px;
    }

    .donation-help-list li {
        font-size: 12px;
    }

    /* Inside */
    .schedule-header,
    .schedule-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .time-slot,
    .task-description {
        text-align: center;
    }

    .profile-card-container {
        width: 180px;
        height: 220px;
    }

    /* Projects */
    .projects-hero {
        min-height: 320px;
    }

    .puzzle-card {
        max-width: 260px;
    }

    .story-card {
        padding: 24px 18px;
    }

    .story-card h3 {
        font-size: 18px;
    }

    .story-card p {
        font-size: 13px;
    }

    /* Footer */
    .footer-main {
        padding: 32px 12px 16px;
    }

    .footer-logo-img {
        height: 90px;
    }

    .social-icon {
        width: 34px;
        height: 34px;
    }
}

/* ==========================================
   PRINT
   ========================================== */
@media print {
    header,
    footer,
    .btn,
    nav,
    .back-to-top,
    .dropdown-menu,
    .carousel-nav-btn {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .accordion-card,
    .event-card,
    .support-option-card,
    .bank-detail,
    .wishlist-item,
    .budget-accordion-item,
    .story-card,
    .schedule-card,
    .profile-card-container {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    a {
        text-decoration: underline;
        color: black !important;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .btn:hover,
    .accordion-card:hover,
    .wishlist-item:hover,
    .event-card:hover,
    .story-card:hover,
    .social-icon:hover,
    .carousel-nav-btn:hover,
    .puzzle-btn:hover .puzzle-img {
        transform: none !important;
    }
}