/* Nicango — shared stylesheet for city, pillar, compliance, and blog pages */

:root{
  --navy: #071A2E;
  --navy-2: #0A2240;
  --navy-3: #040E1C;
  --blue: #1DA1FF;
  --blue-e: #00AAFF;
  --blue-lt: #4DB8FF;
  --steel: #8A9BB0;
  --ice: #CDD4DC;
  --white: #FFFFFF;
  --font-d: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'DM Sans', system-ui, sans-serif;
  --font-num: 'Bebas Neue', 'DM Sans', sans-serif;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; scroll-padding-top: 80px; }

html, body{
  margin:0; padding:0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-b);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img{ max-width:100%; height:auto; display:block; }
a{ color: var(--blue-e); text-decoration:none; }
a:hover{ color: var(--blue-lt); }

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ─────────────────────────────── */
nav.main-nav{
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,26,46,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,192,200,0.08);
}
.nav-inner{
  max-width: 1200px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-inner a.logo{
  display: flex; align-items: center;
  text-decoration: none;
}
.nav-inner a.logo img{
  height: 38px; width: auto; display: block;
}
.nav-links{
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 28px;
}
.nav-links a{
  font-size: 14px; color: var(--ice);
  transition: color 0.2s;
}
.nav-links a:hover{ color: var(--white); }
.nav-cta{
  font-family: var(--font-b);
  font-size: 13px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--navy); background: var(--blue);
  padding: 11px 22px; border-radius: 2px;
  transition: all 0.2s;
}
.nav-cta:hover{ background: var(--blue-lt); color: var(--navy); transform: translateY(-1px); }
@media (max-width: 760px){
  .nav-links{ display: none; }
}

/* ── Page hero ──────────────────────────────── */
.page-hero{
  padding: 80px 24px 60px;
  background: linear-gradient(180deg, var(--navy-3) 0%, var(--navy) 100%);
  border-bottom: 1px solid rgba(184,192,200,0.06);
}
.page-hero .container{ text-align: left; }
.page-hero .eyebrow{
  font-family: var(--font-b);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-e); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.page-hero .eyebrow::before{
  content:''; width: 24px; height: 1px; background: var(--blue-e);
}
.page-hero h1{
  font-family: var(--font-d);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 300; line-height: 1.05;
  margin: 0 0 24px; color: var(--white);
}
.page-hero h1 em{
  font-style: italic; color: var(--blue-e);
}
.page-hero .lede{
  font-size: 18px; font-weight: 300;
  color: var(--ice); max-width: 720px;
  line-height: 1.6;
}

/* ── Content blocks ─────────────────────────── */
.content{ padding: 64px 24px; }
.content + .content{ padding-top: 0; }

.content h2{
  font-family: var(--font-d);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300; line-height: 1.15;
  margin: 0 0 20px; color: var(--white);
}
.content h2 em{ color: var(--blue-e); font-style: italic; }

.content h3{
  font-family: var(--font-b);
  font-size: 20px; font-weight: 700;
  color: var(--white); margin: 32px 0 12px;
  letter-spacing: 0.01em;
}

.content p{
  font-size: 16px; line-height: 1.7;
  color: var(--ice); margin: 0 0 18px;
  max-width: 780px;
}
.content p strong{ color: var(--white); font-weight: 600; }

.content ul{
  padding-left: 22px; color: var(--ice);
  font-size: 16px; line-height: 1.8;
  max-width: 780px; margin: 0 0 24px;
}
.content ul li{ margin-bottom: 6px; }
.content ul li::marker{ color: var(--blue-e); }

.content .alt{
  background: var(--navy-3);
  border-top: 1px solid rgba(184,192,200,0.06);
  border-bottom: 1px solid rgba(184,192,200,0.06);
}

/* ── Cards row ──────────────────────────────── */
.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 32px;
}
.card{
  background: var(--navy-2);
  border: 1px solid rgba(184,192,200,0.08);
  padding: 28px 24px; border-radius: 4px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover{
  border-color: rgba(0,170,255,0.3);
  transform: translateY(-2px);
}
.card .num{
  font-family: var(--font-num);
  font-size: 44px; color: var(--blue-e);
  line-height: 1; margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.card h3{ margin-top: 0; }
.card p{ font-size: 14px; margin-bottom: 0; }

/* ── CTA block ──────────────────────────────── */
.cta-block{
  background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy-3) 100%);
  border: 1px solid rgba(0,170,255,0.2);
  border-radius: 6px;
  padding: 56px 40px;
  margin: 48px 0;
  text-align: center;
}
.cta-block h2{
  margin-bottom: 16px;
}
.cta-block p{
  max-width: 580px; margin: 0 auto 28px;
  color: var(--ice);
}
.cta-row{
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-top: 24px;
}
.btn-primary{
  font-family: var(--font-b); font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--blue); color: var(--navy);
  padding: 16px 32px; border-radius: 2px;
  transition: all 0.2s; display: inline-block;
}
.btn-primary:hover{
  background: var(--blue-lt); color: var(--navy);
  transform: translateY(-2px);
}
.btn-ghost{
  font-family: var(--font-b); font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ice); border: 1px solid rgba(184,192,200,0.3);
  padding: 16px 32px; border-radius: 2px;
  transition: all 0.2s; display: inline-block;
}
.btn-ghost:hover{
  color: var(--white); border-color: var(--white);
}

