/* ============================================================
   PALM LEAF SHELTER ASSOCIATION — Design System
   ============================================================ */

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Design Tokens : Light Mode ---------------------------- */
:root {
  /* Brand */
  --brand:          #E8540A;
  --brand-hover:    #C44508;
  --brand-bg:       #FEF0E8;
  --brand-border:   rgba(232, 84, 10, 0.2);
  --amber:          #F59E0B;
  --amber-bg:       #FEF3C7;
  --success:        #15803D;
  --success-bg:     #DCFCE7;
  --danger:         #DC2626;
  --danger-bg:      #FEE2E2;

  /* Surfaces */
  --bg:             #FDFCF9;
  --bg-subtle:      #F5F2ED;
  --surface:        #FFFFFF;
  --surface-2:      #FAF9F6;

  /* Text */
  --text:           #1A1208;
  --text-2:         #574A38;
  --text-muted:     #9C8E7C;

  /* Borders */
  --border:         #E5E0D6;
  --border-2:       #CEC8BC;

  /* Shadows */
  --shadow-xs:      0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:      0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.05);
  --shadow-lg:      0 20px 64px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);

  /* Radii */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;
}


/* --- Base -------------------------------------------------- */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { line-height: 1.15; color: var(--text); }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin-bottom: 0.6em; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.title {
  background-image: url("img/title/anil-reddy.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  height: 600px;
  padding: 20px;
}

.title h1{
  color: #fff;
  
}

.title p{
  color: #fff;
  font-size: 1.2rem;
  margin-top: 12px;
  font-weight: bold;
}

/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 249, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}


.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 5px 0;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand__logo {
  height: 100px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  padding: 0px 14px;
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.nav a:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-full);
  border: none;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.1px;
  box-shadow: 0 2px 14px rgba(232, 84, 10, 0.28);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.cta:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 84, 10, 0.38);
}
.cta:active { transform: translateY(0); }
.cta--full { width: 100%; }
.cta--small { padding: 9px 18px; font-size: 0.88rem; }

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border-2);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ghost:hover {
  background: var(--bg-subtle);
  border-color: var(--brand);
  color: var(--brand);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding: 80px 0 68px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 600px at 85% -5%, rgba(232,84,10,0.09), transparent 65%),
    radial-gradient(ellipse 600px 500px at 5%  70%, rgba(245,158,11,0.06), transparent 65%);
}


.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  background: var(--brand-bg);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.3px;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-2);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 44px;
}

.hero__stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  min-width: 108px;
}
.stat__value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 3px;
}

.card--glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.card__header {
  padding: 24px 24px 0;
}
.card__title {
  font-size: 1.12rem;
  font-weight: 700;
}
.card__sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 0;
}

.donate--compact {
  padding: 20px 24px 24px;
}

.donate--compact *{
  margin: 10px 00px;
}
/* ============================================================
   SECTIONS
   ============================================================ */

.section { padding: 80px 0; }

.section--alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}
.section__head h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.3px;
}

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

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.card--simple { padding: 24px; }
.card__body { padding: 18px 22px 22px; }

/* Project grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card--project {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card--project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-border);
}

.dummy-img {
  height: 180px;
  width: 100%;
  overflow: hidden;
}

.dummy-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.tag {
  display: inline-flex;
  padding: 4px 11px;
  border-radius: var(--r-full);
  background: var(--brand-bg);
  color: var(--brand);
  border: 1px solid var(--brand-border);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2px;
}

.link {
  background: transparent;
  border: none;
  color: var(--brand);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  transition: background 0.15s;
}
.link:hover { background: var(--brand-bg); }

/* ============================================================
   DONATION FORM
   ============================================================ */

.donation-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.card--form { padding: 26px; }
.card--info { padding: 26px; }

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field { margin-bottom: 16px; }
.field:last-of-type { margin-bottom: 0; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-2);
  margin-bottom: 6px;
  letter-spacing: 0.1px;
}

.field input,
.field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%239C8E7C' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.field input:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(232, 84, 10, 0.12);
  background: var(--surface);
}

/* Payment tabs */
.method-tabs {
  display: flex;
  gap: 5px;
  margin: 18px 0 10px;
  padding: 5px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-subtle);
}

.tab {
  flex: 1;
  padding: 9px 10px;
  border-radius: var(--r-xs);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.tab:hover {
  background: var(--surface);
  color: var(--text-2);
}
.tab.is-active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow-xs);
}

.panel { display: none; padding: 8px 2px 10px; }
.panel.is-active { display: block; }
.panel .muted { font-size: 0.87rem; line-height: 1.65; }

/* Status/Notice */
.notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--bg-subtle);
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.5;
}
.notice.is-error {
  border-color: var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
}
.notice.is-success {
  border-color: rgba(21, 128, 61, 0.35);
  background: var(--success-bg);
  color: var(--success);
}


.fineprint {
  margin-top: 12px;
  font-size: 0.81rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Bank details */
.details { margin-top: 16px; }

.details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-2);
  padding: 6px 0;
  user-select: none;
}
.details summary::-webkit-details-marker { display: none; }
.details summary::before {
  content: "▶";
  font-size: 0.62em;
  color: var(--text-muted);
  transition: transform 0.15s;
  flex-shrink: 0;
}
details[open] > summary::before { transform: rotate(90deg); }

.bank {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--border-2);
  background: var(--bg-subtle);
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* Sidebar info */
.steps {
  padding-left: 20px;
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.steps li {
  font-size: 0.91rem;
  color: var(--text-2);
  line-height: 1.55;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--surface);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ============================================================
   MODAL
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.modal.is-open { display: block; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal__dialog {
  position: relative;
  width: min(700px, 94vw);
  margin: 7vh auto 0;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal__head h3 { font-size: 1rem; font-weight: 700; }

.modal__body {
  padding: 22px;
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.65;
}

.modal__foot {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.iconbtn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-xs);
  border: 1.5px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.iconbtn:hover {
  background: var(--border);
  color: var(--text);
  border-color: var(--border-2);
}

/* ============================================================
   MISC
   ============================================================ */

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  color: var(--brand);
  background: var(--brand-bg);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--brand-border);
}

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

@media (max-width: 960px) {
  .hero__grid       { grid-template-columns: 1fr; gap: 32px; }
  .donation-grid    { grid-template-columns: 1fr; }
  .cards            { grid-template-columns: repeat(2, 1fr); }
  .hero             { padding: 56px 0 48px; }
  .section          { padding: 56px 0; }
}

@media (max-width: 640px) {
  .cards            { grid-template-columns: 1fr; }
  .grid2            { grid-template-columns: 1fr; }
  .section__head    { flex-direction: column; align-items: flex-start; }
  .hero__actions    { gap: 10px; }
  .nav              { display: none; }
  .brand__logo      { height: 36px; }
  .hero             { padding: 44px 0 36px; }
  .section          { padding: 44px 0; }
  .card--form,
  .card--info       { padding: 18px; }
  .donate--compact  { padding: 16px 18px 20px; }
  .card__header     { padding: 18px 18px 0; }
}
