/* ============================================================
   Bitnova Writers — Main Stylesheet
   Brand: #51BE78 (Green) + #0B1C3D (Navy)
   Fonts: Syne (headings) + Plus Jakarta Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --green:         #51BE78;
    --green-dark:    #3da362;
    --green-light:   #7fd49f;
    --green-pale:    #edf8f2;
    --navy:          #0B1C3D;
    --navy-mid:      #152d5e;
    --navy-light:    #1e3f80;
    --primary:       #0B1C3D;
    --primary-dark:  #07122a;
    --accent:        #51BE78;
    --accent-light:  #7fd49f;
    --light-bg:      #f5f8f5;
    --card-bg:       #ffffff;
    --text-main:     #0B1C3D;
    --text-muted:    #5a6a7e;
    --border:        #d8e8df;
    --success:       #51BE78;
    --danger:        #e53e3e;
    --warning:       #f6ad55;
    --info:          #3182ce;
    --radius:        14px;
    --radius-sm:     9px;
    --shadow-sm:     0 2px 14px rgba(11,28,61,0.07);
    --shadow-md:     0 6px 32px rgba(11,28,61,0.12);
    --shadow-lg:     0 18px 64px rgba(11,28,61,0.17);
    --transition:    all 0.24s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-heading {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}



/* ---- HERO ---- */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 55%, #1a4070 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(81,190,120,0.12) 1.5px, transparent 1.5px);
    background-size: 36px 36px;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 72px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72'%3E%3Cpath fill='%23ffffff' d='M0,40L80,45C160,50,320,60,480,58C640,56,800,42,960,36C1120,30,1280,34,1360,36L1440,38V72H0Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}
.hero-blob {
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(81,190,120,0.18) 0%, transparent 70%);
    right: -80px; top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: #fff;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.hero-title .highlight {
    color: var(--green);
    position: relative;
    display: inline-block;
}
.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0; right: 0;
    height: 4px;
    background: var(--green);
    border-radius: 2px;
    opacity: 0.35;
}
.hero-subtitle {
    font-size: 1.08rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.68;
    max-width: 520px;
    font-weight: 400;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(81,190,120,0.15);
    border: 1px solid rgba(81,190,120,0.3);
    color: var(--green-light);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.hero-stats { display: flex; gap: 2.25rem; margin-top: 2.5rem; }
.hero-stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    color: var(--green);
    font-weight: 800;
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-top: 2px;
}
.hero-card-float {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    color: #fff;
    position: absolute;
}
.hero-card-float.card-1 { bottom: 10%; left: -20px; }
.hero-card-float.card-2 { top: 15%; right: -10px; }

/* ---- SECTIONS ---- */
.section-tag {
    display: inline-block;
    background: var(--green-pale);
    color: var(--green-dark);
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    color: var(--navy);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.section-divider {
    width: 48px; height: 4px;
    background: linear-gradient(90deg, var(--green), var(--green-light));
    border-radius: 2px;
    margin: 0 auto 1rem;
}

/* ---- SERVICE CARDS ---- */
.service-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--green), var(--green-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: rgba(81,190,120,0.3); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, var(--green-pale), rgba(81,190,120,0.14));
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--green-dark);
    margin-bottom: 1.25rem;
}
.service-card h5 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.2rem; color: var(--navy); margin-bottom: 0.6rem; font-weight:700; }

/* ---- ORDER CARD ---- */
.order-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    transition: var(--transition);
    margin-bottom: 1rem;
}
.order-card:hover { box-shadow: var(--shadow-sm); border-color: rgba(81,190,120,0.35); }

/* ---- HOW IT WORKS ---- */
.step-number {
    width: 54px; height: 54px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 16px rgba(81,190,120,0.4);
}
.step-connector {
    position: absolute;
    top: 27px; left: 60%;
    width: 80%; height: 2px;
    background: linear-gradient(90deg, var(--green), transparent);
    opacity: 0.4;
}

