/* ===== REUSE.DRWHATWHY.COM — Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,700;0,9..144,900;1,9..144,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --green-900: #1a3a2a;
  --green-800: #1e4d33;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --green-500: #52b788;
  --green-400: #74c69d;
  --green-300: #95d5b2;
  --green-100: #d8f3dc;
  --green-50:  #f0faf3;
  --amber:     #e8a020;
  --amber-light: #fdf0d5;
  --text-dark: #0f1f17;
  --text-mid:  #2e4a38;
  --text-muted:#5a7a66;
  --white:     #ffffff;
  --border:    #c8e6d0;
  --shadow-sm: 0 2px 8px rgba(30,77,51,0.10);
  --shadow-md: 0 6px 24px rgba(30,77,51,0.14);
  --shadow-lg: 0 16px 48px rgba(30,77,51,0.18);
  --radius:    14px;
  --radius-lg: 22px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--white); color: var(--text-dark); line-height: 1.7; overflow-x: hidden; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.2; color: var(--green-900); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p  { color: var(--text-mid); font-size: 1rem; }
a  { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-500); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section-alt { background: var(--green-50); }

/* NAV */
nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1140px; margin: 0 auto; }
.nav-logo { font-family: var(--font-display); font-size: 1.35rem; font-weight: 900; color: var(--green-800); display: flex; align-items: center; gap: 8px; }
.nav-logo span { color: var(--green-500); }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--text-mid); padding: 8px 14px; border-radius: 8px; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { background: var(--green-100); color: var(--green-800); }
.nav-cta { background: var(--green-700) !important; color: var(--white) !important; border-radius: 8px !important; margin-left: 6px; }
.nav-cta:hover { background: var(--green-600) !important; color: var(--white) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green-800); border-radius: 2px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 10px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.22s; text-decoration: none; }
.btn-primary { background: var(--green-700); color: var(--white); box-shadow: 0 4px 16px rgba(40,116,82,0.28); }
.btn-primary:hover { background: var(--green-600); color: var(--white); transform: translateY(-2px); }
.btn-secondary { background: var(--white); color: var(--green-800); border: 2px solid var(--green-300); }
.btn-secondary:hover { border-color: var(--green-600); background: var(--green-50); color: var(--green-800); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.8); }
.btn-amber { background: var(--amber); color: var(--white); }
.btn-amber:hover { background: #d4911a; color: var(--white); transform: translateY(-2px); }

/* BADGE */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.77rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-green { background: var(--green-100); color: var(--green-800); }
.badge-amber { background: var(--amber-light); color: #9a6b00; }
.badge-easy  { background: #e0f4e8; color: #1e6b3a; }
.badge-medium{ background: #fef3e0; color: #8a5d00; }

/* HERO — fixed layout using flex */
.hero { background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 50%, var(--green-700) 100%); color: var(--white); padding: 90px 0 70px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; opacity: 0.06; background-image: radial-gradient(circle, #95d5b2 1px, transparent 1px); background-size: 32px 32px; }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 56px; }
.hero-text { flex: 1; min-width: 280px; }
.hero-text h1 { color: var(--white); margin-bottom: 18px; }
.hero-text h1 em { color: var(--green-300); font-style: normal; }
.hero-text > p { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin-bottom: 30px; max-width: 500px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img { flex: 0 0 400px; }
.hero-img img { width: 100%; height: 290px; object-fit: cover; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); border: 2px solid rgba(255,255,255,0.15); }

/* PAGE HEADER */
.page-header { background: linear-gradient(135deg, var(--green-900), var(--green-700)); padding: 60px 0 50px; color: var(--white); }
.page-header h1 { color: var(--white); margin-bottom: 10px; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.page-header p  { color: rgba(255,255,255,0.78); font-size: 1.05rem; }

/* CARDS */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: all 0.25s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* STATS */
.stats-strip { background: var(--green-700); padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-val { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: var(--green-300); display: block; line-height: 1; }
.stat-lab { font-size: 0.85rem; color: rgba(255,255,255,0.72); margin-top: 6px; }

/* GRIDS */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* TUTORIAL CARD */
.tut-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: all 0.25s; box-shadow: var(--shadow-sm); }
.tut-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.tut-thumb { height: 180px; overflow: hidden; }
.tut-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.tut-card:hover .tut-thumb img { transform: scale(1.05); }
.tut-thumb-fb { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.tut-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.tut-body h3 { margin-bottom: 7px; font-size: 1.05rem; }
.tut-body p  { font-size: 0.89rem; color: var(--text-muted); flex: 1; margin-bottom: 14px; }
.tut-meta { display: flex; gap: 7px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.tut-meta span { font-size: 0.8rem; color: var(--text-muted); }

/* TUT DETAIL */
.tut-detail { display: none; background: var(--green-50); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; grid-column: 1 / -1; }
.tut-detail.open { display: block; }
.steps-list { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; }
.step-row { display: flex; gap: 14px; align-items: flex-start; }
.step-num { min-width: 32px; height: 32px; background: var(--green-700); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.87rem; flex-shrink: 0; }
.apps-needed { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.app-pill { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 4px 14px; font-size: 0.84rem; font-weight: 500; color: var(--green-800); }
.close-btn { background: none; border: 1px solid var(--border); padding: 8px 18px; border-radius: 8px; cursor: pointer; font-family: var(--font-body); font-size: 0.88rem; color: var(--text-muted); margin-top: 18px; }
.close-btn:hover { background: var(--border); }

/* FILTER */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn { padding: 8px 18px; border-radius: 20px; border: 2px solid var(--border); background: var(--white); font-size: 0.87rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); color: var(--text-mid); }
.filter-btn:hover, .filter-btn.active { background: var(--green-700); color: var(--white); border-color: var(--green-700); }

/* GAME CARD */
.game-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all 0.25s; box-shadow: var(--shadow-sm); }
.game-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--green-400); }
.game-thumb { height: 150px; overflow: hidden; }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-thumb-fb { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 3.8rem; }
.game-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.game-body h3 { font-size: 0.98rem; }
.game-body p  { font-size: 0.85rem; color: var(--text-muted); flex: 1; }
.perf-bar { display: flex; align-items: center; gap: 8px; }
.perf-label { font-size: 0.72rem; color: var(--text-muted); min-width: 64px; }
.perf-track { flex: 1; height: 5px; background: var(--border); border-radius: 4px; overflow: hidden; }
.perf-fill  { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--green-600), var(--green-400)); }
.play-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 600; color: var(--green-700); padding: 9px 0; border-top: 1px solid var(--border); margin-top: auto; }
.play-link:hover { color: var(--green-500); }

/* BLOG */
.blog-post-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: all 0.25s; box-shadow: var(--shadow-sm); cursor: pointer; }
.blog-post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-thumb { height: 200px; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-post-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 9px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.blog-body h3 { font-size: 1.12rem; margin-bottom: 8px; line-height: 1.3; }
.blog-body p  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; flex: 1; }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(10,30,20,0.75); z-index: 500; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--white); border-radius: var(--radius-lg); max-width: 740px; width: 100%; overflow: hidden; box-shadow: var(--shadow-lg); animation: fadeUp 0.3s ease; position: relative; margin: auto; }
.modal-hero-img { height: 250px; overflow: hidden; }
.modal-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-content { padding: 34px; }
.modal-content h2 { font-size: 1.55rem; margin-bottom: 8px; }
.modal-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 18px; display: flex; gap: 14px; flex-wrap: wrap; }
.modal-content p { margin-bottom: 14px; line-height: 1.78; color: var(--text-mid); }
.modal-content h3 { margin: 22px 0 9px; font-size: 1.05rem; }
.modal-content ul, .modal-content ol { padding-left: 22px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 7px; }
.modal-content li { font-size: 0.93rem; color: var(--text-mid); }
.modal-close { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,0.45); color: white; border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: rgba(0,0,0,0.65); }

