
body {
    margin: 0;
    min-height: 100vh;
background: linear-gradient(135deg, lightyellow 0%, rgb(252, 200, 104) 30%, rgb(248, 195, 175) 40%, rgb(255, 127, 57) 100%);
    background-size: 400% 400%;
    animation: gradientMove 20s ease infinite;
    font-family: "Inter", Arial, sans-serif;
}

@keyframes gradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.aboutbody {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-warp:wrap;
    gap: 30px;
    padding: 0 15px;
}
.aboutintro h2{
    display:flex;
    justify-content:center;
    color:black;
    border-bottom:2px solid orangered;
    width:fit-content;
    margin:0 auto;
}

.aboutintro p{
    font-size:1.2rem;
    display:flex;
    color:rgb(8, 1, 1);
    justify-content:center;
    padding-left: 70px;
    padding-right: 70px;
}
.mission {
    display: flex;
    flex-direction: column;     /* stack heading above paragraph */
    justify-content: center;    /* vertical centering inside the card */
    background-color: brown;
    color:white;
    width: 100%;
    max-width:400px;
    min-height: 200px;
    padding: 10px;
    border-radius: 12px;
    font-size: 1.2rem;
}

.mission h2 
{
    margin: 0 auto;
    width:fit-content;
    color:white;
    border-bottom:2px dotted orangered;
}
@media (max-width: 768px) {
    .mission h2{
        text-align:center;
    }
}
.mission p
 {
    text-align: center;
    margin: 0;
}

.impact{
    display:flex;
    flex-direction: column;
    align-items:stretch;
    background-color:brown;
    color:white;
    width: 55%;
    min-height: 40px;
    margin:30px auto;
    border-radius:12px;
    padding:30px;
}

.impact h2{
    text-align: center;
     margin: 0 0 15px;
     border-bottom:2px dotted orangered;
     border-bottom: none;                       /* remove the box-wide border */
    text-decoration: underline dotted orangered;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;                /* gap between text and underline */
}

.impact p{
    text-align: left;
     margin: 0 0 20px;
     font-size:1.2rem;
}

.impactdonate{
    display:flex;
    justify-content: center;
}

.impactdonate button {
  width: 150px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius:10px;
  background-color:orangered;
  color:black;
  transition: background-color 0.2s;
  border:brown;
}
.impactdonate button:hover{
  background-color:green;
  color:white;
}
.impactdonate button:active{
  background-color:white;
  color:green;
  border:1px solid green;
}

footer{
    background-color:brown;
    color:lightgoldenrodyellow;
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    flex-direction: row; 
    padding:10px;
    align-items: flex-start;
    gap:10px; 
    height:auto; 
    font-size:1.1rem; 
}


    footer .address {
        grid-column: 1 / -1;      /* full width on top */
        text-align: center;
    }

footer .social-media-icons{
    padding-left: 10px;
}

footer .quick-links{
    padding-left:10px;
    color:white;
}
footer a {
    text-decoration: none;
}
footer .quick-links li {
    list-style: none;
    color:white;
}
footer .quick-links ul li a{
    list-style: none;
    color:lightsalmon;
} 
footer .quick-links ul li a:hover{
    list-style: none;
    color:white;
}

footer .form-container{
    display: flex;
    flex-direction:column;
    width:15%; 
    border:2px solid orangered;
    background-color:lightgoldenrodyellow;
    color:black;
    border-radius:12px;
    padding:2px;
    margin: 0;                    /* cancels the centering margin from the earlier form rule */
    max-width: 220px;              /* lets it fill its column */
}

footer .form-container .title {
  text-align: center;
  margin: 0 0 8px;
}

footer .form-container .title h3 {
  margin: 0;
  text-align: center;
  font-size: 1rem;      /* adjust if you want it bigger or smaller */
}

footer .form-container input{
    display:block;
    width:100%;
    border-radius: 5px;
    box-sizing:border-box;
}

footer .message-row {
    display: flex;
    flex-direction:column;
    align-items:stretch;
}

footer .message-row label {
    flex: 0 0 auto;              /* label keeps its natural width */
    margin: 1px 0 0;             /* nudges it level with the textarea's first line */
}

footer .message-row textarea {
    flex: 1;                     /* textarea fills the remaining width */
    min-width: 0;
    width: auto;                 /* overrides the width: 100% from .form-container textarea */
    margin: 0;
    border-radius:10px;
}

footer .form-container button{
    display:block;
    margin:1px auto;
    padding:8px;
    border-radius:10px;
    background-color:rgb(3, 20, 39);
    border:1px solid orangered;
    color:white;
}