/* ---- SHOP CARDS ---- */
.material-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}
.material-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(81,190,120,0.3); }
.material-card .preview-img { width: 100%; height: 200px; object-fit: cover; background: var(--light-bg); }
.material-card .card-body { padding: 1.25rem; }
.material-price { font-size: 1.4rem; font-weight: 700; color: var(--green-dark); font-family: 'Cormorant Garamond', Georgia, serif; }
.material-price-old { text-decoration: line-through; color: var(--text-muted); font-size: 0.85rem; }

/* ---- PRICING ---- */
.pricing-table { overflow: hidden; border-radius: var(--radius); border: 1.5px solid var(--border); }
.pricing-table thead th { background: var(--navy); color: #fff; font-weight: 700; padding: 1rem; }
.pricing-table tbody td { padding: 0.85rem 1rem; }
.pricing-table tbody tr:hover td { background: var(--green-pale); }

/* ---- DASHBOARD ---- */
.dashboard-wrapper { display: flex; min-height: 100vh; }
.sidebar {
    width: 262px;
    background: var(--navy);
    color: #fff;
    flex-shrink: 0;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: width 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.05);
}
.sidebar-brand {
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-brand img { height: 36px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.sidebar-brand-text {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.25;
}
.sidebar-brand-text span { color: var(--green); }
.sidebar-nav { padding: 0.75rem 0; }
.sidebar-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.3);
    padding: 0.6rem 1.5rem 0.2rem;
    margin-top: 0.5rem;
    font-weight: 600;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: var(--transition);
}
.sidebar-link:hover { color: #fff; background: rgba(81,190,120,0.12); border-left-color: var(--green); }
.sidebar-link.active { color: #fff; background: rgba(81,190,120,0.15); border-left-color: var(--green); }
.sidebar-link i { font-size: 1rem; width: 20px; opacity: 0.9; }
.sidebar-link .badge { margin-left: auto; }
.main-content { margin-left: 262px; flex: 1; background: var(--light-bg); min-height: 100vh; }
.top-bar {
    background: #fff;
    border-bottom: 1.5px solid var(--border);
    padding: 0.85rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(11,28,61,0.06);
}
.page-content { padding: 1.75rem; }

/* ---- STAT CARDS ---- */
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.4rem;
    border-left: 4px solid var(--navy);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card.accent  { border-left-color: var(--green); }
.stat-card.success { border-left-color: var(--green); }
.stat-card.info    { border-left-color: #3182ce; }
.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}
.stat-label { font-size: 0.81rem; color: var(--text-muted); margin-top: 0.3rem; font-weight: 500; }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }

/* ---- TABLES ---- */
.data-table { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table thead th {
    background: var(--navy);
    color: rgba(255,255,255,0.88);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border-bottom: none;
    padding: 0.9rem 1rem;
}
.data-table tbody td { padding: 0.9rem 1rem; vertical-align: middle; border-color: var(--border); font-size: 0.9rem; }
.data-table tbody tr:hover td { background: var(--green-pale); }

/* ---- FORMS ---- */
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.form-control:focus, .form-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(81,190,120,0.15);
    outline: none;
}
.form-label { font-weight: 600; font-size: 0.86rem; color: var(--navy); margin-bottom: 0.4rem; }
.form-text  { font-size: 0.78rem; color: var(--text-muted); }

/* Bootstrap overrides */
.btn { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; }
.btn-primary { background: var(--navy) !important; border-color: var(--navy) !important; font-weight: 700; }
.btn-primary:hover { background: var(--navy-mid) !important; border-color: var(--navy-mid) !important; }
.btn-success { background: var(--green) !important; border-color: var(--green) !important; font-weight: 700; }
.btn-success:hover { background: var(--green-dark) !important; border-color: var(--green-dark) !important; }
.btn-outline-primary { color: var(--navy) !important; border-color: var(--navy) !important; }
.btn-outline-primary:hover { background: var(--navy) !important; color: #fff !important; }
.btn-outline-success { color: var(--green-dark) !important; border-color: var(--green) !important; }
.btn-outline-success:hover { background: var(--green) !important; color: #fff !important; }
.nav-pills .nav-link.active { background: var(--navy) !important; }
.nav-pills .nav-link { color: var(--navy); font-weight: 600; font-size: 0.9rem; }
.accordion-button:not(.collapsed) { background: var(--green-pale); color: var(--green-dark); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(81,190,120,0.15); }

/* ---- CHAT ---- */
.chat-bubble {
    max-width: 70%;
    padding: 0.78rem 1rem;
    border-radius: 14px;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    line-height: 1.55;
}
.chat-bubble.outgoing { background: var(--navy); color: #fff; margin-left: auto; border-bottom-right-radius: 3px; }
.chat-bubble.incoming { background: var(--card-bg); color: var(--text-main); border: 1.5px solid var(--border); border-bottom-left-radius: 3px; }
.chat-bubble .time { font-size: 0.68rem; opacity: 0.6; margin-top: 0.3rem; }

/* ---- BADGES ---- */
.badge { font-weight: 600; padding: 0.4em 0.78em; border-radius: 6px; }

/* ---- FOOTER ---- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); }
.footer-logo { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 0.75rem; }
.footer-brand { font-family: 'Syne', sans-serif; font-size: 1.4rem; color: #fff; font-weight: 800; }
.footer-heading { color: rgba(255,255,255,0.9); font-weight: 700; margin-bottom: 1rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.8px; font-family: 'Syne', sans-serif; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; font-size: 0.86rem; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--green); }
.footer-social { width: 36px; height: 36px; background: rgba(255,255,255,0.07); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.65); text-decoration: none; transition: var(--transition); }
.footer-social:hover { background: var(--green); color: #fff; }

/* ---- PAYMENT UI ---- */
.payment-method-btn {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    background: #fff;
}
.payment-method-btn:hover, .payment-method-btn.selected {
    border-color: var(--green);
    background: var(--green-pale);
    box-shadow: 0 0 0 3px rgba(81,190,120,0.12);
}
.payment-method-btn img { height: 30px; object-fit: contain; }

/* ---- ALERTS ---- */
.alert { border-radius: var(--radius-sm); border: none; font-size: 0.9rem; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-danger  { background: #fee2e2; color: #991b1b; }
.alert-info    { background: #dbeafe; color: #1e40af; }
.flash-message { animation: slideDown 0.35s ease; }
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }

/* ---- MISC ---- */
.divider-text { position: relative; text-align: center; margin: 1rem 0; }
.divider-text::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.divider-text span { position: relative; background: #fff; padding: 0 0.75rem; font-size: 0.8rem; color: var(--text-muted); }

.text-green    { color: var(--green) !important; }
.text-navy     { color: var(--navy) !important; }
.bg-green      { background: var(--green) !important; }
.bg-navy       { background: var(--navy) !important; }
.bg-green-pale { background: var(--green-pale) !important; }

/* Trust badges */
.trust-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.trust-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.7); font-weight: 500; }
.trust-badge i { color: var(--green); font-size: 1rem; }

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

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(81,190,120,0.3); }
    50%       { box-shadow: 0 0 0 10px rgba(81,190,120,0); }
}
.pulse-green { animation: pulse-green 2s infinite; }

/* Responsive */
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: 4px 0 32px rgba(11,28,61,0.35); }
    .main-content { margin-left: 0; }
    .hero-stats { gap: 1.25rem; }
}
@media (max-width: 768px) {
    .step-connector { display: none; }
    .hero-card-float { display: none; }
    .hero-blob { display: none; }
    .page-content { padding: 1.2rem; }
}


/* ================================================================
   NAVBAR — Complete implementation
   Logic:
   • Dark-hero pages  → nav transparent, white logo visible
   • Light-bg pages   → nav white, color logo visible
   • After scroll     → nav navy (both page types), white logo visible
   ================================================================ */

#mainNav {
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.3s ease;
    padding: 0.9rem 0;
}

