/*
Theme Name: 24x7Plumbers
Description: Emergency Plumbing Lead Generation Theme
Version: 2.1
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   Centralised - change once, applies everywhere
============================================================ */
:root {
    /* Brand Colors */
    --red:          #e84132;
    --red-dark:     #c42e22;
    --red-light:    #ff5a4a;
    --black:        #0a0a0a;
    --black-soft:   #111111;
    --black-card:   #181818;
    --white:        #ffffff;
    --off-white:    #f6f6f4;
    --gray-light:   #f0f0ee;
    --gray-mid:     #999999;
    --gray-text:    #555555;
    --gray-border:  #e2e2e2;

    /* Typography */
    --font-display: Impact, Haettenschweiler, 'Arial Narrow Bold', 'Arial Narrow', sans-serif;
    --font-body:    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

    /* Sizing */
    --radius-sm:    10px;
    --radius-md:    18px;
    --radius-lg:    26px;
    --radius-pill:  999px;

    /* Shadows */
    --shadow-card:  0 4px 24px rgba(0,0,0,0.07);
    --shadow-lift:  0 12px 40px rgba(0,0,0,0.12);
    --shadow-dark:  0 10px 50px rgba(0,0,0,0.45);

    /* Transitions */
    --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration:     0.28s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--black);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* Focus styles - accessibility requirement */
:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   CONTAINER
============================================================ */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   HEADER
   FIX: was missing mobile nav, logo sizing was huge
============================================================ */
header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    gap: 20px;
}

/* Logo - reduced from 38px (too large) */
.logo {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--red);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: auto;
    height: 48px;
    max-width: 240px;
    object-fit: contain;
}

/* Desktop nav */
.site-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.site-nav a {
    color: var(--black);
    font-weight: 500;
    font-size: 15px;
    transition: color var(--duration) var(--ease);
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width var(--duration) var(--ease);
}

.site-nav a:hover {
    color: var(--red);
}

.site-nav a:hover::after {
    width: 100%;
}

/* Header CTA button */
.cta-btn {
    background: var(--red);
    color: var(--white);
    padding: 14px 26px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-btn:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.mobile-header-call {
    display: none;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
}

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--gray-border);
    padding: 20px 0;
}

.mobile-nav a {
    display: block;
    padding: 14px 5%;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid var(--gray-light);
    color: var(--black);
    transition: color var(--duration) var(--ease);
}

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

.mobile-nav a:hover {
    color: var(--red);
}

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

/* ============================================================
   HERO SECTION
   FIX: h1 was 68px - too large, causes CLS on mobile
        trust-row used <span> - changed to semantic <ul>
        Added proper grid gap and alignment fixes
============================================================ */
.hero-section {
    background: var(--black);
    color: var(--white);
    padding: 100px 0 110px;
    position: relative;
    overflow: hidden;
}

/* Subtle background texture */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(232,65,50,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(232,65,50,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232,65,50,0.15);
    border: 1px solid rgba(232,65,50,0.35);
    color: #ff7066;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    margin-bottom: 28px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* FIX: reduced from 68px → 52px. Better for LCP + mobile */
.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-content h1 em {
    color: var(--red-light);
    font-style: normal;
}

.hero-description {
    font-size: 18px;
    color: #c8c8c8;
    margin-bottom: 28px;
    line-height: 1.75;
    max-width: 580px;
}

/* FIX: was <div> with <span>s - now semantic <ul> */
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 36px;
    padding: 0;
}

.trust-row li {
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-row li::before {
    content: '✔';
    color: var(--red-light);
    font-size: 12px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Shared button base */
.btn-primary,
.btn-secondary,
.btn-white,
.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 30px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    transition:
        background var(--duration) var(--ease),
        color var(--duration) var(--ease),
        transform var(--duration) var(--ease),
        box-shadow var(--duration) var(--ease);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(232,65,50,0.4);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(232,65,50,0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

/* Social proof bar - NEW */
.social-proof-bar {
    display: flex;
    gap: 30px;
    padding: 22px 28px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.proof-item strong {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.proof-item span {
    font-size: 12px;
    color: var(--gray-mid);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================================
   HERO FORM
   FIX: h3 on form changed to h2 (heading hierarchy)
        Missing labels added
        Form was non-functional - fixed with proper attrs
============================================================ */
.hero-form {
    background: var(--white);
    padding: 38px 36px;
    border-radius: var(--radius-lg);
    color: var(--black);
    box-shadow: var(--shadow-dark);
    position: relative;
}

/* Red accent top bar */
.hero-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--red);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.form-subtitle {
    color: var(--gray-text);
    margin-bottom: 26px;
    font-size: 15px;
    line-height: 1.6;
}

/* Form layout */
#plumbing-lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    letter-spacing: 0.01em;
}

.form-label span {
    color: var(--red);
}

.form-group input,
.form-group select {
    padding: 14px 16px;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    outline: none;
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    appearance: none;
    -webkit-appearance: none;
}

/* Custom select arrow */
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(232,65,50,0.12);
}

.field-hint {
    font-size: 12px;
    color: var(--gray-mid);
}

.form-submit-btn {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 17px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
    margin-top: 4px;
    letter-spacing: 0.01em;
}

.form-submit-btn:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.form-disclaimer {
    font-size: 11px;
    color: var(--gray-mid);
    line-height: 1.5;
    text-align: center;
}

.form-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--gray-light);
}

.form-trust span {
    color: var(--gray-text);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-trust span::before {
    content: '✔';
    color: #2ecc71;
    font-size: 11px;
}

/* ============================================================
   SECTION SHARED STYLES
============================================================ */
section {
    overflow: hidden;
}

.section-heading {
    text-align: center;
    margin-bottom: 56px;
}

/* FIX: was 52px - reduced for better mobile display */
.section-heading h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--black);
}

