:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --teal: #0d9488;
  --teal-dark: #0a7168;
  --amber: #f59e0b;
  --ink: #1e293b;
  --muted: #64748b;
  --bg: #f6f8fb;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(11, 31, 58, .25);
  --bs-primary: var(--teal);
  --bs-primary-rgb: 13, 148, 136;
  --bs-link-color: var(--teal-dark);
  --bs-link-hover-color: var(--navy);
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-color: var(--ink);
}

/* AOS's fade-left/fade-right animations translate elements off to the side before they scroll into view; on
   narrow (mobile) viewports that pre-animation transform is wide enough to make the whole page horizontally
   scrollable, which cuts off/shifts unrelated content elsewhere on the page (e.g. the hero) until the browser
   settles back. Nothing on this site relies on intentional horizontal page scroll, so clipping it here is safe. */
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body { background: var(--bg); font-family: var(--bs-body-font-family); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .display-font { font-family: 'DM Serif Display', Georgia, serif; letter-spacing: -.01em; color: var(--navy); }
h4, h5, h6 { color: var(--navy); font-weight: 700; }

.btn-primary { --bs-btn-bg: var(--teal); --bs-btn-border-color: var(--teal); --bs-btn-hover-bg: var(--teal-dark); --bs-btn-hover-border-color: var(--teal-dark);
  --bs-btn-active-bg: var(--teal-dark); --bs-btn-active-border-color: var(--teal-dark); --bs-btn-disabled-bg: var(--teal); --bs-btn-disabled-border-color: var(--teal); font-weight: 600; }
.btn-accent { background: var(--amber); border-color: var(--amber); color: #3b2a00; font-weight: 700; }
.btn-accent:hover { background: #d98a06; border-color: #d98a06; color: #2a1d00; }
.btn { border-radius: 12px; padding: .6rem 1.2rem; }
.btn-lg { padding: .85rem 1.7rem; border-radius: 14px; }
.text-teal { color: var(--teal) !important; }
.bg-navy { background: var(--navy) !important; }
.form-control, .form-select { border-radius: 12px; padding: .65rem .9rem; border-color: #d5dde8; }
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 .25rem rgba(13, 148, 136, .18); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.card { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.card-flat { border: 1px solid #e5eaf1; box-shadow: none; }

/* Top bar & nav */
.topbar { background: var(--navy); color: #cbd5e1; font-size: .85rem; }
.topbar a { color: #e2e8f0; text-decoration: none; }
.topbar a:hover { color: #fff; }
.site-nav { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 #e5eaf1; }
.navbar-brand { font-family: 'DM Serif Display', serif; font-size: 1.55rem; color: var(--navy) !important; }
.brand-logo { height: 34px; width: auto; display: block; }
.site-footer .brand-logo { height: 40px; }
.site-nav .nav-link { white-space: nowrap; font-weight: 600; color: var(--ink); padding: .6rem .9rem !important; border-radius: 10px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--teal-dark); background: rgba(13, 148, 136, .08); }
.dropdown-menu { border: 0; border-radius: 14px; box-shadow: var(--shadow); padding: .6rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .8rem; font-weight: 500; }
.dropdown-header { text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; color: var(--teal-dark); font-weight: 800; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #e2e8f0; background: radial-gradient(1200px 500px at 85% -10%, rgba(13, 148, 136, .55), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); padding: 5.5rem 0 7rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.08; }
.hero .lead { color: #cbd5e1; max-width: 34rem; }
.hero::after { content: ''; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; background: rgba(245, 158, 11, .12); filter: blur(10px); }
.hero .pill { display: inline-flex; gap: .5rem; align-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; padding: .35rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.hero-stats .num { font-family: 'DM Serif Display', serif; font-size: 2rem; color: #fff; }
.hero-stats small { color: #94a3b8; }
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #cbd5e1; padding: 3.2rem 0; }
.page-hero h1 { color: #fff; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: #94a3b8; }
.page-hero .breadcrumb-item.active { color: #e2e8f0; }

/* Quote card */
.quote-card { border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.quote-total { background: linear-gradient(135deg, #ecfdf5, #f0fdfa); border: 1px dashed #99f6e4; border-radius: 14px; }
.quote-total .amount { font-family: 'DM Serif Display', serif; font-size: 2.4rem; color: var(--navy); line-height: 1; }
.level-toggle .btn { flex: 1; }
.btn-check:checked + .btn-outline-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-outline-teal { border: 1.5px solid #cbd5e1; color: var(--ink); font-weight: 600; }
.btn-outline-teal:hover { border-color: var(--teal); color: var(--teal-dark); background: #f0fdfa; }

/* Sections */
.section { padding: 5rem 0; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--teal); }
.category-card { position: relative; overflow: hidden; border-radius: 20px; padding: 2rem; height: 100%; color: #fff; transition: transform .25s, box-shadow .25s; text-decoration: none; display: block; }
.category-card:hover { transform: translateY(-6px); box-shadow: 0 25px 40px -20px rgba(0, 0, 0, .5); color: #fff; }
.category-card i.bg-icon { position: absolute; right: -10px; bottom: -20px; font-size: 9rem; opacity: .12; }
.category-card.academic { background: linear-gradient(135deg, #0f766e, #134e4a); }
.category-card.author { background: linear-gradient(135deg, #b45309, #7c2d12); }
.category-card.business { background: linear-gradient(135deg, #1d4ed8, #1e3a8a); }
.category-card h3 { color: #fff; }
.service-card { border-radius: var(--radius); background: var(--card); padding: 1.6rem; height: 100%; border: 1px solid #e8edf4; transition: all .25s; text-decoration: none; color: var(--ink); display: block; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(13, 148, 136, .4); color: var(--ink); }
.icon-box { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(13, 148, 136, .14), rgba(18, 48, 90, .12)); color: var(--teal-dark); font-size: 1.5rem; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem; box-shadow: 0 0 0 6px rgba(13, 148, 136, .18); }
.bg-soft { background: #eef3f9; }
.stars { color: var(--amber); letter-spacing: 2px; }
.testimonial-card { background: #fff; border-radius: var(--radius); padding: 1.8rem; height: 100%; box-shadow: var(--shadow); position: relative; }
.testimonial-card::before { content: '\201C'; position: absolute; top: -8px; right: 22px; font-family: 'DM Serif Display', serif; font-size: 6rem; color: rgba(13, 148, 136, .15); line-height: 1; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.media-strip { opacity: .65; filter: grayscale(1); font-weight: 800; letter-spacing: .04em; }
.marquee-row {
  overflow: hidden; width: 100%; padding: .85rem 0;
  background: linear-gradient(90deg, rgba(13, 148, 136, .06), rgba(11, 31, 58, .05));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row .marquee-track {
  display: inline-flex; align-items: center; gap: .6em; white-space: nowrap; padding-left: 100%;
  animation: marquee-scroll 48s linear infinite;
  font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-size: 1.05rem;
  letter-spacing: .01em; color: var(--navy);
}
.marquee-row:hover .marquee-track { animation-play-state: paused; }
.marquee-row a { color: var(--teal-dark); font-style: normal; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(13, 148, 136, .4); }
.marquee-row a:hover { color: var(--navy); border-color: var(--navy); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 576px) { .marquee-row .marquee-track { font-size: .92rem; } }
.cta-band { background: linear-gradient(120deg, var(--teal-dark), var(--navy-2)); color: #e2f5f3; border-radius: 26px; padding: 3.2rem; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.blog-card img { height: 200px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.blog-card { overflow: hidden; height: 100%; transition: transform .25s; }
.blog-card:hover { transform: translateY(-5px); }
.feature-list li { padding-left: 1.9rem; position: relative; margin-bottom: .55rem; list-style: none; }
.feature-list li::before { content: '\F26A'; font-family: 'bootstrap-icons'; position: absolute; left: 0; color: var(--teal); }
.prose { line-height: 1.8; font-size: 1.05rem; }
.prose h4 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.help-shot { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #eef3f9; position: relative; }
.help-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.help-shot-fallback { display: none; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; color: var(--muted); background: linear-gradient(135deg, #eef3f9, #e4ecf6); }
.help-shot-fallback i { font-size: 2.6rem; color: #b7c4d6; }
.help-shot-fallback span { font-size: .85rem; font-weight: 600; }
.accordion-item { border: 1px solid #e5eaf1 !important; border-radius: 14px !important; margin-bottom: .8rem; overflow: hidden; }
.accordion-button { font-weight: 700; color: var(--navy); }
.accordion-button:not(.collapsed) { background: #f0fdfa; color: var(--teal-dark); box-shadow: none; }

/* Footer */
.site-footer { background: var(--navy); color: #94a3b8; padding-top: 4rem; }
.site-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.site-footer a { color: #94a3b8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2.5rem; padding: 1.3rem 0; font-size: .85rem; }
.social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); margin-right: .4rem; }
.social a:hover { background: var(--teal); }

/* Auth */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 3rem 0; }
.auth-card { max-width: 520px; width: 100%; }

/* Status badges */
.badge-status { font-weight: 700; padding: .45em .8em; border-radius: 999px; font-size: .75rem; }
.st-PendingPayment { background: #fef3c7; color: #92400e; }
.st-Received { background: #dbeafe; color: #1e40af; }
.st-InProgress { background: #e0e7ff; color: #3730a3; }
.st-Delivered { background: #d1fae5; color: #065f46; }
.st-Completed { background: #bbf7d0; color: #14532d; }
.st-Cancelled { background: #e5e7eb; color: #374151; }
.st-Refunded { background: #fee2e2; color: #991b1b; }

/* Portal + admin shells */
.side-menu .nav-link { color: var(--ink); font-weight: 600; border-radius: 12px; padding: .7rem 1rem; display: flex; align-items: center; gap: .7rem; }
.side-menu .nav-link:hover { background: #eef3f9; }
.side-menu .nav-link.active { background: var(--navy); color: #fff; }
.stat-tile { border-radius: var(--radius); padding: 1.3rem; background: #fff; box-shadow: var(--shadow); height: 100%; }
.stat-tile .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; }
.stat-tile .value { font-family: 'DM Serif Display', serif; font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.table > :not(caption) > * > * { padding: .85rem .9rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom-width: 1px; background: #f8fafc; }
.admin-body { background: #f1f5f9; }
.admin-sidebar { width: 260px; background: var(--navy); min-height: 100vh; position: sticky; top: 0; align-self: flex-start; }
.admin-sidebar .nav-link { color: #b6c2d4; font-weight: 600; border-radius: 10px; padding: .6rem .9rem; display: flex; gap: .7rem; align-items: center; }
.admin-sidebar .nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-sidebar .nav-link.active { background: var(--teal); color: #fff; }
.admin-sidebar .nav-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #64748b; padding: 1rem .9rem .3rem; }
.chat-bubble { max-width: 80%; padding: .7rem 1rem; border-radius: 16px; margin-bottom: .6rem; }
.chat-bubble.me { background: var(--teal); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-bubble.them { background: #eef3f9; border-bottom-left-radius: 4px; }
.drop-zone { border: 2px dashed #b7c4d6; border-radius: 16px; padding: 2rem; text-align: center; background: #f8fafc; transition: all .2s; cursor: pointer; }
.drop-zone.drag { border-color: var(--teal); background: #f0fdfa; }
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: #dbe3ee; }
.timeline .t-item { position: relative; margin-bottom: 1rem; }
.timeline .t-item::before { content: ''; position: absolute; left: -1.6rem; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #cbd5e1; }
.timeline .t-item.done::before { background: var(--teal); border-color: var(--teal); }
.timeline .t-item.current::before { border-color: var(--amber); background: #fff7e0; }

.field-validation-error, .text-danger { font-size: .85rem; }
.input-validation-error { border-color: #dc3545 !important; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }
.print-only { display: none; }
@media print { .no-print, .site-nav, .topbar, .site-footer { display: none !important; } .print-only { display: block; } body { background: #fff; } .card { box-shadow: none; border: 1px solid #ddd; } }
@media (max-width: 991px) { .admin-sidebar { width: 100%; min-height: 0; position: static; } .hero { padding: 3.5rem 0 5rem; } }