/* ── Breadcrumbs ────────────────────────────── */
.crumbs{
  font-size: 13px; color: var(--steel);
  margin-bottom: 24px; letter-spacing: 0.04em;
}
.crumbs a{ color: var(--steel); }
.crumbs a:hover{ color: var(--blue-e); }
.crumbs span{ margin: 0 8px; opacity: 0.5; }

/* ── Service area cluster ──────────────────── */
.area-cluster{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.area-cluster a{
  display: block;
  padding: 14px 18px;
  background: var(--navy-2);
  border: 1px solid rgba(184,192,200,0.08);
  border-radius: 3px;
  color: var(--ice);
  font-size: 14px;
  transition: all 0.2s;
}
.area-cluster a:hover{
  border-color: var(--blue-e);
  color: var(--white);
}

/* ── Footer ─────────────────────────────────── */
footer{
  background: var(--navy-3);
  border-top: 1px solid rgba(184,192,200,0.06);
  padding: 48px 24px 32px;
  margin-top: 64px;
}
footer .container{ text-align: center; }
.footer-links{
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: center;
}
.footer-links a{
  color: var(--ice); font-size: 13px;
  letter-spacing: 0.04em;
}
.footer-links a:hover{ color: var(--white); }
.footer-meta{
  font-size: 12px; color: var(--steel);
  margin-top: 16px; line-height: 1.6;
}
.footer-phone{
  font-family: var(--font-num);
  font-size: 28px; color: var(--blue-e);
  letter-spacing: 0.1em; display: block;
  margin: 16px 0 8px;
}

/* ── Mobile responsive refinements ────────── */
@media (max-width: 760px){
  .container{ padding: 0 18px; }

  /* Hero sizing for mobile */
  .page-hero{ padding: 56px 18px 44px; }
  .page-hero h1{ font-size: clamp(30px, 8vw, 44px); }
  .page-hero .lede{ font-size: 16px; }

  /* Content padding tighter on mobile */
  .content{ padding: 48px 18px; }
  .content h2{ font-size: clamp(24px, 6.5vw, 32px); }
  .content p{ font-size: 15px; }
  .content ul{ font-size: 15px; }

  /* Cards stack on mobile and become slightly smaller */
  .cards{ grid-template-columns: 1fr; gap: 14px; }
  .card{ padding: 22px 20px; }
  .card .num{ font-size: 36px; }

  /* CTA block tighter on mobile */
  .cta-block{ padding: 36px 22px; margin: 32px 0; }
  .cta-row{ flex-direction: column; gap: 10px; }
  .btn-primary, .btn-ghost{
    width: 100%;
    box-sizing: border-box;
    padding: 16px 24px;
    text-align: center;
  }

  /* Area cluster: 2 columns on mobile */
  .area-cluster{ grid-template-columns: 1fr 1fr; gap: 8px; }
  .area-cluster a{ padding: 12px 14px; font-size: 13px; }

  /* Footer */
  footer{ padding: 36px 18px 24px; }
  .footer-links{ gap: 14px; }
  .footer-links a{ font-size: 12px; }
  .footer-phone{ font-size: 24px; }

  /* Nav CTA hidden, mobile becomes hamburger-equivalent */
  .nav-cta{ display: none; }
  .nav-inner{ padding: 14px 18px; }

  /* Breadcrumbs wrap better */
  .crumbs{ font-size: 12px; }
}

@media (max-width: 480px){
  /* Very small phones */
  .area-cluster{ grid-template-columns: 1fr; }
  .page-hero h1{ font-size: 28px; line-height: 1.1; }
  .content h2{ font-size: 24px; }
}

/* ── Mobile sticky CTA bar ────────────────── */
.mobile-sticky-cta{ display: none; }
@media (max-width: 768px){
  .mobile-sticky-cta{
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    background: var(--navy);
    border-top: 1px solid rgba(29,161,255,0.3);
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    gap: 12px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
  }
  .mobile-sticky-cta .sticky-phone{
    font-family: var(--font-b);
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.02em;
  }
  .mobile-sticky-cta .sticky-phone span{
    display: block;
    font-size: 9px;
    font-weight: 500;
    color: var(--steel);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1px;
  }
  .mobile-sticky-cta .sticky-btn{
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-b);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
  }
  /* Add bottom padding so sticky bar doesn't cover content */
  body{ padding-bottom: max(64px, calc(54px + env(safe-area-inset-bottom))); }
}