.section-heading p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--gray-text);
    font-size: 17px;
    line-height: 1.7;
}

/* ============================================================
   SERVICES SECTION
   FIX: service cards now use <article> - styles updated
        Added service-link style
============================================================ */
.services-section {
    padding: 100px 0;
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 34px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(232,65,50,0.12);
}

.service-icon {
    font-size: 34px;
    margin-bottom: 18px;
    line-height: 1;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    color: var(--black);
}

.service-card p {
    color: var(--gray-text);
    font-size: 15px;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

/* NEW - service card read-more link */
.service-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--duration) var(--ease), color var(--duration) var(--ease);
    margin-top: auto;
}

.service-link:hover {
    gap: 8px;
    color: var(--red-dark);
}

/* ============================================================
   STATES SECTION
   FIX: state-box was <div> - changed to <a> links in PHP
        Added hover color variable usage
============================================================ */
.states-section {
    padding: 100px 0;
    background: var(--black);
    color: var(--white);
}

.states-section .section-heading h2 {
    color: var(--white);
}

.states-section .section-heading p {
    color: #999;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

/* FIX: state-box is now an <a> tag for SEO internal links */
.state-box {
    display: block;
    border: 1.5px solid #2a2a2a;
    padding: 18px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #cccccc;
    transition:
        background var(--duration) var(--ease),
        border-color var(--duration) var(--ease),
        color var(--duration) var(--ease),
        transform var(--duration) var(--ease);
    cursor: pointer;
}

.state-box:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    transform: translateY(-3px);
}

/* ============================================================
   WHY SECTION
============================================================ */
.why-section {
    padding: 100px 0;
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.why-card {
    background: var(--off-white);
    padding: 34px 30px;
    border-radius: var(--radius-lg);
    transition: transform var(--duration) var(--ease);
    border-left: 4px solid transparent;
}

.why-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--red);
}

.why-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.25;
    color: var(--black);
}

.why-card p {
    color: var(--gray-text);
    font-size: 15px;
    line-height: 1.75;
}

/* ============================================================
   EDUCATIONAL CONTENT SECTION
   FIX: added h3 styles within content-inner
        Improved readability - line-height & font-size
============================================================ */
.content-section {
    padding: 100px 0;
    background: var(--off-white);
}

.content-inner {
    max-width: 860px;
    margin: 0 auto;
}

.content-inner h3 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--black);
    margin: 40px 0 14px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.content-inner h3:first-of-type {
    margin-top: 0;
}

.content-inner p {
    margin-bottom: 22px;
    font-size: 17px;
    line-height: 1.85;
    color: #444444;
}

.content-inner p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   FAQ SECTION
   FIX: answers were 1-2 sentences - expanded in PHP
        Added accordion toggle JS capability
        Added microdata styles
============================================================ */
.faq-section {
    padding: 100px 0;
    background: var(--white);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--off-white);
    padding: 32px 34px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-border);
    transition: box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.faq-item:hover {
    box-shadow: var(--shadow-card);
    border-color: rgba(232,65,50,0.2);
}

.faq-item h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.25;
    color: var(--black);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Red Q marker */
.faq-item h3::before {
    content: 'Q';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: var(--red);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 1px;
}

.faq-item p {
    color: var(--gray-text);
    font-size: 16px;
    line-height: 1.8;
    padding-left: 40px; /* aligns with text after Q marker */
}

