/* ATEAM Productions: shared styles for /blog pages.
   Base tokens, nav, mobile nav, buttons, reveal and footer are copied from
   the homepage (index.html) so the blog matches the main site. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-dim: #aeaeb2;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: #e5e5e7;
  --surface: #f5f5f7;
  --card: #ffffff;
  --font: 'Urbanist', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #ffffff;
  background-image: radial-gradient(circle at top right, rgba(70, 130, 180, 0.5), transparent 70%);
  filter: blur(80px);
  background-repeat: no-repeat;
}

nav, section, main, header, footer, .mobile-nav { position: relative; z-index: 1; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── NAV (same as homepage) ── */
nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}
.nav-logo img { height: 72px; display: block; filter: invert(1); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--accent) !important; color: #fff !important; padding: 9px 22px;
  border-radius: 980px; font-weight: 700 !important; transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }
.nav-burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  z-index: 999; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.2rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; }
.mobile-nav a:hover { color: var(--accent); }

/* ── BUTTONS (same as homepage) ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-family: var(--font);
  font-size: 0.95rem; font-weight: 700; padding: 15px 32px;
  border-radius: 980px; border: none; cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--text); font-family: var(--font);
  font-size: 0.95rem; font-weight: 600; padding: 15px 32px;
  border-radius: 980px; border: 1px solid var(--border); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: #ccc; background: var(--surface); }

/* ── FOOTER (same as homepage) ── */
footer { padding: 28px 0; background: var(--surface); border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.footer-copy { font-size: 0.75rem; color: var(--text-dim); }
.footer-tagline { font-size: 0.75rem; color: var(--text-dim); }

/* ── BLOG LISTING ── */
.blog-hero { padding: 140px 0 40px; text-align: center; }
.blog-eyebrow { font-size: 1rem; color: var(--text-secondary); font-weight: 400; margin-bottom: 10px; }
.blog-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12;
  color: var(--text); margin-bottom: 12px;
}
.blog-sub { font-size: 1rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.7; }

.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1200px; margin: 0 auto; padding: 20px 0 100px;
}
.post-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; transition: box-shadow 0.3s, transform 0.3s;
}
.post-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); transform: translateY(-3px); }
.post-card-img { aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.post-tag {
  align-self: flex-start; display: inline-block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff; background: var(--accent); padding: 3px 10px; border-radius: 4px; margin-bottom: 14px;
}
.post-card-date { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.post-card-title { font-size: 1.15rem; font-weight: 800; line-height: 1.3; margin-bottom: 6px; color: var(--text); }
.post-card-subtitle { font-size: 0.9rem; font-weight: 500; line-height: 1.5; color: var(--text-secondary); margin-bottom: 10px; }
.post-card-excerpt { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 18px; flex: 1; }
.post-card-more { font-size: 0.85rem; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.post-card:hover .post-card-more i { transform: translateX(3px); }
.post-card-more i { transition: transform 0.2s; }

/* ── BLOG POST ── */
.post-header { padding: 124px 0 0; }
.post-col { max-width: 700px; margin: 0 auto; padding: 0 20px; }
.breadcrumb { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-secondary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }
.post-title {
  font-size: clamp(1.85rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 10px; text-wrap: balance;
}
.post-subtitle {
  /* One line on desktop: 17px fits the 660px column (text ~632px); wraps naturally on small screens */
  font-size: clamp(1rem, 1.6vw, 1.0625rem); font-weight: 500; line-height: 1.5;
  color: var(--text-secondary); margin-bottom: 18px; max-width: 100%; text-wrap: pretty;
}
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 28px; }
.post-meta i { color: var(--accent); margin-right: 6px; }
.post-hero-img { max-width: 900px; margin: 0 auto 8px; padding: 0 20px; }
.post-hero-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 8px 40px rgba(0,0,0,0.08); background: var(--surface); }
.post-hero-caption { font-size: 0.75rem; color: var(--text-dim); text-align: center; margin-top: 10px; }

.post-body { padding: 40px 0 20px; }
.post-body p { font-size: 1.08rem; line-height: 1.8; color: #3a3a3c; margin-bottom: 1.3em; }
.post-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; color: var(--text); margin: 2.2em 0 0.7em; }
.post-body h3 { font-size: 1.2rem; font-weight: 800; margin: 1.8em 0 0.6em; }
.post-body ul, .post-body ol { margin: 0 0 1.3em 1.2em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { font-size: 1.05rem; line-height: 1.75; color: #3a3a3c; margin-bottom: 0.4em; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body strong { color: var(--text); font-weight: 700; }

/* "At a glance" highlight card */
.glance-card {
  background: #eff6ff; border: 2px solid var(--accent); border-radius: 20px;
  padding: 28px 30px 20px; margin: 8px 0 2.2em; box-shadow: 0 8px 40px rgba(0,113,227,0.1);
}
.post-body .glance-card h2 {
  margin: 0 0 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px;
}
.post-body .glance-card h2::before { content: ''; width: 20px; height: 1px; background: var(--accent); }
.post-body .glance-card ul { list-style: none; margin: 0; }
.post-body .glance-card li {
  display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; line-height: 1.6;
  padding: 9px 0; margin: 0; border-top: 1px solid rgba(0,113,227,0.12);
}
.post-body .glance-card li:first-child { border-top: none; }
.post-body .glance-card li i { color: var(--accent); margin-top: 5px; font-size: 0.8rem; flex-shrink: 0; }

/* Photo figures inside a post (for event photos) */
.post-figure { margin: 2em 0; }
.post-figure img { width: 100%; height: auto; border-radius: 14px; display: block; background: var(--surface); }
.post-figure figcaption { font-size: 0.8rem; color: var(--text-dim); text-align: center; margin-top: 8px; }

/* Row of portrait photos inside a post (e.g. behind-the-scenes phone shots) */
.post-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 600px; margin: 2em auto; }
.post-gallery figure { margin: 0; }
.post-gallery img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; display: block; background: var(--surface); }
.post-gallery figcaption { font-size: 0.78rem; line-height: 1.45; color: var(--text-dim); text-align: center; margin-top: 8px; }

/* Small portrait photo floated beside the text (e.g. phone shots); clears before the next heading */
.post-figure-side { float: right; width: 200px; margin: 0.35em 0 1.2em 28px; }
.post-figure-side img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; display: block; background: var(--surface); }
.post-figure-side figcaption { font-size: 0.78rem; line-height: 1.45; color: var(--text-dim); text-align: center; margin-top: 8px; }
.post-body h2, .post-body .post-figure, .post-body .glance-card { clear: both; }
.post-body::after { content: ''; display: block; clear: both; }

/* Two small landscape photos side by side (each shown at about its native width) */
.post-figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2em 0; clear: both; }
.post-figure-pair figure { margin: 0; }
.post-figure-pair img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; background: var(--surface); }
.post-figure-pair figcaption { font-size: 0.78rem; line-height: 1.45; color: var(--text-dim); text-align: center; margin-top: 8px; }

