/*
Theme Name: The Best Marketing Tool
Theme URI: 
Author: Antigravity
Author URI: 
Description: A WordPress theme converted from the given HTML file.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
Text Domain: thebestmarketingtool
*/

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

  :root {
    --ink: #1a1a18;
    --ink-muted: #5c5c56;
    --ink-faint: #9a9a92;
    --paper: #fafaf7;
    --paper-warm: #f4f3ee;
    --paper-cream: #eeecd8;
    --accent: #c8502a;
    --accent-light: #f5ede8;
    --border: #e0dfd6;
    --border-strong: #c8c7bc;
    --green: #2a7a4b;
    --green-light: #e8f3ed;
  }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
  }

  /* HEADER */
  header {
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
  }

  .header-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.3px;
  }

  .logo span {
    color: var(--accent);
  }

  nav {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.15s;
    cursor: pointer;
  }

  nav a:hover { color: var(--ink); background: var(--paper-warm); }

  nav a.active { color: var(--ink); }

  .nav-cta {
    background: var(--ink) !important;
    color: var(--paper) !important;
    padding: 7px 16px !important;
    border-radius: 6px;
    font-size: 13px !important;
  }

  .nav-cta:hover { background: #333 !important; }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
  }

  .mobile-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    flex-direction: column;
    gap: 4px;
    z-index: 99;
  }

  .mobile-nav.open { display: flex; }

  .mobile-nav a {
    display: block;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-muted);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
  }

  .mobile-nav a:last-child { border-bottom: none; }

  /* PAGES */
  .page { display: block; }
  .page.active { display: block; }

  /* HOME PAGE */
  .home-hero {
    border-bottom: 1px solid var(--border);
    padding: 56px 24px 48px;
    text-align: center;
    background: linear-gradient(180deg, var(--paper-cream) 0%, var(--paper) 100%);
  }

  .home-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--ink);
    max-width: 640px;
    margin: 0 auto 16px;
  }

  .home-hero p {
    font-size: 17px;
    color: var(--ink-muted);
    max-width: 480px;
    margin: 0 auto;
  }

  .home-hero h1 em {
    font-style: italic;
    color: var(--accent);
  }

  .section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 24px;
  }

  .main-content {
    max-width: 1160px;
    margin: 0 auto;
    padding: 48px 24px;
  }

  /* BLOG GRID */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
  }

  .blog-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
  }

  .blog-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  }

  .blog-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: var(--paper-cream);
    position: relative;
    overflow: hidden;
  }

  .card-img-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
  }

  .blog-card-body {
    padding: 20px 22px 22px;
  }

  .blog-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 10px;
  }

  .blog-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 10px;
  }

  .blog-card p {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ink-faint);
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  .read-more {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
  }

  /* BLOG POST PAGE */
  .blog-post-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 56px;
    align-items: start;
  }

  .blog-post-main {}

  .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    cursor: pointer;
    margin-bottom: 28px;
    padding: 6px 0;
    background: none;
    border: none;
    font-family: inherit;
    transition: color 0.15s;
  }

  .back-btn:hover { color: var(--ink); }

  .post-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 14px;
  }

  .post-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin-bottom: 16px;
  }

  .post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--ink-faint);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
    flex-wrap: wrap;
  }

  .post-meta span { display: flex; align-items: center; gap: 5px; }

  .post-hero {
    width: 100%;
    height: 320px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
  }

  .post-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--ink);
  }

  .post-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    margin: 36px 0 14px;
  }

  .post-body p { margin-bottom: 18px; }

  .post-body ul {
    margin: 0 0 18px 20px;
  }

  .post-body li { margin-bottom: 8px; }

  .post-body strong { font-weight: 600; }

  .verdict-box {
    background: var(--green-light);
    border-left: 3px solid var(--green);
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 32px 0;
  }

  .verdict-box strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 6px;
  }

  /* SIDEBAR */
  .sidebar {
    position: sticky;
    top: 80px;
  }

  .sidebar-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 18px;
  }

  .rec-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: all 0.15s;
  }

  .rec-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .rec-card .blog-tag { margin-bottom: 6px; }

  .rec-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 6px;
  }

  .rec-card p {
    font-size: 12px;
    color: var(--ink-faint);
  }

  /* WRITE FOR US PAGE */
  .wfu-hero {
    background: var(--paper-cream);
    border-bottom: 1px solid var(--border);
    padding: 64px 24px;
    text-align: center;
  }

  .wfu-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 16px;
  }

  .wfu-hero p {
    font-size: 18px;
    color: var(--ink-muted);
    max-width: 560px;
    margin: 0 auto;
  }

  .wfu-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 24px 80px;
  }

  .wfu-section {
    margin-bottom: 48px;
  }

  .wfu-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }

  .wfu-section p {
    font-size: 16px;
    color: var(--ink-muted);
    line-height: 1.75;
    margin-bottom: 12px;
  }

  .wfu-section ul {
    list-style: none;
    padding: 0;
  }

  .wfu-section ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--ink-muted);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
  }

  .wfu-section ul li:last-child { border-bottom: none; }

  .wfu-section ul li::before {
    content: "→";
    color: var(--accent);
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 8px;
  }

  .type-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
  }

  .type-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
  }

  .type-card p {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.6;
    margin: 0;
  }

  .benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
  }

  .benefit-item {
    background: var(--green-light);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }

  .benefit-item .check {
    color: var(--green);
    font-size: 16px;
    flex-shrink: 0;
    font-weight: 700;
    margin-top: 1px;
  }

  .benefit-item p {
    font-size: 14px;
    color: var(--ink);
    margin: 0;
  }

  .cta-box {
    background: var(--ink);
    border-radius: 12px;
    padding: 36px 40px;
    text-align: center;
    margin-top: 48px;
  }

  .cta-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
  }

  .cta-box p {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 24px;
  }

  .cta-box a {
    display: inline-block;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 8px;
    transition: opacity 0.15s;
  }

  .cta-box a:hover { opacity: 0.88; }

  .email-link {
    color: var(--accent);
    font-family: 'DM Sans', monospace;
    font-size: 14px;
    font-weight: 500;
  }

  /* FOOTER */
  footer {
    background: var(--ink);
    color: rgba(255,255,255,0.7);
    padding: 48px 24px 32px;
    margin-top: 80px;
  }

  .footer-inner {
    max-width: 1160px;
    margin: 0 auto;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 48px;
    align-items: start;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
  }

  .footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
  }

  .footer-brand span { color: var(--accent); }

  .footer-desc {
    font-size: 14px;
    line-height: 1.65;
    max-width: 300px;
  }

  .footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 14px;
  }

  .footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: color 0.15s;
  }

  .footer-col a:hover { color: white; }

  .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-bottom a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.15s;
    cursor: pointer;
  }

  .footer-bottom a:hover { color: rgba(255,255,255,0.8); }

  /* RESPONSIVE */
  /* Hamburger animation */
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  @media (max-width: 768px) {
    nav { display: none; }
    .hamburger { display: flex; }

    /* Bigger tap targets for mobile nav links */
    .mobile-nav a { padding: 14px 0; font-size: 16px; }

    .blog-post-wrap {
      grid-template-columns: 1fr;
      padding: 28px 16px;
      gap: 40px;
    }

    .sidebar { position: static; }

    .post-hero { height: 220px; }

    .footer-top {
      grid-template-columns: 1fr;
      gap: 28px;
    }

    .footer-bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }

    .benefits-grid { grid-template-columns: 1fr; }
    .type-cards { grid-template-columns: 1fr; }

    /* Bigger tap targets on blog cards */
    .blog-card { border-radius: 8px; }
    .blog-card-body { padding: 16px 18px 18px; }

    /* Write For Us hero smaller on mobile */
    .wfu-hero { padding: 44px 20px; }
    .wfu-hero p { font-size: 16px; }

    /* Sidebar recommended posts stack nicely */
    .rec-card { padding: 14px; }
  }

  @media (max-width: 480px) {
    .header-inner { padding: 0 16px; }
    .logo { font-size: 17px; }
    .main-content { padding: 28px 16px; }
    .blog-grid { grid-template-columns: 1fr; gap: 14px; }
    .home-hero { padding: 36px 16px 32px; }
    .home-hero p { font-size: 15px; }
    .wfu-content { padding: 36px 16px 56px; }
    .cta-box { padding: 28px 18px; }
    .cta-box h2 { font-size: 22px; }
    .post-title { font-size: 24px; }
    .post-body { font-size: 15px; }
    .wfu-section h2 { font-size: 20px; }
    .section-label { font-size: 10px; }

    /* Footer compact on very small screens */
    footer { padding: 36px 16px 28px; margin-top: 56px; }
    .footer-col { display: flex; gap: 20px; flex-wrap: wrap; }
    .footer-col h4 { width: 100%; margin-bottom: 8px; }
    .footer-col a { margin-bottom: 6px; }
  }

  /* Touch-friendly: ensure all clickable elements have min 44px height */
  @media (hover: none) {
    .blog-card:hover { transform: none; box-shadow: none; }
    .rec-card:hover { box-shadow: none; }
    nav a, .back-btn, .nav-cta { min-height: 44px; display: inline-flex; align-items: center; }
  }
</style>
