/* Ceylon Express — public brand theme
   Inspired by modern premium logistics layout (Playfair Display + Inter, #c8102e).
   Customer-facing pages only. */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,500;1,600;1,700&family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
  --brand: #c8102e;
  --brand-hover: #a00d25;
  --ink: #0a0a0a;
  --muted: #737373;
  --line: #e5e5e5;
  --paper: #ffffff;
  --paper-soft: #fafafa;
  --primary-color: #c8102e;
  --secondary-color: #0a0a0a;
  --success-color: #059669;
  --danger-color: #c8102e;
  --dark-color: #0a0a0a;
  --light-color: #fafafa;
}

* { box-sizing: border-box; }

body.ce-brand {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.ce-brand h1,
body.ce-brand h2,
body.ce-brand h3,
body.ce-brand .font-serif-display {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.02em;
}

/* Top bar + nav */
.ce-topbar {
  background: #000;
  color: #fff;
  font-size: 13px;
}
.ce-topbar a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color .2s;
}
.ce-topbar a:hover { color: var(--brand); }

.ce-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.ce-nav {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ce-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.ce-nav-brand img {
  width: 52px;
  height: auto;
  border-radius: 4px;
}
.ce-nav-brand span {
  font-family: Inter, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.ce-nav-brand span em {
  font-style: normal;
  color: var(--brand);
}
.ce-nav-links {
  display: none;
  align-items: center;
  gap: 1.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ce-nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-transform: uppercase;
  transition: color .2s;
}
.ce-nav-links a:hover,
.ce-nav-links a.active { color: var(--brand); }

.ce-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 1.25rem;
  transition: background .2s, color .2s;
}
.ce-nav-cta:hover {
  background: #000;
  color: #fff !important;
}

.ce-nav-toggle {
  display: inline-flex;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  cursor: pointer;
}
.ce-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #000;
  margin: 5px 0;
}

@media (min-width: 992px) {
  .ce-nav-links { display: flex; }
  .ce-nav-toggle { display: none; }
}

.ce-nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem 1.25rem;
  background: #fff;
}
.ce-nav-mobile.open { display: block; }
.ce-nav-mobile a {
  display: block;
  padding: 0.7rem 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

/* Hero */
.ce-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111;
}
.ce-hero-bg {
  position: absolute;
  inset: 0;
}
.ce-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ce-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.7) 45%, rgba(0,0,0,.2) 100%);
}
.ce-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  width: 100%;
}
.ce-hero-copy { max-width: 42rem; }
.ce-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.ce-eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--brand);
}
.ce-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 1.5rem;
}
.ce-hero h1 .accent {
  font-style: italic;
  color: var(--brand);
}
.ce-hero-lead {
  color: rgba(255,255,255,.8);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 0 2rem;
  line-height: 1.7;
}
.ce-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.ce-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border: 0;
  cursor: pointer;
  transition: .2s ease;
}
.ce-btn-primary {
  background: var(--brand);
  color: #fff;
}
.ce-btn-primary:hover {
  background: #fff;
  color: #000;
}
.ce-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.ce-btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}
.ce-btn-dark {
  background: #000;
  color: #fff;
}
.ce-btn-dark:hover {
  background: var(--brand);
}

.ce-hero-stat {
  display: none;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: #fff;
  padding: 1.5rem;
  width: 16rem;
  box-shadow: 0 25px 50px rgba(0,0,0,.25);
  border-left: 4px solid var(--brand);
}
@media (min-width: 1100px) {
  .ce-hero-stat { display: block; }
}
.ce-hero-stat .num {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}
.ce-hero-stat .num span { color: var(--brand); }
.ce-hero-stat .label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #737373;
  margin: 0.5rem 0 0.75rem;
}
.ce-hero-stat hr {
  border: 0;
  border-top: 1px solid #e5e5e5;
  margin: 0.75rem 0;
}
.ce-hero-stat p {
  font-size: 12px;
  color: #525252;
  margin: 0;
  line-height: 1.55;
}

/* Overlap service strip */
.ce-strip {
  position: relative;
  z-index: 5;
  margin-top: -3.5rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}
.ce-strip-grid {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
@media (min-width: 768px) {
  .ce-strip-grid { grid-template-columns: repeat(3, 1fr); }
}
.ce-strip-item {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background .2s;
}
@media (min-width: 768px) {
  .ce-strip-item {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .ce-strip-item:last-child { border-right: 0; }
}
.ce-strip-item:hover { background: #fafafa; }
.ce-strip-item h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}
.ce-strip-item p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.ce-strip-item .more {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
}

/* Sections */
.ce-section {
  padding: 5rem 0;
}
.ce-section-alt { background: var(--paper-soft); }
.ce-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.ce-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.ce-section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brand);
}
.ce-section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--ink);
}
.ce-section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
  margin: 0 0 2.5rem;
}

/* Cards / forms (preserve function, match look) */
.ce-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}
.ce-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.ce-card .text-muted { color: var(--muted) !important; }

body.ce-brand .form-control,
body.ce-brand .form-select,
body.ce-brand .tracking-input,
body.ce-brand textarea {
  border: 1px solid #d4d4d4 !important;
  border-radius: 0 !important;
  min-height: 48px;
  font-family: Inter, sans-serif;
  background: #fff !important;
  color: #0a0a0a !important;
}
body.ce-brand .form-control:focus,
body.ce-brand .tracking-input:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(200,16,46,.12) !important;
}
body.ce-brand .btn-primary,
body.ce-brand .btn-track,
body.ce-brand .btn-book {
  background: var(--brand) !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 0.95rem 1.5rem !important;
}
body.ce-brand .btn-primary:hover,
body.ce-brand .btn-track:hover {
  background: #000 !important;
}

