/*
Theme Name: Lakeview Brands
Description: Premium Agency Skin (2025 Refine) - Focused on conversion & trust.
Version: 5.1 - Ultra Fidelity
*/

/* =========================================
   0. IMPORTS (PREMIUM TYPOGRAPHY)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@500;600;700;800&display=swap');



/* 1. Box sizing rules: Makes width/height calculations predictable */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margins and padding for a clean slate */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

/* 3. Remove list styles on index/nav elements where we usually use Flexbox */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 4. Set core root defaults */
html {
  scroll-behavior: smooth;
}

/* 5. Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* 6. A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* 7. Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* 8. Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* 9. Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}



/* =========================================
   1. VARIABLES (THEME CONFIG)
   ========================================= */
:root {
    /* Brand Colors - Refined for "Tech/Nature" Vibe */
    --color-primary: #0077b6;        /* Lakeview Blue */
    --color-primary-dark: #023e8a;   /* Richer Dark Blue */
    --color-primary-darker: #0f172a; /* Nearly Black Blue (High Contrast) */
    
    /* Accent - Adjusted for high visibility but premium feel */
    --color-accent: #ffb703;          
    --color-accent-hover: #ffaa00;
    --color-accent-gradient: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
    
    /* Backgrounds */
    --color-bg-body: #ffffff;
    --color-bg-offset: #f8fafc;      /* Cool gray-white for sections */
    --color-bg-dark: #0b1120;        /* Deepest slate for footer */

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --text-main: #334155;            /* Slate 700 - Softer than black */
    --text-light: #64748b;           /* Slate 500 */
    --text-muted: #94a3b8;           /* Slate 400 */

    /* Layout & Spacing */
    --width-container: 1000px;       /* Wide standard */
    --spacing-section: 120px;        /* Luxurious whitespace */
    --spacing-gutter: 24px;

    /* Modern UI Elements */
    --radius-sm: 8px;
    --radius-card: 20px;             /* Smoother corners */
    --radius-pill: 100px;            
    
    /* Depth System (The "Expensive" Look) */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01); 
    --shadow-hover: 0 25px 50px -12px rgba(0, 119, 182, 0.15);
    --shadow-glow: 0 0 20px rgba(255, 183, 3, 0.3); 
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
*, *:before, *:after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for sticky header */
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg-body);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 17px;
    line-height: 1.75;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-darker);
    margin: 0 0 1.5rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em; /* Tighter tracking looks more modern */
}

h1 { font-size: clamp(3rem, 6vw, 4.5rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: 1.25rem; font-weight: 600; }



.entry-content h2,
.entry-content h3 {
	margin-top: 1em;
	margin-bottom .5em;
}

.enter-content ol {
	margin-left: 1em;
}

ol {
    display: flow-root; 
}

p { margin-bottom: 1.5rem; color: var(--text-light);  }

a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
a:hover { color: var(--color-primary-dark); }

/* =========================================
   3. UTILITIES & BUTTONS
   ========================================= */
.container {
    width: 100%;
    max-width: var(--width-container);
    margin: 0 auto;
    padding: 0 var(--spacing-gutter);
}

/* The "Glow" Button */
.button, .cta-button, .local-btn, .read-more.button, .wpforms-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-gradient);
    color: #0f172a; /* Dark text for contrast */
    padding: 18px 36px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

/* Shine Effect on Hover */
.button::after, .cta-button::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.button:hover::after, .cta-button:hover::after { left: 150%; }

.button:hover, .cta-button:hover, .local-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -5px rgba(255, 183, 3, 0.5);
}

.button-outline {
    display: inline-flex;
    padding: 16px 34px;
    background: transparent;
    color: var(--color-primary-dark);
    border: 2px solid rgba(0, 119, 182, 0.2);
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all 0.3s ease;
}

.button-outline:hover {
    border-color: var(--color-primary);
    background: rgba(0, 119, 182, 0.05);
    color: var(--color-primary);
    transform: translateY(-3px);
}

/* =========================================
   4. GLASS HEADER
   ========================================= */
.header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--color-primary-darker);
    letter-spacing: -0.05em;
    font-weight: 800;
}

.site-tagline { display: none; } 

/* Nav Links */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.main-navigation a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.main-navigation a:hover {
    background-color: var(--color-bg-offset);
    color: var(--color-primary);
}

.toggleMenu { display: none; background:none; border:none; cursor: pointer; }

/* =========================================
   5. HERO SECTION (High Impact)
   ========================================= */
