/*
Theme Name: Market Line
Theme URI: https://marketline.consulting
Author: WP Butler
Author URI: https://wpbutler.com.au
Description: Custom theme for Market Line – Shareholder Value Advisory
Version: 1.0.0
License: Proprietary
Text Domain: marketline
*/

:root {
  --midnight: #0B1F33;
  --midnight-90: rgba(11,31,51,0.9);
  --midnight-70: rgba(11,31,51,0.7);
  --midnight-50: rgba(11,31,51,0.5);
  --midnight-20: rgba(11,31,51,0.2);
  --midnight-10: rgba(11,31,51,0.1);
  --midnight-05: rgba(11,31,51,0.05);
  --gold: #C9A96E;
  --gold-dark: #A8893E;
  --gold-light: rgba(201,169,110,0.15);
  --gold-glow: rgba(201,169,110,0.08);
  --blue: #1A5091;
  --blue-light: #3A8CE0;
  --green: #2E7D32;
  --grey: #CFD8DC;
  --grey-light: #E8EDEF;
  --bg: #F7F6F3;
  --bg-warm: #EDEAE4;
  --bg-white: #FFFFFF;
  --text: #0B1F33;
  --text-60: rgba(11,31,51,0.6);
  --text-40: rgba(11,31,51,0.4);
  --border: rgba(11,31,51,0.08);
  --font: 'Assistant', sans-serif;
  --font-h: 'Playfair Display', Georgia, serif;
  --font-m: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --radius: 10px;
  --max-w: 1200px;
}
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 100; background: var(--midnight); padding: 0 2rem; transition: box-shadow 0.3s; }
.nav.scrolled { box-shadow: 0 2px 30px rgba(0,0,0,0.15); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-text { font-family: var(--font-h); color: #fff; font-size: 1.15rem; font-weight: 600; letter-spacing: 0.02em; }
.nav-logo-sub { font-family: var(--font-m); color: var(--gold); font-size: 0.55rem; letter-spacing: 0.15em; text-transform: uppercase; margin-top: -2px; }
.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.88rem; font-weight: 500; letter-spacing: 0.01em; transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a::after { content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px; background:var(--gold); transition: width 0.3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-hamburger { display:none; background:none; border:none; cursor:pointer; padding:8px; }
.nav-hamburger span { display:block; width:22px; height:2px; background:#fff; margin:5px 0; transition: all 0.3s; }
.mobile-menu { display:none; position:fixed; top:64px; left:0; right:0; background:var(--midnight); padding:1.5rem 2rem; z-index:99; }
.mobile-menu.open { display:block; }
.mobile-menu a { display:block; color:rgba(255,255,255,0.8); text-decoration:none; font-size:1rem; padding:0.75rem 0; border-bottom:1px solid rgba(255,255,255,0.08); font-weight:500; }

/* HERO */
.hero { background: var(--bg-white); padding: 5rem 2rem 3rem; position: relative; overflow: hidden; }
.hero::after { content:''; position:absolute; inset:0; background-image:radial-gradient(circle, rgba(11,31,51,0.03) 1px, transparent 1px); background-size:28px 28px; pointer-events:none; mask-image:linear-gradient(to bottom, transparent 0%, black 30%, black 60%, transparent 100%); -webkit-mask-image:linear-gradient(to bottom, transparent 0%, black 30%, black 60%, transparent 100%); }
.hero-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero-text { max-width: 540px; }
.hero-eyebrow { font-family: var(--font-m); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.hero-h1 { font-family: var(--font-h); font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 700; line-height: 1.2; color: var(--midnight); margin-bottom: 1.2rem; }
.hero-sub { font-size: 1.1rem; color: var(--text-60); line-height: 1.7; margin-bottom: 2rem; max-width: 460px; }
.hero-ctas { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.btn-primary { display:inline-flex; align-items:center; gap:8px; background:var(--gold); color:var(--midnight); font-family:var(--font); font-size:0.88rem; font-weight:600; padding:0.8rem 1.8rem; border-radius:100px; text-decoration:none; transition: all 0.3s var(--ease); border:none; cursor:pointer; }
.btn-primary:hover { background:var(--gold-dark); box-shadow:0 4px 20px rgba(201,169,110,0.3); transform:translateY(-1px); }
.btn-secondary { color:var(--midnight); font-size:0.88rem; font-weight:600; text-decoration:none; display:inline-flex; align-items:center; gap:6px; transition: color 0.2s; }
.btn-secondary:hover { color:var(--gold-dark); }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-canvas { width: 100%; aspect-ratio: 1; display: block; }

/* CREDENTIAL BAR */
.cred-bar { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.8rem 2rem; }
.cred-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.cred-item { text-align: center; padding: 0.5rem 0.8rem; border-right: 1px solid var(--border); }
.cred-item:last-child { border-right: none; }
.cred-label { font-family: var(--font-h); font-size: 0.95rem; font-weight: 600; color: var(--midnight); margin-bottom: 2px; }
.cred-sub { font-family: var(--font-m); font-size: 0.6rem; color: var(--text-40); letter-spacing: 0.05em; text-transform: uppercase; }

/* SECTIONS */
.section { padding: 5rem 2rem; }
.section-white { background: var(--bg-white); position: relative; }
.section-white::before { content:''; position:absolute; inset:0; background-image:linear-gradient(rgba(0,0,0,0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.015) 1px, transparent 1px); background-size:60px 60px; pointer-events:none; mask-image:radial-gradient(ellipse at center top, black 0%, transparent 70%); -webkit-mask-image:radial-gradient(ellipse at center top, black 0%, transparent 70%); opacity:0.5; }
.section-warm { background: var(--bg-warm); }
.section-dark { background: var(--midnight); color: #fff; }
.section-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.section-eyebrow { font-family: var(--font-m); font-size: 0.65rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.section-h2 { font-family: var(--font-h); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 1rem; }
.section-h2-light { color: #fff; }
.section-intro { font-size: 1.05rem; color: var(--text-60); max-width: 560px; margin-bottom: 3rem; line-height: 1.7; }

/* EXPERTISE CARDS */
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.exp-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.8rem; border-top: 3px solid var(--gold); transition: all 0.3s var(--ease); position:relative; }
.exp-card:hover { box-shadow: 0 8px 30px rgba(11,31,51,0.06); transform: translateY(-3px); }
.exp-card h3 { font-family: var(--font-h); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.8rem; color: var(--midnight); }
.exp-card p { font-size: 0.92rem; color: var(--text-60); line-height: 1.7; }

/* CLIENTS */
.clients-section { position: relative; overflow: hidden; }
.clients-section::before { content:''; position:absolute; inset:0; background-image:linear-gradient(rgba(0,0,0,0.012) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.012) 1px, transparent 1px); background-size:60px 60px; pointer-events:none; mask-image:radial-gradient(ellipse at center, black 0%, transparent 70%); -webkit-mask-image:radial-gradient(ellipse at center, black 0%, transparent 70%); }
.clients-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.client-col { background: var(--bg-white); padding: 1.8rem 1.6rem; transition: all 0.3s var(--ease); }
.client-col:hover { background: var(--bg); }
.client-col-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.client-col-icon { color: var(--gold); display: flex; align-items: center; }
.client-col-title { font-family: var(--font-m); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.client-col-names { display: flex; flex-direction: column; gap: 0; }
.client-name { font-family: var(--font); font-size: 0.9rem; font-weight: 500; color: var(--text); padding: 0.45rem 0; border-bottom: 1px solid var(--border); letter-spacing: 0.01em; }
.client-name:last-child { border-bottom: none; }
.clients-footnote { font-size: 0.88rem; color: var(--text-60); line-height: 1.7; max-width: 700px; margin: 2rem auto 0; text-align: center; font-style: italic; }

/* APPROACH */
.approach-rows { display: flex; flex-direction: column; gap: 0; }
.approach-row { display: grid; grid-template-columns: 80px 1fr; gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--midnight-10); align-items: start; }
.approach-row:last-child { border-bottom: none; }
.approach-num { font-family: var(--font-h); font-size: 2.5rem; font-weight: 700; color: var(--gold); line-height: 1; }
.approach-content h3 { font-family: var(--font-h); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--midnight); }
.approach-content p { font-size: 0.95rem; color: var(--text-60); line-height: 1.75; max-width: 600px; }

/* STATEMENT */
.statement { padding: 6rem 2rem; text-align: center; position: relative; overflow: hidden; }
.statement::before { content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:500px; height:500px; border-radius:50%; border:1px solid rgba(255,255,255,0.04); pointer-events:none; }
.statement::after { content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:350px; height:350px; border-radius:50%; border:1px dashed rgba(255,255,255,0.03); pointer-events:none; }
.statement-text { font-family: var(--font-h); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 400; color: rgba(255,255,255,0.9); max-width: 750px; margin: 0 auto; line-height: 1.5; font-style: italic; position: relative; z-index: 1; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 4rem; align-items: start; }
.about-text h3 { font-family: var(--font-h); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; margin-top: 1.5rem; color: var(--midnight); }
.about-text h3:first-child { margin-top: 0; }
.about-text p { font-size: 0.95rem; color: var(--text-60); line-height: 1.75; }
.about-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.about-card-title { font-family: var(--font-m); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.about-card-item { padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--text-60); }
.about-card-item:last-child { border-bottom: none; }
.about-card-item strong { color: var(--midnight); font-weight: 600; }

/* INSIGHTS */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.insight-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; transition: all 0.3s var(--ease); cursor: pointer; }
.insight-card:hover { box-shadow: 0 8px 30px rgba(11,31,51,0.06); transform: translateY(-3px); }
.insight-date { font-family: var(--font-m); font-size: 0.65rem; color: var(--text-40); letter-spacing: 0.05em; margin-bottom: 0.8rem; }
.insight-title { font-family: var(--font-h); font-size: 1.05rem; font-weight: 600; color: var(--midnight); margin-bottom: 0.6rem; line-height: 1.4; }
.insight-excerpt { font-size: 0.88rem; color: var(--text-60); line-height: 1.6; margin-bottom: 1rem; }
.insight-link { font-size: 0.82rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.insight-link:hover { color: var(--gold-dark); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-info h3 { font-family: var(--font-h); font-size: 1.1rem; font-weight: 600; margin-top: 1.8rem; margin-bottom: 0.4rem; color: var(--midnight); }
.contact-info h3:first-of-type { margin-top: 0; }
.contact-info p, .contact-info a { font-size: 0.92rem; color: var(--text-60); line-height: 1.7; text-decoration: none; }
.contact-info a:hover { color: var(--gold-dark); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form select,
.contact-form textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea { font-family: var(--font); font-size: 0.9rem; padding: 0.6rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s; outline: none; width: 100%; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-light); }
.contact-form textarea,
.wpcf7-form textarea { resize: vertical; max-height: 120px; }
.contact-form select,
.wpcf7-form select { cursor: pointer; }
.wpcf7-form .wpcf7-not-valid-tip { font-size: 0.78rem; color: #C62828; margin-top: 4px; }
.wpcf7-form .wpcf7-response-output { border: none; padding: 0.8rem 1rem; border-radius: 8px; font-size: 0.88rem; margin-top: 0.5rem; }
.wpcf7-form input[type="submit"] { width: auto; display: inline-block;
}

/* FOOTER */
.footer { background: var(--midnight); color: rgba(255,255,255,0.6); padding: 3.5rem 2rem 2rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 3rem; }
.footer-brand-name { font-family: var(--font-h); color: #fff; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.footer-brand-desc { font-size: 0.82rem; line-height: 1.6; margin-bottom: 1rem; }
.footer-legal { font-size: 0.7rem; color: rgba(255,255,255,0.35); line-height: 1.6; }
.footer h4 { font-family: var(--font-m); font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact-item { font-size: 0.85rem; margin-bottom: 0.5rem; line-height: 1.6; }
.footer-bar { max-width: var(--max-w); margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: rgba(255,255,255,0.3); }
.footer-bar a { color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-bar a:hover { color: var(--gold); }

/* ANIMATIONS */
.anim { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.anim.visible { opacity: 1; transform: translateY(0); }

/* SINGLE POST / NEWSLETTER */
.post-wrap { max-width: 780px; margin: 0 auto; padding: 4rem 2rem 6rem; }
.post-eyebrow { font-family: var(--font-m); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
.post-title { font-family: var(--font-h); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: var(--midnight); line-height: 1.2; margin-bottom: 1.5rem; }
.post-meta { font-family: var(--font-m); font-size: 0.7rem; color: var(--text-40); letter-spacing: 0.05em; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.post-content { font-size: 1rem; color: var(--text-60); line-height: 1.8; }
.post-content h2 { font-family: var(--font-h); font-size: 1.5rem; font-weight: 700; color: var(--midnight); margin: 2.5rem 0 0.8rem; }
.post-content h3 { font-family: var(--font-h); font-size: 1.2rem; font-weight: 600; color: var(--midnight); margin: 2rem 0 0.6rem; }
.post-content p { margin-bottom: 1.4rem; }
.post-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--gold-dark); }
.post-content ul, .post-content ol { margin: 0 0 1.4rem 1.5rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content blockquote { border-left: 3px solid var(--gold); padding: 0.5rem 0 0.5rem 1.5rem; margin: 2rem 0; font-family: var(--font-h); font-size: 1.1rem; font-style: italic; color: var(--midnight); }
.post-back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--blue); text-decoration: none; margin-bottom: 2rem; }
.post-back:hover { color: var(--gold-dark); }

/* RESPONSIVE */
@media (max-width: 968px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 100%; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .expertise-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-showcase { grid-template-columns: repeat(2, 1fr); }
  .cred-inner { grid-template-columns: repeat(3, 1fr); }
  .cred-item:nth-child(3) { border-right: none; }
  .cred-item:nth-child(4) { border-top: 1px solid var(--border); }
  .cred-item:nth-child(5) { border-top: 1px solid var(--border); }
  .cred-item:nth-child(6) { border-top: 1px solid var(--border); border-right: none; }
}
@media (max-width: 600px) {
  .hero { padding: 3rem 1.2rem 2rem; }
  .section { padding: 3.5rem 1.2rem; }
  .cred-inner { grid-template-columns: 1fr 1fr; }
  .cred-item { border-right: none; border-bottom: 1px solid var(--border); }
  .cred-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .cred-item:nth-child(n+5) { border-bottom: none; }
  .insights-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .clients-showcase { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .approach-row { grid-template-columns: 50px 1fr; gap: 1rem; }
  .footer-bar { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (min-width: 1600px) {
  :root { --max-w: 1440px; }
  html { font-size: 17px; }
}

/* ============================================================
   Market Line — Newsletter Post Styles
   Add to: Appearance > Customize > Additional CSS
   OR: paste into your theme's style.css
   ============================================================ */

/* Date / category line */
.nl-meta {
  color: #8a8a8a;
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

/* Author block */
.nl-auth {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e0d8;
}

.nl-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0B1F33;
  color: #C9A96E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}

.nl-author-name {
  font-weight: 600;
  font-size: 15px;
}

.nl-author-role {
  font-size: 13px;
  color: #8a8a8a;
}

/* Quarter comparison subtitle */
.nl-sub {
  color: #0055a4;
  font-style: italic;
  font-size: 14px;
  margin-bottom: 14px;
}

/* Chart / image */
.nl-chart {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 4px;
  margin: 16px 0;
}

/* Image source caption */
.nl-source {
  font-size: 13px;
  color: #8a8a8a;
  margin-top: -8px;
}

/* Data table */
.nl-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 14px !important;
  color: #1a1a1a !important;
}

.nl-table th {
  text-align: left !important;
  font-weight: 600 !important;
  padding: 10px 16px !important;
  border-top: none !important;
  border-right: none !important;
  border-left: none !important;
  border-bottom: 1px solid #1a1a1a !important;
  background: transparent !important;
  color: #1a1a1a !important;
}

.nl-table td {
  padding: 10px 16px !important;
  border: none !important;
}

.nl-table td:not(:first-child),
.nl-table th:not(:first-child) {
  text-align: right !important;
}

.nl-table tbody tr:nth-child(odd) td {
  background: #e8e8e8 !important;
}

.nl-table tbody tr:nth-child(even) td {
  background: #ffffff !important;
}

.nl-table tbody tr:last-child td {
  border-bottom: 1px solid #1a1a1a !important;
}
.nl-disc p {
  font-size: 12px;
  color: #8a8a8a;
  line-height: 1.7;
}