@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   Oslo Takst Child Theme — Blog CSS
   Matches the static pages design (Newsec-inspired)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --ot-primary: #1E61A6;
  --ot-primary-hover: #174d85;
  --ot-accent: #1E61A6;
  --ot-accent-hover: #174d85;
  --ot-navy: #003061;
  --ot-bg: #F7F5F2;
  --ot-surface: #FFFFFF;
  --ot-text: #1A1A1A;
  --ot-text-muted: #666666;
  --ot-divider: #ddd5ca;
  --ot-font: 'Inter', sans-serif;
}

/* ---------- Reset GeneratePress defaults ---------- */
.site-header,
.site-footer,
.site-info,
#secondary,
.sidebar { display: none !important; }

.site-content { padding: 0 !important; }
body { font-family: var(--ot-font); background: var(--ot-bg); margin: 0; }

/* ---------- Navigation ---------- */
.ot-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(247, 245, 242, 0.92);
  border-bottom: 1px solid var(--ot-divider);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 72px;
}
.ot-nav--scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.ot-nav__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 72px;
}
.ot-nav__logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ot-navy);
}

.ot-nav__logo-text {
  font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.4rem;
  color: var(--ot-navy);
}
.ot-nav__links {
  display: flex; align-items: center; gap: 1.8rem;
  list-style: none; margin: 0; padding: 0;
}
.ot-nav__links li a {
  font-family: var(--ot-font); font-size: 0.9rem; font-weight: 500;
  color: var(--ot-text); text-decoration: none;
  transition: color 0.2s;
}
.ot-nav__links li a:hover { color: var(--ot-primary); }
.ot-nav__cta {
  display: inline-block; padding: 10px 22px;
  background: var(--ot-primary); color: #fff !important;
  font-weight: 500 !important; font-size: 0.85rem !important;
  border-radius: 999px; transition: all 0.2s; border: none;
}
.ot-nav__cta:hover {
  background: var(--ot-primary-hover); transform: translateY(-1px);
}

/* Hamburger */
.ot-nav__hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; padding: 0;
}
.ot-nav__hamburger span {
  display: block; width: 100%; height: 2px; background: var(--ot-navy);
  position: absolute; left: 0; transition: all 0.3s;
}
.ot-nav__hamburger span:nth-child(1) { top: 0; }
.ot-nav__hamburger span:nth-child(2) { top: 9px; }
.ot-nav__hamburger span:nth-child(3) { top: 18px; }
.ot-nav__hamburger--active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.ot-nav__hamburger--active span:nth-child(2) { opacity: 0; }
.ot-nav__hamburger--active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* Mobile menu */
.ot-nav__mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--ot-bg); z-index: 99; padding: 2rem; flex-direction: column; gap: 1rem;
  overflow-y: auto;
}
.ot-nav__mobile-menu--open { display: flex; }
.ot-nav__mobile-menu a {
  font-family: "DM Serif Display", serif; font-size: 1.5rem;
  color: var(--ot-navy); text-decoration: none; padding: 1rem 0;
  border-bottom: 1px solid var(--ot-divider);
}
.ot-nav__mobile-menu a:hover { color: var(--ot-primary); }
.ot-nav__mobile-cta {
  color: var(--ot-primary) !important; font-weight: 600 !important;
  border-bottom: none !important;
}

@media (max-width: 1024px) {
  .ot-nav__links { display: none; }
  .ot-nav__hamburger { display: block; }
}

/* ---------- Trust Bar ---------- */
.ot-trust-bar {
  margin-top: 72px;
  border-bottom: 1px solid var(--ot-divider);
  padding: 0.75rem 1.5rem;
  background: #fff;
}
.ot-trust-bar__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
}
.ot-trust-bar__item {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: var(--ot-text-muted);
  font-family: var(--ot-font);
}
.ot-trust-bar__item svg { width: 16px; height: 16px; stroke: var(--ot-text-muted); }

/* ---------- Post Hero ---------- */
.ot-post-hero {
  background: var(--ot-navy); color: #fff;
  padding: 4rem 1.5rem 3rem;
}
.ot-post-hero__inner { max-width: 800px; margin: 0 auto; }
.ot-breadcrumb {
  font-size: 0.85rem; color: rgba(255,255,255,0.7);
  margin-bottom: 1rem; font-family: var(--ot-font);
}
.ot-breadcrumb a {
  color: rgba(255,255,255,0.7); text-decoration: none;
}
.ot-breadcrumb a:hover { color: #fff; }
.ot-post-hero h1 {
  font-family: 'DM Serif Display', serif; font-size: clamp(2rem, 1.2rem + 2.5vw, 3rem);
  font-weight: 400; line-height: 1.15; color: #fff; margin: 0;
}
.ot-post-meta {
  font-size: 0.9rem; color: rgba(255,255,255,0.7);
  margin-top: 1rem; font-family: var(--ot-font);
}

/* ---------- Content area ---------- */
.inside-article {
  max-width: 800px !important; margin: 0 auto !important;
  padding: 3rem 1.5rem !important;
}
.entry-header { display: none !important; }
.entry-content {
  font-family: var(--ot-font) !important;
  font-size: 1.05rem !important; line-height: 1.75 !important;
  color: var(--ot-text) !important;
}
.entry-content h2 {
  font-family: var(--ot-font) !important;
  font-size: 1.5rem !important; font-weight: 600 !important;
  margin: 2.5rem 0 1rem !important; color: var(--ot-navy) !important;
  border-bottom: none; padding-bottom: 0;
}
.entry-content h3 {
  font-family: var(--ot-font) !important;
  font-size: 1.25rem !important; font-weight: 600 !important;
  margin: 2rem 0 0.75rem !important; color: var(--ot-navy) !important;
}
.entry-content a {
  color: var(--ot-primary) !important; text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--ot-primary-hover) !important; }
