/* style.css — Mobile-first, improved UI
   Includes new styles for "commitments" section
*/

/* Theme variables */
:root {
    --navy: #0b1d3a;
    --green: #0b6b3a;
    --accent: #d8f3dc;
    --white: #ffffff;
    --muted: #6b7280;
    --max-width: 1100px;
    --radius: 12px;
    --shadow: 0 8px 28px rgba(11, 29, 58, 0.08);
    font-family: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

/* Reset & base */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0;
    background: linear-gradient(#ffffff, #fbfefd);
    -webkit-font-smoothing: antialiased
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid #eef2f6
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: .6rem 1rem
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none
}

.logo {
    height: 48px;
    display: block
}

.org-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 1rem
}

/* Hamburger */
.hamburger {
    background: none;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: .4rem;
    cursor: pointer
}

.hamburger .bar {
    width: 24px;
    height: 3px;
    background: #233047;
    border-radius: 3px
}

/* Nav (mobile) */
.nav {
    position: fixed;
    top: 72px;
    right: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: .6rem;
    display: none;
    z-index: 200
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 170px
}

.nav a {
    display: block;
    padding: .6rem .9rem;
    color: var(--navy);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600
}

.nav a:hover {
    background: #f3fbf6
}

/* Desktop nav */
@media(min-width:860px) {
    .nav {
        position: static;
        display: block;
        background: transparent;
        padding: 0
    }

    .nav ul {
        flex-direction: row;
        gap: 12px;
        align-items: center
    }

    .hamburger {
        display: none
    }
}

/* HERO */
.hero {
    padding: 36px 0;
    background: linear-gradient(180deg, rgba(11, 29, 58, 0.95), rgba(11, 107, 58, 0.92));
    color: var(--white)
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center
}

.hero-left {
    text-align: left;
    padding: 8px
}

.hero-right {
    display: none
}

.hero h1 {
    font-size: 1.6rem;
    margin: 0;
    color: var(--white);
    line-height: 1.05
}

.hero h1 small {
    font-weight: 600;
    color: var(--accent);
    display: block;
    margin-top: 6px;
    font-size: 1rem
}

.lead {
    color: rgba(255, 255, 255, 0.94);
    margin-top: 12px;
    max-width: 700px
}

/* Trust badges */
.trust-badges {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap
}

.trust-badges div {
    background: rgba(255, 255, 255, 0.06);
    padding: .45rem .6rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: .92rem
}

/* Hero desktop art */
@media(min-width:860px) {
    .hero-inner {
        grid-template-columns: 1fr 420px
    }

    .hero-right {
        display: block
    }

    .hero h1 {
        font-size: 2.2rem
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem .9rem;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    font-weight: 800
}

.btn-primary {
    background: var(--green);
    color: var(--white);
    border-color: transparent
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.18);
    color: var(--white)
}

.btn-danger {
    background: #c92a2a;
    color: #fff
}

.btn.big {
    padding: 14px 12px;
    font-size: 1rem;
    border-radius: 12px
}

/* New: copy button style for donation (visible on white background) */
.btn-copy {
    background: #fff;
    color: var(--navy);
    border: 2px solid var(--green);
    font-weight: 800;
    padding: .55rem .9rem;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(11, 107, 58, 0.06);
}

.btn-copy:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green)
}

.btn-primary:hover {
    filter: brightness(.98)
}

/* Sections */
.section {
    padding: 22px 0
}

.section h2 {
    font-size: 1.02rem;
    color: var(--navy);
    margin: 0 0 .6rem
}

.muted {
    color: var(--muted)
}

/* layout helpers */
.three-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px
}

@media(min-width:860px) {
    .three-cols {
        grid-template-columns: repeat(3, 1fr)
    }
}

/* Commitment section styles */
.commitments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px
}

.commitment {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow)
}

