/* =====================================================
   supplychainmate Supply Chain Services — WordPress-ready theme
   Light, fast, no video dependencies.
   Edit colors in :root below.
   ===================================================== */

:root {
  --navy: #0b1f33;
  --navy-900: #071526;
  --navy-700: #143654;
  --teal: #1b9aaa;
  --teal-dark: #147a87;
  --amber: #e8890c;
  --white: #ffffff;
  --bg: #f7f9fb;
  --text: #1f2937;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, .05);
  --shadow: 0 8px 24px rgba(11, 31, 51, .08);
  --shadow-lg: 0 20px 40px rgba(11, 31, 51, .12);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --header-height: 72px;
  --topbar-height: 40px;
  --font: "Inter", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
body[dir="rtl"] {
  font-family: "Noto Sans Arabic", "Inter", "Noto Sans", Arial, sans-serif;
  text-align: right;
}
body[dir="rtl"] .hero-content,
body[dir="rtl"] .about-text,
body[dir="rtl"] .service-card,
body[dir="rtl"] .process-step,
body[dir="rtl"] .why-item,
body[dir="rtl"] .faq-item,
body[dir="rtl"] .payment-text,
body[dir="rtl"] .footer-col { text-align: right; }
body[dir="rtl"] .hero-actions,
body[dir="rtl"] .section-header { align-items: flex-start; }

.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--navy); color: var(--white);
  padding: .5rem 1rem; z-index: 10000;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

.container {
  width: 92%;
  max-width: var(--container);
  margin: 0 auto;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top bar */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  height: var(--topbar-height);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.25rem; }
.topbar a { color: rgba(255,255,255,.75); display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--white); }
.topbar svg { width: 16px; height: 16px; fill: currentColor; }

.social-links { display: flex; align-items: center; gap: .6rem; }
.social-links a {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
  color: var(--white);
  transition: background .2s, transform .2s;
}
.social-links a:hover { background: var(--teal); transform: translateY(-2px); text-decoration: none; }
.social-links svg { width: 14px; height: 14px; fill: currentColor; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 900;
  height: var(--header-height);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand img { height: 40px; width: auto; display: block; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 1rem; display: block; }

.main-nav { display: flex; align-items: center; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 2rem;
}
.nav-list a {
  color: var(--text); font-weight: 500; font-size: .95rem;
  position: relative; padding: .25rem 0;
}
.nav-list a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--teal); transition: width .25s;
}
.nav-list a:hover::after, .nav-list a:focus::after { width: 100%; }
body[dir="rtl"] .nav-list a::after { left: auto; right: 0; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .5rem;
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); transition: .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.btn-quote-nav { padding: .55rem 1.1rem; font-size: .88rem; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 2px solid transparent; transition: all .2s; text-decoration: none;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); text-decoration: none; }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-700); text-decoration: none; }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--bg); text-decoration: none; }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); text-decoration: none; }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-current {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .5rem .75rem; font-weight: 600; cursor: pointer; color: var(--navy);
  display: flex; align-items: center; gap: .4rem;
}
.lang-current:hover { border-color: var(--teal); }
.lang-dropdown {
  position: absolute; right: 0; top: calc(100% + .5rem);
  min-width: 160px; max-height: 320px; overflow-y: auto;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: .25rem 0;
  display: none; z-index: 1000;
}
body[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
.lang-dropdown.open { display: block; }
.lang-dropdown li button {
  width: 100%; text-align: left; padding: .55rem 1rem; background: none; border: none;
  cursor: pointer; font-size: .9rem; color: var(--text); display: flex; justify-content: space-between;
}
.lang-dropdown li button:hover { background: var(--bg); color: var(--navy); }
.lang-dropdown li button.active { color: var(--teal); font-weight: 700; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height) - var(--topbar-height));
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg, .hero-overlay { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  background: linear-gradient(90deg, rgba(11,31,51,.92) 0%, rgba(11,31,51,.65) 60%, rgba(11,31,51,.35) 100%);
}
body[dir="rtl"] .hero-overlay {
  background: linear-gradient(270deg, rgba(11,31,51,.92) 0%, rgba(11,31,51,.65) 60%, rgba(11,31,51,.35) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 5rem 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 700;
  color: var(--teal); margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1; font-weight: 700; margin: 0 0 1.25rem;
}
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 620px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-trust { display: flex; gap: 2rem; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-size: 1.6rem; color: var(--white); line-height: 1; }
.trust-item span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* Sections */
.section { padding: 5rem 0; }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700;
  color: var(--teal); margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.2; color: var(--navy);
  margin: 0 0 1rem;
}
.section-lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-head { max-width: 720px; margin-bottom: 3rem; }

