/* ============================================================
   AP Outsourcing Community — Public website
   ============================================================ */

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

/* ---------------- Navbar ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .35);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand .brand-name > span { color: var(--primary); }
.brand .brand-name { font-size: 14px; line-height: 1.3; max-width: 330px; white-space: normal; }
.brand .brand-name small { font-size: 9px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: all .2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--card-2); }
.nav-links a.active { color: var(--primary); background: var(--primary-50); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  font-size: 19px;
  color: var(--text);
}
.nav-toggle:hover { background: var(--card-2); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-menu a { padding: 12px 14px; border-radius: var(--r-sm); font-weight: 500; color: var(--text-2); }
.mobile-menu a:hover, .mobile-menu a.active { background: var(--primary-50); color: var(--primary); }
.mobile-menu.open { display: flex; animation: slideDown .25s var(--ease); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: linear-gradient(140deg, #0F1E45 0%, #16307E 45%, #1D4ED8 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, #000 30%, transparent 75%);
}
.hero::after {
  content: '';
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, .28), transparent 65%);
  top: -180px; right: -140px;
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding-top: 92px;
  padding-bottom: 108px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px;
  font-weight: 500;
  color: #BFDBFE;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}
.hero-eyebrow i { color: var(--secondary); }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #7DD3FC, #38BDF8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { font-size: 17px; color: #C7D6F5; max-width: 480px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-clients { margin-top: 44px; }
.hero-clients p { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: #6E87C4; margin-bottom: 14px; }
.hero-logos { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.hero-logos span {
  font-size: 15px; font-weight: 700; letter-spacing: -.02em;
  color: rgba(255, 255, 255, .55);
  display: inline-flex; align-items: center; gap: 7px;
}

/* Hero dashboard mockup — the signature element */
.hero-visual { position: relative; }
.mockup {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
  padding: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 80px rgba(2, 8, 30, .5);
  animation: floatUp 1s var(--ease) both .2s;
}
@keyframes floatUp { from { opacity: 0; transform: translateY(36px); } }
.mockup-inner {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  color: var(--text);
}
.mockup-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mockup-bar i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.mockup-bar i:nth-child(1) { background: #FCA5A5; }
.mockup-bar i:nth-child(2) { background: #FCD34D; }
.mockup-bar i:nth-child(3) { background: #86EFAC; }
.mockup-bar span { margin-left: 10px; font-size: 11px; color: var(--text-3); font-weight: 500; }
.mockup-body { padding: 16px; display: grid; gap: 12px; }
.mockup-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mockup-stat {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.mockup-stat b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; display: block; }
.mockup-stat span { font-size: 10.5px; color: var(--text-2); }
.mockup-stat em { font-style: normal; font-size: 10px; font-weight: 600; color: var(--success-ink); }
.mockup-chart {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.mockup-chart h5 { font-size: 11px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.mockup-rows { display: grid; gap: 8px; }
.mockup-row { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.mockup-row .bar { height: 7px; border-radius: 4px; background: var(--primary-100); position: relative; flex: 1; overflow: hidden; }
.mockup-row .bar i {
  position: absolute; inset: 0; width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  animation: growBar 1.2s var(--ease) forwards;
}
@keyframes growBar { to { width: var(--w); } }
.mockup-row span { width: 62px; color: var(--text-2); flex-shrink: 0; }
.mockup-row b { width: 30px; text-align: right; font-weight: 600; }

.float-card {
  position: absolute;
  background: #fff;
  color: var(--text);
  border-radius: var(--r-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  animation: bob 5s ease-in-out infinite;
}
.float-card b { display: block; font-size: 13px; }
.float-card span { font-size: 11.5px; color: var(--text-2); }
.float-card .fc-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.float-1 { top: -24px; left: -34px; animation-delay: .6s; }
.float-1 .fc-ico { background: var(--success-bg); color: var(--success-ink); }
.float-2 { bottom: -22px; right: -18px; animation-delay: 1.4s; }
.float-2 .fc-ico { background: var(--primary-50); color: var(--primary); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------------- Sections ---------------- */
.section { padding: 96px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.18;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-2); font-size: 16px; }

/* Stats band */
.stats-band {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 44px;
  padding-bottom: 44px;
  gap: 24px;
}
.stat-item { text-align: center; position: relative; }
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: -12px; top: 12%;
  height: 76%;
  width: 1px;
  background: var(--border);
}
.stat-item b {
  display: block;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.1;
}
.stat-item b i { font-style: normal; color: var(--primary); }
.stat-item span { font-size: 14px; color: var(--text-2); font-weight: 500; }

/* Feature / service cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.f-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: all .25s var(--ease);
  position: relative;
}
.f-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-100);
}
.f-ico {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
  transition: transform .25s var(--spring);
}
.f-card:hover .f-ico { transform: scale(1.08) rotate(-4deg); }
.f-ico.blue   { background: var(--primary-50); color: var(--primary); }
.f-ico.sky    { background: #F0F9FF; color: var(--secondary); }
.f-ico.green  { background: var(--success-bg); color: var(--success-ink); }
.f-ico.amber  { background: var(--warning-bg); color: var(--warning-ink); }
.f-ico.violet { background: #F5F3FF; color: var(--violet); }
.f-ico.pink   { background: #FDF2F8; color: var(--pink); }
.f-ico.teal   { background: #F0FDFA; color: #0F766E; }
.f-ico.red    { background: var(--danger-bg); color: var(--danger-ink); }
.f-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.f-card p { font-size: 14px; color: var(--text-2); }
.f-card .learn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: 13.5px; font-weight: 600;
  color: var(--primary);
}
.f-card .learn i { transition: transform .2s var(--ease); }
.f-card:hover .learn i { transform: translateX(4px); }

/* Why choose us — split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-list { display: grid; gap: 22px; margin-top: 28px; }
.split-item { display: flex; gap: 16px; }
.split-item .f-ico { width: 44px; height: 44px; font-size: 17px; margin: 0; flex-shrink: 0; }
.split-item h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 3px; }
.split-item p { font-size: 14px; color: var(--text-2); }

.visual-panel {
  background: linear-gradient(150deg, var(--primary-50), #E0F2FE);
  border: 1px solid var(--primary-100);
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative;
}
.visual-panel .mockup { animation: none; box-shadow: var(--shadow-lg); background: #fff; border-color: var(--border); }

/* Blog cards */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .25s var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-cover {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: rgba(255, 255, 255, .9);
  position: relative;
  overflow: hidden;
}
.blog-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255,255,255,.25), transparent 45%);
}
.cover-1 { background: linear-gradient(135deg, #1E40AF, #3B82F6); }
.cover-2 { background: linear-gradient(135deg, #065F46, #10B981); }
.cover-3 { background: linear-gradient(135deg, #6D28D9, #A78BFA); }
.cover-4 { background: linear-gradient(135deg, #B45309, #F59E0B); }
.cover-5 { background: linear-gradient(135deg, #0E7490, #22D3EE); }
.cover-6 { background: linear-gradient(135deg, #BE185D, #F472B6); }
.blog-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12.5px; color: var(--text-3); }
.blog-tag {
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: 11.5px;
  font-weight: 600;
}
.blog-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; margin-bottom: 10px; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { font-size: 13.5px; color: var(--text-2); flex: 1; }
.blog-foot { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--primary); }
.read-more i { transition: transform .2s var(--ease); }
.read-more:hover i { transform: translateX(4px); }

/* Testimonials */
.t-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all .25s var(--ease);
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.t-stars { color: var(--warning); font-size: 13px; display: flex; gap: 3px; margin-bottom: 16px; }
.t-card blockquote { font-size: 14.5px; color: var(--text); line-height: 1.65; margin-bottom: 22px; }
.t-person { display: flex; align-items: center; gap: 12px; }
.t-person b { display: block; font-size: 14px; }
.t-person span { font-size: 12.5px; color: var(--text-2); }

/* CTA */
.cta {
  background: linear-gradient(135deg, #16307E, #1D4ED8 60%, #0EA5E9);
  border-radius: var(--r-xl);
  padding: 72px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 38px 38px;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.cta p { color: #C7D6F5; max-width: 520px; margin: 0 auto 32px; font-size: 16px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: #0B1220;
  color: #94A3B8;
  padding: 72px 0 0;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-grid .brand { color: #fff; margin-bottom: 16px; }
.footer-grid > div > p { font-size: 14px; max-width: 300px; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  display: flex; align-items: center; justify-content: center;
  color: #CBD5E1;
  transition: all .2s var(--ease);
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-grid h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.footer-links { display: grid; gap: 11px; }
.footer-links a { font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: grid; gap: 14px; font-size: 14px; }
.footer-contact a { color: inherit; transition: color .2s; }
.footer-contact a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact i { color: var(--secondary); margin-top: 4px; width: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-bottom a { color: #94A3B8; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .links { display: flex; gap: 24px; }

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero {
  background: linear-gradient(140deg, #0F1E45, #1E40AF);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 20%, transparent 80%);
}
.page-hero .container { position: relative; }
.page-hero .crumbs { font-size: 13px; color: #93B4F5; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.page-hero p { color: #C7D6F5; max-width: 560px; font-size: 16px; }

/* ---------------- About ---------------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(var(--primary-100), var(--primary));
  transform: translateX(-50%);
}
.tl-item { position: relative; width: 50%; padding: 0 44px 48px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 48px 44px; }
.tl-item::before {
  content: '';
  position: absolute;
  right: -8px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--primary);
  box-shadow: 0 0 0 5px var(--primary-50);
}
.tl-item:nth-child(even)::before { right: auto; left: -8px; }
.tl-year { font-size: 13px; font-weight: 800; color: var(--primary); letter-spacing: .06em; }
.tl-item h4 { font-size: 16.5px; font-weight: 700; margin: 6px 0; }
.tl-item p { font-size: 14px; color: var(--text-2); }
.tl-item:nth-child(odd) { text-align: right; }

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 24px;
  text-align: center;
  transition: all .25s var(--ease);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-card .avatar { margin: 0 auto 16px; }
.team-card h4 { font-size: 16px; font-weight: 700; }
.team-card > span { font-size: 13px; color: var(--primary); font-weight: 600; display: block; margin: 2px 0 10px; }
.team-card p { font-size: 13px; color: var(--text-2); }

.mv-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.mv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.mv-card .f-ico { margin-bottom: 18px; }
.mv-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.mv-card p { color: var(--text-2); font-size: 14.5px; }

.culture-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.culture-tile {
  border-radius: var(--r-lg);
  padding: 28px;
  color: #fff;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease);
}
.culture-tile:hover { transform: scale(1.02); }
.culture-tile i { font-size: 26px; margin-bottom: auto; opacity: .9; }
.culture-tile h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.culture-tile p { font-size: 13px; opacity: .85; }

/* ---------------- Blog details ---------------- */
.article-hero {
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  position: relative;
}
.article-hero .container { position: relative; padding-bottom: 44px; padding-top: 100px; }
.article-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(transparent 20%, rgba(5, 12, 35, .72));
}
.article-hero .container { z-index: 1; }
.article-hero h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.03em; max-width: 760px; margin: 14px 0 18px; line-height: 1.2; }
.article-meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: #DBEAFE; }
.article-meta .who { display: flex; align-items: center; gap: 10px; }
.article-meta .who b { display: block; font-size: 13.5px; color: #fff; }
.article-meta .who span { font-size: 12px; color: #BFDBFE; }
.article-meta > span { display: inline-flex; align-items: center; gap: 7px; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  padding: 64px 0;
}
.article-body { font-size: 16px; line-height: 1.8; color: #334155; }
.article-body > * + * { margin-top: 22px; }
.article-body h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin-top: 40px; }
.article-body h3 { font-size: 19px; font-weight: 700; color: var(--text); margin-top: 32px; }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 24px;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--primary-700);
}
.article-body ul { padding-left: 4px; display: grid; gap: 10px; }
.article-body ul li { display: flex; gap: 12px; }
.article-body ul li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--success);
  margin-top: 2px;
}
.article-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px !important; }
.article-tags a {
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: all .2s;
}
.article-tags a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

.article-side { display: grid; gap: 24px; align-content: start; position: sticky; top: 92px; }
.side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.side-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.side-card h4 i { color: var(--primary); font-size: 14px; }
.related-item { display: flex; gap: 13px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.related-item:last-child { border: none; padding-bottom: 0; }
.related-thumb {
  width: 58px; height: 58px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 19px;
}
.related-item b { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: block; }
.related-item b a:hover { color: var(--primary); }
.related-item span { font-size: 12px; color: var(--text-3); }

/* Comments */
.comments { margin-top: 56px; }
.comments h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 24px; }
.comment { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment-body b { font-size: 14px; }
.comment-body time { font-size: 12px; color: var(--text-3); margin-left: 10px; }
.comment-body p { font-size: 14px; color: var(--text-2); margin: 6px 0 8px; }
.comment-body button { font-size: 12.5px; font-weight: 600; color: var(--primary); }
.comment-form { margin-top: 32px; }
.comment-form textarea { min-height: 110px; resize: vertical; }

/* ---------------- Contact ---------------- */
.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.contact-card > p { font-size: 14px; color: var(--text-2); margin-bottom: 26px; }
.info-tile {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all .2s var(--ease);
}
.info-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.info-tile h4 { font-size: 14.5px; font-weight: 700; }
.info-tile p { font-size: 13.5px; color: var(--text-2); margin-top: 3px; }
.map-placeholder {
  height: 260px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px),
    linear-gradient(160deg, #EFF6FF, #E0F2FE);
  background-size: 28px 28px, 28px 28px, cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary-600);
}
.map-placeholder i { font-size: 34px; animation: bob 3.5s ease-in-out infinite; }
.map-placeholder b { font-size: 14px; }
.map-placeholder span { font-size: 12.5px; color: var(--text-2); }
.hours-list { display: grid; gap: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.hours-list li:last-child { border: none; }
.hours-list span { color: var(--text-2); }
.hours-list b { font-weight: 600; }
.hours-list .closed { color: var(--danger-ink); }

/* Filter pills (blog listing) */
.pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.pill {
  padding: 8px 18px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: all .2s var(--ease);
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, .3); }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 52px; }
.pagination a, .pagination button {
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--card);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-2);
  transition: all .2s var(--ease);
}
.pagination a:hover, .pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 88px; }
  .hero-visual { max-width: 560px; }
  .float-1 { left: -10px; }
  .float-2 { right: -6px; }
  .cards-4, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-actions .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav .container { height: auto; min-height: 60px; padding-top: 8px; padding-bottom: 8px; gap: 12px; }
  .site-nav .brand { flex: 1; min-width: 0; }
  .site-nav .brand .brand-name { font-size: 11px; line-height: 1.25; }
  .site-nav .brand .brand-name small { font-size: 7.5px; }
  .nav-actions { flex-shrink: 0; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item + .stat-item::before { display: none; }
  .cards-3, .cards-2, .culture-strip { grid-template-columns: 1fr; }
  .timeline::before { left: 8px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin: 0; padding: 0 0 40px 36px; text-align: left; }
  .tl-item:nth-child(odd) { text-align: left; }
  .tl-item::before, .tl-item:nth-child(even)::before { left: 0; right: auto; }
  .field-row { grid-template-columns: 1fr; }
  .cta { padding: 52px 24px; }
}

@media (max-width: 520px) {
  .cards-4, .values-grid { grid-template-columns: 1fr; }
  .stats-band .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-card { display: none; }
}

/* ---------------- Gallery ---------------- */
.headrow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.headrow h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.025em; }
.headrow .sub { font-size: 14px; color: var(--text-2); margin-top: 3px; }

.crumbs { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #9FB6E8; margin-bottom: 16px; }
.crumbs i { font-size: 9px; }
.crumbs a:hover { color: #fff; }

.sortsel {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 8px 16px;
}
.backlink { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--primary); }
.backlink:hover { color: var(--primary-700); }

/* Photo tile primitive */
.shot { position: relative; overflow: hidden; background: var(--card-2); margin: 0; }
.shot .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .92);
  font-size: 32px;
  transition: transform .5s var(--ease);
}
.shot .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot:hover .ph { transform: scale(1.06); }
.shot .cap {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 42%, rgba(2, 8, 30, .86));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px 16px; color: #fff;
  opacity: 0; transition: opacity .25s;
}
.shot:hover .cap { opacity: 1; }
.shot .cap b { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.shot .cap span { font-size: 11.5px; opacity: .85; }
/* Touch devices cannot hover, so the caption has to stay readable. */
@media (hover: none) {
  .shot .cap { opacity: 1; background: linear-gradient(transparent 52%, rgba(2, 8, 30, .86)); }
}

/* Album cards */
.alb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.alb-grid.trio { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.alb {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .25s var(--ease);
}
.alb:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-100); }
.alb-cover {
  display: grid;
  gap: 3px;
  aspect-ratio: 16 / 9;
  background: var(--border);
  grid-template-columns: 1.85fr 1fr;
  grid-template-rows: repeat(3, 1fr);
}
/* Cover adapts to however many photos the album actually has published. */
.alb-cover.c1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.alb-cover.c2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.alb-cover.c3 { grid-template-rows: repeat(2, 1fr); }
.alb-cover.c3 .shot:first-child,
.alb-cover.c4 .shot:first-child { grid-row: 1 / -1; }
.alb-cover .ph { font-size: 24px; }
.alb-cover .shot:not(:first-child) .ph { font-size: 15px; }
.alb-cover .cap { display: none; }
.alb-body { padding: 18px 22px 22px; display: flex; align-items: center; gap: 16px; }
.alb-body .t b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.alb-body .t span { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.alb-body em {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--primary);
  transition: gap .2s var(--ease);
}
.alb:hover .alb-body em { gap: 13px; }

/* Album detail grid */
.sq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sq-grid .shot { aspect-ratio: 1; border-radius: var(--r-md); border: 1px solid var(--border); cursor: zoom-in; }

.gallery-empty { text-align: center; padding: 60px 24px; color: var(--text-2); }
.gallery-empty .ge-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: var(--r-lg);
  background: var(--primary-50); color: var(--primary);
  font-size: 26px; margin-bottom: 18px;
}
.gallery-empty h3 { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 8px; }

@media (max-width: 1000px) {
  .alb-grid.trio { grid-template-columns: repeat(2, 1fr); }
  .sq-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .alb-grid, .alb-grid.trio { grid-template-columns: 1fr; gap: 18px; }
  .alb-cover { aspect-ratio: 2 / 1; }
  .alb-body { padding: 15px 17px 17px; }
  .alb-body .t b { font-size: 15.5px; }
  .alb-body em span { display: none; }
  .sq-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Lightbox */
.gl-lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(2, 8, 30, .93);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 24px;
  opacity: 0; transition: opacity .2s var(--ease);
}
.gl-lightbox[hidden] { display: none; }
.gl-lightbox.open { opacity: 1; }
.gl-inner { max-width: 1100px; width: 100%; margin: 0; }
.gl-stage {
  position: relative;
  width: 100%; height: min(72vh, 720px);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .92); font-size: 74px;
}
.gl-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gl-cap { display: flex; align-items: center; gap: 14px; padding: 16px 4px 0; color: #fff; }
.gl-cap b { font-size: 15.5px; font-weight: 600; }
.gl-cap span { font-size: 13px; color: #94A3B8; }
.gl-close, .gl-nav {
  position: absolute;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
}
.gl-close:hover, .gl-nav:hover { background: rgba(255, 255, 255, .24); }
.gl-close { top: 20px; right: 22px; }
.gl-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.gl-next { right: 22px; top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) {
  .gl-lightbox { padding: 72px 12px 24px; }
  .gl-stage { height: min(60vh, 460px); font-size: 52px; }
  .gl-prev { left: 8px; }
  .gl-next { right: 8px; }
  .gl-cap { flex-wrap: wrap; gap: 4px; }
}
