/* ============================================================
   ollijunes-theme — Consolidated Stylesheet
   ============================================================ */

/* 1. BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --deep: #223B3E;
  --lavender: #B59EFF;
  --greige: #E7E7DA;
  --metric: #F8F9F7;
  --white: #fff;
}
body { font-family: 'Stack Sans Text', sans-serif; color: var(--deep); background: var(--metric); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Stack Sans Notch', sans-serif; font-weight: 700; color: var(--deep); }

/* 2. NAVBAR
   ============================================================ */
.site-nav-wrap { background: var(--deep); }
.site-nav { background: var(--deep); padding: 0 40px; display: flex; align-items: center; justify-content: space-between; height: 56px; max-width: 1100px; margin: 0 auto; }
.site-nav .nav-brand { color: var(--white); font-family: 'Stack Sans Notch', sans-serif; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.site-nav .nav-links { display: flex; align-items: center; gap: 24px; }
.site-nav .nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color 0.2s; }
.site-nav .nav-links a:hover, .site-nav .nav-links a.active { color: var(--white); }
.lang-switch { display: flex; align-items: center; gap: 6px; margin-left: 16px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,0.2); }
.lang-switch a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; font-weight: 700; transition: color 0.2s; }
.lang-switch a.active { color: var(--white); }
.lang-switch a:hover { color: var(--lavender); }

