/* ============================================================
   Compass Shipping Agency – Landing Template
   Version: 4.5.0
   ============================================================ */

/* --- Variables --- */
:root {
  --navy:    #0B315C;
  --navy-dk: #082244;
  --white:   #ffffff;
  --border:  #dde3ec;
  --text:    #2d3a50;
  --muted:   #6b7a99;
  --radius:  14px;
  --font:    'Montserrat', 'Inter', sans-serif;
}

/* --- Outer page --- */
.cp-page {
  background: #eef0f4;
  min-height: 100vh;
  padding: 2rem 1rem;
  font-family: var(--font);
}

/* --- Centered container --- */
.cp-wrap {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* ============================================================
   HEADER
   ============================================================ */
.cp-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.cp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  padding: 0 3rem;
}

.cp-header__logo img {
  width: 220px;
  height: auto;
  display: block;
}

.cp-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.cp-nav a {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}

.cp-nav a.active,
.cp-nav a:hover {
  border-bottom-color: var(--navy);
}

.cp-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.cp-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.cp-hero {
  position: relative;
  height: 560px;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.cp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.82) 0%,
    rgba(255,255,255,0.82) 28%,
    rgba(255,255,255,0.55) 48%,
    rgba(255,255,255,0.15) 64%,
    rgba(255,255,255,0.00) 74%
  );
  z-index: 1;
}

.cp-hero__content {
  position: relative;
  z-index: 2;
  padding-left: 75px;
  max-width: 480px;
}

.cp-hero__title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.1rem;
}

.cp-hero__line {
  width: 42px;
  height: 3px;
  background: var(--navy);
  margin-bottom: 1.6rem;
}

.cp-hero__text {
  font-size: .88rem;
  line-height: 1.8;
  color: #3a4a65;
  margin-bottom: 1rem;
}

.cp-hero__text:last-child { margin-bottom: 0; }

/* ============================================================
   SERVICES
   ============================================================ */
.cp-services {
  background: #DDE7EF;
  padding: 4.5rem 3rem;
}

.cp-services__hd {
  text-align: center;
  margin-bottom: 3.5rem;
}

.cp-services__hd h2 {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .65rem;
}

.cp-services__hd-line {
  width: 40px;
  height: 3px;
  background: var(--navy);
  margin: 0 auto;
}

.cp-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: #DDE7EF;
}

.cp-card {
  background: #DDE7EF;
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease;
}

.cp-card:hover {
  box-shadow: 0 6px 24px rgba(11, 49, 92, .15);
  transform: translateY(-3px);
  z-index: 1;
}

.cp-card__icon {
  display: block;
  width: 108px;
  height: 80px;
  color: var(--navy);
  margin-bottom: 1.4rem;
}

.cp-card__name {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .45rem;
}

.cp-card__line {
  width: 28px;
  height: 2px;
  background: var(--navy);
  margin-bottom: .85rem;
}

.cp-card__desc {
  font-size: .83rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Bottom row – 2 cards centered */
.cp-services__row2 {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.cp-services__row2 .cp-card {
  flex: 0 0 calc(100% / 3);
  border-bottom: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.cp-footer {
  display: flex;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  min-height: 280px;
}

.cp-footer__main {
  flex: 0 0 70%;
  background: var(--navy-dk);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.cp-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  padding: 3rem 2.5rem 2rem;
  flex: 1;
}

.cp-footer__brand {
  padding-right: 2.5rem;
}

.cp-footer__col {
  padding: 0 2rem;
  border-left: 1px solid rgba(255,255,255,0.08);
}

/* Image panel */
.cp-footer__img {
  flex: 1;
  position: relative;
  z-index: 1;
}

.cp-footer__img::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  height: 600px;
  border-radius: 50%;
  background: var(--navy-dk);
  z-index: 2;
}

.cp-footer__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cp-footer__name {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

.cp-footer__name span {
  color: #7aafda;
}

.cp-footer__desc {
  font-size: .76rem;
  line-height: 1.78;
  color: rgba(255,255,255,0.42);
  max-width: 270px;
  margin-bottom: 1.3rem;
}

.cp-footer__loc {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  color: rgba(255,255,255,0.3);
}

.cp-footer__loc svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: rgba(255,255,255,0.28);
}

.cp-footer__heading {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .5rem;
}

.cp-footer__hline {
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.2);
  margin-bottom: 1.4rem;
}

.cp-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.cp-footer__list li,
.cp-footer__list a,
.cp-footer__list span {
  font-size: .76rem;
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  transition: color .2s;
}

.cp-footer__list a:hover {
  color: rgba(255,255,255,0.88);
}

.cp-footer__list--contact li {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.cp-footer__list--contact svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke: rgba(255,255,255,0.3);
}

.cp-footer__bar {
  padding: .85rem 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.cp-footer__bar span {
  font-size: .64rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.18);
}

/* ============================================================
   RESPONSIVE – TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .cp-page { padding: 1.5rem .75rem; }
  .cp-services { padding: 4rem 2rem; }
}

/* ============================================================
   RESPONSIVE – MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .cp-page { padding: 0; background: var(--white); }
  .cp-wrap { border-radius: 0; box-shadow: none; }

  /* Header */
  .cp-header__inner { height: auto; padding: 1rem 1.5rem; flex-wrap: nowrap; }
  .cp-header__logo img { width: 150px; }
  .cp-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
    flex-direction: column;
    z-index: 200;
    padding: 0;
    gap: 0;
  }
  .cp-nav.open { display: flex; }
  .cp-nav a {
    padding: .9rem 2rem;
    border-bottom: 1px solid var(--border);
    font-size: .72rem;
    color: var(--navy);
    width: 100%;
  }
  .cp-nav a:last-child { border-bottom: none; }
  .cp-nav a:hover { background: #f4f8fc; }
  .cp-toggle { display: flex; }

  /* Hero */
  .cp-hero { height: 420px; background-position: 70% center; }
  .cp-hero::before {
    background: linear-gradient(
      to right,
      rgba(255,255,255,0.98) 0%,
      rgba(255,255,255,0.92) 40%,
      rgba(255,255,255,0.60) 65%,
      rgba(255,255,255,0.10) 85%,
      transparent 100%
    );
  }
  .cp-hero__content { padding-left: 1.5rem; max-width: 85%; }
  .cp-hero__title { font-size: 2rem; }

  /* Services */
  .cp-services { padding: 3rem 1.5rem; }
  .cp-services__grid { grid-template-columns: repeat(2, 1fr); }
  .cp-services__row2 { justify-content: flex-start; flex-wrap: wrap; border-bottom: none; }
  .cp-services__row2 .cp-card { flex: 0 0 50%; border-bottom: 1px solid var(--border); }

  /* Footer */
  .cp-footer { flex-direction: column; border-radius: 0; }
  .cp-footer__main { flex: none; }
  .cp-footer__inner { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.5rem 1.5rem; }
  .cp-footer__brand { padding-right: 0; }
  .cp-footer__col { padding: 1.5rem 0 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
  .cp-footer__bar { padding: .85rem 1.5rem; }
  .cp-footer__img { height: 200px; }
  .cp-footer__img::before { display: none; }
}

@media (max-width: 480px) {
  .cp-services__grid { grid-template-columns: 1fr; }
  .cp-services__row2 .cp-card { flex: 0 0 100%; }
}