footer .form-container button:hover{
    background-color:green;
    color:white;
    border:1px solid green;
}
footer .form-container button:active{
    background-color:white;
    color:green;
    border: 1px solid green;
}
footer .form-container input,
footer .form-container textarea {
    border: 1px solid #ccc;
    outline: none;                          /* removes the default browser outline */
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* soft glow on hover */
footer .form-container input:hover,
footer .form-container textarea:hover {
    border-color: #c9a227;
    box-shadow: 0 0 6px 1px rgba(201, 162, 39, 0.5);
}

/* stronger glow when selected / typing */
footer .form-container input:focus,
footer .form-container textarea:focus {
    border-color: brown;
    box-shadow: 0 0 10px 3px rgba(201, 162, 39, 0.7),
                0 0 4px 1px rgba(165, 42, 42, 0.6);
}

/* Loading state */
button[type="submit"].loading {
  background: #ff9500;
  animation: pulse 1s infinite;
}

/* Success state */
button[type="submit"].success {
  background: #fefefe;
  cursor: default;
  color:rgb(6, 188, 103);
  animation: pop 0.4s ease;
}

.check {
  display: inline-block;
  margin-right: 6px;
  animation: checkIn 0.5s ease;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes checkIn {
  from { transform: scale(0) rotate(-90deg); opacity: 0; }
  to   { transform: scale(1) rotate(0);      opacity: 1; }
}

.social-media-icons a {
  color: inherit; /* or whatever base color you want */
  transition: color 0.3s ease;
}

.social-media-icons a:hover {
  color: orangered;
}

.hp { position: absolute; left: -9999px; }

/* ================= RESPONSIVE ================= */

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* ---- Tablets / small laptops ---- */
@media (max-width: 1024px) {
    .aboutintro p { padding-left: 30px; padding-right: 30px; }
    .impact { width: 80%; }
    footer { justify-content: space-around; gap: 20px; }
}

/* =========================================================
   MOBILE NAV  (768px and below)
   ========================================================= */
@media (max-width: 768px) {
    .intro { gap: 10px; }
    .intro p { margin-right: auto; }       /* pushes donate + menu button to the right */

    .nav-toggle { display: block; }

    .navbar {
        display: none;                     /* hidden until the button is tapped */
        position: absolute;
        top: calc(100% + 6px);
        right: 12px;
        z-index: 100;
        width: min(260px, calc(100vw - 24px));
        margin: 0;
        padding: 8px;
        background: #fff;
        border: 2px solid brown;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }
    .navbar.open { display: block; }

    .navbar ul { flex-direction: column; gap: 0; font-size: 1.1rem; }
    .navbar ul li a {
        display: block;
        padding: 12px 14px;
        border-radius: 8px;
    }
    .navbar a:hover { background: lightgoldenrodyellow; border-bottom: none; }
}

/* =========================================================
   PHONE  (600px and below)
   ========================================================= */
@media (max-width: 600px) {
    .reels {
        display: grid;
        grid-template-columns: repeat(2, 1fr);   /* 2 columns -> 4 reels make 2 rows */
        gap: 10px;
        padding: 0 10px;
    }
    .reel {
        width: 100%;
        aspect-ratio: 9 / 16;
    }
    .reel iframe {
        width: 100%;
        height: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body, .live > video, .homily-scroll p { animation: none; }
}

@media (max-width: 600px) {
    .homily {
        flex-wrap: wrap;
        align-items: center;
    }

    /* row 1: the two buttons */
    .homily-label  { order: 1; margin: 8px; }
    .homily-button { order: 2; margin-left: auto; padding: 8px; }

    /* row 2: the scrolling text, full width */
    .homily-scroll {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        padding-bottom: 10px;
    }

    .homily-scroll p {
        padding-left: 12px;          /* starts visible, not off-screen */
        font-size: 1.1rem;
        animation: homily-scroll-mobile 18s linear infinite;
    }

    @keyframes homily-scroll-mobile {
        from { transform: translateX(0); }
        to   { transform: translateX(-100%); }
    }
}

@media (max-width: 768px) {
    /* footer: grid so social icons and quick links share a row */
    footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 16px;
        align-items: start;
    }

    footer .address {
        grid-column: 1 / -1;      /* full width on top */
        text-align: center;
    }

    footer .form-container {
        grid-column: 1 / -1;      /* full width at the bottom */
        justify-self: stretch;
        width: 100% !important;
        max-width: none !important;
        min-width: 0;
        margin: 0;
        padding: 12px;
    }

    /* social icons (left) and quick links (right) side by side */
    footer .social-media-icons,
    footer .quick-links { padding-left: 0; }

    footer .social-media-icons p,
    footer .quick-links h3 { margin: 0 0 8px; }

    footer .social-media-icons a {
        display: inline-block;
        margin: 0 5px 8px 0;
        font-size: 1.2rem;
    }   /* <-- this brace was missing */

    footer .form-container input,
    footer .form-container textarea {
        width: 100%;
        font-size: 1rem;
        padding: 8px;
    }

    footer .form-container textarea { min-height: 120px; }

    footer .form-container button {
        width: 100%;
        padding: 12px;
    }
}