/* Hamburger */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-right: -8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--white, #fff); margin: 5px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 3. BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: 12px; font-family: 'Stack Sans Text', sans-serif; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.2s; cursor: pointer; border: 2px solid transparent; }
.btn i { font-size: 1.05em; }
.btn-primary { background: var(--lavender); color: var(--white); }
.btn-primary:hover { background: #a08ae6; }
.btn-outline-light { border-color: rgba(255,255,255,0.3); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-dark { background: var(--deep); color: var(--white); }
.btn-dark:hover { background: #1a2e30; }
.btn-outline-dark { border-color: var(--deep); color: var(--deep); background: transparent; }
.btn-outline-dark:hover { background: var(--deep); color: var(--white); }
.btn-lavender { background: var(--lavender); color: var(--white); }
.btn-lavender:hover { background: #a08ae6; }

/* 4. PAGE HEADER (shared: story, contact, media, home)
   ============================================================ */
.page-header { background: var(--deep); padding: 60px 40px; text-align: center; }
.page-header h1 { color: var(--white); font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 16px; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.page-header .subtitle { color: var(--lavender); font-size: 1.1rem; font-weight: 600; }

/* home.php extends page-header */
.blog .page-header { padding: 60px 40px 80px; }

/* 5. CTA SECTION (shared: story, media)
   ============================================================ */
.cta-section { text-align: center; padding: 60px 40px; background: var(--deep); }
.cta-section h2 { color: var(--white); font-size: 2rem; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.7); margin-bottom: 28px; font-size: 1.05rem; }

/* 6. FOOTER
   ============================================================ */
.site-footer { background: var(--deep); color: rgba(255,255,255,0.7); padding: 64px 40px 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; }
.footer-col h4 { font-family: 'Stack Sans Notch', sans-serif; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lavender); margin-bottom: 16px; }
.footer-col .brand { font-family: 'Stack Sans Notch', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--white); margin-bottom: 10px; }
.footer-col .tagline { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.5); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li a i { width: 16px; text-align: center; color: var(--lavender); font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 48px; padding: 20px 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); max-width: 1100px; margin-left: auto; margin-right: auto; }

/* Footer margin for pages that need spacing before footer */
.home .site-footer,
.blog .site-footer,
.page-template-page-contact .site-footer { margin-top: 40px; }

/* ============================================================
   7. FRONT PAGE
   ============================================================ */
.hero { background: var(--deep); min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 60px 40px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 0 40px; align-items: center; width: 100%; }
.hero-image { grid-column: 2; grid-row: 1 / -1; display: flex; justify-content: flex-end; }
.hero h1 { font-size: clamp(3rem, 6vw, 5rem); color: var(--white); line-height: 1.05; margin-bottom: 12px; }
.hero .subtitle { color: var(--lavender); font-size: 1.2rem; font-weight: 600; margin-bottom: 20px; }
.hero .tagline { color: rgba(255,255,255,0.8); font-size: 1.05rem; line-height: 1.6; max-width: 500px; margin-bottom: 32px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-image img { width: 100%; max-width: 500px; height: auto; object-fit: contain; border-radius: 0; }

/* Stats */
.stats { max-width: 1280px; margin: -40px auto 0; padding: 0 40px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { background: var(--white); border-radius: 16px; padding: 28px; border-top: 3px solid var(--lavender); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.stat-card .label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lavender); margin-bottom: 8px; }
.stat-card .value { font-family: 'Stack Sans Notch', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--deep); }

/* Section container */
.section { max-width: 1280px; margin: 0 auto; padding: 80px 40px; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 48px; }

/* Expertise */
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.expertise-card { background: var(--white); border-radius: 16px; padding: 36px; border-top: 3px solid var(--lavender); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.expertise-card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.expertise-card p { color: #4A5E60; line-height: 1.6; font-size: 0.95rem; }

/* About */
.about-card { background: var(--white); border-radius: 16px; padding: 48px; border-top: 3px solid var(--lavender); box-shadow: 0 2px 12px rgba(0,0,0,0.06); max-width: 900px; margin: 0 auto; }
.about-card p { color: #4A5E60; line-height: 1.7; font-size: 1.05rem; margin-bottom: 24px; }
.about-card p:last-child { margin-bottom: 0; }

/* Social Feed */
.social-feed { max-width: 1280px; margin: 0 auto; padding: 60px 40px 0; }
.social-feed .section-title { text-align: center; font-size: 2.5rem; margin-bottom: 48px; }
.feed-list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.feed-item { background: var(--white); border-radius: 16px; padding: 28px 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); display: flex; gap: 20px; align-items: flex-start; transition: box-shadow 0.2s; text-decoration: none; color: inherit; border-left: 3px solid var(--lavender); }
.feed-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.10); }
.feed-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.feed-icon.linkedin { background: #0A66C2; color: var(--white); }
.feed-icon.x { background: var(--deep); color: var(--white); }
.feed-body { flex: 1; min-width: 0; }
.feed-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.feed-platform { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lavender); }
.feed-handle { font-size: 0.8rem; font-weight: 600; color: rgba(34,59,62,0.55); }
.feed-date { font-size: 0.8rem; color: rgba(34,59,62,0.45); }
.feed-title { font-family: 'Stack Sans Notch', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--deep); margin-bottom: 6px; line-height: 1.4; }
.feed-excerpt { font-size: 0.9rem; color: #4A5E60; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.feed-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.85rem; font-weight: 600; color: var(--lavender); }
.feed-cta i { font-size: 0.75rem; transition: transform 0.2s; }
.feed-item:hover .feed-cta i { transform: translateX(3px); }
.feed-empty { text-align: center; color: rgba(34,59,62,0.5); font-size: 0.95rem; padding: 40px 0; }

/* Links */
.links-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; max-width: 900px; margin: 0 auto; }
.links-grid .btn { min-width: 180px; padding: 14px 32px; }

/* ============================================================
   8. STORY PAGE
   ============================================================ */
