/* =============================================
   MeddlerPR Theme — Main Stylesheet
   All shared styles used across every page
   ============================================= */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── WORDPRESS GAP FIX ── */
html { margin-top: 0 !important; padding-top: 0 !important; scroll-behavior: smooth; }
body { margin-top: 0 !important; padding-top: 0 !important; }
.wp-site-blocks { padding-top: 0 !important; margin-top: 0 !important; gap: 0 !important; }
.wp-site-blocks > * { padding-top: 0 !important; margin-top: 0 !important; }
.wp-site-blocks > nav { position: fixed !important; top: 0 !important; }
#page, #content, #wrapper, .site, .site-content, #main, .main, #primary,
.hfeed, body > div:first-child, .wp-block-group, .wp-block-template-part {
  margin-top: 0 !important; padding-top: 0 !important;
}

/* ── CSS VARIABLES ── */
:root {
  --ink: #0A0A08;
  --ink-2: #1C1C18;
  --ink-3: #2E2E28;
  --gold: #C9A84C;
  --gold-dim: #8A6E2F;
  --cream: #F8F4ED;
  --cream-2: #EDE8DF;
  --muted: #6B6B60;
  --muted-2: #9A9A8E;
  --border: rgba(201,168,76,0.18);
  --border-hard: rgba(201,168,76,0.35);
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body: 'DM Sans', sans-serif;
  --ff-mono: 'DM Mono', monospace;
}

