/*
Theme Name: Royal Bees
Theme URI: https://theroyalbees.org
Author: Royal Bees Ladies Organization
Description: Custom theme for the Royal Bees Ladies Organization (RBO), Pallekele, Kengalla. Together We Grow, Together We Serve.
Version: 1.3.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: royalbees
*/

/* Royal Bees Ladies Organization — site styles */
:root {
  --honey: #f2b01e;
  --honey-dark: #d4951a;
  --honey-light: #fde8b6;
  --brown: #3b2314;
  --brown-soft: #5a3a24;
  --cream: #fff8e7;
  --white: #ffffff;
  --ink: #2a2118;
  --muted: #6f6256;
  --line: #eadfc8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(59, 35, 20, 0.08);
  --font-head: "Fraunces", "Noto Sans Tamil", Georgia, serif;
  --font-body: "Nunito", "Noto Sans Tamil", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brown); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--brown); line-height: 1.15; margin: 0 0 .5rem; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.tamil { font-family: "Noto Sans Tamil", var(--font-body); }
.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--honey-dark); font-weight: 800; margin-bottom: .6rem;
}
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--brown); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--honey); }
.section-dark .lead { color: #e8d9c3; }
.center { text-align: center; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 800; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s;
  cursor: pointer; font-family: var(--font-body); font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59,35,20,.15); }
.btn-primary { background: var(--honey); color: var(--brown); }
.btn-primary:hover { background: var(--honey-dark); }
.btn-outline { border-color: var(--brown); color: var(--brown); background: transparent; }
.section-dark .btn-outline { border-color: var(--honey); color: var(--honey); }
.btn-light { background: var(--white); color: var(--brown); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 231, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--brown); }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.brand-sub { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); font-weight: 700; }
.nav-links { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 700; padding: .55rem .9rem; border-radius: 999px; color: var(--brown); white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--honey-light); }
.nav-links .btn { padding: .6rem 1.2rem; margin-left: .5rem; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--brown); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--brown);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .2s, opacity .2s; }
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 1rem 16px 1.25rem; gap: .25rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; }
  .nav-links .btn { margin: .5rem 0 0; justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, var(--honey-light), transparent 60%), var(--cream);
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.hero-inner { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1.15fr .85fr; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 1rem; }
.hero .slogan { font-family: var(--font-head); font-style: italic; font-size: 1.3rem; color: var(--honey-dark); margin-bottom: 1.25rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { width: min(100%, 420px); filter: drop-shadow(0 20px 40px rgba(59,35,20,.18)); }
.honeycomb-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23d4951a' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  mask-image: linear-gradient(to left, black, transparent 70%);
}

/* Page hero (inner pages) */
.page-hero { background: var(--brown); color: var(--cream); padding: clamp(3rem, 7vw, 5rem) 0; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--honey); }
.page-hero .lead { color: #e8d9c3; max-width: 60ch; }
.page-hero .honeycomb-bg { opacity: .14; }

/* Stats */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; box-shadow: var(--shadow);
}
.stat-value { font-family: var(--font-head); font-size: 2.4rem; color: var(--honey-dark); font-weight: 700; line-height: 1; }
.stat-label { color: var(--muted); font-weight: 700; margin-top: .4rem; }

/* Cards */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem;
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-3px); }
.card h3 { margin-top: .25rem; }
.card p { color: var(--muted); margin: 0; }
.card .card-tag { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--honey-dark); }
.icon-hex {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--honey); color: var(--brown);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}
.section-dark .card { background: var(--brown-soft); border-color: transparent; }
.section-dark .card p { color: #e8d9c3; }
.section-dark .card h3 { color: var(--cream); }

/* Project detail blocks */
.project { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1.6fr; align-items: start; padding: 2rem 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; }
@media (max-width: 760px) { .project { grid-template-columns: 1fr; } }
.project-head { display: flex; gap: 1rem; align-items: center; }
.project ul { margin: .5rem 0 0; padding-left: 1.2rem; color: var(--muted); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--honey); }
.timeline li { position: relative; padding: 0 0 1.5rem 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: .35rem; width: 17px; height: 17px; border-radius: 50%; background: var(--honey); border: 3px solid var(--cream); }
.timeline time { font-weight: 800; color: var(--honey-dark); font-size: .9rem; }