/* Grids */
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-media img, .why-media img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; object-fit: cover;
}
.about-text p, .why-text p { margin-bottom: 1.25rem; }
.checklist {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem;
}
.checklist li {
  position: relative; padding-left: 1.6rem; color: var(--navy-700); font-weight: 500;
}
body[dir="rtl"] .checklist li { padding-left: 0; padding-right: 1.6rem; }
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; color: var(--teal); font-weight: 700;
}
body[dir="rtl"] .checklist li::before { left: auto; right: 0; }

/* Services */
.section-services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: rgba(27,154,170,.1); color: var(--teal);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1.1rem; margin: 0 0 .5rem; color: var(--navy); }
.service-card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
/* Process */
.process-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; counter-reset: step;
}
.process-step {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; position: relative;
}
.process-step::after {
  content: ''; position: absolute; right: -1.5rem; top: 2rem; width: 1.5rem; height: 2px;
  background: var(--border);
}
.process-step:last-child::after { display: none; }
body[dir="rtl"] .process-step::after { right: auto; left: -1.5rem; }
body[dir="rtl"] .process-step { text-align: right; }
.step-number {
  display: inline-block; font-size: .75rem; font-weight: 700; color: var(--teal);
  background: rgba(27,154,170,.1); padding: .25rem .6rem; border-radius: 999px; margin-bottom: .75rem;
}
.process-step h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.process-step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Why us */
.section-why { background: var(--white); }
.reverse { grid-template-columns: 1fr 1fr; }
.reverse .why-media { order: 2; }
.reverse .why-text { order: 1; }
body[dir="rtl"] .reverse .why-media { order: 1; }
body[dir="rtl"] .reverse .why-text { order: 2; }
.why-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.why-item {
  padding: 1rem 1.25rem; border-left: 4px solid var(--teal); background: var(--bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
body[dir="rtl"] .why-item { border-left: none; border-right: 4px solid var(--teal); border-radius: var(--radius-sm) 0 0 var(--radius-sm); text-align: right; }
.why-item strong { display: block; color: var(--navy); margin-bottom: .25rem; }
.why-item span { color: var(--muted); font-size: .95rem; }

/* Payment */
.section-payment { background: var(--navy); color: var(--white); }
.payment-card {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: var(--navy-700); border-radius: var(--radius); padding: 2.5rem;
}
.payment-card .section-title { color: var(--white); }
.payment-card .section-eyebrow { color: rgba(255,255,255,.6); }
.payment-card p { color: rgba(255,255,255,.8); }
.payment-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; min-width: 260px; }
body[dir="rtl"] .payment-actions { align-items: flex-start; }
.payment-methods { display: flex; gap: .5rem; flex-wrap: wrap; }
.pay-badge {
  background: rgba(255,255,255,.1); color: var(--white); padding: .35rem .7rem;
  border-radius: 999px; font-size: .8rem; font-weight: 600;
}

/* FAQ */
.section-faq { background: var(--bg); }
.faq-list { max-width: 820px; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.25rem; cursor: pointer; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.4rem; color: var(--teal); font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.25rem 1.25rem; margin: 0; color: var(--muted); }

/* Contact */
.section-contact { background: var(--white); }
.contact-card {
  background: var(--bg); border-radius: var(--radius); padding: 3rem;
  text-align: center; max-width: 800px; margin: 0 auto;
}
.contact-card .section-title { margin-bottom: .75rem; }
.contact-card p { color: var(--muted); max-width: 560px; margin: 0 auto 1.75rem; }
.contact-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact-meta { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 4rem 0 1.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.4fr; gap: 3rem; margin-bottom: 3rem;
}
.footer-brand img { margin-bottom: 1rem; }
.footer-brand p { font-size: .95rem; line-height: 1.7; margin-bottom: 1rem; }
.footer-brand .social-links a { background: rgba(255,255,255,.08); }
.footer-links h4 { color: var(--white); margin: 0 0 1rem; font-size: 1rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: rgba(255,255,255,.75); }
.footer-links a:hover { color: var(--white); }
.footer-newsletter h4 { color: var(--white); margin: 0 0 .5rem; }
.footer-newsletter p { font-size: .95rem; margin-bottom: 1rem; }
.newsletter-form { display: flex; gap: .5rem; }
.newsletter-form input {
  flex: 1; padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05); color: var(--white);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form button { padding: .7rem 1rem; }
.link-like { background: none; border: none; color: rgba(255,255,255,.75); cursor: pointer; font-size: 1rem; padding: 0; }
.link-like:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: .9rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,.6); }