/* SIDEBAR */
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-size: 0.96rem; margin-bottom: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link .s-icon { font-size: 1.3rem; }
.sidebar-link .s-text { font-size: 0.86rem; color: var(--text-mid); font-weight: 500; }
.sidebar-link:hover .s-text { color: var(--green-700); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 5px 12px; background: var(--green-50); border: 1px solid var(--border); border-radius: 20px; font-size: 0.81rem; color: var(--green-800); font-weight: 500; }
.tag-cloud a:hover { background: var(--green-100); }

/* RESOURCE */
.app-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; transition: all 0.22s; box-shadow: var(--shadow-sm); }
.app-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.app-icon { font-size: 2.2rem; min-width: 44px; }
.app-info h3 { font-size: 0.96rem; margin-bottom: 4px; }
.app-info p  { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 8px; }
.app-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { font-size: 0.73rem; padding: 2px 9px; border-radius: 12px; background: var(--green-100); color: var(--green-800); font-weight: 500; }
.tag-ios { background: #eff0f9; color: #444; }
.tag-android { background: #e6f5ea; color: #1b5e20; }
.donate-card { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--green-500); border-radius: var(--radius); padding: 22px; transition: all 0.22s; box-shadow: var(--shadow-sm); }
.donate-card:hover { box-shadow: var(--shadow-md); }
.donate-card h3 { font-size: 0.98rem; margin-bottom: 5px; }
.donate-card p  { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.recycle-card { background: var(--green-50); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; transition: all 0.22s; }
.recycle-card:hover { box-shadow: var(--shadow-md); background: var(--white); }
.recycle-card .icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.recycle-card h3 { font-size: 0.96rem; margin-bottom: 5px; }
.recycle-card p  { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 12px; }

/* ABOUT */
.stat-box { text-align: center; padding: 26px 14px; background: var(--green-50); border-radius: var(--radius); border: 1px solid var(--border); }
.stat-box .stat-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 900; color: var(--green-700); display: block; }
.stat-box p { font-size: 0.86rem; color: var(--text-muted); margin-top: 4px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: 17px 0; font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--green-900); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q .arrow { font-size: 0.9rem; transition: transform 0.25s; color: var(--green-600); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a.open { max-height: 400px; }
.faq-a p { padding: 0 0 17px; color: var(--text-muted); font-size: 0.91rem; line-height: 1.75; }
.faq-q.open .arrow { transform: rotate(180deg); }

/* FOOTER */
footer { background: var(--green-900); color: rgba(255,255,255,0.62); padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand .nav-logo { color: var(--white); margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.87rem; line-height: 1.65; }
footer h4 { color: var(--white); font-size: 0.87rem; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-body); }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
footer ul a { font-size: 0.87rem; color: rgba(255,255,255,0.54); transition: color 0.2s; }
footer ul a:hover { color: var(--green-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; flex-wrap: wrap; gap: 8px; }

/* BACK TO TOP */
#back-top { position: fixed; bottom: 28px; right: 28px; background: var(--green-700); color: var(--white); border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1rem; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(16px); transition: all 0.3s; z-index: 200; display: flex; align-items: center; justify-content: center; }
#back-top.visible { opacity: 1; transform: translateY(0); }
#back-top:hover { background: var(--green-600); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
.fade-up { animation: fadeUp 0.55s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-img { flex: 0 0 320px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .hero-img { display: none; }
  .hero-inner { flex-direction: column; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 16px 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  .section { padding: 52px 0; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