.home-hero {
    /* Subtle mesh gradient for depth */
    background: radial-gradient(circle at 10% 20%, rgb(240, 246, 252) 0%, rgb(255, 255, 255) 90%);
    padding: 140px 0 160px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Abstract Background Shapes */
.home-hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(0,119,182,0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    animation: pulse 10s infinite alternate;
}
.home-hero::after {
    content: '';
    position: absolute;
    bottom: -10%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255, 183, 3, 0.05) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

@keyframes pulse { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }

.hero-title {
    position: relative;
    max-width: 900px;
    margin: 0 auto 30px;
    color: var(--color-primary-darker);
    z-index: 1;
}

.hero-sub {
    position: relative;
    font-size: 1.4rem;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 50px;
    color: var(--text-light);
    z-index: 1;
}

.hero-cta {
    position: relative;
    display: flex;
    gap: 20px;
    justify-content: center;
    z-index: 1;
}

/* =========================================
   6. TRUST BAR
   ========================================= */
.trust-bar {
    background: #fff;
    padding: 60px 0;
    border-bottom: 1px solid var(--color-bg-offset);
}

.trust-intro {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.trust-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
    opacity: 0.8;
}

.trust-item img {
    max-height: 35px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.trust-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* =========================================
   7. SERVICES & BLOG (The "Card" System)
   ========================================= */
.home-services { background-color: #fff; padding: var(--spacing-section) 0; }
.home-blog { background-color: #fff; padding: var(--spacing-section) 0 80px; }

.section-header { text-align: center; margin-bottom: 80px; }
.section-title { font-size: 2.8rem; margin-bottom: 20px; }
.section-sub { font-size: 1.25rem; color: var(--text-light); }
.section-divider {
    width: 60px; height: 6px; 
    background: var(--color-accent); 
    margin: 25px auto 0; 
    border-radius: 20px;
}

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

/* Universal Card Styling */
.service-card, .articles-box {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    position: relative;
    top: 0;
}

.service-card:hover, .articles-box:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 119, 182, 0.1);
}

.service-image-wrapper, .articles-thumb {
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
}

.service-image-wrapper img, .articles-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover img, .articles-box:hover img {
    transform: scale(1.08);
}

.service-content-inner, .articles-content { 
    padding: 35px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start;
}

.service-content-inner h4, .post-item-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-primary-darker);
    line-height: 1.3;
}

.post-item-title a { color: inherit; }
.post-item-title a:hover { color: var(--color-primary); }