/* Payment modal */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal.open { display: flex !important; }
body.modal-open { overflow: hidden; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11,31,51,.7); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; background: var(--white); border-radius: var(--radius);
  width: 92%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  padding: 2rem; box-shadow: var(--shadow-lg); animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--muted);
}
body[dir="rtl"] .modal-close { right: auto; left: 1rem; }
.modal-header h2 { margin: 0 0 .5rem; color: var(--navy); }
.modal-header p { color: var(--muted); margin: 0 0 1.5rem; }
.modal-body { display: flex; flex-direction: column; gap: .75rem; }
.pay-option {
  display: flex; flex-direction: column;
  padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.pay-option:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); text-decoration: none; }
.pay-name { font-weight: 700; color: var(--navy); }
.pay-desc { font-size: .92rem; color: var(--muted); }
.pay-detail {
  margin-top: .5rem; font-size: .82rem; background: var(--bg); padding: .5rem .75rem;
  border-radius: var(--radius-sm); color: var(--navy-700); word-break: break-word;
}
.modal-footer { margin-top: 1.5rem; font-size: .9rem; color: var(--muted); }

/* Quote feature */
.quote-panel { max-width: 640px; }
.quote-body { gap: .6rem; }
.quote-label { font-size: .82rem; font-weight: 600; color: var(--navy); margin: .9rem 0 .15rem; }
.quote-hint { font-size: .8rem; color: var(--muted); margin: 0 0 .35rem; }
.quote-services {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem;
}
.quote-check {
  display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .5rem .7rem; cursor: pointer;
}
.quote-check:hover { border-color: var(--teal); }
.quote-check:has(input:checked) { border-color: var(--teal); background: rgba(27,154,170,.08); }
.quote-check input { accent-color: var(--teal); margin: 0; }
.quote-billing { display: flex; gap: .5rem; }
.quote-bill {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .45rem;
  font-size: .85rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .6rem .5rem; cursor: pointer; text-align: center;
}
.quote-bill:hover { border-color: var(--teal); }
.quote-bill:has(input:checked) { border-color: var(--teal); background: rgba(27,154,170,.08); font-weight: 600; }
.quote-bill input { accent-color: var(--teal); margin: 0; }
.quote-location { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.quote-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .5rem; }
.quote-body input, .quote-body select, .quote-body textarea {
  padding: .6rem .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; font-size: .9rem; color: var(--text); background: var(--white); width: 100%;
}
.quote-body input:focus, .quote-body select:focus, .quote-body textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,154,170,.12);
}
.quote-body textarea { resize: vertical; min-height: 90px; }
.quote-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.quote-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.25rem;
}
.quote-msg { font-size: .85rem; margin: 0; }
.quote-msg.error { color: #c0392b; }
.quote-msg.success { color: #1e7e34; }
.quote-submit { min-width: 150px; }
body[dir="rtl"] .quote-check, body[dir="rtl"] .quote-bill { flex-direction: row-reverse; }
@media (max-width: 560px) {
  .quote-services { grid-template-columns: 1fr; }
  .quote-billing { flex-direction: column; }
  .quote-location { grid-template-columns: 1fr; }
  .quote-fields { grid-template-columns: 1fr; }
  .quote-footer { flex-direction: column-reverse; }
  .quote-submit { width: 100%; }
}

/* Mobile nav */
@media (max-width: 980px) {
  .menu-toggle { display: flex; }
  .main-nav { position: relative; }
  .nav-list {
    position: fixed; top: var(--header-height); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 1rem 0;
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list a { display: block; padding: .85rem 1.5rem; }
  .nav-list a::after { display: none; }
  .grid-2, .reverse { grid-template-columns: 1fr; gap: 2.5rem; }
  .reverse .why-media, .reverse .why-text { order: 0; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step::after { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .payment-card { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 680px) {
  .topbar-left { display: none; }
  .topbar-right { width: 100%; justify-content: flex-end; }
  .hero-content { padding: 3rem 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .checklist { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .payment-actions { width: 100%; }
}

/* Focus */
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Quote view page */
.section-quote-view { background: var(--bg); padding: 4rem 0; min-height: calc(100vh - var(--header-height) - var(--topbar-height)); }
.quote-view-container { max-width: 720px; margin: 0 auto; }
.quote-view-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.25rem; box-shadow: var(--shadow);
}
.quote-view-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: .75rem;
}
.quote-view-eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700;
  color: var(--teal); margin-bottom: .35rem;
}
.quote-view-title { font-size: 1.75rem; color: var(--navy); margin: 0; }
.quote-status {
  display: inline-block; font-size: .78rem; font-weight: 700; padding: .35rem .7rem; border-radius: 999px;
}
.quote-status.new { background: #fff0e6; color: #c44b00; }
.quote-status.quoted { background: #e6f4ff; color: #005ea6; }
.quote-status.confirmed { background: #fff8e6; color: #946b00; }
.quote-status.paid { background: #e6f7ed; color: #1b7d3e; }
.quote-status.expired { background: #f1f3f4; color: #5f6368; }
.quote-view-intro { color: var(--muted); margin: 0 0 1.75rem; }
.quote-view-section { margin-bottom: 1.75rem; }
.quote-view-section h2 {
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--navy); margin: 0 0 .6rem;
}
.quote-view-services { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.quote-view-services li {
  padding: .6rem .85rem; background: var(--bg); border-radius: var(--radius-sm); font-size: .95rem;
}
.quote-view-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.quote-view-breakdown { background: var(--bg); border-radius: var(--radius-sm); padding: 1.25rem; }
.quote-line {
  display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--border);
}
.quote-line:last-child { border-bottom: none; }
.quote-total { font-size: 1.15rem; color: var(--navy); margin-top: .5rem; padding-top: .75rem; border-top: 2px solid var(--border); }
.quote-view-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.75rem; }
.quote-view-meta p { margin: .25rem 0; }
.quote-view-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.quote-payment-wrap { border-top: 1px solid var(--border); padding-top: 1.75rem; }
.quote-payment-wrap h2 { font-size: 1.1rem; color: var(--navy); margin: 0 0 1rem; }
.quote-payment-methods { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.quote-pay-option {
  flex: 1; min-width: 140px; display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer; font-size: .9rem;
}
.quote-pay-option:has(input:checked) { border-color: var(--teal); background: rgba(27,154,170,.08); font-weight: 600; }
.quote-pay-option input { accent-color: var(--teal); margin: 0; }
.quote-pay-hint { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.paypal-button-container { min-height: 45px; margin-bottom: .5rem; }
.paypal-placeholder {
  background: var(--bg); border: 1px dashed var(--border); border-radius: var(--radius-sm);
  padding: 1rem; text-align: center; color: var(--muted); font-size: .85rem;
}
.quote-tt-detail {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1rem; font-size: .9rem; line-height: 1.7; word-break: break-word;
}
.quote-view-result { margin-top: 1.5rem; padding: 1.25rem; background: #e6f7ed; border-radius: var(--radius-sm); }
.quote-view-result .quote-msg { margin: 0; }
.quote-view-note { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.quote-view-note p { margin: 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) {
  .quote-view-grid { grid-template-columns: 1fr; }
  .quote-view-actions { flex-direction: column; }
  .quote-view-actions .btn { width: 100%; justify-content: center; }
}

/* Print */
@media print {
  .topbar, .site-header, .hero-actions, .payment-actions, .modal, .newsletter-form, .social-links, .edit-toggle-btn, .edit-toolbar, .hover-pencil { display: none !important; }
  .hero { min-height: auto; color: var(--text); }
  .hero-overlay { background: none; }
  a { color: var(--text); }
}

/* =====================================================
   Content Editor — visual inline editing
   ===================================================== */
.edit-toggle-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1500;
  transition: background .2s, transform .2s;
}
.edit-toggle-btn:hover { background: var(--teal); transform: scale(1.08); }
.edit-toggle-btn.active { background: var(--teal); }
/* Only logged-in admins can see the pencil; hidden for regular visitors. */
.edit-toggle-btn[hidden] { display: none !important; }

.edit-toolbar {
  position: fixed;
  bottom: 1.5rem;
  right: 4.5rem;
  z-index: 1500;
}
.edit-toolbar-inner {
  display: flex; align-items: center; gap: .5rem;
  background: var(--navy);
  border-radius: 999px;
  padding: .5rem .75rem;
  box-shadow: var(--shadow-lg);
}
.edit-status {
  color: var(--white); font-weight: 700; font-size: .85rem;
  padding: 0 .5rem; white-space: nowrap;
}
.edit-divider { width: 1px; height: 20px; background: rgba(255,255,255,.2); }
.edit-btn {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: .4rem .85rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.edit-btn:hover { background: rgba(255,255,255,.25); }
.edit-btn.edit-exit { background: rgba(232,137,12,.3); }
.edit-btn.edit-exit:hover { background: rgba(232,137,12,.5); }

/* Edit mode: highlight editable elements */
body.edit-mode [contenteditable="true"] {
  outline: 2px dashed transparent;
  outline-offset: 2px;
  transition: outline-color .15s;
  cursor: text;
  border-radius: 2px;
}
body.edit-mode [contenteditable="true"]:hover {
  outline-color: var(--teal);
  background: rgba(27,154,170,.06);
}
body.edit-mode [contenteditable="true"]:focus {
  outline-color: var(--amber);
  background: rgba(232,137,12,.08);
}
body.edit-mode .faq-item summary { cursor: text; }
body.edit-mode .nav-list a,
body.edit-mode .lang-current,
body.edit-mode .menu-toggle,
body.edit-mode .edit-toggle-btn,
body.edit-mode .edit-btn,
body.edit-mode .newsletter-form input,
body.edit-mode .newsletter-form button { cursor: default; }
body.edit-mode .hero-bg,
body.edit-mode .hero-overlay { pointer-events: none; }

/* Floating pencil shown next to the hovered editable element */
.hover-pencil {
  display: none;
  position: fixed;
  z-index: 1800;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(8, 42, 74, .35);
  cursor: pointer;
  transition: transform .12s, background .12s;
}
.hover-pencil:hover { background: var(--amber); transform: scale(1.15); }
.hover-pencil svg { display: block; }

/* Hide edit UI on mobile small screens to avoid overlap */
@media (max-width: 680px) {
  .edit-toolbar { right: .5rem; bottom: .5rem; }
  .edit-toolbar-inner { padding: .4rem .5rem; gap: .3rem; }
  .edit-btn { padding: .35rem .6rem; font-size: .75rem; }
  .edit-status { display: none; }
  .edit-toggle-btn { bottom: .5rem; right: .5rem; width: 42px; height: 42px; }
}
