/* ================================================================
   CLEAR POST SERVICES TRADING – FZCO  |  Main Stylesheet
   ================================================================ */

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue:       #1565C0;
  --blue-dark:  #0d47a1;
  --blue-mid:   #1976D2;
  --navy:       #0d2d5e;
  --navy-mid:   #163466;
  --navy-light: #1a4a8a;
  --white:      #ffffff;
  --off-white:  #f8f9fb;
  --border:     #e2e8f0;
  --text:       #111827;
  --muted:      #6b7280;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:  0 8px 36px rgba(0,0,0,0.13);
  --r:  10px;
  --rl: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a        { color: inherit; }
ul       { list-style: none; }

/* ── Layout ────────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Header / Navbar ───────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s;
}
.header.scrolled { box-shadow: var(--shadow-md); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 58px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  text-decoration: none;
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 6px;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--blue); background: rgba(21,101,192,.06); }

.btn-nav {
  text-decoration: none;
  background: var(--blue);
  color: var(--white) !important;
  font-size: .88rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 7px;
  transition: background .18s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--blue-dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .28s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg);  }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0);          }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 65%, #1f5fa8 100%);
  color: var(--white);
  padding: 72px 0 56px;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 72% 46%, rgba(79,195,247,.09) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(1.65rem, 3.4vw, 2.55rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
  margin-bottom: 18px;
}
.hero-lead {
  font-size: .98rem;
  color: rgba(255,255,255,.8);
  line-height: 1.74;
  max-width: 460px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--blue-mid);
  color: var(--white);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 8px;
  transition: background .2s, transform .18s;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,.4);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-logo-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.30));
}

/* ── Portal Cards ──────────────────────────────────────────────── */
.portals-section {
  padding: 80px 0 72px;
  background: var(--white);
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 44px;
  text-align: center;
}

.portals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.portal-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--rl);
  padding: 28px 18px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.portal-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: rgba(21,101,192,.25);
}

.portal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  margin-bottom: 8px;
}
.portal-icon-img {
  width: auto;
  height: 114px;
  max-width: 100%;
  object-fit: contain;
}

.portal-domain {
  font-size: .65rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.portal-card h3 {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.46;
  flex: 1;
}
.btn-learn {
  display: inline-block;
  color: var(--blue);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  padding: 7px 18px;
  border: 1.5px solid var(--blue);
  border-radius: 6px;
  margin-top: 4px;
  transition: background .18s, color .18s;
}
.btn-learn:hover { background: var(--blue); color: var(--white); }

/* ── About ─────────────────────────────────────────────────────── */
.about-section {
  padding: 80px 0 72px;
  background: var(--off-white);
}
.about-intro {
  font-size: .97rem;
  color: var(--muted);
  line-height: 1.78;
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
  max-width: 860px;
}
.feature-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  width: 46px;
  height: 46px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.feature-card h4 { font-size: .92rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.feature-card p  { font-size: .85rem; color: var(--muted); line-height: 1.62; }

/* ── Why Choose Us ────────────────────────────────────────────── */
.why-section {
  padding: 88px 0 80px;
  background: var(--white);
  text-align: center;
}
.why-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.why-heading {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 16px;
  letter-spacing: -.022em;
  line-height: 1.2;
}
.why-sub {
  font-size: .97rem;
  color: var(--muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 56px;
  line-height: 1.72;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 900px;
  margin-inline: auto;
}
.why-card {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--rl);
  padding: 38px 28px 32px;
  text-align: center;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.why-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: rgba(21,101,192,.2);
}
.why-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3a5bd9 0%, #1565C0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(21,101,192,.28);
}
.why-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.why-card-text {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.72;
}

/* ── Contact CTA ───────────────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
}
.cta-inner          { text-align: center; }
.cta-inner h2       { font-size: 2rem; font-weight: 700; margin-bottom: 14px; }
.cta-inner p {
  font-size: .97rem;
  color: rgba(255,255,255,.78);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  background: #09192e;
  color: rgba(255,255,255,.7);
  padding: 40px 0 28px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 20px;
}
.footer-logo-img {
  height: 50px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  /* invert to white so it shows on the dark footer */
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-contact p     { font-size: .84rem; line-height: 1.7; }
.footer-contact a     { text-decoration: none; color: rgba(255,255,255,.65); transition: color .18s; }
.footer-contact a:hover { color: var(--white); }

.footer-legal { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-legal a {
  text-decoration: none;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  transition: color .18s;
  white-space: nowrap;
}
.footer-legal a:hover { color: var(--white); }
.sep { color: rgba(255,255,255,.3); font-size: .82rem; }

.footer-disclaimer {  text-align: center; }
.footer-disclaimer p {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  line-height: 1.65;
  max-width: 820px;
  margin-inline: auto;
}

/* ── Policy pages (shared) ─────────────────────────────────────── */
.policy-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 60px 0 48px;
}
.policy-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.policy-hero p  { font-size: .97rem; color: rgba(255,255,255,.75); }

.policy-body { padding: 64px 0 80px; }
.policy-body .content { max-width: 780px; }
.policy-body h2 { font-size: 1.2rem; font-weight: 700; margin: 36px 0 12px; color: var(--text); }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p  { font-size: .95rem; color: var(--muted); line-height: 1.78; margin-bottom: 14px; }
.policy-body ul { margin: 0 0 14px 24px; list-style: disc; }
.policy-body ul li { font-size: .95rem; color: var(--muted); line-height: 1.78; margin-bottom: 6px; }
.policy-body a  { color: var(--blue); }
.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 40px;
}
.policy-back:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .portals-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual { order: -1; padding-bottom: 8px; }
  .globe-graphic { max-width: 260px; }
  .hero-lead   { margin-inline: auto; }
  .hero-actions { justify-content: center; }  .why-grid      { grid-template-columns: 1fr; max-width: 420px; }  .features-grid { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .hamburger { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px 16px 16px;
    gap: 4px;
  }
  .nav-menu.open  { display: flex; }
  .nav-menu li    { width: 100%; }
  .nav-link       { display: block; text-align: center; padding: 10px 16px; }
  .btn-nav        { display: block; text-align: center; padding: 10px 16px; margin-top: 4px; }

  .portals-grid  { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .portal-card   { padding: 20px 12px; }

  .footer-row    { text-align: center; align-items: center; }
  .footer-legal  { justify-content: center; }
}