.entry-summary, .service-content-inner p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.entry-meta-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent-hover);
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.articles-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.service-link, .read-more {
    margin-top: auto;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.read-more.button { 
    color: var(--color-primary-darker); 
    padding: 12px 24px; 
    font-size: 0.9rem;
    width: auto;
}

/* =========================================
   8. FAQ SECTION
   ========================================= */
.home-faq {
    background-color: var(--color-bg-offset);
    padding: var(--spacing-section) 0;
    position: relative;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}
.faq-item:hover { transform: translateY(-5px); }

.faq-question { 
    font-size: 1.2rem; 
    color: var(--color-primary-dark); 
    margin-bottom: 15px;
}
.faq-answer { margin-bottom: 0; font-size: 1rem; }

/* =========================================
   9. LOCAL SIGNAL (The "Power" Section)
   ========================================= */
.local-signal {
    background: var(--color-primary-darker);
    padding: 100px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Texture overlay for local signal */
.local-signal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.local-title { 
    color: #fff; 
    margin-bottom: 50px; 
    font-size: 2.5rem;
    position: relative; 
}

.local-areas-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
    margin-bottom: 60px;
    position: relative;
}

.city-link {
    color: #fff;
    background: rgba(255,255,255,0.08);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.city-link:hover {
    background: #fff;
    color: var(--color-primary-darker);
    transform: scale(1.05);
}

.local-btn {
    background: #fff;
    color: var(--color-primary-darker);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 2;
    position: relative;
}
.local-btn:hover { color: var(--color-primary); }

/* =========================================
   10. FOOTER (Modern Dark)
   ========================================= */
#footer-wrapper {
    background-color: var(--color-bg-dark);
    color: #94a3b8;
    padding: 100px 0 0;
    font-size: 0.95rem;
}

.footer-logo { margin-bottom: 30px; filter: brightness(0) invert(1); opacity: 0.9; }

.footer-heading {
    color: #f8fafc;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

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

.footer-about-text p { color: #cbd5e1; }

.recent-post-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 25px;
}
.recent-post-item:last-child { border: none; }

.recent-post-thumb {
    width: 80px; height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.post-title-link h4 {
    font-size: 1rem;
    color: #f1f5f9;
    margin: 0 0 8px;
    line-height: 1.4;
    font-weight: 600;
}
.post-date { font-size: 0.8rem; color: #64748b; }

.contact-info-block div { margin-bottom: 20px; }
.footer-contact-label { color: #fff; display: block; margin-bottom: 5px; font-weight: 600; }
.footer-phone-link, .footer-email-link { 
    color: #cbd5e1; font-size: 1.1rem; display: block; margin-top: 5px; 
}
.footer-directions-link { color: var(--color-accent); font-weight: 600; font-size: 0.9rem; }

/* Copyright */
.copyright-wrapper {
    background-color: rgba(0,0,0,0.2);
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.copyright-flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-menu { display: flex; gap: 25px; margin: 0; padding: 0; list-style: none; }
.legal-menu a { color: #64748b; font-size: 0.9rem; transition: color 0.2s; }
.legal-menu a:hover { color: #fff; }

/* =========================================
   11. RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .header-inner { flex-wrap: wrap; }
    
    .toggleMenu { 
        display: flex; 
        flex-direction: column; 
        align-items: flex-end;
        margin-left: auto; 
    }
    .toggle-text { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
    
    .main-navigation {
        display: none;
        width: 100vw;
        background: #fff;
        position: absolute;
        top: 100%; left: 0; right: 0;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        padding: 30px var(--spacing-gutter);
        border-top: 1px solid #eee;
        height: 100vh; /* Full screen menu on mobile */
    }
    
    .header-right:focus-within .main-navigation,
    .toggleMenu:focus + .main-navigation { display: block; }

    .main-navigation ul { flex-direction: column; gap: 20px; text-align: center; }
    .main-navigation a { font-size: 1.2rem; display: block; background: var(--color-bg-offset); }
    
    .home-hero { padding: 100px 0; }
    .hero-title { font-size: 2.5rem; }
    .hero-cta { flex-direction: column; }
    .button, .button-outline { width: 100%; }
    
    .copyright-flex-row { flex-direction: column; text-align: center; }
    .legal-menu { flex-wrap: wrap; justify-content: center; }
}

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}

.entry-meta-header {
	font-size: 80%;
	opacity: 90%;
	margin-bottom:.5em;
}


.rank-math-step-content  img {
	float: right;
	margin: 0 0 1em 1em;
}

h2 strong,
h3 strong {
	font-weight: inherit;
}

/* =========================================
   12. AUTHOR BOX (Editorial Style)
   ========================================= */
.author-box-wrapper {
    background-color: #fff;
    padding-bottom: 60px;
}

.author-box {
    background: var(--bg-offset); /* Subtle blue-grey from theme */
    border: 1px solid rgba(0, 119, 182, 0.1);
    border-radius: var(--card-radius);
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Decorative Accent */
.author-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 6px; height: 100%;
    background: var(--color-primary);
	
}

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.author-info h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--color-primary-darker);
}

.author-info p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.author-link {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.author-link:hover {
    color: var(--color-primary-dark);
    transform: translateX(5px);
}

/* Mobile Author Box */
@media (max-width: 768px) {
    .author-box { flex-direction: column; text-align: center; gap: 20px; padding: 30px; }
    .author-box::before { width: 100%; height: 6px; top: 0; left: 0; } /* Top border on mobile */
}

/* =========================================
   13. RANKMATH FAQ BLOCK (Card Style)
   ========================================= */
#rank-math-faq {
    margin: 60px 0;
}

#rank-math-faq .rank-math-list-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--card-radius);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 30px;
}

/* Hover Effect - Lift */
#rank-math-faq .rank-math-list-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: rgba(0, 119, 182, 0.2);
}

/* Question Styling */
.rank-math-question {
    font-family: var(--font-heading);
    color: var(--color-primary-darker);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-left: 30px; /* Space for icon */
    position: relative;
}

/* Q Icon */
.rank-math-question::before {
    content: '?';
    position: absolute;
    left: 0; top: 2px;
    width: 24px; height: 24px;
    background: rgba(0, 119, 182, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
}

.rank-math-answer p {
    margin-bottom: 0;
    color: var(--text-main);
    font-size: 1.05rem;
}

/* =========================================
   14. RANKMATH HOW-TO (The "Process" Look)
   ========================================= */
#rank-math-howto {
    margin: 60px 0;
    counter-reset: step-counter; /* Initialize counter */
}

.rank-math-howto-description {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 40px;
    border-left: 4px solid var(--color-accent);
    padding-left: 20px;
    background: linear-gradient(to right, var(--bg-offset), transparent);
    padding: 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.rank-math-step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

/* Number Badge */
.rank-math-step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    flex-shrink: 0;
    width: 60px; height: 60px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.3);
    border: 4px solid #f0f9ff; /* Ring effect */
}