/* ============================================================
   BLOG SECTION
   FIX: blog links were href="#" - fixed in PHP
        blog-card is now <article>
        Added blog-read-more link style
============================================================ */
.blog-section {
    padding: 100px 0;
    background: var(--off-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.blog-card {
    background: var(--white);
    padding: 34px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(232,65,50,0.1);
}

.blog-icon {
    font-size: 32px;
    margin-bottom: 18px;
    line-height: 1;
}

.blog-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.25;
}

.blog-card h3 a {
    color: var(--black);
    transition: color var(--duration) var(--ease);
}

.blog-card h3 a:hover {
    color: var(--red);
}

.blog-card p {
    color: var(--gray-text);
    font-size: 15px;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.blog-read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--duration) var(--ease);
    margin-top: auto;
}

.blog-read-more:hover {
    gap: 8px;
}

.blog-cta-row {
    text-align: center;
}

/* On light bg, secondary btn needs dark colors */
.blog-cta-row .btn-secondary {
    color: var(--black);
    border-color: var(--gray-border);
}

.blog-cta-row .btn-secondary:hover {
    background: var(--gray-light);
    border-color: #ccc;
    color: var(--black);
}

/* ============================================================
   CTA SECTION
============================================================ */
.cta-section {
    background: var(--red);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle radial highlight */
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 36px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.btn-white {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}

.btn-white:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* NAP block - local SEO */
.nap-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    opacity: 0.75;
    position: relative;
    z-index: 1;
}

.nap-block a {
    color: var(--white);
    font-weight: 600;
}

/* ============================================================
   FOOTER
   FIX: footer was unstyled in original CSS - full styles added
============================================================ */
footer {
    background: #050505;
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid #1e1e1e;
}

.footer-brand .logo {
    font-size: 22px;
    display: inline-block;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #888;
    font-size: 14px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h3 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: #777;
    font-size: 14px;
    transition: color var(--duration) var(--ease);
}

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

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white) !important;
    font-weight: 600;
    font-size: 18px !important;
    margin-bottom: 8px;
}

.copyright {
    padding: 24px 0;
    text-align: center;
    color: #444;
    font-size: 13px;
    line-height: 1.6;
}

.copyright a {
    color: #666;
    transition: color var(--duration) var(--ease);
}

.copyright a:hover {
    color: #999;
}