/* Hide both by default */
#mainNav .nav-logo {
    display:none;
}

/* Dark hero pages */
body:not(.nav-light-page) #mainNav:not(.scrolled) .nav-logo-white {
    display:inline-block;
}

/* Light pages */
body.nav-light-page #mainNav:not(.scrolled) .nav-logo-color {
    display:inline-block;
}

/* After scroll */
#mainNav.scrolled .nav-logo-white {
    display:inline-block;
}

/* ── Nav background states ─────────────────────────────────────── */

/* Dark hero — transparent at top */
body:not(.nav-light-page) #mainNav:not(.scrolled) {
    background: transparent !important;
    box-shadow: none;
}

/* Light pages — solid white at top */
body.nav-light-page #mainNav:not(.scrolled) {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1.5px solid var(--border);
    box-shadow: 0 2px 16px rgba(11, 28, 61, 0.06);
    padding: 0.7rem 0;
}

/* Scrolled — navy for ALL pages */
#mainNav.scrolled {
    background: var(--navy) !important;
    box-shadow: 0 4px 24px rgba(11, 28, 61, 0.35);
    padding: 0.55rem 0;
}

/* ── Nav link colors ────────────────────────────────────────────── */

/* Dark/transparent nav — white links */
body:not(.nav-light-page) #mainNav:not(.scrolled) .nav-link,
#mainNav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}
body:not(.nav-light-page) #mainNav:not(.scrolled) .nav-link:hover,
#mainNav.scrolled .nav-link:hover {
    color: #fff !important;
    background: rgba(81, 190, 120, 0.18);
}