/* ── BASE ── */
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── CONTENT CENTRING ── */
.w {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(48px, calc((100vw - 1400px) / 2));
  height: 88px;
  border-bottom: 0.5px solid var(--border);
  background: rgba(10,10,8,0.88);
  backdrop-filter: blur(16px);
}
.nav-logo { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.nav-logo-badge {
  background: var(--gold); width: 44px; height: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-badge-m { font-family: var(--ff-display); font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 2px; }
.nav-logo-badge-rule { width: 28px; height: 0.5px; background: rgba(10,10,8,0.25); }
.nav-logo-badge-pr { font-family: var(--ff-mono); font-size: 8px; font-weight: 500; color: var(--ink); letter-spacing: 0.18em; margin-top: 3px; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-wordmark { font-family: var(--ff-display); font-size: 24px; font-weight: 600; color: var(--cream); letter-spacing: -0.5px; line-height: 1; }
.nav-logo-wordmark em { font-style: normal; color: var(--gold); }
.nav-logo-rule { height: 0.5px; background: var(--gold); opacity: 0.35; margin: 4px 0; }
.nav-logo-tagline { font-family: var(--ff-mono); font-size: 8.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 13px; font-weight: 400;
  color: var(--muted-2); letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 22px;
  text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: #D4B460; }

/* ── TICKER ── */
.ticker-wrap {
  margin-top: 88px; overflow: hidden;
  background: var(--gold); padding: 10px 0; white-space: nowrap; width: 100%;
}
.ticker { display: inline-flex; animation: ticker 36s linear infinite; align-items: center; }
.ticker-dot { color: rgba(10,10,8,0.3); padding: 0 4px; font-size: 10px; }
.ticker span { padding: 0 28px; font-size: 16px; color: var(--ink); letter-spacing: 0; text-transform: none; }
.t-forbes      { font-family: 'Playfair Display', Georgia, serif !important; font-size: 16px !important; font-weight: 400 !important; color: var(--ink) !important; }
.t-inc         { font-family: 'Anton', sans-serif !important; font-size: 16px !important; font-weight: 400 !important; color: var(--ink) !important; }
.t-entrepreneur{ font-family: 'Oswald', sans-serif !important; font-size: 15px !important; font-weight: 400 !important; letter-spacing: 0.06em !important; text-transform: uppercase !important; color: var(--ink) !important; }
.t-fastco      { font-family: 'Barlow Condensed', sans-serif !important; font-size: 16px !important; font-weight: 400 !important; letter-spacing: 0.06em !important; text-transform: uppercase !important; color: var(--ink) !important; }
.t-bi          { font-family: 'Merriweather', Georgia, serif !important; font-size: 12px !important; font-weight: 400 !important; text-transform: uppercase !important; color: var(--ink) !important; }
.t-hubspot     { font-family: 'Nunito', sans-serif !important; font-size: 15px !important; font-weight: 400 !important; color: var(--ink) !important; }
.t-techcrunch  { font-family: 'Russo One', sans-serif !important; font-size: 14px !important; font-weight: 400 !important; color: var(--ink) !important; }
.t-mashable    { font-family: 'Raleway', sans-serif !important; font-size: 15px !important; font-weight: 400 !important; text-transform: uppercase !important; color: var(--ink) !important; }
.t-yahoo       { font-family: 'Anton', sans-serif !important; font-size: 16px !important; font-weight: 400 !important; color: var(--ink) !important; }
.t-techtimes   { font-family: 'Oswald', sans-serif !important; font-size: 15px !important; font-weight: 400 !important; text-transform: uppercase !important; color: var(--ink) !important; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── SHARED SECTION STYLES ── */
.section-label {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.section-headline {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300; line-height: 1.08; color: var(--cream);
}
.section-headline em { font-style: italic; color: var(--gold); }
.section-headline strong { font-weight: 600; }

/* ── SHARED BUTTONS ── */
.btn-primary {
  background: var(--gold); color: var(--ink);
  font-family: var(--ff-body); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 32px; text-decoration: none; transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: #D4B460; }
.btn-ghost {
  font-size: 13px; font-weight: 400; color: var(--muted-2);
  text-decoration: none; border-bottom: 0.5px solid var(--border-hard);
  padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { color: var(--cream); border-color: var(--cream); }

/* ── SHARED CTA SECTION ── */
.cta-section {
  text-align: center;
  padding: 120px 56px;
  position: relative; overflow: hidden;
  max-width: 1400px; margin: 0 auto; width: 100%;
}
.cta-section::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.cta-label { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.cta-headline { font-family: var(--ff-display); font-size: clamp(44px, 6vw, 80px); font-weight: 300; line-height: 1.06; color: var(--cream); margin-bottom: 32px; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-headline em { font-style: italic; color: var(--gold); }
.cta-sub { font-size: 16px; font-weight: 300; color: var(--muted-2); max-width: 420px; margin: 0 auto 48px; line-height: 1.7; }
.cta-actions { display: flex; justify-content: center; gap: 20px; align-items: center; }

/* ── FOOTER ── */
footer {
  border-top: 0.5px solid var(--border);
  padding: 56px 56px 40px;
  max-width: 1400px; margin: 0 auto; width: 100%;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 48px; border-bottom: 0.5px solid var(--border);
}
.footer-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.footer-logo-badge {
  background: var(--gold); width: 48px; height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-logo-badge-m { font-family: var(--ff-display); font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 2px; }
.footer-logo-badge-rule { width: 30px; height: 0.5px; background: rgba(10,10,8,0.25); }
.footer-logo-badge-pr { font-family: var(--ff-mono); font-size: 9px; font-weight: 500; color: var(--ink); letter-spacing: 0.2em; margin-top: 3px; }
.footer-logo-text { display: flex; flex-direction: column; }
.footer-logo-wordmark { font-family: var(--ff-display); font-size: 28px; font-weight: 600; color: var(--cream); letter-spacing: -0.5px; line-height: 1; }
.footer-logo-wordmark em { font-style: normal; color: var(--gold); }
.footer-logo-rule { height: 0.5px; background: var(--gold); opacity: 0.35; margin: 5px 0; }
.footer-logo-tagline { font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.65; max-width: 240px; }
.footer-col-title { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; }
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-copy span { color: var(--gold); }

/* ── HAMBURGER MENU ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 101; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: all 0.25s ease;
}
.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); }

.mobile-menu {
  display: none;
  position: fixed; top: 88px; left: 0; right: 0;
  background: rgba(10,10,8,0.98);
  border-bottom: 0.5px solid var(--border);
  z-index: 100; padding: 0;
  backdrop-filter: blur(16px);
  transform: translateY(-200%);
  transition: transform 0.3s ease;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  pointer-events: all;
}
.mobile-nav-links { list-style: none; padding: 8px 0 16px; }
.mobile-nav-links li { border-bottom: 0.5px solid var(--border); }
.mobile-nav-links a {
  display: block; padding: 16px 24px;
  font-size: 14px; font-weight: 400;
  color: var(--muted-2); text-decoration: none;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}
.mobile-nav-links a:hover { color: var(--gold); background: rgba(201,168,76,0.04); }
.mobile-nav-links .mobile-cta {
  display: block; background: var(--gold); color: var(--ink) !important;
  margin: 16px 24px 0; text-align: center; font-weight: 500;
}
.mobile-nav-links .mobile-cta:hover { background: #D4B460; }

/* ── TICKER — scrolls with page, only nav is fixed ── */
.ticker-wrap { position: relative; z-index: 98; }

/* ── FOOTER SOCIAL ICONS ── */
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social-link { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0.5px solid var(--border); color: var(--muted-2); text-decoration: none; transition: color 0.2s, border-color 0.2s, background 0.2s; flex-shrink: 0; }
.footer-social-link:hover { color: var(--gold); border-color: var(--border-hard); background: rgba(201,168,76,0.06); }
.footer-social-link svg { width: 13px; height: 13px; fill: currentColor; }

/* ── PAGE CONTENT AREA ── */
.page-content { width: 100%; }

/* ══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════ */

/* ── TABLET (1025px and below) ── */
@media (max-width: 1024px) {
  nav { padding: 0 24px; height: 72px; }
  .ticker-wrap { margin-top: 72px; }
  .mobile-menu { top: 72px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.05em; }
  .nav-logo-tagline { display: none; }
  .nav-logo-rule { display: none; }
  .nav-logo-wordmark { font-size: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  footer { padding: 48px 32px 32px; }
}

/* ── MOBILE (768px and below) ── */
@media (max-width: 768px) {
  /* Nav */
  nav { padding: 0 20px; height: 64px; }
  .ticker-wrap { margin-top: 64px; }
  .mobile-menu { top: 64px; display: block; }

  /* Hide nav links and desktop CTA, show hamburger */
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .nav-cta-desktop { display: none !important; }
  .nav-hamburger { display: flex !important; }

  /* Show full logo on mobile — space freed by hidden links */
  .nav-logo-tagline { display: block !important; }
  .nav-logo-rule { display: block !important; }
  .nav-logo-wordmark { font-size: 18px; }
  .nav-logo-badge { width: 38px; height: 45px; }
  .nav-logo-badge-m { font-size: 22px; }
  .nav-logo-badge-pr { font-size: 7px; }

  /* Ticker */
  .ticker span { font-size: 12px; padding: 0 16px; }

  /* Footer */
  footer { padding: 40px 20px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { margin-bottom: 12px; }
  /* Logo spans full width, then 2-col for Services+Company, Useful Links below */
  .footer-top > div:nth-child(1) { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:nth-child(1) { grid-column: 1 / 3; }
  .footer-top > div:nth-child(4) { grid-column: 1 / 3; }
  .footer-logo-badge { width: 40px; height: 46px; }
  .footer-logo-badge-m { font-size: 22px; }
  .footer-logo-wordmark { font-size: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 20px; }

  /* Shared */
  .section-label { font-size: 10px; }
  .section-headline { font-size: clamp(28px, 8vw, 44px); }
  .cta-headline { font-size: clamp(32px, 9vw, 56px); }
}

/* ── SMALL MOBILE (480px and below) ── */
@media (max-width: 480px) {
  nav { padding: 0 16px; }
  .nav-logo-wordmark { font-size: 16px; }
  footer { padding: 32px 16px 24px; }
}