/* Connecting Line */
.rank-math-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px; left: 28px; /* Center align with badge */
    width: 4px; height: calc(100% - 20px);
    background: #e2e8f0;
    z-index: -1;
}

.rank-math-step-content {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--card-radius);
    padding: 30px;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.rank-math-step-title {
    font-size: 1.4rem;
    color: var(--color-primary-darker);
    margin-bottom: 15px;
}

/* Mobile How-To */
@media (max-width: 768px) {
    .rank-math-step { flex-direction: column; gap: 15px; }
    .rank-math-step::after { display: none; } /* Remove line on mobile */
    .rank-math-step::before { width: 50px; height: 50px; font-size: 1.2rem; }
}


/* =========================================
   15. PAGE CTA (Conversion Magnet)
   ========================================= */
.page-cta-wrapper {
    margin: 80px 0 100px; /* Generous spacing to separate from content */
    padding: 0 var(--spacing-gutter);
}

.cta-box {
    /* Deep Gradient Background */
    background: linear-gradient(135deg, var(--color-primary-darker) 0%, var(--color-primary) 100%);
    border-radius: 30px; /* Extra rounded for a modern feel */
    padding: 80px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 119, 182, 0.35); /* Deep, expensive shadow */
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Abstract Background Texture (Subtle Noise) */
.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
    mix-blend-mode: overlay;
    z-index: 0;
}

/* Glow Effect */
.cta-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.cta-box h2 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.03em;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Button override specifically for inside the dark CTA */
.cta-box .cta-button {
    position: relative;
    z-index: 1;
    padding: 20px 45px;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Stronger shadow for depth */
}

.cta-box .cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 183, 3, 0.5); /* Golden glow on hover */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .cta-box {
        padding: 60px 24px;
        border-radius: 20px;
    }
    .cta-box h2 { margin-bottom: 15px; }
    .cta-box p { font-size: 1.1rem; margin-bottom: 30px; }
    .cta-box .cta-button { width: 100%; }
}


.local-proof {
	margin-top: 5em;
	margin-bottom: 2em;
	text-align: center;
}

/* --- LAKEVIEW BRANDS AUDIT FORM STYLING --- */

/* 1. The Container "Card" Look 
   Makes the form pop off the page like a valuable software tool. */
#wpforms-100975 {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1); /* Soft, expensive shadow */
    max-width: 600px; /* Keeps it readable */
    margin: 0 auto;   /* Centers it */
}

/* 2. The Labels 
   Makes them easy to scan. */
div.wpforms-container-full .wpforms-form .wpforms-field-label {
    font-weight: 700;
    color: #1e293b; /* Dark slate text */
    font-size: 15px;
    margin-bottom: 8px;
    display: block;
}

/* 3. The Inputs (The "Tactile" Feel) 
   Removes the default borders and adds a modern background. */
div.wpforms-container-full .wpforms-form input[type=text],
div.wpforms-container-full .wpforms-form input[type=email],
div.wpforms-container-full .wpforms-form input[type=url],
div.wpforms-container-full .wpforms-form input[type=tel],
div.wpforms-container-full .wpforms-form select,
div.wpforms-container-full .wpforms-form textarea {
    background-color: #f8fafc; /* Very light grey/blue */
    border: 2px solid #e2e8f0; /* Match background initially */
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 16px;
    color: #334155;
    transition: all 0.2s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

/* 4. The "Focus" State (Crucial for UX) 
   When a user clicks a field, it glows blue. */
div.wpforms-container-full .wpforms-form input:focus,
div.wpforms-container-full .wpforms-form select:focus,
div.wpforms-container-full .wpforms-form textarea:focus {
    background-color: #ffffff;
    border-color: #3b82f6; /* Bright Tech Blue */
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); /* Soft Blue Glow Ring */
    outline: none;
}

/* 5. The Submit Button (The "Irresistible" Click) */
div.wpforms-container-full .wpforms-form button[type=submit] {
    background: #d32f2f; /* Urgency Red (or use your Brand Blue) */
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 24px;
    border-radius: 6px;
    width: 100%; /* Full width button drives action */
    border: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s ease;
    margin-top: 10px;
}

