/* =============================================================
   I AM – ROOTED  |  Main Stylesheet
   Fonts: Cormorant Garamond (serif) + Inter (sans)
   Palette: Cedar green | Alabaster cream | Gold | Terracotta
   ============================================================= */

/* ----- Variables ------------------------------------------- */
:root {
  --bg:          #F7F5F0;   /* hsl(40,33%,96%) alabaster */
  --fg:          #2D4A3E;   /* hsl(150,14%,20%) cedar green */
  --card:        #FAF8F4;   /* hsl(40,33%,98%) */
  --primary:     #2D4A3E;
  --primary-fg:  #F7F5F0;
  --gold:        #C4915A;   /* hsl(40,50%,56%) */
  --terracotta:  #AA6047;   /* hsl(15,35%,50%) */
  --border:      #DDD8CF;   /* hsl(40,20%,85%) */
  --muted:       #EAE7E0;
  --muted-fg:    #6B7A71;   /* hsl(150,8%,45%) */
  --radius:      0.75rem;
  --shadow:      0 2px 12px rgba(45,74,62,.07);
  --shadow-lg:   0 8px 32px rgba(45,74,62,.13);
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Inter', system-ui, sans-serif;
}

/* ----- Reset ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ----- Layout ---------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
@media(min-width:768px)  { .container { padding: 0 2rem; } }
@media(min-width:1280px) { .container { padding: 0 3rem; } }

/* ----- Typography ------------------------------------------ */
.serif    { font-family: var(--serif); }
.eyebrow  { font-size: .75rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; }