.commit-icon {
    flex: 0 0 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(11, 107, 58, 0.12), rgba(11, 29, 58, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 20px
}

.commit-text p {
    margin: 0;
    font-weight: 700;
    color: #0f1724
}

.commit-text p strong {
    font-weight: 900;
    margin-right: 6px;
    color: var(--navy)
}

@media(min-width:860px) {
    .commitments-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

/* Leadership */
.lead-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px
}

@media(min-width:860px) {
    .lead-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

.lead-grid figure {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center
}

/* ===== Leadership Responsive Image Fix ===== */

.leader-card{
  background:#fff;
  padding:12px;
  border-radius:12px;
  box-shadow:var(--shadow);
  text-align:center;
}

/* Image wrapper controls size */
.leader-img-wrap{
  width:100%;
  max-width:260px;        /* desktop limit */
  aspect-ratio:1 / 1;    /* perfect square */
  margin:0 auto 10px;
  border-radius:12px;
  overflow:hidden;
  background:#f5f7fa;
}

/* Actual image */
.leader-img-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;      /* key line */
  object-position:center;
  display:block;
}

/* Mobile tuning */
@media(max-width:480px){
  .leader-img-wrap{
    max-width:200px;
  }
}

/* Very small phones */
@media(max-width:360px){
  .leader-img-wrap{
    max-width:180px;
  }
}

.leader-card figcaption strong{
  display:block;
  font-size:1rem;
  color:var(--navy);
}

.leader-card figcaption span{
  display:block;
  font-size:0.85rem;
  color:var(--muted);
}

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

@media(min-width:860px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

.service {
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center
}

.service i {
    font-size: 26px;
    color: var(--green);
    margin-bottom: 8px
}

/* Donation */
.donation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px
}

@media(min-width:860px) {
    .donation-grid {
        grid-template-columns: 1fr 420px
    }
}

.qr-wrap img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 6px solid rgba(11, 107, 58, 0.06)
}

.donation-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap
}

/* Bank table */
.bank-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: var(--shadow)
}

.bank-table th {
    text-align: left;
    padding: .45rem;
    color: var(--muted);
    width: 40%
}

.bank-table td {
    padding: .45rem
}

/* Emergency */
.emergency-inner {
    text-align: center;
    padding: 12px;
    border-radius: 10px
}

.emergency-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px
}

@media(min-width:520px) {
    .emergency-actions {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(min-width:860px) {
    .emergency-actions {
        grid-template-columns: repeat(3, 1fr)
    }
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px
}

@media(min-width:860px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

.gallery-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.06)
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px
}

@media(min-width:860px) {
    .contact-grid {
        grid-template-columns: 1fr 480px
    }
}

.contact-form-wrap form {
    display: flex;
    flex-direction: column;
    gap: .6rem
}

.contact-form-wrap input,
.contact-form-wrap textarea {
    padding: .7rem;
    border: 1px solid #e9eef2;
    border-radius: 8px
}

.hidden {
  display: none !important;
}

/* Send button styling - smaller and not full width */
.send-row {
    display: flex;
    justify-content: flex-start
}

.send-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    padding: .55rem .85rem;
    border-radius: 10px;
    font-weight: 800
}

.send-btn .btn-spinner {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: none
}

.send-btn.loading .btn-text {
    opacity: .7
}

.send-btn.loading .btn-spinner {
    display: block;
    animation: spin 1s linear infinite
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg)
    }
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 24px 0;
    margin-top: 18px;
    border-top: 4px solid var(--green)
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center
}

@media(min-width:860px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        text-align: left;
        align-items: center
    }
}

.footer-logo {
    height: 56px
}

.social a {
    margin: 0 .4rem;
    color: #d8f3dc;
    font-size: 18px
}

.credit {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    padding: .5rem .8rem;
    border-radius: 8px;
    color: #d8f3dc;
    font-weight: 700;
    text-decoration: none
}

/* Floating buttons */
.float-btn {
    position: fixed;
    bottom: 18px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow);
    z-index: 1400
}

.float-btn.whatsapp {
    right: 18px;
    background: #25d366
}

.float-btn.call {
    right: 90px;
    background: var(--green)
}

/* Accessibility focus */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid rgba(11, 107, 58, 0.14);
    outline-offset: 3px
}