/* Hover Effect: The button "Lifts" up */
div.wpforms-container-full .wpforms-form button[type=submit]:hover {
    transform: translateY(-3px); /* Moves up */
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3); /* Casts a shadow */
    background-color: #b71c1c; /* Slightly darker on hover */
}

/* 6. Security Assurance Micro-Copy 
   Adds a lock icon below the button via CSS */
div.wpforms-container-full .wpforms-submit-container:after {
    content: "🔒 Your data is secure. 100% Manual Review.";
    display: block;
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin-top: 12px;
    font-weight: 500;
}

/* 7. Mobile Adjustments */
@media (max-width: 600px) {
    #wpforms-100975 {
        padding: 25px 20px;
    }
}

/* Bottom CTA Section Button */
.cta-button-audit {
    display: inline-block;
    background-color: #3b82f6; /* Bright Tech Blue */
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 20px 40px;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); /* Glowing effect */
    border: 2px solid #3b82f6;
}

.cta-button-audit:hover {
    background-color: transparent;
    color: #3b82f6 !important;
    transform: translateY(-5px); /* Big lift */
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.6);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

.wp-block-latest-posts__list li {
	margin-bottom: 2em;
}


/* The card container */
.post-card-optimized {
    position: relative;
    transition: transform 0.2s ease-in-out;
}

/* The "Stretched" link makes the whole card clickable */
.main-card-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1; /* Covers the card */
}

/* Ensure the category link stays on top so it remains clickable */
.category-link {
    position: relative;
    z-index: 2;
}

.post-card-optimized:hover {
    transform: translateY(-4px);
}



body.archive #content {
	margin-bottom: 5em;
}

body.archive .blog-grid {
	margin-top: 5em;
}



.single .page-featured-image {
	margin-top: 1em;
	margin-bottom: 2em;
}

.single .entry-content p,
.single .entry-content ul,
.single .entry-content ol,
.single .entry-content h1, 
.single .entry-content h2, 
.single .entry-content h3, 
.single .entry-content h4, 
.single .entry-content h5, 
.single .entry-content h6 {
	color: rgba( 0,0,0,1 );
	line-height: 125%;
}

.single .entry-content p {
	line-height: 1.75;
}

.single .entry-content h2 {
	font-size: 300%;
	line-height: 1.25;
	margin-right: 20%;
}

.single .entry-content h3 {
	font-size: 200%;
	line-height: 1.25;
	margin-right: 20%;
}

.single .entry-content h4 {
	font-size: 150%;
	line-height: 1.25;
	margin-right: 20%;
}


.single .entry-content ul ul,
.single .entry-content ol ol {
	margin-left: 0px;
}

.single .entry-content ul li,
.single .entry-content ol li {
	margin-bottom: 1em;
	line-height: 1.5;
}


.single .entry-content .newsletter-signup {
	clear: both;
	margin-top: 2em;
	margin-bottom: 2em;
}


.size-medium {
	max-width: 50%;
	height: auto;
}

.size-large {
	width: 100%;
	height: auto;
	margin: 2em 0 2em 0;
}

.size-large img {
	width: 100%;
	height: auto;
}


.alignright {
	float: right;
	margin: 0 0 3em 6em;
}

.alignleft {
	float: left;
	margin: 0 3em 3em 0;
}



.wp-block-rank-math-toc-block {
	margin: 2em 0 2em 0;

	
	font-size: 90%;
	line-height: 120%;
}

.wp-block-rank-math-toc-block h2 {
	margin: 0 0 .25em 0;
	padding: 0;
	font-size: 80%;
}

	.wp-block-rank-math-toc-block ul,
	.wp-block-rank-math-toc-block ol {
		margin: 0 0 0 1em;
		padding: 0;
		list-style: none;
	}

		.wp-block-rank-math-toc-block ul li {
			margin-bottom: 0 !important;
			padding-left: 1em;
		}



	.wp-block-rank-math-toc-block a {
		font-weight: 400;
	}



/* Core Column Layout */
.wp-block-columns.is-layout-flex {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on mobile */
    gap: 2rem;       /* Adjust the space between columns */
    align-items: flex-start;
}

/* Ensure the columns actually take up their basis width */
.wp-block-column {
    flex-grow: 1;
}

/* Mobile Responsiveness */
@media (max-width: 782px) {
    .wp-block-columns.is-layout-flex {
        flex-direction: column; /* Stack on mobile */
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #0072e5; /* Matches your Genesis brand blue */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:not(.is-visible) {
    transform: translateY(20px);
}

.back-to-top:hover {
    background-color: #005bb5;
    transform: translateY(-3px);
}

/* Ensure accessibility for screen readers */
.back-to-top .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}