/* ----- Buttons --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 2rem; border-radius: var(--radius);
  font-family: var(--sans); font-size: .8125rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; transition: all .2s;
  border: 2px solid transparent;
}
.btn-gold    { background: var(--gold); color: var(--primary); }
.btn-gold:hover { background: #b8814f; }
.btn-outline-white { background: transparent; border-color: rgba(247,245,240,.3); color: #F7F5F0; }
.btn-outline-white:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: .5rem 1.25rem; font-size: .75rem; }
.btn-full { width: 100%; justify-content: center; }

/* ----- Navbar ---------------------------------------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247,245,240,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(221,216,207,.5);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo-img { height: 48px; width: auto; }
.nav-links { display: none; gap: 2.5rem; }
@media(min-width:768px) { .nav-links { display: flex; align-items: center; } }
.nav-link {
  font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(45,74,62,.65); transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-hamburger {
  display: flex; flex-direction: column; gap: 5px;
  padding: .5rem; width: 2.5rem; height: 2.5rem; justify-content: center;
}
@media(min-width:768px) { .nav-hamburger { display: none; } }
.nav-hamburger span { display: block; height: 2px; background: var(--fg); border-radius: 2px; transition: all .3s; }
.mobile-menu { display: none; padding: 1rem; background: var(--bg); border-top: 1px solid var(--border); }
.mobile-menu.open { display: flex; flex-direction: column; gap: .25rem; }
.mobile-link { padding: .875rem 1rem; font-size: .875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(45,74,62,.7); border-radius: var(--radius); transition: all .2s; }
.mobile-link:hover { background: var(--muted); color: var(--gold); }

/* ----- Hero ------------------------------------------------ */
.hero { position: relative; min-height: 60vh; display: flex; align-items: center; overflow: hidden; background: var(--primary); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(45,74,62,.85) 0%, rgba(45,74,62,.6) 55%, rgba(45,74,62,.2) 100%); }
.hero-content { position: relative; z-index: 10; max-width: 640px; padding: 4rem 0; }
.hero-eyebrow { color: var(--gold); font-weight: 600; letter-spacing: .3em; font-size: .75rem; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero h1 { font-family: var(--serif); color: #F7F5F0; font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 600; line-height: 1.12; margin-bottom: 1.5rem; }
.hero-sub { color: rgba(247,245,240,.75); font-size: 1.0625rem; line-height: 1.7; margin-bottom: 2.5rem; max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (min-width: 768px) {
  .hero { min-height: 85vh; }
  .hero-content { padding: 6rem 0; }
}

/* ----- Scripture Banner ------------------------------------ */
.scripture-banner { padding: 5rem 1.5rem; text-align: center; }
.scripture-banner.bg-card { background: var(--card); }
.scripture-divider { width: 3rem; height: 1px; background: var(--gold); margin: 0 auto; }
.scripture-quote { font-family: var(--serif); font-size: clamp(1.125rem, 2.5vw, 1.5rem); font-style: italic; color: rgba(45,74,62,.8); line-height: 1.7; margin: 2rem auto; max-width: 48rem; }
.scripture-ref { font-size: .75rem; color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-family: var(--sans); margin-bottom: 2rem; }

/* ----- About ----------------------------------------------- */
.about-section { padding: 6rem 0; background: var(--card); }
.about-grid { display: grid; gap: 4rem; align-items: center; }
@media(min-width:1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-img-wrap { position: relative; }
.about-img-inner { border-radius: 1rem; overflow: hidden; }
.about-img-inner img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; padding: 2rem; }
.about-img-border { position: absolute; bottom: -1rem; right: -1rem; width: 6rem; height: 6rem; border: 2px solid var(--gold); border-radius: 1rem; }
.about-content .eyebrow { display: block; margin-bottom: 1rem; }
.about-content h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); margin-bottom: 1.25rem; }
.about-content p { color: var(--muted-fg); font-size: .9375rem; line-height: 1.75; }
.about-features { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.about-feature { display: flex; align-items: flex-start; gap: .75rem; }
.about-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: .4rem; }
.about-feature span { font-size: .875rem; color: rgba(45,74,62,.8); }

/* ----- Programs -------------------------------------------- */
.programs-section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .eyebrow { display: block; margin-bottom: 1rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 1rem; }
.section-header p { color: var(--muted-fg); max-width: 36rem; margin: 0 auto; font-size: .9375rem; }
.programs-grid { display: grid; gap: 2rem; }
@media(min-width:640px)  { .programs-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .programs-grid { grid-template-columns: repeat(3,1fr); } }
.program-card { border-radius: 1rem; border: 1px solid transparent; overflow: hidden; transition: box-shadow .3s; }
.program-card:hover { box-shadow: var(--shadow-lg); }
.program-card.gold      { background: rgba(196,145,90,.07); border-color: rgba(196,145,90,.2); }
.program-card.terracotta{ background: rgba(170,96,71,.07);  border-color: rgba(170,96,71,.2); }
.program-card.cedar     { background: rgba(45,74,62,.04);   border-color: rgba(45,74,62,.1); }
.program-card-img { aspect-ratio: 4/3; overflow: hidden; }
.program-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.program-card:hover .program-card-img img { transform: scale(1.05); }
.program-card-body { padding: 2rem; }
.program-card-body h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .75rem; }
.program-card-body p  { font-size: .875rem; color: var(--muted-fg); line-height: 1.7; }
.program-items { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.program-item { display: flex; align-items: flex-start; gap: .5rem; }
.program-item-dot { width: .375rem; height: .375rem; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: .45rem; }
.program-item span { font-size: .875rem; color: rgba(45,74,62,.7); line-height: 1.5; }
.program-scripture { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(221,216,207,.5); }
.program-scripture p { font-family: var(--serif); font-style: italic; font-size: .875rem; color: rgba(45,74,62,.6); line-height: 1.65; }
.program-scripture span { display: block; font-size: .75rem; color: var(--gold); letter-spacing: .15em; text-transform: uppercase; margin-top: .5rem; font-family: var(--sans); }

/* ----- Contact --------------------------------------------- */
.contact-section { padding: 6rem 0; background: var(--primary); }
.contact-grid { display: grid; gap: 4rem; }
@media(min-width:1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-left .eyebrow { color: var(--gold); display: block; margin-bottom: 1rem; }
.contact-left h2 { font-family: var(--serif); font-size: clamp(1.75rem, 3.5vw, 2.75rem); color: #F7F5F0; margin-bottom: 1.25rem; line-height: 1.2; }
.contact-left p  { color: rgba(247,245,240,.65); font-size: .9375rem; line-height: 1.75; margin-bottom: 2.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-item { display: flex; align-items: center; gap: 1rem; }
.contact-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(196,145,90,.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 1rem; height: 1rem; stroke: var(--gold); fill: none; stroke-width: 2; }
.contact-info-item span { font-size: .875rem; color: rgba(247,245,240,.75); }
.contact-form-wrap { background: rgba(247,245,240,.06); backdrop-filter: blur(8px); border: 1px solid rgba(247,245,240,.1); border-radius: 1rem; padding: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-input, .contact-textarea {
  width: 100%; padding: .75rem 1rem;
  background: rgba(247,245,240,.1); border: 1px solid rgba(247,245,240,.12);
  border-radius: .5rem; color: #F7F5F0; font-size: .9375rem;
  transition: border-color .2s;
}
.contact-input::placeholder, .contact-textarea::placeholder { color: rgba(247,245,240,.4); }
.contact-input:focus, .contact-textarea:focus { outline: none; border-color: rgba(196,145,90,.5); }
.contact-textarea { resize: none; min-height: 8rem; font-family: var(--sans); }
.contact-alert { padding: .875rem 1.25rem; border-radius: .5rem; font-size: .875rem; margin-bottom: 1rem; }
.contact-alert.success { background: rgba(34,139,34,.12); border: 1px solid rgba(34,139,34,.3); color: #d4edda; }
.contact-alert.error   { background: rgba(220,38,38,.12);  border: 1px solid rgba(220,38,38,.3);  color: #f8d7da; }

/* ----- Blog ------------------------------------------------ */
.blog-hero { padding: 5rem 0 3rem; text-align: center; }
.blog-hero .eyebrow { display: block; margin-bottom: 1rem; }
.blog-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1rem; }
.blog-hero p  { color: var(--muted-fg); max-width: 28rem; margin: 0 auto; }
.blog-tabs { display: flex; justify-content: center; gap: .25rem; margin: 2rem 0 3rem; background: var(--muted); border-radius: var(--radius); padding: .25rem; width: fit-content; margin-left: auto; margin-right: auto; }
.blog-tab { padding: .5rem 1.25rem; border-radius: .5rem; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-fg); transition: all .2s; cursor: pointer; }
.blog-tab.active, .blog-tab:hover { background: var(--bg); color: var(--gold); box-shadow: var(--shadow); }
.blog-grid { display: grid; gap: 2rem; padding-bottom: 5rem; }
@media(min-width:640px)  { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .blog-grid { grid-template-columns: repeat(3,1fr); } }
.blog-card { background: var(--card); border: 1px solid rgba(221,216,207,.6); border-radius: 1rem; overflow: hidden; transition: box-shadow .3s; display: block; color: inherit; text-decoration: none; }
.blog-card:hover { box-shadow: var(--shadow-lg); }
.blog-card-img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.5rem; }
.blog-card-cat  { font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .75rem; display: block; }
.blog-card h3   { font-family: var(--serif); font-size: 1.25rem; color: var(--fg); line-height: 1.35; transition: color .2s; }
.blog-card:hover h3 { color: var(--gold); }
.blog-card-excerpt { font-size: .8125rem; color: var(--muted-fg); line-height: 1.65; margin-top: .75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; font-size: .75rem; color: var(--muted-fg); }
.blog-card-meta span { color: var(--gold); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* ----- Single Blog Post ------------------------------------ */
.post-progress { position: fixed; top: 72px; left: 0; right: 0; z-index: 99; height: 3px; background: rgba(221,216,207,.3); }
.post-progress-bar { height: 100%; background: var(--gold); transition: width .1s; }
.post-article { max-width: 720px; margin: 0 auto; padding: 4rem 1.5rem 6rem; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--muted-fg); margin-bottom: 2rem; transition: color .2s; }
.back-link:hover { color: var(--gold); }
.post-cat  { font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: block; }
.post-article h1 { font-family: var(--serif); font-size: clamp(1.75rem, 3.5vw, 3rem); line-height: 1.2; margin-bottom: 1.25rem; }
.post-meta { display: flex; align-items: center; gap: 1rem; font-size: .875rem; color: var(--muted-fg); margin-bottom: 2.5rem; }
.post-meta-dot { width: .25rem; height: .25rem; border-radius: 50%; background: var(--muted-fg); opacity: .4; }
.post-meta .scripture { color: var(--gold); }
.post-cover { border-radius: 1rem; overflow: hidden; margin-bottom: 2.5rem; }
.post-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-content { font-size: 1.0625rem; line-height: 1.85; color: rgba(45,74,62,.85); }
.post-content h2 { font-family: var(--serif); font-size: 1.625rem; margin: 2.5rem 0 .75rem; color: var(--fg); }
.post-content h3 { font-family: var(--serif); font-size: 1.25rem; margin: 2rem 0 .5rem; color: var(--fg); }
.post-content p  { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: .4rem; }
.post-content blockquote { border-left: 3px solid var(--gold); padding: .75rem 1.25rem; font-family: var(--serif); font-style: italic; color: rgba(45,74,62,.7); margin: 2rem 0; background: rgba(196,145,90,.05); border-radius: 0 .5rem .5rem 0; }
.post-content a { color: var(--gold); text-decoration: underline; }
.post-content strong { color: var(--fg); }

/* ----- Forms (admin + general) ----------------------------- */
.form-group { display: flex; flex-direction: column; gap: .375rem; }
label { font-size: .875rem; font-weight: 600; color: var(--fg); }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: .625rem .875rem;
  border: 1px solid var(--border); border-radius: .5rem;
  background: var(--bg); color: var(--fg); font-size: .9375rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,145,90,.12);
}
.form-textarea { resize: vertical; min-height: 7rem; font-family: var(--sans); }
.form-hint { font-size: .75rem; color: var(--muted-fg); margin-top: .25rem; }
.form-grid-2 { display: grid; gap: 1rem; }
@media(min-width:640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.form-grid-3 { display: grid; gap: 1rem; }
@media(min-width:640px) { .form-grid-3 { grid-template-columns: repeat(3,1fr); } }
.alert { padding: .875rem 1.25rem; border-radius: .5rem; font-size: .875rem; margin-bottom: 1.25rem; }
.alert-success { background: rgba(34,139,34,.07); border: 1px solid rgba(34,139,34,.3); color: #155724; }
.alert-error   { background: rgba(220,38,38,.07);  border: 1px solid rgba(220,38,38,.3);  color: #721c24; }

/* ----- Admin Layout ---------------------------------------- */
.admin-wrap { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar { width: 15rem; background: var(--primary); display: none; flex-direction: column; padding: 1.25rem; }
@media(min-width:1024px) { .admin-sidebar { display: flex; } }
.admin-logo { display: flex; align-items: center; gap: .75rem; padding: .5rem; margin-bottom: 2rem; }
.admin-logo img { height: 2.5rem; width: auto; }
.admin-nav { flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.admin-nav-link { display: flex; align-items: center; gap: .625rem; padding: .625rem 1rem; border-radius: .5rem; font-size: .875rem; font-weight: 500; color: rgba(247,245,240,.65); transition: all .2s; text-decoration: none; }
.admin-nav-link:hover { background: rgba(247,245,240,.08); color: #F7F5F0; }
.admin-nav-link.active { background: var(--gold); color: var(--primary); }
.admin-nav-link svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.admin-sidebar-footer { border-top: 1px solid rgba(247,245,240,.1); padding-top: 1rem; }
.admin-mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; background: var(--primary); position: fixed; top: 0; left: 0; right: 0; z-index: 200; }
@media(min-width:1024px) { .admin-mobile-bar { display: none; } }
.admin-main { flex: 1; padding: 2rem; overflow-x: auto; }
@media(min-width:1024px) { .admin-main { padding-top: 2rem; } }
.admin-pt { padding-top: 4rem; }
@media(min-width:1024px) { .admin-pt { padding-top: 0; } }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.admin-topbar h1 { font-family: var(--serif); font-size: 1.625rem; }
.admin-card { background: var(--card); border: 1px solid var(--border); border-radius: .75rem; padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-card h2 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 1.25rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th { text-align: left; padding: .75rem 1rem; background: var(--muted); font-size: .75rem; font-weight: 600; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .06em; }
.admin-table td { padding: .75rem 1rem; border-top: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(196,145,90,.03); }
.badge { display: inline-flex; align-items: center; padding: .2rem .625rem; border-radius: 999px; font-size: .6875rem; font-weight: 600; }
.badge-gold     { background: rgba(196,145,90,.12); color: var(--gold); border: 1px solid rgba(196,145,90,.3); }
.badge-green    { background: rgba(34,139,34,.1);   color: #155724; }
.badge-muted    { background: var(--muted); color: var(--muted-fg); }
.badge-new      { background: var(--gold); color: var(--primary); }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: .75rem; padding: 1.5rem; }
.stat-num  { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--gold); }
.stat-label{ font-size: .875rem; color: var(--muted-fg); margin-top: .25rem; }
.image-upload-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.image-upload-btn { display: flex; align-items: center; gap: .5rem; padding: .625rem 1rem; border: 1px dashed var(--border); border-radius: .5rem; font-size: .875rem; cursor: pointer; transition: border-color .2s; }
.image-upload-btn:hover { border-color: var(--gold); }
.image-preview { width: 5rem; height: 5rem; border-radius: .5rem; object-fit: cover; border: 1px solid var(--border); }
.upload-status { font-size: .75rem; color: var(--muted-fg); }
.item-row { display: flex; align-items: center; gap: .5rem; }
.switch-wrap { display: flex; align-items: center; gap: .75rem; }
.switch { position: relative; display: inline-block; width: 2.5rem; height: 1.375rem; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; inset: 0; background: var(--muted); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch-slider:before { content:''; position:absolute; width:1rem; height:1rem; left:.2rem; bottom:.2rem; background:#fff; border-radius:50%; transition:.2s; }
.switch input:checked + .switch-slider { background: var(--gold); }
.switch input:checked + .switch-slider:before { transform: translateX(1.125rem); }

/* ----- Login page ------------------------------------------ */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: var(--bg); }
.login-box  { width: 100%; max-width: 26rem; background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 2.5rem; }
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo img { height: 4rem; width: auto; margin: 0 auto 1rem; }

/* ----- Utilities ------------------------------------------- */
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--muted-fg); }
.text-center  { text-align: center; }
.text-sm      { font-size: .875rem; }
.text-xs      { font-size: .75rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: .5rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.flex { display: flex; } .items-center { align-items: center; }
.gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }
.flex-1 { flex: 1; } .flex-wrap { flex-wrap: wrap; } .justify-between { justify-content: space-between; }
.hidden { display: none; } .block { display: block; }
.w-full { width: 100%; }
.font-serif { font-family: var(--serif); }
.spinner { width: 2rem; height: 2rem; border: 3px solid var(--muted); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; margin: 4rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted-fg); font-family: var(--serif); font-size: 1.125rem; }
.quill-wrap .ql-toolbar { border-color: var(--border); border-radius: .5rem .5rem 0 0; }
.quill-wrap .ql-container { border-color: var(--border); border-radius: 0 0 .5rem .5rem; min-height: 14rem; font-family: var(--sans); font-size: .9375rem; }

/* ----- Footer ---------------------------------------------- */
.footer { background: var(--primary); color: rgba(247,245,240,.7); }
.footer-grid {
  display: grid; gap: 3rem; padding: 5rem 0 3rem;
  grid-template-columns: 1fr;
}
@media(min-width:640px)  { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo    { height: 5rem; width: auto; margin-bottom: 1.25rem; }
.footer-tagline { font-size: .875rem; color: rgba(247,245,240,.55); line-height: 1.7; }
.footer-heading { font-family: var(--serif); font-size: 1.25rem; color: var(--gold); margin-bottom: 1.25rem; font-weight: 400; }
.footer-nav     { display: flex; flex-direction: column; gap: .625rem; }
.footer-nav a, .footer-nav span {
  font-size: .875rem; color: rgba(247,245,240,.65); transition: color .2s; text-decoration: none;
}
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(247,245,240,.1); padding: 2rem 0;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  font-size: .75rem; color: rgba(247,245,240,.35);
}
.footer-credit { color: rgba(247,245,240,.35); transition: color .2s; font-size: .75rem; }
.footer-credit:hover { color: var(--gold); }
.footer-admin-link { color: rgba(247,245,240,.15); transition: color .2s; font-size: 1rem; line-height: 1; }
.footer-admin-link:hover { color: rgba(247,245,240,.5); }
/* =============================================================
   E-COMMERCE & EXTENSIONS
   ============================================================= */

/* ----- Cart icon in navbar --------------------------------- */
.nav-cart {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  color: rgba(45,74,62,.7); transition: all .2s;
}
.nav-cart:hover { color: var(--gold); background: rgba(196,145,90,.08); }
.nav-cart svg { width: 1.125rem; height: 1.125rem; }
.nav-cart-badge {
  position: absolute; top: -.25rem; right: -.25rem;
  background: var(--gold); color: var(--primary);
  font-size: .625rem; font-weight: 700;
  min-width: 1.125rem; height: 1.125rem; padding: 0 .25rem;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

/* ----- Speaking / Events Banner ---------------------------- */
.speaking-banner {
  background: linear-gradient(135deg, var(--gold) 0%, #b8814f 100%);
  color: var(--primary);
  padding: 1.5rem 0;
}
.speaking-banner-inner {
  display: flex; align-items: center; gap: .875rem 1.25rem; flex-wrap: wrap;
  justify-content: center; text-align: center;
}
.speaking-banner-icon {
  width: 2.5rem; height: 2.5rem; min-width: 2.5rem; min-height: 2.5rem;
  max-width: 2.5rem; max-height: 2.5rem;
  border-radius: 50%; overflow: hidden;
  background: rgba(45,74,62,.12); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.speaking-banner-icon svg {
  width: 1.25rem; height: 1.25rem;
  max-width: 1.25rem; max-height: 1.25rem;
  display: block; flex-shrink: 0;
  stroke: var(--primary); fill: none;
}
.speaking-banner-text {
  font-size: .9375rem; font-weight: 500; line-height: 1.55; max-width: 42rem;
  color: var(--primary); margin: 0;
}
.speaking-banner-btn {
  background: var(--primary); color: var(--gold); border-color: var(--primary);
  flex-shrink: 0; margin-top: .25rem;
}
.speaking-banner-btn:hover { background: #1f342b; color: #f7f5f0; }
@media(min-width:768px) {
  .speaking-banner { padding: 1rem 0; }
  .speaking-banner-inner { justify-content: flex-start; text-align: left; gap: 1.25rem; }
  .speaking-banner-btn { margin-left: auto; margin-top: 0; }
}

/* ----- Featured Product (home page) ------------------------ */
.featured-product-section { padding: 5rem 0; background: var(--card); }
.featured-product-grid {
  display: grid; gap: 3rem; align-items: center;
}
@media(min-width:768px) { .featured-product-grid { grid-template-columns: 1fr 1.2fr; } }
.featured-product-img {
  background: #fff; border-radius: 1rem; padding: 2rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.featured-product-img img {
  width: 100%; aspect-ratio: 3/4; object-fit: contain;
  display: block; max-height: 28rem; margin: 0 auto;
}
.featured-product-content .eyebrow { display: block; margin-bottom: 1rem; }
.featured-product-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem); margin-bottom: .5rem; line-height: 1.15;
}
.featured-product-subtitle {
  font-family: var(--serif); font-style: italic;
  color: var(--gold); font-size: 1.125rem; margin-bottom: 1.25rem;
}
.featured-product-desc {
  color: var(--muted-fg); font-size: .9375rem; line-height: 1.75; margin-bottom: 1.5rem;
}
.featured-product-price {
  font-family: var(--serif); font-size: 2.25rem; font-weight: 600;
  color: var(--primary); margin-bottom: 1.5rem;
}
.featured-product-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ----- Shop Grid (listing page) ---------------------------- */
.shop-grid {
  display: grid; gap: 2rem; padding-bottom: 5rem;
  grid-template-columns: 1fr;
}
@media(min-width:640px)  { .shop-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .shop-grid { grid-template-columns: repeat(3,1fr); } }
.shop-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  overflow: hidden; transition: all .3s; display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
}
.shop-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: rgba(196,145,90,.3); }
.shop-card-img {
  aspect-ratio: 3/4; overflow: hidden; background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.shop-card-img img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transition: transform .5s;
}
.shop-card:hover .shop-card-img img { transform: scale(1.04); }
.shop-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.shop-card-body h3 { font-family: var(--serif); font-size: 1.25rem; color: var(--fg); margin-bottom: .25rem; }
.shop-card-subtitle {
  font-family: var(--serif); font-style: italic; color: var(--gold);
  font-size: .9375rem; margin-bottom: 1rem;
}
.shop-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(221,216,207,.6);
}
.shop-card-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--primary); }
.shop-card-cta {
  font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold);
}

/* ----- Product Detail page --------------------------------- */
.product-detail {
  display: grid; gap: 3rem; padding: 2rem 0 5rem;
}
@media(min-width:768px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-detail-img {
  background: #fff; border-radius: 1rem; padding: 2rem;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  min-height: 20rem;
}
.product-detail-img img {
  max-width: 100%; max-height: 32rem; object-fit: contain; display: block;
}
.product-detail-info .eyebrow { display: block; margin-bottom: .75rem; }
.product-detail-info h1 {
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: .5rem;
}
.product-detail-subtitle {
  font-family: var(--serif); font-style: italic;
  color: var(--gold); font-size: 1.25rem; margin-bottom: 1.5rem;
}
.product-detail-price {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 600;
  color: var(--primary); margin-bottom: 1.5rem;
}
.product-detail-desc {
  color: var(--muted-fg); font-size: .9375rem; line-height: 1.8;
  padding: 1.25rem 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); margin-bottom: 1.5rem;
}
.product-detail-form {
  display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1rem;
}
.product-detail-note {
  font-size: .8125rem; color: var(--muted-fg); line-height: 1.6;
  margin-top: 1rem; padding-left: 1rem; border-left: 2px solid var(--gold);
}
.product-detail-meta { margin-top: 1.5rem; }
.payment-info-note {
  font-size: .8125rem; color: var(--muted-fg); line-height: 1.6;
  background: rgba(196,145,90,.06); border-radius: .5rem; padding: .875rem 1rem;
}
.payment-info-note strong { color: var(--fg); display: block; margin-bottom: .25rem; }

/* ----- Quantity Selector ----------------------------------- */
.qty-control { display: flex; flex-direction: column; gap: .375rem; }
.qty-control label {
  font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-fg);
}
.qty-input-wrap {
  display: flex; align-items: center; border: 1px solid var(--border); border-radius: .5rem;
  background: var(--bg); overflow: hidden;
}
.qty-btn {
  width: 2.5rem; height: 2.75rem; font-size: 1.25rem; font-weight: 600;
  color: var(--fg); background: transparent; transition: background .15s;
}
.qty-btn:hover { background: var(--muted); }
.qty-input {
  width: 3.5rem; height: 2.75rem; text-align: center; border: none;
  background: transparent; font-weight: 600; font-size: .9375rem;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.qty-input:focus { outline: none; }
.btn-lg { padding: 1rem 2rem; font-size: .875rem; }

/* ----- Bulk warning banner --------------------------------- */
.bulk-warning {
  display: flex; align-items: flex-start; gap: .75rem;
  background: rgba(196,145,90,.08); border: 1px solid rgba(196,145,90,.3);
  border-radius: .5rem; padding: .875rem 1.125rem;
  font-size: .875rem; line-height: 1.55; color: #8a5a2b;
  margin-top: 1rem;
}
.bulk-warning svg { flex-shrink: 0; margin-top: .125rem; stroke: var(--gold); }

/* ----- Cart Page ------------------------------------------- */
.cart-wrap { padding-bottom: 4rem; }
.cart-items {
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  overflow: hidden;
}
.cart-item {
  display: grid;
  grid-template-columns: 5rem 1fr auto auto auto;
  gap: 1rem; align-items: center;
  padding: 1.25rem; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 5rem; aspect-ratio: 3/4; border-radius: .5rem; overflow: hidden;
  background: #fff; border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center; padding: .25rem;
}
.cart-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-item-title { text-decoration: none; color: inherit; }
.cart-item-title h3 {
  font-family: var(--serif); font-size: 1.0625rem; color: var(--fg);
  margin: 0 0 .125rem; transition: color .2s;
}
.cart-item-title:hover h3 { color: var(--gold); }
.cart-item-subtitle {
  font-size: .8125rem; color: var(--muted-fg); margin: 0;
  font-style: italic;
}
.cart-item-price {
  font-size: .8125rem; color: var(--muted-fg); margin-top: .25rem;
}
.cart-qty-input {
  width: 4rem; height: 2.25rem; text-align: center;
  border: 1px solid var(--border); border-radius: .375rem;
  background: var(--bg); font-weight: 600;
}
.cart-item-subtotal {
  font-family: var(--serif); font-size: 1.125rem; font-weight: 600;
  color: var(--primary); min-width: 5rem; text-align: right;
}
.cart-remove-btn {
  width: 2rem; height: 2rem; border-radius: 50%;
  font-size: 1.25rem; color: var(--muted-fg); transition: all .2s;
  border: 1px solid transparent;
}
.cart-remove-btn:hover { color: #dc2626; border-color: #dc2626; }

@media(max-width:640px) {
  .cart-item {
    grid-template-columns: 4rem 1fr auto;
    grid-template-areas:
      "img info remove"
      "img qty  subtotal";
    gap: .5rem 1rem;
  }
  .cart-item-img { grid-area: img; width: 4rem; }
  .cart-item-info { grid-area: info; }
  .cart-item-qty { grid-area: qty; }
  .cart-item-subtotal { grid-area: subtotal; }
  .cart-item-remove { grid-area: remove; align-self: flex-start; }
}

.cart-actions {
  display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-top: 1.5rem;
}
.cart-summary {
  margin-top: 2rem; max-width: 28rem; margin-left: auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1rem; padding: 1.75rem;
}
.cart-summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .5rem 0; font-size: .9375rem;
}
.cart-summary-total {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--primary); border-top: 1px solid var(--border);
  margin-top: .5rem; padding-top: 1rem;
}
.cart-summary-note {
  font-size: .75rem; color: var(--muted-fg); text-align: center;
  margin-top: .875rem; line-height: 1.5;
}