.entry-content ul, .entry-content ol {
  padding-left: 1.5rem; margin-bottom: 1.5rem;
}
.entry-content li { margin-bottom: 0.4rem; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content img {
  max-width: 100%; height: auto; border-radius: 4px;
  margin: 1.5rem 0;
}

/* ---------- CTA Box ---------- */
.ot-cta-box {
  background: var(--ot-surface); border: 1px solid var(--ot-divider);
  border-radius: 6px; padding: 2rem; margin: 3rem 0 2rem; text-align: center;
}
.ot-cta-box h3 {
  font-family: var(--ot-font); font-size: 1.3rem; font-weight: 600;
  color: var(--ot-navy); margin-bottom: 0.75rem;
}
.ot-cta-box p {
  color: var(--ot-text-muted); font-size: 0.95rem;
  margin-bottom: 1.5rem; max-width: 100%;
}
.ot-cta-buttons {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.ot-cta-primary {
  display: inline-block; padding: 12px 28px;
  background: var(--ot-accent); color: #fff !important;
  font-weight: 600; text-decoration: none !important;
  border-radius: 999px; font-size: 0.95rem; font-family: var(--ot-font);
}
.ot-cta-primary:hover { background: var(--ot-primary-hover); }
.ot-cta-secondary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 12px 28px; background: #fff;
  color: var(--ot-text) !important; font-weight: 500;
  text-decoration: none !important; border: 1px solid #DADADA;
  border-radius: 999px; font-size: 0.95rem; font-family: var(--ot-font);
}
.ot-cta-secondary:hover {
  border-color: var(--ot-primary); color: var(--ot-primary) !important;
}

/* ---------- Author Box ---------- */
.ot-author-box {
  border-top: 2px solid var(--ot-navy);
  padding: 1.5rem 0; margin-top: 2rem;
}
.ot-author-label {
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: #999; margin-bottom: 0.25rem;
}
.ot-author-name {
  font-family: var(--ot-font); font-size: 1.1rem; font-weight: 600;
  color: var(--ot-navy); margin-bottom: 0.5rem;
}
.ot-author-bio {
  font-size: 0.9rem; color: var(--ot-text-muted); line-height: 1.6;
}
.ot-author-bio a { color: var(--ot-primary); }

/* ---------- Footer ---------- */
.ot-footer {
  background: var(--ot-navy); color: rgba(255,255,255,0.85);
  font-family: var(--ot-font); padding: 0;
}
.ot-footer__top {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; padding: 4rem 2rem 3rem;
}
.ot-footer__about p {
  font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.65);
  margin-top: 1rem;
}
.ot-footer__logo {
  display: flex; align-items: center; gap: 0.6rem; color: #fff;
}

.ot-footer__logo-text {
  font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.3rem;
}
.ot-footer__col h4 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5); margin-bottom: 1rem; font-weight: 600;
}
.ot-footer__col ul {
  list-style: none; padding: 0; margin: 0;
}
.ot-footer__col ul li {
  margin-bottom: 0.6rem; font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.ot-footer__col ul li a {
  color: rgba(255,255,255,0.85); text-decoration: none;
}
.ot-footer__col ul li a:hover { color: #fff; }
.ot-footer__membership {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.ot-footer__membership a {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem;
}
.ot-footer__membership a:hover { color: #fff; }
.ot-footer__membership svg { stroke: rgba(255,255,255,0.6); }



.ot-footer__bottom {
  text-align: center; padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
}

/* ---------- Archive / Category pages ---------- */
.archive .page-header, .search .page-header {
  background: var(--ot-primary); color: #fff;
  padding: 3rem 1.5rem 2rem; margin-top: 0;
}
.archive .page-header h1, .search .page-header h1 {
  font-family: var(--ot-font); color: #fff;
  max-width: 800px; margin: 0 auto;
}
.archive .inside-article, .search .inside-article {
  max-width: 800px; margin: 0 auto; padding: 1.5rem;
  border-bottom: 1px solid var(--ot-divider);
}
.archive .entry-title a, .search .entry-title a {
  font-family: var(--ot-font); color: var(--ot-navy);
  text-decoration: none; font-weight: 600;
}
.archive .entry-title a:hover { color: var(--ot-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ot-footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .ot-post-hero { padding: 3rem 1rem 2rem; }
  .inside-article { padding: 2rem 1rem !important; }
  .ot-trust-bar__inner { gap: 1rem; }
  .ot-trust-bar__item { font-size: 0.75rem; }
  .ot-footer__top { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem 2rem; }
  .ot-footer__wordmark { font-size: 2.5rem; }
}

/* Mobile phone link in nav */
.ot-nav__mobile-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ot-primary) !important;
  font-weight: 500;
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: none !important;
  font-family: Inter, sans-serif !important;
  font-size: 1.1rem !important;
}
.ot-nav__mobile-phone svg { flex-shrink: 0; }