.timeline-section { max-width: 1100px; margin: 0 auto; padding: 60px 40px; }
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: var(--greige); }
.timeline-item { position: relative; margin-bottom: 48px; display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-content { position: relative; }
.timeline-dot { position: absolute; left: -40px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--lavender); border: 3px solid var(--metric); z-index: 1; }
.timeline-year { font-family: 'Stack Sans Notch', sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--lavender); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.timeline-item h3 { font-size: 1.4rem; margin-bottom: 12px; }
.timeline-item p { color: #4A5E60; line-height: 1.7; font-size: 1rem; }
.timeline-highlight { background: var(--white); border-radius: 16px; padding: 24px; margin-top: 12px; border-left: 3px solid var(--lavender); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.timeline-highlight .stat { font-family: 'Stack Sans Notch', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--deep); }
.timeline-highlight .stat-label { font-size: 0.85rem; color: #4A5E60; }

/* Timeline Image */
.timeline-image { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; }
.timeline-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.timeline-image-placeholder { width: 100%; height: 100%; min-height: 180px; background: var(--white); border: 2px dashed var(--greige); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--greige); transition: border-color 0.2s; }
.timeline-image-placeholder i { font-size: 1.5rem; }
.timeline-image-placeholder span { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* Values */
.values-section { max-width: 800px; margin: 0 auto; padding: 0 40px 60px; }
.values-title { text-align: center; font-size: 2rem; margin-bottom: 32px; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.value-card { background: var(--white); border-radius: 16px; padding: 28px; border-top: 3px solid var(--lavender); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.value-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.value-card p { color: #4A5E60; line-height: 1.6; font-size: 0.95rem; }

/* ============================================================
   9. CONTACT PAGE
   ============================================================ */
.contact-section { max-width: 900px; margin: 0 auto; padding: 60px 40px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-card { background: var(--white); border-radius: 16px; padding: 36px; border-top: 3px solid var(--lavender); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 20px; }
.contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item i { color: var(--lavender); font-size: 1.2rem; width: 24px; text-align: center; flex-shrink: 0; }
.contact-item a { color: var(--deep); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.contact-item a:hover { color: var(--lavender); }
.contact-item span { color: #4A5E60; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Contact Form */
.form-section { max-width: 900px; margin: 0 auto; padding: 0 40px 60px; }
.form-card { background: var(--white); border-radius: 16px; padding: 36px; border-top: 3px solid var(--lavender); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.form-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.form-card .form-desc { color: #4A5E60; line-height: 1.6; margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--deep); }
.form-group label .required { color: var(--lavender); }
.form-group input,
.form-group textarea {
  font-family: 'Stack Sans Text', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1.5px solid var(--greige);
  border-radius: 10px;
  background: var(--metric);
  color: var(--deep);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--lavender);
  box-shadow: 0 0 0 3px rgba(181, 158, 255, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9AA5A7; }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit { margin-top: 24px; display: flex; align-items: center; gap: 16px; }
.form-submit .btn { padding: 14px 36px; font-size: 1rem; }
.hp-field { position: absolute; left: -9999px; }

/* Flash messages */
.flash-message { padding: 14px 20px; border-radius: 10px; margin-bottom: 24px; font-weight: 500; font-size: 0.95rem; }
.flash-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.flash-error { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }

/* ============================================================
   10. MEDIA PAGE
   ============================================================ */
.media-stats { max-width: 1100px; margin: -28px auto 0; padding: 0 40px; position: relative; z-index: 2; }
.media-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.media-stat { background: var(--white); border-radius: 16px; padding: 24px; border-top: 3px solid var(--lavender); box-shadow: 0 2px 12px rgba(0,0,0,0.06); text-align: center; }
.media-stat .stat-value { font-family: 'Stack Sans Notch', sans-serif; font-size: 2rem; font-weight: 700; color: var(--deep); }
.media-stat .stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lavender); margin-top: 4px; }

/* Media sections */
.media-section { max-width: 1100px; margin: 0 auto; padding: 60px 40px; }
.media-section:first-of-type { padding-top: 48px; }
.section-heading { font-size: 1.8rem; margin-bottom: 8px; }
.section-sub { color: #4A5E60; font-size: 1rem; margin-bottom: 32px; line-height: 1.6; }

/* Media cards */
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.media-card { background: var(--white); border-radius: 16px; padding: 32px; border-top: 3px solid var(--lavender); box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.media-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.media-card-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.media-card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--metric); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.media-card-icon i { font-size: 1.2rem; color: var(--lavender); }
.media-card-meta { flex: 1; }
.media-card-show { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lavender); margin-bottom: 4px; }
.media-card-date { font-size: 0.8rem; color: #4A5E60; }
.media-card h3 { font-size: 1.15rem; margin-bottom: 12px; line-height: 1.4; }
.media-card p { color: #4A5E60; line-height: 1.6; font-size: 0.95rem; flex: 1; }
.media-card-footer { margin-top: 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.media-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; background: var(--metric); color: var(--deep); }
.media-badge i { font-size: 0.7rem; color: var(--lavender); }
.media-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--lavender); text-decoration: none; transition: color 0.2s; margin-left: auto; }
.media-link:hover { color: #a08ae6; }

/* ============================================================
   11. BLOG PAGE (home.php)
   ============================================================ */
.blog-content { max-width: 900px; margin: -40px auto 0; padding: 0 40px; position: relative; z-index: 2; }

/* Post Card */
.post-card { background: var(--white); border-radius: 16px; padding: 36px; border-top: 3px solid var(--lavender); box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 24px; transition: box-shadow 0.2s, transform 0.2s; }
.post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.post-card .post-meta { display: flex; align-items: center; gap: 16px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lavender); margin-bottom: 12px; }
.post-card .post-meta .category { background: rgba(181,158,255,0.12); padding: 4px 10px; border-radius: 6px; }
.post-card h2 { font-size: 1.5rem; margin-bottom: 12px; line-height: 1.3; }
.post-card h2 a { color: var(--deep); text-decoration: none; transition: color 0.2s; }
.post-card h2 a:hover { color: var(--lavender); }
.post-card .excerpt { color: #4A5E60; line-height: 1.7; font-size: 0.95rem; margin-bottom: 20px; }
.post-card .read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--lavender); font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: gap 0.2s; }
.post-card .read-more:hover { gap: 10px; }
.post-card .post-thumbnail { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }

/* No Posts */
.no-posts { background: var(--white); border-radius: 16px; padding: 60px 36px; border-top: 3px solid var(--lavender); box-shadow: 0 2px 12px rgba(0,0,0,0.06); text-align: center; }
.no-posts i { font-size: 3rem; color: var(--lavender); margin-bottom: 20px; }
.no-posts h2 { font-size: 1.5rem; margin-bottom: 12px; }
.no-posts p { color: #4A5E60; font-size: 1rem; line-height: 1.6; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 48px 40px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.2s; }
.pagination a { background: var(--white); color: var(--deep); border: 2px solid var(--greige); }
.pagination a:hover { border-color: var(--lavender); color: var(--lavender); }
.pagination span.current { background: var(--lavender); color: var(--white); border: 2px solid var(--lavender); }
.pagination .dots { background: none; border: none; color: #4A5E60; }

/* ============================================================
   12. SINGLE POST
   ============================================================ */
/* Article Header / Hero */
.article-header { background: var(--deep); padding: 60px 40px 80px; text-align: center; position: relative; overflow: hidden; }
.article-header.has-hero-image { min-height: calc(100vh - 56px); display: flex; flex-direction: column; justify-content: flex-end; padding: 0 40px 80px; }
.article-header .hero-bg { position: absolute; inset: 0; z-index: 0; }
.article-header .hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-header .hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(34,59,62,0.92) 0%, rgba(34,59,62,0.55) 40%, rgba(34,59,62,0.2) 100%); }
.article-header .hero-content { position: relative; z-index: 1; }
.article-header .post-meta { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lavender); margin-bottom: 20px; }
.article-header .post-meta .category { background: rgba(181,158,255,0.2); padding: 4px 12px; border-radius: 6px; }
.article-header h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--white); line-height: 1.2; max-width: 800px; margin: 0 auto 16px; }
.article-header .excerpt { color: rgba(255,255,255,0.7); font-size: 1.1rem; line-height: 1.6; max-width: 600px; margin: 0 auto; }

/* Article Content */
.article-wrap { max-width: 760px; margin: -40px auto 0; padding: 0 40px; position: relative; z-index: 2; }
.article-card { background: var(--white); border-radius: 16px; padding: 48px; border-top: 3px solid var(--lavender); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

/* Article Body Typography */
.article-body { line-height: 1.8; font-size: 1.05rem; color: #2a4244; }
.article-body p { margin-bottom: 1.5em; }
.article-body h2 { font-size: 1.6rem; margin: 2em 0 0.8em; padding-top: 0.5em; border-top: 1px solid var(--greige); }
.article-body h3 { font-size: 1.3rem; margin: 1.5em 0 0.6em; }
.article-body h4 { font-size: 1.1rem; margin: 1.2em 0 0.5em; }
.article-body a { color: var(--lavender); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.article-body a:hover { color: var(--deep); }
.article-body ul, .article-body ol { margin: 0 0 1.5em 1.5em; }
.article-body li { margin-bottom: 0.5em; }
.article-body blockquote { border-left: 3px solid var(--lavender); margin: 1.5em 0; padding: 1em 1.5em; background: rgba(181,158,255,0.06); border-radius: 0 12px 12px 0; font-style: italic; color: #4A5E60; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body code { background: rgba(34,59,62,0.06); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.article-body pre { background: var(--deep); color: var(--metric); padding: 24px; border-radius: 12px; overflow-x: auto; margin: 1.5em 0; font-size: 0.9em; line-height: 1.6; }
.article-body pre code { background: none; padding: 0; color: inherit; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.5em 0; }
.article-body hr { border: none; border-top: 1px solid var(--greige); margin: 2em 0; }

/* Author Box */
.author-box { display: flex; align-items: flex-start; gap: 24px; margin-top: 40px; padding: 32px; border-top: 1px solid var(--greige); background: rgba(181,158,255,0.04); border-radius: 0 0 12px 12px; }
.author-box .author-avatar { flex-shrink: 0; }
.author-box .author-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--lavender); }
.author-box .author-info .name { font-family: 'Stack Sans Notch', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.author-box .author-info .name a { color: var(--deep); text-decoration: none; }
.author-box .author-info .name a:hover { color: var(--lavender); }
.author-box .author-info .bio { color: #4A5E60; font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }
.author-box .author-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--lavender); text-decoration: none; transition: gap 0.2s; }
.author-box .author-cta:hover { gap: 10px; }

/* Post Navigation */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 32px auto 0; padding: 0 40px; }
.post-nav a { display: block; background: var(--white); border-radius: 12px; padding: 24px; text-decoration: none; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: box-shadow 0.2s, transform 0.2s; }
.post-nav a:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.post-nav .label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lavender); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.post-nav .title { color: var(--deep); font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.post-nav .next { text-align: right; }
.post-nav .next .label { justify-content: flex-end; }

/* Back to Blog */
.back-to-blog { text-align: center; padding: 40px; }
.back-to-blog a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 12px; font-weight: 600; font-size: 0.95rem; text-decoration: none; background: var(--deep); color: var(--white); transition: background 0.2s; }
.back-to-blog a:hover { background: #1a2e30; }

/* ============================================================
   13. RESPONSIVE — TABLET (900px)
   ============================================================ */
@media (max-width: 900px) {
  .site-nav { padding: 0 24px; }
  .site-nav .nav-links { gap: 16px; }
  .site-nav .nav-links a { font-size: 0.85rem; }

  /* Front page */
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; grid-template-rows: auto; text-align: center; padding: 40px 24px 0; gap: 24px; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .hero-image { grid-column: auto; grid-row: auto; justify-content: center; margin-top: 8px; margin-left: -24px; margin-right: -24px; }
  .hero-buttons { justify-content: center; margin-top: 8px; padding: 16px 8px 32px; }
  .hero-image img { max-width: none; width: 100%; }
  .stats { margin-top: -20px; padding: 0 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .social-feed { padding: 48px 24px 0; }
  .social-feed .section-title { font-size: 2rem; margin-bottom: 32px; }
  .feed-item { padding: 22px 24px; }
  .section { padding: 60px 24px; }
  .section-title { font-size: 2rem; margin-bottom: 32px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .about-card { padding: 32px; }
  .links-grid .btn { min-width: 150px; }

  /* Blog */
  .page-header { padding: 48px 24px 64px; }
  .blog-content { padding: 0 24px; margin-top: -32px; }
  .post-card { padding: 28px; }
  .post-card h2 { font-size: 1.3rem; }
  .post-card .post-thumbnail { height: 180px; }

  /* Single */
  .article-header { padding: 48px 24px 64px; }
  .article-header.has-hero-image { min-height: 60vh; padding: 0 24px 64px; }
  .article-wrap { padding: 0 24px; margin-top: -32px; }
  .article-card { padding: 36px; }
  .post-nav { padding: 0 24px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { padding: 48px 24px 0; }
}

/* ============================================================
   14. RESPONSIVE — STORY/CONTACT/MEDIA (700px)
   ============================================================ */
@media (max-width: 700px) {
  /* Story */
  .timeline-section { padding: 40px 16px; }
  .timeline { padding-left: 32px; }
  .timeline-dot { left: -32px; width: 20px; height: 20px; }
  .timeline-item { grid-template-columns: 1fr; gap: 16px; }
  .timeline-item h3 { font-size: 1.2rem; }
  .timeline-image { aspect-ratio: 16/9; }
  .timeline-image-placeholder { min-height: 140px; }
  .values-section { padding: 0 16px 40px; }
  .values-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 40px 16px; }

  /* Contact */
  .contact-section { padding: 40px 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-section { padding: 0 16px 40px; }
  .form-card { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }

  /* Media */
  .media-stats { padding: 0 16px; }
  .media-stats-grid { gap: 12px; }
  .media-stat { padding: 16px 12px; }
  .media-stat .stat-value { font-size: 1.4rem; }
  .media-section { padding: 40px 16px; }
  .media-grid { grid-template-columns: 1fr; }
  .media-card { padding: 24px; }
}

/* ============================================================
   15. RESPONSIVE — MOBILE (600px)
   ============================================================ */
@media (max-width: 600px) {
  .site-nav { padding: 0 16px; height: 48px; }
  .site-nav .nav-links { gap: 12px; }
  .site-nav .nav-links a { font-size: 0.8rem; }
  .lang-switch { margin-left: 8px; padding-left: 8px; }

  /* Hamburger mobile */
  .nav-hamburger { display: block; }
  .site-nav .nav-links {
    display: none !important; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--deep, #223B3E);
    border-top: 1px solid rgba(255,255,255,0.1); z-index: 1000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .site-nav .nav-links.open { display: flex !important; }
  .site-nav .nav-links a { padding: 14px 24px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .site-nav .nav-links a:hover, .site-nav .nav-links a.active { background: rgba(255,255,255,0.05); color: #fff; }
  .site-nav .nav-links .lang-switch { padding: 12px 24px; margin-left: 0; border-left: none; gap: 12px; justify-content: flex-start; }
  .site-nav .nav-links .lang-switch a { padding: 0; border-bottom: none; font-size: 0.9rem; }
  .site-nav { position: relative; }

  /* Front page */
  .hero-inner { padding: 32px 16px 0; gap: 16px; }
  .hero h1 { font-size: 2.5rem; }
  .hero .subtitle { font-size: 1rem; margin-bottom: 12px; }
  .hero .tagline { font-size: 0.95rem; margin-bottom: 24px; }
  .hero-buttons { gap: 8px; margin-top: 8px; padding: 16px 16px 32px; }
  .hero-buttons .btn { padding: 10px 16px; font-size: 0.85rem; width: auto; flex: 1 1 calc(50% - 4px); max-width: calc(50% - 4px); }
  .hero-image { margin-left: -16px; margin-right: -16px; }
  .hero-image img { max-width: none; width: 100%; }
  .stats { margin-top: -16px; padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 18px; }
  .stat-card .value { font-size: 1.4rem; }
  .stat-card .label { font-size: 0.65rem; }
  .social-feed { padding: 40px 16px 0; }
  .social-feed .section-title { font-size: 1.75rem; margin-bottom: 24px; }
  .feed-item { padding: 20px; gap: 14px; }
  .feed-icon { width: 38px; height: 38px; font-size: 1rem; border-radius: 10px; }
  .feed-title { font-size: 0.95rem; }
  .feed-excerpt { font-size: 0.85rem; }
  .section { padding: 48px 16px; }
  .section-title { font-size: 1.75rem; margin-bottom: 24px; }
  .expertise-card { padding: 24px; }
  .expertise-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
  .expertise-card p { font-size: 0.9rem; }
  .about-card { padding: 24px; }
  .about-card p { font-size: 0.95rem; margin-bottom: 16px; }
  .links-grid { gap: 10px; }
  .links-grid .btn { min-width: 0; flex: 1 1 calc(50% - 10px); max-width: calc(50% - 10px); padding: 12px 16px; font-size: 0.85rem; }

  /* Story/Contact/Media at 600px */
  .page-header { padding: 40px 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding: 40px 16px 0; }
  .footer-bottom { margin-top: 32px; }
}

/* ============================================================
   16. RESPONSIVE — SMALL MOBILE (500px)
   ============================================================ */
@media (max-width: 500px) {
  /* Blog */
  .page-header { padding: 36px 16px 52px; }
  .page-header .subtitle { font-size: 0.95rem; }
  .blog-content { padding: 0 16px; margin-top: -24px; }
  .post-card { padding: 24px; margin-bottom: 16px; }
  .post-card h2 { font-size: 1.2rem; }
  .post-card .excerpt { font-size: 0.9rem; margin-bottom: 16px; }
  .post-card .post-meta { gap: 10px; font-size: 0.75rem; }
  .post-card .post-thumbnail { height: 160px; border-radius: 10px; margin-bottom: 16px; }
  .pagination { padding: 32px 16px; }
  .pagination a, .pagination span { min-width: 38px; height: 38px; font-size: 0.85rem; }

  /* Single */
  .article-header { padding: 36px 16px 52px; }
  .article-header.has-hero-image { min-height: 50vh; padding: 0 16px 52px; }
  .article-header h1 { font-size: 1.75rem; }
  .article-header .excerpt { font-size: 0.95rem; }
  .article-header .post-meta { gap: 10px; font-size: 0.75rem; }
  .article-wrap { padding: 0 16px; margin-top: -24px; }
  .article-card { padding: 24px; }
  .article-body { font-size: 1rem; }
  .article-body h2 { font-size: 1.35rem; }
  .article-body h3 { font-size: 1.15rem; }
  .article-body blockquote { padding: 0.8em 1em; }
  .article-body pre { padding: 16px; font-size: 0.85em; }
  .author-box { flex-direction: column; text-align: center; gap: 16px; padding: 24px; }
  .author-box .author-cta { justify-content: center; }
  .post-nav { grid-template-columns: 1fr; padding: 0 16px; }
  .post-nav .next { text-align: left; }
  .post-nav .next .label { justify-content: flex-start; }
}

/* ============================================================
   17. RESPONSIVE — VERY SMALL (360px)
   ============================================================ */
@media (max-width: 360px) {
  /* Front page */
  .hero h1 { font-size: 2rem; }
  .hero-inner { padding: 24px 12px 0; }
  .stats { padding: 0 12px; }
  .section { padding: 40px 12px; }
  .links-grid .btn { flex: 1 1 100%; }

  /* Blog */
  .page-header { padding: 28px 12px 44px; }
  .blog-content { padding: 0 12px; }
  .post-card { padding: 20px; }

  /* Single */
  .article-header { padding: 28px 12px 44px; }
  .article-header.has-hero-image { min-height: 45vh; }
  .article-wrap { padding: 0 12px; }
  .article-card { padding: 20px; }
  .post-nav { padding: 0 12px; }
}

/* Media page specific fix for lang-switch at 700px */
@media (max-width: 700px) and (min-width: 601px) {
  .page-template-page-media .lang-switch { margin-left: 0; padding-left: 0; border-left: none; }
}