/* Service offer grid */
.ce-offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .ce-offer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .ce-offer-grid { grid-template-columns: repeat(3, 1fr); }
}
.ce-offer {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.75rem;
  transition: border-color .2s, transform .2s;
}
.ce-offer:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
}
.ce-offer .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(200,16,46,.08);
  color: var(--brand);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.ce-offer h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}
.ce-offer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Visual panels */
.ce-media {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.ce-media-frame {
  overflow: hidden;
  background: #eee;
}

/* Partners */
.ce-partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .ce-partners { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .ce-partners { grid-template-columns: repeat(6, 1fr); }
}
.ce-partner {
  min-height: 110px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #fff;
  text-decoration: none;
}
.ce-partner img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
}
.ce-partner:hover { border-color: var(--brand); }

/* Footer */
.ce-footer {
  background: #000;
  color: #d4d4d4;
  padding: 4rem 0 1.5rem;
}
.ce-footer h5 {
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.ce-footer a {
  color: #a3a3a3;
  text-decoration: none;
}
.ce-footer a:hover { color: var(--brand); }
.ce-footer-bottom {
  border-top: 1px solid #262626;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

.ce-page-banner {
  background: #0a0a0a;
  color: #fff;
  padding: 4.5rem 0 3.25rem;
  border-bottom: 1px solid #1f1f1f;
}
.ce-page-banner .ce-section-label {
  color: #fff;
}
.ce-page-banner .ce-section-label::before {
  background: var(--brand);
}
.ce-page-banner-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  color: #fff;
}
.ce-page-banner-lead {
  max-width: 40rem;
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  line-height: 1.7;
}

.ce-nav-links a.active {
  color: var(--brand) !important;
}

body.ce-brand .hero-section { display: none !important; }
body.ce-brand .features-section,
body.ce-brand .services-section,
body.ce-brand .tracking-section,
body.ce-brand .booking-section,
body.ce-brand .help-section,
body.ce-brand #partners,
body.ce-brand #online-store,
body.ce-brand #reviews,
body.ce-brand #about,
body.ce-brand .footer {
  background: transparent !important;
}
body.ce-brand .tracking-card,
body.ce-brand .booking-card,
body.ce-brand .service-card {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.ce-brand .help-section .help-card,
body.ce-brand #reviews .card,
body.ce-brand #reviews [style*="background: white"],
body.ce-brand #reviews [style*="background:white"] {
  background: #fff !important;
  color: #0a0a0a !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.ce-brand .help-section {
  background: #0a0a0a !important;
  color: #fff;
}
body.ce-brand .help-section h4,
body.ce-brand .help-section h6 { color: #fff !important; }
body.ce-brand .service-icon {
  background: #c8102e !important;
  border-radius: 0 !important;
}

/* By the numbers */
.ce-numbers {
  background: #070707;
  color: #fff;
  padding: 4.5rem 1.5rem 4rem;
}
.ce-numbers-inner {
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}
.ce-numbers-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.ce-numbers-kicker span {
  width: 42px;
  height: 1px;
  background: var(--brand);
}
.ce-numbers h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.15rem);
  margin: 0 0 3rem;
  color: #fff;
}
.ce-numbers-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
}
.ce-numbers-item {
  padding: 0.25rem 0.65rem 0.5rem;
  min-width: 0;
}
.ce-numbers-item + .ce-numbers-item {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.ce-numbers-value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.85rem, 2.8vw, 2.85rem);
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
.ce-numbers-plus {
  color: var(--brand);
  margin-left: 0.05em;
}
.ce-numbers-label {
  margin-top: 0.7rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
}
.ce-numbers-live {
  margin: 2.2rem 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.ce-float-actions {
  position: fixed;
  right: 18px;
  top: 58%;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ce-float-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  text-decoration: none;
}
.ce-float-btn:hover { color: #fff; transform: translateY(-1px); }
.ce-float-track { background: #e10600; }
.ce-float-wa { background: #25d366; }

@media (max-width: 991px) {
  .ce-numbers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 0; }
  .ce-numbers-item + .ce-numbers-item { border-left: 1px solid rgba(255, 255, 255, 0.16); }
  .ce-numbers-item:nth-child(3n + 1) { border-left: 0; }
}
@media (max-width: 767px) {
  .ce-hero { min-height: 560px; }
  .ce-hero-inner { padding: 4.5rem 1.25rem 5rem; }
  .ce-strip { margin-top: -2rem; }
  .ce-numbers { padding: 3.25rem 1rem 2.75rem; }
  .ce-numbers-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 0; }
  .ce-numbers-item + .ce-numbers-item { border-left: 0; }
  .ce-numbers-item:nth-child(odd) { border-left: 0; }
  .ce-numbers-item:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.16); }
  .ce-float-actions { top: auto; bottom: 96px; right: 14px; }
}


/* Kill leftover Bootstrap / old blue theme on public pages */
body.ce-brand .btn-primary,
body.ce-brand .btn-info,
body.ce-brand .bg-primary,
body.ce-brand .text-primary,
body.ce-brand .badge.bg-primary {
  background-color: #c8102e !important;
  border-color: #c8102e !important;
  color: #fff !important;
}
body.ce-brand .text-primary { color: #c8102e !important; background: transparent !important; }
body.ce-brand a.link-primary { color: #c8102e !important; }
body.ce-brand .navbar,
body.ce-brand .hero-section {
  display: none !important;
}
body.ce-brand .progress-bar,
body.ce-brand .spinner-border.text-primary {
  color: #c8102e !important;
  border-color: #c8102e !important;
  background-color: #c8102e !important;
}
