:root {
  --paper: #F7F4EC;
  --paper-raised: #FFFFFF;
  --ink: #1C2541;
  --ink-soft: #4B5268;
  --line: #DDD6C4;
  --gold: #C68A1E;
  --gold-deep: #A6730F;
  --green: #3F6B4E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  color: var(--ink);
  font-weight: 600;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 56px;
  background: linear-gradient(135deg, #1C2541 0%, #141B30 100%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
}

.btn-primary {
  background: var(--gold);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.15s ease;
  text-decoration: none;
}

.btn-primary:hover { background: var(--gold-deep); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 90px 56px 100px;
  background: linear-gradient(135deg, #1C2541 0%, #141B30 100%);
}

.hero > div { max-width: 1180px; margin: 0 auto; width: 100%; }
.hero { padding-left: 0; padding-right: 0; }
.hero-text { padding-left: 56px; }
.hero-visual { padding-right: 56px; }

.hero-text h1 {
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-primary.large {
  font-size: 16px;
  padding: 14px 28px;
}

.hero-note {
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  height: 380px;
}

.doc-card {
  position: absolute;
  width: 230px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(28, 37, 65, 0.08);
  padding: 22px 20px;
}

.doc-before {
  top: 0;
  left: 10px;
  transform: rotate(-4deg);
  z-index: 1;
}

.doc-after {
  top: 60px;
  left: 150px;
  transform: rotate(3deg);
  z-index: 2;
}

.doc-card-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-weight: 600;
}

.scrawl-line {
  height: 7px;
  background: #CBC6B8;
  border-radius: 4px;
  margin-bottom: 10px;
}
.scrawl-line.w1 { width: 90%; transform: skewX(-6deg); }
.scrawl-line.w2 { width: 65%; transform: skewX(4deg); }
.scrawl-line.w3 { width: 80%; transform: skewX(-3deg); }

.clean-name {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

.clean-role {
  font-size: 12px;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 12px;
}

.clean-rule {
  height: 1px;
  background: var(--line);
  margin-bottom: 12px;
}

.clean-line {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  margin-bottom: 8px;
}
.clean-line.w1 { width: 100%; }
.clean-line.w2 { width: 92%; }
.clean-line.w3 { width: 70%; }

.stamp {
  position: absolute;
  bottom: 10px;
  right: 10px;
  border: 2px solid var(--green);
  color: var(--green);
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 50%;
  transform: rotate(-12deg);
  opacity: 0.85;
  z-index: 3;
}

.trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  background: var(--ink);
  padding: 28px 56px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trust-num {
  font-family: 'Lora', serif;
  font-size: 24px;
  font-weight: 600;
  color: #F7F4EC;
}

.trust-label {
  font-size: 12.5px;
  color: #AEB4C7;
  margin-top: 2px;
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.14);
}

.process {
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 56px;
}

.process h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 48px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 980px;
  margin: 0 auto;
}

.step-num {
  display: block;
  font-family: 'Lora', serif;
  font-size: 15px;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 280px;
}

.services {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 56px;
}

.services h2 {
  font-size: 28px;
  margin-bottom: 44px;
}

.service-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.panel {
  padding: 36px;
  border-radius: 4px;
}

.panel-doc {
  background: #FBF9F3;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
}

.panel-sheet {
  background: #F2F6F2;
  border: 1px solid #D7E2D7;
  border-left: 4px solid var(--green);
}

.panel-icon {
  font-size: 26px;
  margin-bottom: 14px;
}

.panel h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.panel p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.panel ul {
  list-style: none;
  font-size: 14px;
  color: var(--ink);
}

.panel li {
  padding: 6px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.panel li:first-child { border-top: none; }

.pricing {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 56px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pricing-text h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

.pricing-text p {
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 420px;
}

.receipt {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 28px 30px;
  box-shadow: 0 10px 30px rgba(28,37,65,0.07);
  font-family: 'Inter', monospace;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  padding: 9px 0;
  color: var(--ink);
}

.receipt-perf {
  border-top: 1px dashed var(--line);
  margin: 10px 0;
}

.receipt-total {
  font-weight: 700;
  color: var(--gold-deep);
  font-size: 15px;
}

.testimonial {
  background: #EFE9D8;
  padding: 70px 56px;
  text-align: center;
}

.testimonial blockquote {
  font-family: 'Lora', serif;
  font-size: 23px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto 18px;
  font-weight: 500;
}

.testimonial-attr {
  font-size: 14px;
  color: var(--ink-soft);
}

.site-footer {
  background: linear-gradient(135deg, #1C2541 0%, #141B30 100%);
  padding: 40px 56px;
}

.site-footer .footer-note { color: #9099B3; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
}

.footer-note {
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 60px 24px; }
  .hero-visual { display: none; }
  .navbar { padding: 18px 24px; }
  .process, .services { padding: 60px 24px; }
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .service-panels { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 32px; }
  .trust-strip { flex-wrap: wrap; gap: 24px; padding: 24px; }
  .pricing { grid-template-columns: 1fr; padding: 20px 24px 60px; }
  .testimonial { padding: 50px 24px; }
  .testimonial blockquote { font-size: 19px; }
}

/* ---------- Hamburger Menu ---------- */
.nav-left { display: flex; align-items: center; gap: 16px; }

.menu-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  font-size: 17px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: #F7F4EC;
}

.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(28,37,65,0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }

.menu-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 300px; max-width: 85vw;
  background: var(--paper-raised);
  box-shadow: -8px 0 30px rgba(28,37,65,0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 50;
  display: flex; flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}
.menu-panel.open { transform: translateX(0); }

.menu-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.menu-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--ink); }