/* ----- Checkout Page --------------------------------------- */
.checkout-wrap {
  display: grid; gap: 2rem; padding-bottom: 4rem;
}
@media(min-width:1024px) { .checkout-wrap { grid-template-columns: 1.4fr 1fr; } }
.checkout-form { min-width: 0; }
.checkout-summary { min-width: 0; }
.checkout-items {
  display: flex; flex-direction: column; gap: .75rem;
}
.checkout-item {
  display: flex; align-items: center; gap: .875rem;
  padding-bottom: .75rem; border-bottom: 1px solid rgba(221,216,207,.5);
}
.checkout-item:last-child { border-bottom: none; padding-bottom: 0; }
.checkout-item-img {
  width: 3rem; aspect-ratio: 3/4; object-fit: contain;
  background: #fff; border: 1px solid var(--border);
  border-radius: .375rem; padding: .125rem; flex-shrink: 0;
}
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-name { font-size: .875rem; font-weight: 600; color: var(--fg); line-height: 1.4; }
.checkout-item-meta { font-size: .75rem; color: var(--muted-fg); margin-top: .125rem; }
.checkout-item-sub {
  font-weight: 600; font-size: .9375rem; color: var(--primary);
  white-space: nowrap;
}

/* ----- Order Confirmation page ----------------------------- */
.order-confirm-wrap { padding: 3rem 0 5rem; max-width: 52rem; margin: 0 auto; }
.order-confirm-header { text-align: center; margin-bottom: 3rem; }
.order-confirm-tick {
  width: 4rem; height: 4rem; border-radius: 50%;
  background: rgba(34,139,34,.12); color: #2d8f4e;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.order-confirm-tick svg { width: 2rem; height: 2rem; }
.order-confirm-header .eyebrow { display: block; margin-bottom: .5rem; }
.order-confirm-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem); line-height: 1.2; margin-bottom: 1rem;
}
.order-confirm-sub {
  color: var(--muted-fg); font-size: 1rem; line-height: 1.7;
  max-width: 36rem; margin: 0 auto 1.5rem;
}
.order-number-pill {
  display: inline-block; padding: .625rem 1.25rem;
  background: rgba(196,145,90,.1); color: var(--gold);
  border: 1px solid rgba(196,145,90,.3); border-radius: 999px;
  font-size: .8125rem; letter-spacing: .08em;
}
.order-number-pill strong {
  color: var(--primary); margin-left: .375rem;
  font-family: monospace; font-size: .9375rem;
}

