/* Every Nation Damansara — warm, human, unhurried */
:root {
  /* Every Nation blue + warm orange & light yellow */
  --cream: #FFF9EC;        /* light warm yellow background */
  --paper: #FFFDF6;
  --ink: #16294E;          /* deep EN navy — text, footer, dark panels */
  --ink-soft: #4A5875;
  --clay: #EE7F2D;         /* warm orange — CTAs, underline, highlights */
  --clay-dark: #D2691C;
  --olive: #0E5FD8;        /* Every Nation blue — kickers, tags, links */
  --sand: #FBEECC;         /* light yellow — borders, soft panels */
  --wa: #EE7F2D;      /* WhatsApp buttons follow the orange palette */
  --wa-dark: #D2691C;
  --radius: 18px;
  --maxw: 1060px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}
h1, h2, h3, .display { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
a { color: var(--olive); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 22px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,249,236,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; max-width: var(--maxw); margin: 0 auto; }
.logo { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.2; }
.logo span { color: var(--clay); }
.nav-links { display: flex; gap: 22px; align-items: center; list-style: none; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--clay); }
.nav-links .btn { color: #fff; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: transform .15s, box-shadow .15s; border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(43,38,32,.15); }
.btn-wa { background: var(--wa); color: #fff !important; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-clay { background: var(--clay); color: #fff !important; }
.btn-clay:hover { background: var(--clay-dark); }
.btn-ghost { background: transparent; color: var(--ink) !important; border: 2px solid var(--ink); }
.btn small { display: block; font-weight: 400; font-size: .78rem; opacity: .9; }

/* Hero */
.hero { padding: 72px 22px 56px; text-align: left; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); max-width: 15ch; }
.hero .kicker, .kicker {
  display: inline-block; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--olive); font-weight: 600; margin-bottom: 14px;
}
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 54ch; margin: 22px 0 30px; }
.underline-hand { position: relative; white-space: nowrap; }
.underline-hand::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 50 2, 150 2, 198 6' stroke='%23EE7F2D' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: .9rem; color: var(--ink-soft); margin-top: 14px; }