.menu-links { display: flex; flex-direction: column; gap: 2px; }
.menu-links a {
  padding: 11px 4px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.menu-group-label {
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-soft); margin: 16px 4px 4px;
}

.menu-contact { margin-top: auto; padding-top: 20px; }
.whatsapp-btn {
  display: block; text-align: center;
  background: #25D366; color: #fff !important;
  padding: 12px; border-radius: 4px;
  text-decoration: none; font-weight: 600; font-size: 14px;
}

/* ---------- Info pages (About/FAQ/Legal/Contact) ---------- */
.info-page { max-width: 740px; margin: 0 auto; padding: 70px 56px 100px; }
.info-page h1 { font-size: 32px; margin-bottom: 8px; }
.info-page .updated { font-size: 13px; color: var(--ink-soft); margin-bottom: 34px; }
.info-page h2 { font-size: 19px; margin: 30px 0 10px; }
.info-page p { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.7; }
.info-page ul { padding-left: 20px; margin-bottom: 14px; }
.info-page li { font-size: 15px; color: var(--ink-soft); margin-bottom: 8px; line-height: 1.6; }

.faq-item { margin-bottom: 26px; }
.faq-q { font-family: 'Lora', serif; font-weight: 600; font-size: 16.5px; color: var(--ink); margin-bottom: 6px; }
.faq-a { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 3px; line-height: 1.6; }
.faq-a-hi { font-size: 14.5px; color: #6B7280; line-height: 1.6; }

.contact-box {
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: 4px; padding: 32px; margin-top: 20px; text-align: center;
}
.contact-box p { margin-bottom: 18px; }

/* ---------- Utility bar (login/signup) ---------- */
.utility-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: 9px 56px;
  background: var(--ink);
}

.utility-bar a {
  font-size: 13.5px;
  color: #C9CEDC;
  text-decoration: none;
}