/* Small photos shown at their natural pixel size (never stretched). Use when the source is smaller than the column. */
.post-hero-img--natural { text-align: center; }
.post-hero-img--natural img { width: auto; max-width: 100%; aspect-ratio: auto; margin: 0 auto; border-radius: 12px; }
.post-figure--natural { text-align: center; }
.post-figure--natural img { width: auto; max-width: 100%; margin: 0 auto; border-radius: 12px; }
.post-figure-side--natural img { aspect-ratio: auto; }

/* Enquiry call to action */
.post-cta {
  margin: 48px auto 100px; max-width: 700px; padding: 40px 36px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
}
.post-cta-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.post-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; }
.post-cta p { font-size: 0.98rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto 24px; line-height: 1.7; }
.post-cta p.post-cta-contact { font-size: 0.95rem; color: var(--text); margin-bottom: 18px; }
.post-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.post-back { text-align: center; margin: -70px 0 80px; }
.post-back a { font-size: 0.88rem; font-weight: 700; color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  nav { padding: 0 16px; height: 60px; }
  .nav-logo img { height: 56px !important; }
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .blog-hero { padding: 100px 0 24px; }
  .post-grid { grid-template-columns: 1fr; gap: 16px; padding-bottom: 60px; }
  .post-header { padding-top: 96px; }
  .post-hero-img { padding: 0 16px; }
  .post-hero-img img { border-radius: 12px; }
  .post-col { padding: 0 18px; }
  .post-body p { font-size: 1.02rem; line-height: 1.75; }
  .glance-card { padding: 22px 20px 14px; border-radius: 16px; }
  .post-cta { margin: 36px 16px 90px; padding: 32px 22px; }
  .post-cta-btns { flex-direction: column; align-items: center; }
  .post-gallery { gap: 8px; }
  .post-figure-pair { grid-template-columns: 1fr; gap: 18px; }
  .post-figure-side--natural { max-width: 100%; }
  .post-figure-side { float: none; width: 62%; max-width: 240px; margin: 1.6em auto; }
  .post-gallery figcaption { font-size: 0.7rem; }
  .btn-primary, .btn-outline { width: 100%; max-width: 320px; justify-content: center; padding: 14px 24px; }
}

/* ── PRINT (PDF mock-ups / printing a post) ── */
@media print {
  @page { margin: 12mm 0; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  body::before { display: none; }
  .nav-burger, .mobile-nav { display: none !important; }
  .post-hero-img, .post-figure, .post-figure-side, .post-figure-pair, .post-figure-pair figure, .post-gallery, .post-gallery figure, .glance-card, .post-cta, .post-body li { break-inside: avoid; page-break-inside: avoid; }
  .post-body h2, .post-cta-eyebrow { break-after: avoid; page-break-after: avoid; }
  .post-body p { orphans: 3; widows: 3; }
  .post-hero-img img { box-shadow: none; }
  /* tighter end-of-post spacing so the footer doesn't spill onto its own page (8 Oct 2026) */
  .post-cta { margin-top: 32px; margin-bottom: 48px; }
  .post-back { margin: -26px 0 14px; }
  footer { padding: 14px 0; break-before: avoid; page-break-before: avoid; }
}

/* Photos shown exactly as supplied (temple post v6, 8 Oct 2026): full frame, natural aspect ratio,
   no object-fit cropping and no rounded-corner mask. Opt in per figure with .photo-original. */
.photo-original img { aspect-ratio: auto; object-fit: contain; object-position: 50% 50%; height: auto; border-radius: 0; }
.post-hero-img.photo-original img { border-radius: 0; }  /* width comes from .post-hero-img (100%) or --natural (natural size) */
.post-figure-pair.photo-original figure { text-align: center; }
.post-figure-pair.photo-original img { width: auto; max-width: 100%; margin: 0 auto; }

/* Company tagline inside the contact block (David, 8 Oct 2026: on ALL blog posts and designs, next to the contact details).
   Wording and casing are fixed: "Empowering events, engaging audiences with technical excellence" */
.post-cta p.post-cta-tagline { margin: 20px auto 0; font-size: 0.92rem; font-weight: 600; color: var(--accent); letter-spacing: 0.01em; line-height: 1.5; }
@media (max-width: 768px) {
  .post-figure-side.post-figure-side--natural { max-width: 100%; }
}