/* Sections */
section { padding: 56px 0; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 10px; }
.section-sub { color: var(--ink-soft); max-width: 60ch; margin-bottom: 34px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card {
  background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 26px; text-decoration: none; color: var(--ink); display: block;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(43,38,32,.09); }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.card .tag { font-size: .78rem; color: var(--olive); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.card .read { color: var(--clay); font-weight: 600; font-size: .9rem; margin-top: 12px; display: inline-block; }

/* Panels */
.panel { background: var(--sand); border-radius: calc(var(--radius) + 8px); padding: 44px 34px; }
.panel-clay { background: var(--ink); color: var(--cream); }
.panel-clay h2 { color: #fff; }
.panel-clay p { color: #CFDCF5; }

/* Photo placeholders */
.photo-ph {
  background: repeating-linear-gradient(45deg, var(--sand), var(--sand) 12px, #F6E6BC 12px, #F6E6BC 24px);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: .9rem; min-height: 260px; border: 1px dashed #E4CE93;
}

/* Article */
article.post { padding: 56px 0 30px; }
article.post h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 16px; max-width: 20ch; }
article.post .meta { color: var(--olive); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
article.post h2 { font-size: 1.5rem; margin: 40px 0 12px; }
article.post p { margin-bottom: 18px; color: #2E3C5E; }
article.post blockquote {
  border-left: 3px solid var(--clay); padding: 6px 0 6px 22px; margin: 28px 0;
  font-family: 'Fraunces', serif; font-size: 1.25rem; line-height: 1.5; color: var(--ink);
}
article.post blockquote cite { display: block; font-family: 'Inter', sans-serif; font-size: .85rem; color: var(--ink-soft); margin-top: 8px; font-style: normal; }
.post-cta { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); padding: 30px; margin: 44px 0; }
.post-cta h3 { margin-bottom: 8px; }
.post-cta p { margin-bottom: 18px; }
.next-reads { padding: 30px 0 70px; }
.next-reads h2 { font-size: 1.3rem; margin-bottom: 18px; }

/* Quiz */
.quiz-shell { max-width: 640px; margin: 0 auto; padding: 0 22px; }
.quiz-card { background: var(--paper); border: 1px solid var(--sand); border-radius: calc(var(--radius) + 6px); padding: 38px 32px; box-shadow: 0 14px 40px rgba(43,38,32,.07); }
.quiz-progress { height: 6px; background: var(--sand); border-radius: 99px; margin-bottom: 28px; overflow: hidden; }
.quiz-progress i { display: block; height: 100%; background: var(--clay); border-radius: 99px; transition: width .3s; }
.quiz-q { font-family: 'Fraunces', serif; font-size: 1.45rem; margin-bottom: 6px; }
.quiz-hint { color: var(--ink-soft); font-size: .92rem; margin-bottom: 22px; }
.quiz-opt {
  display: block; width: 100%; text-align: left; background: var(--cream);
  border: 2px solid var(--sand); border-radius: 14px; padding: 15px 18px; margin-bottom: 12px;
  font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--ink); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.quiz-opt:hover { border-color: var(--clay); background: #FEF3E2; }
.quiz-reflect { background: #FBF3DA; border-radius: 14px; padding: 18px 20px; margin-top: 4px; font-size: .97rem; color: #2E3C5E; }
.quiz-next { margin-top: 20px; }
.quiz-result h2 { font-family: 'Fraunces', serif; font-size: 1.7rem; margin-bottom: 14px; }
.quiz-result p { margin-bottom: 16px; color: #2E3C5E; }

/* Footer */
footer { background: var(--ink); color: #C7D3EA; padding: 56px 0 40px; margin-top: 40px; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
@media (max-width: 720px) { footer .wrap { grid-template-columns: 1fr; } }
footer h4 { color: #fff; font-family: 'Fraunces', serif; margin-bottom: 12px; }
footer a { color: #E2EAF9; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; font-size: .95rem; }
footer .fine { grid-column: 1 / -1; border-top: 1px solid #2C3F6B; padding-top: 22px; font-size: .85rem; color: #8FA0C4; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  background: var(--wa); color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: 10px; padding: 13px 20px;
  border-radius: 999px; font-weight: 600; font-size: .95rem;
  box-shadow: 0 8px 24px rgba(238,127,45,.4);
}
.wa-float:hover { background: var(--wa-dark); }
.wa-float svg { width: 20px; height: 20px; }
.anon-float {
  position: fixed; right: 20px; bottom: 76px; z-index: 60;
  background: var(--ink); color: #EAF1FD; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .85rem;
  box-shadow: 0 8px 24px rgba(43,38,32,.3);
}
.anon-float:hover { background: #24406F; color: #fff; }

/* Utility */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.times li { margin-bottom: 10px; list-style: none; padding-left: 26px; position: relative; }
.times li::before { content: "→"; position: absolute; left: 0; color: var(--clay); }
.center { text-align: center; }

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding: 12px 16px; }
  .nav .btn { padding: 10px 18px; font-size: .9rem; white-space: nowrap; }
  .hero { padding: 40px 22px 36px; }
  .hero p.lead { font-size: 1.08rem; }
  section { padding: 38px 0; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .panel { padding: 28px 20px; }
  .quiz-card { padding: 26px 18px; }
  .post-cta .btn { width: 100%; text-align: center; margin-bottom: 10px; }
  article.post blockquote { font-size: 1.1rem; }
  .photo-ph { min-height: 180px; }
  .wa-float { right: 14px; bottom: 14px; padding: 11px 16px; font-size: .88rem; }
  .anon-float { right: 14px; bottom: 66px; padding: 9px 15px; font-size: .8rem; }
  footer { padding: 40px 0 90px; } /* keep floating buttons clear of footer links */
}