/* News / events */
.post { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 560px) { .post { grid-template-columns: 1fr; } }
.date-badge {
  background: var(--honey); color: var(--brown); border-radius: 12px; padding: .75rem; text-align: center; font-weight: 800; line-height: 1.1;
}
.date-badge .day { display: block; font-size: 1.8rem; font-family: var(--font-head); }
.date-badge .month { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* Gallery */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.gallery .ph {
  aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--brown-soft); font-weight: 800;
  background: linear-gradient(135deg, var(--honey-light), #f7d98a);
}
.gallery figcaption { padding: .75rem 1rem; font-size: .9rem; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 1rem; }
.form label { font-weight: 800; display: grid; gap: .35rem; }
.form input, .form select, .form textarea {
  font: inherit; padding: .8rem 1rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--honey-light); border-color: var(--honey); }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-note { font-size: .9rem; color: var(--muted); }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list a { font-weight: 800; }
.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); filter: sepia(.2); }

/* CTA band */
.cta-band { background: var(--honey); color: var(--brown); padding: 3rem 0; }
.cta-band h2 { color: var(--brown); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }

/* Footer */
.site-footer { background: var(--brown); color: #e8d9c3; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--honey); font-family: var(--font-body); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--honey); }
.footer-brand { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; background: var(--cream); border-radius: 10px; padding: 3px; }
.footer-brand strong { color: #fff; font-family: var(--font-head); font-size: 1.1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* Utilities */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.max-60 { max-width: 60ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }

/* Donate page */
#amount-options { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
#amount-options .btn { justify-content: center; padding-inline: .75rem; }
.form input, .form select, .form textarea { width: 100%; min-width: 0; }
.card { min-width: 0; }
#amount-options { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
#amount-options .btn { padding: .7rem .5rem; font-size: .95rem; min-width: 0; }

/* WordPress menu + editor compatibility */
.nav-links .current-menu-item > a, .nav-links .current_page_item > a { background: var(--honey-light); }
.entry-content { max-width: 72ch; }
.entry-content img { border-radius: var(--radius); }
.entry-content h2, .entry-content h3 { margin-top: 1.5rem; }
.wp-block-image img { height: auto; }
.alignwide, .alignfull { max-width: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Site-wide donation section */
.donate-band { position: relative; overflow: hidden; background: linear-gradient(135deg, #2f1a0e 0%, var(--brown) 55%, #4a2d19 100%); color: var(--cream); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.donate-band .honeycomb-bg { opacity: .12; mask-image: linear-gradient(to right, transparent, black 40%); }
.donate-band .container { position: relative; }
.donate-band h2 { color: var(--cream); max-width: 22ch; }
.donate-band .eyebrow { color: var(--honey); }
.donate-band .lead { color: #e8d9c3; max-width: 56ch; }
.donate-band-head { display: grid; gap: 2rem; grid-template-columns: 1.4fr .8fr; align-items: end; margin-bottom: 2.25rem; }
@media (max-width: 860px) { .donate-band-head { grid-template-columns: 1fr; align-items: start; } }
.donate-band-actions { display: grid; gap: .9rem; justify-items: start; }
@media (min-width: 861px) { .donate-band-actions { justify-items: end; text-align: right; } }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.08rem; box-shadow: 0 12px 30px rgba(242,176,30,.28); }
.donate-link { color: var(--honey); font-weight: 800; text-decoration: none; border-bottom: 1px solid rgba(242,176,30,.45); padding-bottom: 2px; }
.donate-link:hover { border-bottom-color: var(--honey); }
.donate-tiers { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.donate-tier { display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem 1.4rem; border-radius: var(--radius); text-decoration: none; color: var(--cream); background: rgba(255,248,231,.06); border: 1px solid rgba(242,176,30,.28); backdrop-filter: blur(4px); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.donate-tier:hover { transform: translateY(-4px); border-color: var(--honey); background: rgba(255,248,231,.1); }
.donate-amount { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--honey); line-height: 1.1; }
.donate-tier-title { font-weight: 800; font-size: 1.05rem; }
.donate-tier-text { color: #d9c7ad; font-size: .95rem; line-height: 1.5; flex: 1; }
.donate-tier-cta { margin-top: .75rem; color: var(--honey); font-weight: 800; font-size: .9rem; }
.donate-tier-custom { background: rgba(242,176,30,.12); border-style: dashed; }
.donate-trust { list-style: none; margin: 2rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid rgba(255,248,231,.14); display: flex; flex-wrap: wrap; gap: .6rem 2rem; font-size: .9rem; color: #d9c7ad; font-weight: 700; }
.stat-value.tamil { font-size: 2rem; }

/* Partners */
.partners-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 2.25rem; font-size: .9rem; }
.partners-footer .partners-label { color: var(--honey); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; }
.partners-footer ul { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.partners-footer a { color: #fff; font-weight: 700; }
.partners-card .partners-label { display: none; }
.partners-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.partners-card li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; text-align: center; box-shadow: var(--shadow); display: grid; gap: .25rem; }
.partners-card a { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; text-decoration: none; color: var(--brown); }
.partners-card a:hover { color: var(--honey-dark); }
.partners-card span { color: var(--muted); font-size: .95rem; }

/* Current appeal */
.appeal-section { padding-top: 0; }
.appeal { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: center; background: var(--white); border: 2px solid var(--honey); border-radius: 20px; padding: 1.5rem; box-shadow: 0 20px 50px rgba(59,35,20,.12); }
@media (max-width: 860px) { .appeal { grid-template-columns: 1fr; } .appeal-media { max-width: 320px; margin: 0 auto; } }
.appeal-media img { border-radius: 14px; width: 100%; height: auto; display: block; }
.appeal-badge { display: inline-block; background: var(--honey); color: var(--brown); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; margin-bottom: .8rem; }
.appeal h2 { margin-bottom: .5rem; }
.appeal-facts { display: flex; flex-wrap: wrap; gap: 1.25rem 2.25rem; margin: .75rem 0 1.25rem; }
.appeal-fact-value { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--honey-dark); line-height: 1.1; }
.appeal-fact-label { display: block; font-size: .85rem; color: var(--muted); font-weight: 700; }
.appeal .hero-actions { margin-top: .5rem; align-items: center; }
.appeal-bank { color: var(--honey-dark); border-bottom-color: rgba(212,149,26,.4); }
.appeal-quote { margin: 1.25rem 0 0; font-family: var(--font-head); font-style: italic; color: var(--brown-soft); border-left: 3px solid var(--honey); padding-left: .9rem; }
.appeal-strip { background: var(--honey-light); border-bottom: 1px solid var(--line); }
.appeal-strip-inner { display: grid; grid-template-columns: 72px 1fr auto; gap: 1.25rem; align-items: center; padding: 1.1rem 0; }
@media (max-width: 760px) { .appeal-strip-inner { grid-template-columns: 1fr; } }
.appeal-strip img { width: 72px; height: 72px; object-fit: cover; object-position: top; border-radius: 10px; }
.appeal-strip h3 { margin: 0 0 .15rem; }
.appeal-strip p { margin: 0; color: var(--brown-soft); font-size: .95rem; }
.donate-tier-appeal { border-color: var(--honey); background: rgba(242,176,30,.16); position: relative; }
.donate-tier-badge { position: absolute; top: -.7rem; left: 1rem; background: var(--honey); color: var(--brown); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; }
.site-footer small { color: #bfae95; font-size: .8rem; }

/* Announcement bar + top appeal */
.announce { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1rem; padding: .55rem 16px; background: var(--brown); color: var(--cream); text-decoration: none; font-size: .92rem; text-align: center; }
.announce:hover .announce-cta { text-decoration: underline; }
.announce-tag { background: var(--honey); color: var(--brown); font-weight: 800; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; }
.announce-text strong { color: var(--honey); }
.announce-cta { color: var(--honey); font-weight: 800; white-space: nowrap; }
.appeal-top { padding-top: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: 0; }
.appeal-top .appeal { box-shadow: 0 24px 60px rgba(59,35,20,.16); }
.appeal-top .appeal-media img { max-height: 420px; width: auto; margin: 0 auto; }
.appeal-news { padding-top: clamp(3rem, 7vw, 5.5rem); }