/* Light nav (light pages at top) — dark links */
body.nav-light-page #mainNav:not(.scrolled) .nav-link {
    color: var(--navy) !important;
    font-weight: 600;
}
body.nav-light-page #mainNav:not(.scrolled) .nav-link:hover {
    color: var(--green-dark) !important;
    background: var(--green-pale);
}

/* ── Toggler icon — dark on light nav ──────────────────────────── */
body.nav-light-page #mainNav:not(.scrolled) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(11,28,61,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Nav outline button — adapts to bg ─────────────────────────── */
.nav-btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #fff !important;
    background: transparent;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff !important;
}
body.nav-light-page #mainNav:not(.scrolled) .nav-btn-outline {
    border-color: rgba(11, 28, 61, 0.5);
    color: var(--navy) !important;
}
body.nav-light-page #mainNav:not(.scrolled) .nav-btn-outline:hover {
    background: rgba(11, 28, 61, 0.06);
    border-color: var(--navy);
}

/* btn-accent stays consistent always */
.btn-accent {
    background: var(--green) !important;
    color: #fff !important;
    border: none;
    font-weight: 700;
    border-radius: 9px;
    transition: var(--transition);
}
.btn-accent:hover {
    background: var(--green-dark) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81, 190, 120, 0.38);
}

/* ================================================================
   PAGE HEROES — consistent inner-page header
   ================================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a4070 100%);
    padding: 5.5rem 0 3.5rem;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(81, 190, 120, 0.1) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    pointer-events: none;
}
.page-hero h1 {
    color: #fff !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-style: italic;
    margin-bottom: 0.75rem;
    position: relative;
}
.page-hero .lead {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}
.page-hero .section-tag {
    background: rgba(81, 190, 120, 0.18);
    color: var(--green-light);
    position: relative;
}

/* ================================================================
   FONTS — Cormorant Garamond for academic headings
   ================================================================ */
h1, h2, h3, h4, .section-title, .hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); line-height: 1.18; }
h3 { font-size: 1.5rem; line-height: 1.25; }
h4 { font-size: 1.2rem; }

/* Keep Syne for UI elements */
.sidebar-brand-text, .top-bar h6, .stat-num { font-family: 'Syne', sans-serif !important; }

.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem) !important;
    font-weight: 700 !important;
    font-style: italic;
    letter-spacing: -1px !important;
}
.hero-title .highlight { font-style: normal; color: var(--green); }
.section-title { font-style: italic; }
.service-card h5, .material-card h5 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 1.2rem !important; font-weight: 700 !important;
}
.material-price {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem; font-weight: 700; color: var(--green-dark);
}

/* ── Sidebar logo (dashboard pages) ─────────────────────────────── */
/* Sidebar is always navy, so always use white logo */
.sidebar-brand img {
    /* No filter — we directly use logo-white in sidebar markup */
    height: 34px; width: auto; object-fit: contain;
}

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