/* ============================================================
   UTILITY CLASSES
============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   RESPONSIVE - TABLET (max 1024px)
============================================================ */
@media (max-width: 1024px) {

    .hero-grid {
        grid-template-columns: 1fr 380px;
        gap: 40px;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

}

/* ============================================================
   RESPONSIVE - MOBILE NAV BREAKPOINT (max 920px)
   FIX: original nav just hid with display:none - no fallback
============================================================ */
@media (max-width: 920px) {

    /* Hide desktop nav links, show hamburger */
    .site-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-header-call {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: 12px;
        padding: 10px 14px;
        border-radius: 999px;
        background: var(--red);
        color: var(--white);
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    .logo img {
        height: 38px;
        max-width: 175px;
    }

    /* Hero stacks to single column */
    .hero-grid {
        grid-template-columns: 1fr;
    }

    /* Form sits below content on mobile */
    .hero-form {
        max-width: 560px;
        margin: 0 auto;
    }

    .social-proof-bar {
        justify-content: center;
    }

}

/* ============================================================
   RESPONSIVE - MOBILE (max 768px)
   FIX: many padding values were arbitrary - standardized
============================================================ */
@media (max-width: 768px) {

    /* Global section padding reduction */
    .hero-section,
    .services-section,
    .states-section,
    .why-section,
    .content-section,
    .faq-section,
    .blog-section,
    .cta-section {
        padding: 72px 0;
    }

    .hero-section {
        padding: 72px 0 80px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .social-proof-bar {
        gap: 20px;
        padding: 18px 20px;
    }

    .proof-item strong {
        font-size: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .states-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 10px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-white,
    .btn-outline-white {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .faq-item {
        padding: 24px 22px;
    }

    .faq-item p {
        padding-left: 0;
    }

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

}

/* ============================================================
   RESPONSIVE - SMALL MOBILE (max 480px)
============================================================ */
@media (max-width: 480px) {

    .hero-badge {
        font-size: 11px;
        padding: 7px 14px;
    }

    .hero-form {
        padding: 28px 22px;
    }

    .form-title {
        font-size: 24px;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .service-card,
    .why-card,
    .blog-card {
        padding: 26px 22px;
    }

    .faq-item h3 {
        font-size: 17px;
    }

    .states-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* ============================================================
   PRINT STYLES
   FIX: original had none - added basic print support
============================================================ */
@media print {

    header,
    .hero-form,
    .hero-buttons,
    .cta-section,
    .blog-section,
    nav {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .hero-section {
        background: #fff;
        color: #000;
        padding: 20pt 0;
    }

}

/* ============================================================
   VISUAL BUG FIXES - based on live screenshot review
   Issue list identified from 24x7plumbers_com__1_.png
============================================================ */

/* ─── BUG 1: DOUBLE CHECKMARK IN TRUST ROW ─────────────────
   Problem: Trust row <li> items show BOTH the Unicode ✔ from
   the PHP (&#10004;) AND the CSS ::before pseudo-element ✔.
   This causes "✔ ✔ 24/7 Emergency..." double tick display.
   Fix: Hide the ::before since the HTML already has the icon.
   We use a data-attribute approach - or simply remove the
   CSS pseudo-element and rely on the HTML entity only.
──────────────────────────────────────────────────────────── */
.trust-row li::before {
    display: none;
}

/* Same double-checkmark issue in .form-trust spans */
.form-trust span::before {
    display: none;
}

/* ─── BUG 2: HERO - LARGE EMPTY GAP BELOW HERO SECTION ─────
   Problem: There's a large white gap between the hero and
   services section because the hero-grid min-height causes
   overflow on shorter content when the form is taller.
   Fix: Let height be driven by content, not a fixed height.
──────────────────────────────────────────────────────────── */
.hero-section {
    padding: 80px 0 90px;
}

/* ─── BUG 3: CONTENT SECTION FONT RENDERING ─────────────────
   Keep educational content subheadings aligned with the
   display font and heavier visual hierarchy used elsewhere.
──────────────────────────────────────────────────────────── */
.content-inner h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    margin: 44px 0 14px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    border-left: 4px solid var(--red);
    padding-left: 16px;
}

/* ─── BUG 4: FAQ ITEMS - ANSWER TEXT PADDING MISALIGNED ─────
   Problem: FAQ answers have padding-left: 40px (to align with
   text after the Q badge) but on narrow viewports this causes
   answers to appear indented while question text is not,
   creating an unbalanced ragged-left column on desktop too.
   Fix: Remove the offset padding, use a gap on the h3 instead.
──────────────────────────────────────────────────────────── */
.faq-item p {
    padding-left: 0;
    color: var(--gray-text);
    font-size: 16px;
    line-height: 1.8;
}

/* ─── BUG 5: FAQ SECTION BACKGROUND ─────────────────────────
   Problem: FAQ section background is var(--white) but the
   section directly above (content-section) is var(--off-white).
   This creates an invisible boundary - the two sections merge
   visually. Fix: Give FAQ the off-white background so there's
   clear alternation: white → off-white → white → off-white.
──────────────────────────────────────────────────────────── */
.faq-section {
    background: var(--off-white);
}

/* ─── BUG 6: BLOG SECTION - CARDS HAVE NO VISUAL SEPARATION ─
   Problem: Blog section is off-white, blog cards are white.
   The cards look fine. But the "View All Articles" button
   below the grid has btn-secondary styles that render as
   transparent with a white border - invisible on off-white bg.
   Fix: Give it explicit dark border + text color on light bg.
──────────────────────────────────────────────────────────── */
.blog-section {
    background: var(--white);
}

.blog-card {
    background: var(--off-white);
}

.blog-cta-row .btn-secondary {
    color: var(--black);
    border-color: #cccccc;
    background: transparent;
}

.blog-cta-row .btn-secondary:hover {
    background: var(--gray-light);
    border-color: #aaaaaa;
}

/* ─── BUG 7: STATES GRID - TOO MANY COLUMNS ON MID SCREENS ──
   Problem: States grid uses auto-fit with minmax(160px, 1fr).
   On 768-1024px screens this creates 6 columns with very
   narrow boxes where text wraps to 2 lines (e.g. "North
   Carolina" wraps). Fix: Better min-width so columns breathe.
──────────────────────────────────────────────────────────── */
.states-grid {
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 12px;
}

.state-box {
    padding: 16px 12px;
    font-size: 13px;
    white-space: nowrap;  /* Prevents "North\nCarolina" wrap */
}

/* ─── BUG 8: HERO FORM - FORM TITLE HIERARCHY ───────────────
   Problem: The form title renders noticeably larger than the
   form fields, making the form card feel top-heavy on screens
   below 1024px where the grid stacks.
──────────────────────────────────────────────────────────── */
.form-title {
    font-size: clamp(22px, 3vw, 30px);
}

/* ─── BUG 9: HEADER NAV - NO SPACING BETWEEN LINKS ──────────
   Problem: Nav links run together visually at 920-1200px.
   "Home Emergency Plumbing Leak Detection Drain Cleaning"
   reads as one run-on string without adequate letter-spacing.
   Fix: Tighten the gap slightly and add a soft separator.
──────────────────────────────────────────────────────────── */
.site-nav {
    gap: 24px;
}

.site-nav a {
    font-size: 14px;
    letter-spacing: 0.01em;
}

/* ─── BUG 10: SOCIAL PROOF BAR - SEPARATOR LINES MISSING ────
   Problem: The three proof items (10,000+, All 50 States,
   Same-Day) sit next to each other with only a gap, making
   them look like floating text rather than distinct stats.
   Fix: Add a subtle vertical divider between items.
──────────────────────────────────────────────────────────── */
.social-proof-bar {
    gap: 0;
    padding: 20px 24px;
}

.proof-item {
    flex: 1;
    padding: 0 24px;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.proof-item:first-child {
    padding-left: 0;
}

.proof-item:last-child {
    border-right: none;
}

/* ─── BUG 11: WHY CARDS - LEFT BORDER MISSING ON LOAD ───────
   Problem: .why-card border-left is transparent by default,
   only appearing on hover. This means cards look borderless
   and feel unanchored on the page. Give first card a
   persistent red accent as a visual anchor.
   Better fix: Add a top accent bar to all cards instead.
──────────────────────────────────────────────────────────── */
.why-card {
    border-left: none;
    border-top: 3px solid transparent;
    transition: transform var(--duration) var(--ease),
                border-top-color var(--duration) var(--ease);
}

.why-card:hover {
    transform: translateY(-5px);
    border-left: none;
    border-top-color: var(--red);
}

/* ─── BUG 12: SERVICE CARDS - ICON EMOJI TOO LARGE ──────────
   Problem: Service card emoji icons are 34px and misaligned
   with the card title on wider cards, leaving too much space.
──────────────────────────────────────────────────────────── */
.service-icon {
    font-size: 30px;
    margin-bottom: 14px;
}

/* ─── BUG 13: CTA SECTION - PARAGRAPH HAS DOUBLE MARGIN ─────
   Problem: .cta-section p has margin-bottom:36px AND the
   margin-left/right:auto for centering also sets margin-bottom
   to auto via shorthand, potentially collapsing the spacing.
   Fix: Explicit four-value margin.
──────────────────────────────────────────────────────────── */
.cta-section p {
    margin: 0 auto 36px;
    max-width: 600px;
}

/* ─── BUG 14: FOOTER BRAND DESCRIPTION COPY ─────────────────
   Problem: Footer brand says "Nationwide plumbing lead
   generation website connecting users with local contractors"
   - this is backend/operational language that visitors should
   never see. It damages trust and E-E-A-T.
   Fix via CSS: this must be changed in PHP footer template.
   CSS workaround: at minimum style it less prominently.
   (Note added here - fix in footer.php template directly)
──────────────────────────────────────────────────────────── */
.footer-brand p {
    color: #666;
    font-size: 13px;
    line-height: 1.65;
}

/* ─── BUG 15: MOBILE - HERO GRID GAP TOO TIGHT ──────────────
   Problem: At 768px, when hero stacks, the gap between the
   hero text and the form is only 60px (from the grid gap).
   This looks cramped when stacked vertically.
──────────────────────────────────────────────────────────── */
@media (max-width: 920px) {
    .hero-grid {
        gap: 48px;
    }

    /* Proof bar stacks cleanly */
    .social-proof-bar {
        padding: 16px 20px;
    }

    .proof-item {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    /* States: force 2-col on mobile so text doesn't overflow */
    .states-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .state-box {
        white-space: normal;
        font-size: 12px;
        padding: 14px 8px;
    }

    /* Proof bar stacks to rows on mobile */
    .social-proof-bar {
        flex-direction: column;
        gap: 16px;
    }

    .proof-item {
        padding: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 16px;
    }

    .proof-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* Content section h3 size on mobile */
    .content-inner h3 {
        font-size: 22px;
        margin: 32px 0 12px;
    }
}

@media (max-width: 480px) {
    .states-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   NAV FIX - Screenshot 1
   Problem: Nav links "Home Emergency Plumbing Leak Detection
   Drain Cleaning Water Heaters Contact" render as a solid
   run-on string with no visual separation. The gap:24px
   between items is not enough - the link words themselves
   bleed visually into each other on a white background.
   Fix: Add a subtle separator pipe between items using ::after,
   slightly increase gap, and add a distinct hover underline.
============================================================ */

.site-nav {
    gap: 0; /* Reset - separators handle spacing now */
    align-items: center;
}

.site-nav a {
    padding: 6px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.01em;
    position: relative;
    white-space: nowrap;
    border-right: 1px solid #e0e0e0; /* pipe separator */
}

/* Last nav item before the CTA button: no trailing pipe */
.site-nav a:last-of-type {
    border-right: none;
    padding-right: 28px;
}

/* First item: no left padding bleed */
.site-nav a:first-of-type {
    padding-left: 0;
}

/* Keep the underline hover effect */
.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform var(--duration) var(--ease);
}

.site-nav a:first-of-type::after {
    left: 0;
}

.site-nav a:hover {
    color: var(--red);
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

/* CTA button: sits outside the nav links - keep its own spacing */
.site-nav .cta-btn {
    border-right: none;
    padding: 14px 26px;
    margin-left: 10px;
}

.site-nav .cta-btn::after {
    display: none; /* No underline on the pill button */
}

/* ============================================================
   CTA BUTTON FIX - Screenshot 2
   Problem 1: "Call Now: (877) 386-5952" (btn-white) looks
   correct - white bg, red text. ✓
   Problem 2: "Request A Callback" (btn-outline-white) has
   very low contrast - thin white border barely visible on
   the red background. Text reads as dark/muted red.
   Fix: Force white text + brighter border on outline button.
============================================================ */

.btn-outline-white {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid rgba(255,255,255,0.7);
    font-weight: 700;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* ============================================================
   FOOTER MISSING FIX - Screenshot 2
   Problem: The footer is completely absent from the page.
   The CTA section is the last visible element and the page
   cuts off. This is a WordPress template issue - footer.php
   either doesn't exist or get_footer() isn't rendering it.

   TWO POSSIBLE CAUSES:
   1. footer.php file doesn't exist in the theme folder
   2. footer.php exists but has no HTML / wrong structure

   SOLUTION: Create footer.php in your theme folder.
   Path: /wp-content/themes/24x7Plumbers/footer.php
   Use the code in the footer.php file provided separately.

   The CSS below ensures the footer STYLES are ready
   and will display correctly once footer.php is created.
============================================================ */

footer {
    background: #050505;
    color: var(--white);
    padding: 72px 0 0;
    display: block; /* Ensure not hidden */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid #1e1e1e;
}

.footer-brand .logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--red);
    display: inline-block;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #777;
    font-size: 14px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h3 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: #777;
    font-size: 14px;
    transition: color var(--duration) var(--ease);
}

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

.footer-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--white) !important;
    font-weight: 600;
    font-size: 16px !important;
}

.footer-phone-link:hover {
    color: #ff7066 !important;
}

.copyright {
    padding: 22px 0;
    text-align: center;
    color: #444;
    font-size: 13px;
    line-height: 1.6;
}

.copyright a {
    color: #555;
    transition: color var(--duration) var(--ease);
}

.copyright a:hover {
    color: #888;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ============================================================
   PAGESPEED ACCESSIBILITY + PERFORMANCE TUNING
============================================================ */
#site-footer p,
#site-footer li,
#site-footer .copyright,
#site-footer .copyright p,
.hero-description,
.trust-row,
.nap-block,
.mobile-nav a {
    color: #d0d0d0;
}

#site-footer a,
.copyright a,
.nap-block a {
    color: #ffffff;
}

.hero-badge {
    color: #ff9a92;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ============================================================
   BLOG POSTS AND ARCHIVES
============================================================ */
.blog-single,
.blog-archive {
    background: var(--off-white);
}

.blog-hero {
    padding: 72px 0;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 20%, rgba(232, 65, 50, 0.19), transparent 30%),
        linear-gradient(135deg, #080808 0%, #15100f 100%);
}

.blog-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 56px;
    align-items: center;
}

.blog-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 22px;
    color: #bcbcbc;
    font-size: 13px;
}

.blog-breadcrumbs a:hover {
    color: var(--white);
}

.blog-category {
    display: inline-flex;
    margin-bottom: 17px;
    padding: 7px 13px;
    border: 1px solid rgba(232, 65, 50, 0.55);
    border-radius: var(--radius-pill);
    color: #ff8a80;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.blog-hero h1,
.blog-archive-hero h1 {
    max-width: 820px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(40px, 5.2vw, 66px);
    line-height: 1.02;
    letter-spacing: -0.025em;
}

.blog-deck {
    max-width: 720px;
    margin-top: 22px;
    color: #d2d2d2;
    font-size: 18px;
    line-height: 1.65;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 11px 24px;
    margin-top: 26px;
    color: #b7b7b7;
    font-size: 13px;
}

.blog-meta span {
    position: relative;
}

.blog-meta span:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -14px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--red);
}

.blog-hero-image {
    overflow: hidden;
    aspect-ratio: 1200 / 630;
    border: 5px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-dark);
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-body-section {
    padding: 76px 0 88px;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 790px) 310px;
    justify-content: center;
    gap: 58px;
    align-items: start;
}

.blog-article {
    min-width: 0;
}

.blog-safety-note {
    margin-bottom: 36px;
    padding: 20px 22px;
    border-left: 5px solid var(--red);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: #fff1ef;
    color: #3a2826;
    font-size: 16px;
}

.blog-safety-note strong {
    display: block;
    color: var(--black);
}

.blog-safety-note a {
    color: var(--red-dark);
    font-weight: 800;
}

.blog-content {
    color: #292929;
    font-size: 18px;
    line-height: 1.82;
}

.blog-content > * + * {
    margin-top: 20px;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: var(--black);
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.012em;
}

.blog-content h2 {
    margin-top: 52px;
    padding-top: 5px;
    font-size: clamp(30px, 4vw, 40px);
}

.blog-content h3 {
    margin-top: 35px;
    font-size: 26px;
}

.blog-content h4 {
    margin-top: 28px;
    font-size: 21px;
}

.blog-content ul,
.blog-content ol {
    display: grid;
    gap: 11px;
    margin: 24px 0;
    padding-left: 27px;
}

.blog-content ul {
    list-style: disc;
}

.blog-content ol {
    list-style: decimal;
}

.blog-content li {
    padding-left: 6px;
}

.blog-content li::marker {
    color: var(--red);
    font-weight: 800;
}

.blog-content a {
    color: var(--red-dark);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.blog-content blockquote {
    margin: 32px 0;
    padding: 25px 28px;
    border-left: 5px solid var(--red);
    background: var(--white);
    box-shadow: var(--shadow-card);
    font-size: 20px;
    font-weight: 600;
}

.blog-content img {
    margin: 34px auto;
    border-radius: var(--radius-md);
}

.blog-content .wp-caption {
    max-width: 100%;
}

.blog-content .wp-caption-text {
    margin-top: 8px;
    color: var(--gray-text);
    font-size: 13px;
    text-align: center;
}

.blog-content details {
    margin-top: 12px;
    padding: 18px 20px;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.blog-content summary {
    cursor: pointer;
    color: var(--black);
    font-weight: 800;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 50px;
    padding-top: 28px;
    border-top: 1px solid var(--gray-border);
}

.blog-tags strong {
    margin-right: 3px;
}

.blog-tags a {
    padding: 6px 11px;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--gray-text);
    font-size: 13px;
}

.blog-author-box {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 20px;
    margin-top: 34px;
    padding: 28px;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.blog-author-mark {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 20px;
}

.blog-author-box h2 {
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: 23px;
}

.blog-author-box p {
    color: var(--gray-text);
    font-size: 14px;
    line-height: 1.7;
}

.blog-author-box .blog-updated {
    margin-top: 8px;
    color: #777;
    font-size: 12px;
    font-weight: 700;
}

.blog-sidebar {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 24px;
}

.blog-call-card,
.blog-sidebar-links {
    padding: 28px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.blog-call-card {
    border-top: 5px solid var(--red);
}

.blog-call-kicker {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.blog-call-card h2,
.blog-sidebar-links h2 {
    margin: 8px 0 12px;
    font-family: var(--font-display);
    font-size: 27px;
    line-height: 1.1;
}

.blog-call-card p {
    color: var(--gray-text);
    font-size: 14px;
    line-height: 1.65;
}

.blog-call-button {
    display: block;
    margin: 21px 0 12px;
    padding: 13px 16px;
    border-radius: var(--radius-pill);
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    text-align: center;
}

.blog-call-button:hover {
    background: var(--red-dark);
}

.blog-call-card small {
    display: block;
    color: #777;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.blog-sidebar-links {
    display: grid;
}

.blog-sidebar-links h2 {
    margin-top: 0;
}

.blog-sidebar-links a {
    padding: 11px 0;
    border-bottom: 1px solid var(--gray-border);
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

.blog-sidebar-links a:last-child {
    border-bottom: 0;
}

.blog-sidebar-links a:hover {
    color: var(--red);
}

.blog-related-section,
.blog-archive-content {
    padding: 80px 0;
    background: var(--white);
}

.blog-section-heading {
    margin-bottom: 34px;
    text-align: center;
}

.blog-section-heading span {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-section-heading h2 {
    margin-top: 7px;
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.05;
}

.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.blog-card {
    overflow: hidden;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.blog-card-image {
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 1200 / 630;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 22px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.blog-card:hover .blog-card-image img {
    transform: none;
}

.blog-card-copy {
    padding: 24px;
}

.blog-card-copy > span {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-card-copy h2,
.blog-card-copy h3 {
    margin: 8px 0 10px;
    font-family: var(--font-display);
    font-size: 25px;
    line-height: 1.12;
}

.blog-card-copy p {
    color: var(--gray-text);
    font-size: 14px;
    line-height: 1.65;
}

.blog-read-more {
    display: inline-block;
    margin-top: 16px;
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}

.blog-bottom-cta {
    padding: 75px 0;
    background: var(--red);
    color: var(--white);
    text-align: center;
}

.blog-bottom-cta span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-bottom-cta h2 {
    margin-top: 7px;
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 54px);
    line-height: 1.05;
}

.blog-bottom-cta p {
    margin: 12px auto 24px;
    color: #ffe1de;
}

.blog-bottom-cta a {
    display: inline-flex;
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--red-dark);
    font-weight: 800;
}

.blog-archive-hero {
    padding: 80px 0;
    background: var(--black);
    color: var(--white);
    text-align: center;
}

.blog-archive-hero h1 {
    margin: 0 auto;
}

.blog-archive-hero p {
    max-width: 680px;
    margin: 20px auto 0;
    color: #c9c9c9;
    font-size: 17px;
}

.blog-pagination {
    margin-top: 50px;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.blog-pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-pill);
    background: var(--white);
    font-weight: 700;
}

.blog-pagination .current,
.blog-pagination a:hover {
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
}

.blog-empty {
    padding: 80px 20px;
    text-align: center;
}

/* ============================================================
   HOMEPAGE LATEST POSTS
============================================================ */
.homepage-posts-section {
    padding: 92px 0;
    background: var(--white);
}

.homepage-posts-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.homepage-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.homepage-post-card {
    overflow: hidden;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    background: var(--off-white);
    box-shadow: var(--shadow-card);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.homepage-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
}

.homepage-post-image {
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 1200 / 630;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 21px;
}

.homepage-post-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.homepage-post-card:hover .homepage-post-image img {
    transform: none;
}

.homepage-post-copy {
    display: flex;
    flex-direction: column;
    min-height: 290px;
    padding: 25px;
}

.homepage-post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 14px;
    margin-bottom: 10px;
    color: #777;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.homepage-post-meta span {
    color: var(--red);
}

.homepage-post-copy h3 {
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 25px;
    line-height: 1.12;
}

.homepage-post-copy h3 a:hover {
    color: var(--red);
}

.homepage-post-copy p {
    margin-bottom: 20px;
    color: var(--gray-text);
    font-size: 14px;
    line-height: 1.65;
}

.homepage-post-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}

.homepage-post-link:hover {
    gap: 9px;
}

.homepage-posts-cta {
    margin-top: 42px;
    text-align: center;
}

.homepage-posts-cta a {
    display: inline-flex;
    padding: 13px 23px;
    border: 2px solid var(--black);
    border-radius: var(--radius-pill);
    color: var(--black);
    font-weight: 800;
}

.homepage-posts-cta a:hover {
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
}

@media (max-width: 1020px) {
    .blog-hero-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero-image {
        max-width: 720px;
    }

    .blog-layout {
        grid-template-columns: minmax(0, 790px);
    }

    .blog-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

    .homepage-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .homepage-post-card:nth-child(n + 3) {
        display: none;
    }
}

@media (max-width: 760px) {
    .blog-hero {
        padding: 50px 0;
    }

    .blog-hero-grid {
        gap: 34px;
    }

    .blog-hero h1,
    .blog-archive-hero h1 {
        font-size: clamp(36px, 11vw, 48px);
    }

    .blog-body-section {
        padding: 50px 0 60px;
    }

    .blog-layout {
        gap: 38px;
    }

    .blog-content {
        font-size: 17px;
        line-height: 1.75;
    }

    .blog-content h2 {
        margin-top: 42px;
        font-size: 31px;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-card-grid {
        grid-template-columns: 1fr;
    }

    .blog-author-box {
        grid-template-columns: 1fr;
    }

    .blog-related-section,
    .blog-archive-content {
        padding: 60px 0;
    }

    .homepage-posts-section {
        padding: 64px 0;
    }

    .homepage-post-copy {
        min-height: 270px;
        padding: 22px;
    }
}

@media (max-width: 560px) {
    .homepage-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* 2026 content strategy blocks */
.strategy-section,
.strategy-answer-box {
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.strategy-section {
    padding: 72px 0;
}

.strategy-section .content-inner,
.strategy-answer-box {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.strategy-answer-box {
    margin-top: 34px;
    margin-bottom: 34px;
    padding: 30px;
}

.strategy-answer-box h3 {
    margin-top: 0;
    margin-bottom: 14px;
}

.strategy-checklist {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.strategy-checklist li {
    position: relative;
    padding: 14px 16px 14px 44px;
    border-radius: 16px;
    background: #f7f7f7;
    color: #333;
}

.strategy-checklist li::before {
    content: "✓";
    position: absolute;
    left: 16px;
    top: 14px;
    color: #ef3b31;
    font-weight: 900;
}

@media (max-width: 760px) {
    .strategy-section {
        padding: 54px 0;
    }

    .strategy-answer-box {
        padding: 22px;
        border-radius: 20px;
    }
}