.utility-bar a:hover { color: #fff; }

.utility-bar .btn-primary.small {
  background: var(--gold);
}

.btn-primary.small {
  padding: 5px 14px;
  font-size: 13px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 860px) {
  .utility-bar { padding: 8px 24px; }
}

/* ---------- FAQ Page ---------- */
.faq-page { max-width: 820px; margin: 0 auto; padding: 70px 56px 60px; }

.faq-head { text-align: center; margin-bottom: 36px; }
.faq-head h1 { font-size: 34px; margin-bottom: 10px; }
.faq-head p { font-size: 15.5px; color: var(--ink-soft); }

.lang-tabs {
  display: flex; justify-content: center; gap: 0;
  margin: 0 auto 48px; width: fit-content;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px;
  background: var(--paper-raised);
}
.lang-tab {
  border: none; background: none; cursor: pointer;
  padding: 9px 26px; font-size: 14px; font-weight: 600;
  color: var(--ink-soft); border-radius: 999px;
  font-family: 'Inter', sans-serif;
}
.lang-tab.active { background: var(--ink); color: #fff; }

.faq-category { margin-bottom: 40px; }
.faq-category h2 {
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-deep); font-family: 'Inter', sans-serif; font-weight: 700;
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}

.faq-acc {
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 15px 2px;
}
.faq-acc summary {
  font-family: 'Lora', serif; font-weight: 600; font-size: 16.5px;
  color: var(--ink); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc summary::after {
  content: '+';
  font-family: 'Inter', sans-serif; font-weight: 400; font-size: 20px;
  color: var(--gold-deep); margin-left: 16px; flex-shrink: 0;
}
.faq-acc[open] summary::after { content: '−'; }
.faq-body {
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.7;
  margin-top: 10px; padding-right: 20px;
}
.faq-body a { color: var(--gold-deep); }

.faq-cta {
  text-align: center; margin-top: 50px; padding: 36px;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 4px;
}
.faq-cta p { font-family: 'Lora', serif; font-size: 17px; margin-bottom: 16px; color: var(--ink); }

@media (max-width: 640px) {
  .faq-page { padding: 50px 22px 40px; }
  .faq-head h1 { font-size: 26px; }
}

/* ---------- Richer color accents ---------- */
.panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  font-size: 22px;
}
.panel-doc .panel-icon { background: #F3E4C4; }
.panel-sheet .panel-icon { background: #DCEADC; }

.hero-note {
  background: #EFE9D8;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--gold-deep) !important;
  font-weight: 600;
}

.step-num {
  display: inline-block;
  background: #F3E4C4;
  color: var(--gold-deep);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
}

/* ---------- Dark hero overrides ---------- */
.hero-text h1 { color: #F7F4EC; }
.hero-sub { color: #B8BECF; }
.hero-note {
  background: rgba(198, 138, 30, 0.18);
  color: #E8C275 !important;
  border: 1px solid rgba(198, 138, 30, 0.35);
}

.hero-badge {
  display: inline-block;
  background: rgba(63, 107, 78, 0.18);
  border: 1px solid rgba(63, 107, 78, 0.4);
  color: #8FD4A8;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.doc-card {
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.stamp {
  border-color: #8FD4A8;
  color: #8FD4A8;
  background: rgba(28,37,65,0.6);
}

/* ---------- Forms (signup/login) ---------- */
.form-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.form-container {
  max-width: 400px; width: 100%;
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: 4px; padding: 40px;
  box-shadow: 0 10px 30px rgba(28,37,65,0.06);
}
.form-container h2 { text-align: center; margin-bottom: 24px; font-size: 24px; }
.form-container input, .form-container select, .form-container textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: 4px; font-size: 14.5px;
  font-family: 'Inter', sans-serif; background: var(--paper);
}
.form-container button {
  width: 100%; padding: 13px; background: var(--gold); color: #fff;
  border: none; border-radius: 4px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.form-container button:hover { background: var(--gold-deep); }
.form-container p { text-align: center; margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.form-container p a { color: var(--gold-deep); font-weight: 600; text-decoration: none; }
.error-msg { color: #B3261E; font-size: 13.5px; text-align: center; margin-bottom: 10px; }

/* ---------- Dashboard ---------- */
.dash-hero { text-align: center; padding: 60px 24px 20px; }
.dash-hero h1 { font-size: 32px; margin-bottom: 8px; }
.dash-hero p { color: var(--ink-soft); font-size: 15px; }
.dash-services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 40px auto; padding: 0 24px; }
.dash-card {
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: 4px; padding: 30px; text-align: center;
}
.dash-card h3 { font-size: 19px; margin: 10px 0 8px; }
.dash-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.dash-card .btn-primary { display: inline-block; width: 100%; text-align: center; text-decoration: none; }

/* ---------- Order / My Orders / Admin cards ---------- */
.content-wrap { max-width: 820px; margin: 0 auto; padding: 50px 24px 80px; }
.content-wrap h2 { font-size: 26px; margin-bottom: 24px; }

.record-card {
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: 4px; padding: 20px 24px; margin-bottom: 14px;
}
.record-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.record-top h3 { font-size: 16px; margin-bottom: 4px; }
.record-meta { font-size: 13px; color: var(--ink-soft); }
.badge {
  font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 999px; text-transform: capitalize;
  white-space: nowrap;
}
.badge-pending { background: #F3E4C4; color: #8A6214; }
.badge-paid { background: #DCEADC; color: #2E5A3C; }
.badge-in_progress { background: #DCE6F7; color: #2E4E8A; }
.badge-completed { background: #E4DEF5; color: #4C3A8A; }

.download-btn {
  display: inline-block; margin-top: 12px; background: var(--green); color: #fff;
  padding: 8px 16px; border-radius: 4px; text-decoration: none; font-size: 13px; font-weight: 600;
}
.record-note { margin-top: 10px; font-size: 13px; color: #999; }
.record-detail-box { font-size: 13.5px; color: var(--ink); margin: 10px 0; background: var(--paper); padding: 10px 12px; border-radius: 4px; }

.record-controls { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.record-controls select, .record-controls input[type="text"] {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; font-family: 'Inter', sans-serif;
}
.record-controls input[type="text"] { flex: 1; min-width: 200px; }
.save-btn-sm {
  background: var(--ink); color: #fff; border: none; padding: 9px 18px;
  border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 600;
}

/* ---------- Floating buttons ---------- */
.floating-btns {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 60;
}

.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  border: none; cursor: pointer;
  transition: transform 0.15s ease;
}
.float-btn:hover { transform: scale(1.06); }

.whatsapp-float { background: #25D366; color: #fff; }
.top-float {
  background: var(--gold); color: #fff;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.top-float.visible { opacity: 1; pointer-events: auto; }

/* ---------- Footer center block ---------- */
.footer-center {
  text-align: center;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-center .footer-logo-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 10px;
}
.footer-copyright { font-size: 13px; color: #9099B3; }
.footer-updated { font-size: 12px; color: #6C7591; margin-top: 4px; }

/* ---------- Fix horizontal overflow on mobile ---------- */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
