/* ==========================================================================
   Timebridge Limited — corporate theme
   Lawyer & tax consultation
   ========================================================================== */

:root {
  --navy-900: #081a2e;
  --navy-800: #0e2a47;
  --navy-700: #14365c;
  --navy-600: #1d4674;
  --gold: #c8a24a;
  --gold-dark: #a9863a;
  --gold-light: #f3e8d0;
  --ink: #1f2937;
  --muted: #5b6675;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --line: #e6e8ec;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(8, 26, 46, 0.08);
  --shadow-sm: 0 4px 14px rgba(8, 26, 46, 0.07);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy-800);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }

.section { padding: 72px 0; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.4em;
}

.kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 0.75rem;
}

.empty { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-900);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--navy-900); }

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-600);
}
.btn-outline:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.btn-outline.disabled { opacity: 0.4; pointer-events: none; }

.cta-row { margin-top: 40px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-800);
}
.brand:hover { color: var(--navy-800); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--navy-800);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-tag { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
}
.main-nav a:hover { color: var(--navy-700); background: var(--bg); }
.main-nav a.active { color: var(--gold-dark); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switcher { display: flex; align-items: center; gap: 4px; }
.lang-switcher .lang {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  color: var(--muted);
}
.lang-switcher .lang:hover { color: var(--navy-700); background: var(--bg); }
.lang-switcher .lang.active { background: var(--navy-800); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy-800); border-radius: 2px; }

/* Hero */
.hero {
  background:
    linear-gradient(120deg, rgba(8, 26, 46, 0.95) 0%, rgba(20, 54, 92, 0.92) 55%, rgba(29, 70, 116, 0.85) 100%),
    radial-gradient(circle at 85% 20%, rgba(200, 162, 74, 0.35), transparent 45%);
  color: #fff;
  padding: 120px 0;
}

.hero-inner { max-width: 820px; }

.hero .kicker { color: var(--gold); }

.hero-title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.5em;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 0 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.7); }
.hero .btn-outline:hover { background: #fff; color: var(--navy-800); border-color: #fff; }

/* Services */
.services { background: #fff; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
.service-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* Cards grid (publications) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }

.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-700); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
}
.card-media-placeholder span { font-family: var(--font-heading); font-size: 2.4rem; color: var(--gold); }

.card-body { padding: 22px; }

.card-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.card-title { font-size: 1.15rem; margin-bottom: 0.4em; }

.card-desc { font-size: 0.92rem; color: var(--muted); margin: 0 0 14px; }

.card-more { font-size: 0.9rem; font-weight: 600; color: var(--navy-700); }

/* Categories */
.categories { background: #fff; border-top: 1px solid var(--line); }

.categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.category-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-weight: 600;
  color: var(--navy-800);
  transition: all 0.18s ease;
}
.category-card:hover { border-color: var(--gold); background: var(--gold-light); color: var(--navy-900); }

.chip-title { font-size: 0.95rem; }

.chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--navy-800);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Page header */
.page-header {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
  color: #fff;
  padding: 64px 0;
}
.page-title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.4em; }
.page-desc { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 680px; margin: 0; }

/* Post / article */
.post-header { background: linear-gradient(120deg, var(--navy-800), var(--navy-600)); color: #fff; padding: 64px 0 56px; }
.post-header .post-title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.post-header .post-desc { color: rgba(255,255,255,0.82); font-size: 1.08rem; max-width: 720px; }
.post-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.cat-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(200, 162, 74, 0.18);
  color: var(--gold);
  border: 1px solid rgba(200, 162, 74, 0.4);
}

.post-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.post-meta .sep { opacity: 0.5; }

.post-layout { padding-top: 48px; padding-bottom: 72px; }

.post-body { max-width: 800px; margin: 0 auto; }

.post-cover { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.toc {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 32px;
}
.toc-title { font-size: 1rem; margin-bottom: 0.8em; }
.toc ul { margin: 0; padding-left: 18px; }
.toc li { margin: 6px 0; font-size: 0.9rem; }
.toc a { color: var(--navy-700); }

.post-content { font-size: 1.02rem; color: var(--ink); }
.post-content h2 { font-size: 1.5rem; margin-top: 2.2em; padding-top: 0.4em; border-top: 1px solid var(--line); }
.post-content h3 { font-size: 1.2rem; margin-top: 1.6em; }
.post-content p { margin: 0 0 1.2em; }
.post-content a { color: var(--navy-600); text-decoration: underline; }
.post-content ul, .post-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.post-content blockquote {
  margin: 1.5em 0;
  padding: 16px 22px;
  border-left: 4px solid var(--gold);
  background: var(--bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
}
.post-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: 0.92rem; }
.post-content th { background: var(--bg); color: var(--navy-800); }
.post-content code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.post-content pre { background: var(--navy-900); color: #e8edf3; padding: 18px; border-radius: var(--radius-sm); overflow-x: auto; }
.post-content pre code { background: none; padding: 0; color: inherit; }

/* FAQ */
.faq { margin-top: 48px; }
.faq-title { font-size: 1.4rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--navy-800);
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--gold-dark);
}
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 20px 18px; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Related */
.related { background: #fff; border-top: 1px solid var(--line); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 48px;
}
.pagination-info { color: var(--muted); font-size: 0.9rem; }

/* 404 */
.notfound { padding: 120px 0; }
.notfound-code {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.2em;
  line-height: 1;
}

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.82); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 48px;
}

.footer-brand .brand-mark { background: var(--gold); color: var(--navy-900); }
.footer-brand .brand-name { color: #fff; }
.footer-brand { color: #fff; }

.footer-tagline { margin: 14px 0 10px; font-size: 0.95rem; }
.disclaimer { font-size: 0.8rem; color: rgba(255,255,255,0.5); line-height: 1.5; }

.footer-heading {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-links a { color: rgba(255,255,255,0.82); }
.footer-links a:hover { color: var(--gold); }
.footer-address { color: rgba(255,255,255,0.6); line-height: 1.5; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 24px 18px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; border-bottom: 1px solid var(--bg); }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
  .brand { margin-right: auto; }
  .header-inner { gap: 12px; }
  .lang-switcher { display: none; }
  .section { padding: 52px 0; }
  .hero { padding: 84px 0; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