/* ----- Bank Details card ----------------------------------- */
.bank-details-card { border: 1px solid rgba(196,145,90,.3); background: #fff; }
.bank-details-table {
  width: 100%; border-collapse: collapse;
}
.bank-details-table th {
  text-align: left; padding: .75rem 1rem;
  font-size: .8125rem; font-weight: 500; color: var(--muted-fg);
  width: 40%; border-bottom: 1px solid var(--border);
  background: transparent; letter-spacing: 0; text-transform: none;
}
.bank-details-table td {
  padding: .75rem 1rem; font-size: .9375rem; color: var(--fg);
  border-bottom: 1px solid var(--border);
}
.bank-details-table tr:last-child th,
.bank-details-table tr:last-child td { border-bottom: none; }
.bank-amount-row td, .bank-amount-row th {
  background: rgba(196,145,90,.07); padding-top: 1rem; padding-bottom: 1rem;
}
.bank-amount-row td strong { color: var(--gold); font-size: 1.25rem; font-family: var(--serif); }
.bank-ref-row td, .bank-ref-row th { background: rgba(196,145,90,.07); }
.bank-ref-row td strong { font-family: monospace; font-size: 1rem; color: var(--primary); }

/* ----- Sidebar adjustment for new admin nav items ---------- */
@media(max-width:480px) {
  .admin-mobile-bar > div { gap: .125rem; }
}

/* ============================================================
   BLOG POST SHARE BUTTONS & SEO ENHANCEMENTS
   ============================================================ */
.post-reading-time {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .8125rem; color: var(--muted-fg);
}
.post-share {
  margin-top: 4rem; padding: 2rem 0 0;
  border-top: 1px solid var(--border);
}
.post-share-heading {
  font-family: var(--serif);
  font-size: 1.125rem; font-weight: 600;
  color: var(--fg); margin-bottom: 1rem;
}
.post-share-buttons {
  display: flex; flex-wrap: wrap; gap: .625rem;
  margin-bottom: 1.25rem;
}
.post-share-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .875rem; border-radius: .5rem;
  font-size: .8125rem; font-weight: 500;
  text-decoration: none; color: var(--fg);
  background: var(--card); border: 1px solid var(--border);
  transition: all .15s; cursor: pointer;
}
.post-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.post-share-btn svg { flex-shrink: 0; }
.post-share-btn.share-whatsapp:hover { background: #25D366; color: #fff; border-color: #25D366; }
.post-share-btn.share-facebook:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.post-share-btn.share-x:hover        { background: #000;     color: #fff; border-color: #000; }
.post-share-btn.share-linkedin:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.post-share-btn.share-copy:hover     { background: var(--gold); color: var(--primary); border-color: var(--gold); }
.post-share-btn.share-copy.copied    { background: #2d8f4e; color: #fff; border-color: #2d8f4e; }

.post-share-url {
  font-size: .75rem; color: var(--muted-fg);
  background: var(--muted); padding: .5rem .75rem;
  border-radius: .375rem; word-break: break-all;
  font-family: monospace; margin: 0;
}

@media(max-width: 480px) {
  .post-share-btn span { display: none; }
  .post-share-btn { padding: .625rem; }
}
