/*
Theme Name: Next Step Digital
Theme URI: https://next-step-digital.co.uk
Author: Next Step Digital Consultancy
Author URI: https://next-step-digital.co.uk
Description: Independent digital marketing consultancy theme — v2.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nextstepdigi
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
    --blue:        #0275d3;
    --blue-dark:   #0155a0;
    --blue-light:  #eff6ff;
    --blue-border: #bfdbfe;
    --navy:        #0e1f3d;
    --navy-light:  #162b55;
    --slate:       #334155;
    --slate-mid:   #475569;
    --slate-light: #64748b;
    --border:      #e2e8f0;
    --bg:          #f8fafc;
    --white:       #ffffff;

    --font-heading: 'Sora', sans-serif;
    --font-body:    'Inter', sans-serif;

    --radius:    6px;
    --radius-lg: 12px;
    --radius-xl: 18px;

    --shadow-sm: 0 1px 4px rgba(14,31,61,0.06);
    --shadow:    0 4px 20px rgba(14,31,61,0.08);
    --shadow-lg: 0 12px 48px rgba(14,31,61,0.12);

    --transition: 0.22s ease;
    --max-w:      1160px;
    --max-w-text: 720px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--slate);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
    color: var(--navy);
}

ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container--text { max-width: var(--max-w-text); }

section { padding-block: clamp(4.5rem, 9vw, 7rem); }

/* =============================================
   UTILITIES
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn--primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
.btn--primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(2,117,211,0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--slate);
    border-color: var(--border);
}
.btn--ghost:hover {
    border-color: var(--slate-mid);
    color: var(--navy);
    background: var(--bg);
}

.btn--ghost-white {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.3);
}
.btn--ghost-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: var(--white);
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--blue);
    display: block;
    margin-bottom: 0.85rem;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--slate-mid);
    line-height: 1.75;
    max-width: 600px;
}

.text-center { text-align: center; }
.text-center .section-intro { margin-inline: auto; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 2rem;
}

.site-logo img { height: 38px; width: auto; }

.site-nav ul { display: flex; align-items: center; gap: 0.1rem; }

.site-nav a {
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.site-nav a:hover,
.site-nav .current-menu-item a {
    color: var(--blue);
    background: var(--blue-light);
}

.header-cta { flex-shrink: 0; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.4rem;
}
.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
    display: block;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    background: var(--navy);
    color: var(--white);
    padding-block: clamp(5rem, 11vw, 8.5rem);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(2,117,211,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(22,43,85,0.6) 0%, transparent 60%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
    content: '';
    width: 24px;
    height: 1.5px;
    background: #93c5fd;
    border-radius: 1px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.9rem;
    max-width: 580px;
    line-height: 1.7;
}

.hero-body {
    font-size: 0.975rem;
    color: rgba(255,255,255,0.5);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

/* =============================================
   WHO WE HELP
   ============================================= */
.who { background: var(--bg); border-bottom: 1px solid var(--border); }

.who-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.who-content .section-intro { margin-bottom: 2rem; }

.audience-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.75rem; }

.audience-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.925rem;
    color: var(--slate);
}

.audience-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
}

.audience-list--secondary li::before { background: var(--slate-light); }
.audience-list--secondary li { color: var(--slate-mid); }

.audience-divider {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-light);
    margin: 0.25rem 0 0.75rem;
}

.who-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    box-shadow: var(--shadow);
}

.who-panel-heading { font-size: 0.95rem; margin-bottom: 1.25rem; }

.challenge-list { display: flex; flex-direction: column; gap: 0.75rem; }

.challenge-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.5;
}

.challenge-item svg { width: 14px; height: 14px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }

/* =============================================
   CHALLENGES
   ============================================= */
.challenges { background: var(--white); }

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 3.5rem;
}

.challenge-cell {
    background: var(--white);
    padding: 2rem 1.75rem;
    transition: background var(--transition);
}

.challenge-cell:hover { background: var(--bg); }

.challenge-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue-border);
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.challenge-cell h3 { font-size: 0.975rem; margin-bottom: 0.45rem; }
.challenge-cell p { font-size: 0.85rem; color: var(--slate-mid); line-height: 1.6; }

.challenges-footer {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: var(--blue-light);
    border: 1px solid var(--blue-border);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.65;
}

/* =============================================
   SERVICES
   ============================================= */
.services { background: var(--bg); }

.services-intro { margin-bottom: 3rem; }

.services-stack { display: flex; flex-direction: column; gap: 1rem; }

.service-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.service-item:hover { border-color: var(--blue-border); }
.service-item.open { border-color: var(--blue-border); box-shadow: var(--shadow); }

.service-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.5rem 1.75rem;
    cursor: pointer;
}

.service-num {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--blue);
    background: var(--blue-light);
    border: 1px solid var(--blue-border);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    white-space: nowrap;
}

.service-header-text h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.service-header-text p { font-size: 0.83rem; color: var(--slate-mid); }

.service-toggle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.service-toggle svg { width: 12px; height: 12px; color: var(--slate-mid); transition: transform var(--transition); }

.service-item.open .service-toggle { background: var(--blue); border-color: var(--blue); }
.service-item.open .service-toggle svg { color: var(--white); transform: rotate(45deg); }

.service-body { display: none; border-top: 1px solid var(--border); }
.service-item.open .service-body { display: block; }

.service-body-inner {
    padding: 1.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-examples h4,
.service-outcome h4 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--slate-light);
    margin-bottom: 0.75rem;
}

.service-examples ul { display: flex; flex-direction: column; gap: 0.45rem; }

.service-examples li {
    font-size: 0.875rem;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-examples li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
}

.service-outcome-text {
    background: var(--bg);
    border-left: 3px solid var(--blue);
    padding: 1rem 1.1rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.65;
}

/* =============================================
   HOW WE WORK
   ============================================= */
.how { background: var(--white); }

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.how-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: all var(--transition);
}

.how-card:hover {
    border-color: var(--blue-border);
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.how-card-label {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.how-card-desc { font-size: 0.875rem; color: var(--slate-mid); margin-bottom: 1.25rem; line-height: 1.6; }

.how-card ul { display: flex; flex-direction: column; gap: 0.4rem; }

.how-card li {
    font-size: 0.84rem;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.how-card li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--slate-light);
    flex-shrink: 0;
}

.how-footer {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.925rem;
    color: var(--slate-mid);
    line-height: 1.65;
    text-align: center;
}

/* =============================================
   WHY
   ============================================= */
.why { background: var(--bg); border-top: 1px solid var(--border); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.why-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}

.why-card:hover { border-color: var(--blue-border); box-shadow: var(--shadow-sm); }

.why-card-icon {
    width: 38px;
    height: 38px;
    background: var(--blue-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.why-card-icon svg { width: 17px; height: 17px; color: var(--blue); }

.why-card h3 { font-size: 1rem; margin-bottom: 0.45rem; }
.why-card p { font-size: 0.875rem; color: var(--slate-mid); line-height: 1.65; }

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--white); }

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content p {
    font-size: 0.975rem;
    color: var(--slate);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-visual {
    background: var(--navy);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    color: var(--white);
}

.about-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.78);
    font-style: italic;
    margin-bottom: 1.75rem;
    padding-left: 1.25rem;
    border-left: 2px solid var(--blue);
}

.about-details { display: flex; flex-direction: column; gap: 0.55rem; }

.about-detail {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-detail::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--blue);
    border-radius: 50%;
    flex-shrink: 0;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    background: var(--navy);
    color: var(--white);
    padding-block: clamp(4rem, 8vw, 6rem);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(2,117,211,0.15) 0%, transparent 65%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.cta-text h2 {
    color: var(--white);
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.cta-text p { color: rgba(255,255,255,0.6); font-size: 1rem; line-height: 1.7; max-width: 480px; }

.cta-actions { display: flex; flex-direction: column; gap: 0.65rem; align-items: flex-start; flex-shrink: 0; }

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--bg); }

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-lede { font-size: 0.975rem; color: var(--slate-mid); margin-bottom: 2rem; line-height: 1.7; }

.contact-detail { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; }

.contact-detail-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-icon svg { width: 14px; height: 14px; color: var(--blue); }

.contact-detail strong { font-size: 0.8rem; color: var(--navy); display: block; font-weight: 600; }
.contact-detail span, .contact-detail a { font-size: 0.875rem; color: var(--slate-mid); }

.contact-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--navy); }

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.7rem 0.95rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--slate);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(2,117,211,0.1);
}

.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; justify-content: center; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.6); }
.footer-main { padding-block: clamp(3rem, 6vw, 5rem); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand img { height: 30px; margin-bottom: 1.1rem; }

.footer-brand p { font-size: 0.84rem; line-height: 1.7; max-width: 260px; margin-bottom: 0.5rem; }

.footer-tagline {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    font-style: italic;
    margin-bottom: 1.5rem;
    max-width: 260px;
    line-height: 1.6;
}

.footer-socials { display: flex; gap: 0.5rem; }

.social-link {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.45);
    transition: all var(--transition);
}

.social-link:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.social-link svg { width: 13px; height: 13px; }

.footer-col h4 {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
}

.footer-col ul li + li { margin-top: 0.5rem; }

.footer-col a { font-size: 0.84rem; color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-block: 1.5rem; }

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p { font-size: 0.77rem; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.77rem; color: rgba(255,255,255,0.28); transition: color var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.65); }

/* =============================================
   BLOG
   ============================================= */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }

.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-border); }

.post-thumb { aspect-ratio: 16/9; background: var(--bg); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-thumb img { transform: scale(1.04); }

.post-body { padding: 1.5rem; }

.post-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; font-size: 0.77rem; color: var(--slate-light); }
.post-meta .cat { color: var(--blue); font-weight: 600; }
.post-body h3 { font-size: 1.05rem; margin-bottom: 0.45rem; line-height: 1.35; }
.post-body h3 a { color: var(--navy); }
.post-body h3 a:hover { color: var(--blue); }
.post-body p { font-size: 0.85rem; color: var(--slate-mid); line-height: 1.6; }

/* =============================================
   PAGE TEMPLATES
   ============================================= */
.page-hero { background: var(--navy); color: var(--white); padding-block: clamp(3rem, 6vw, 5rem); }

.page-hero h1 {
    color: var(--white);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    margin-bottom: 0.65rem;
    letter-spacing: -0.025em;
}

.page-hero p { color: rgba(255,255,255,0.55); font-size: 1rem; }

.page-content { padding-block: 4rem; }

.content-area h2, .content-area h3 { margin-top: 2rem; margin-bottom: 0.65rem; }
.content-area p + p { margin-top: 0.9rem; }
.content-area ul { list-style: disc; padding-left: 1.5rem; }
.content-area ul li + li { margin-top: 0.35rem; }

/* =============================================
   BLOG POST — single.php
   ============================================= */

/* Post header */
.post-header { padding-block: clamp(3rem, 6vw, 5rem); background: var(--navy); }

.post-header-inner { max-width: 760px; }

.post-category-link {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 1.1rem;
    text-decoration: none;
}

.post-category-link:hover { color: var(--white); }

.post-header h1 {
    color: var(--white);
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.post-meta-bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

.post-meta-item svg { width: 13px; height: 13px; }

.post-meta-divider {
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
}

/* Post layout */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
    align-items: start;
    padding-block: clamp(3rem, 6vw, 5rem);
}

/* Post body */
.post-body { min-width: 0; }

.post-featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.post-featured-image img { width: 100%; height: auto; display: block; }

/* Post content typography */
.post-content { font-size: 1rem; line-height: 1.8; color: var(--slate); }

.post-content > * + * { margin-top: 1.4rem; }

.post-content h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-content h2:first-child { border-top: none; padding-top: 0; }

.post-content h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.post-content p { color: var(--slate); }

.post-content ul,
.post-content ol {
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li { color: var(--slate); line-height: 1.7; }

.post-content strong { color: var(--navy); font-weight: 700; }

.post-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--blue-dark); }

.post-content blockquote {
    border-left: 3px solid var(--blue);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--blue-light);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.post-content blockquote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--slate);
    margin: 0;
}

/* Key takeaway box — added via importer or manually in editor */
.post-takeaway {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
}

.post-takeaway-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
    display: block;
    margin-bottom: 0.75rem;
}

.post-takeaway ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.post-takeaway li {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.82);
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    line-height: 1.6;
}

.post-takeaway li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 7px;
}

/* Post CTA box */
.post-cta-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 3rem;
}

.post-cta-box-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    display: block;
    margin-bottom: 0.65rem;
}

.post-cta-box h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.post-cta-box p {
    font-size: 0.9rem;
    color: var(--slate-mid);
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

/* Post footer */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-back-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-back-link svg { width: 14px; height: 14px; }
.post-back-link:hover { color: var(--blue-dark); }

.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.post-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-mid);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    text-decoration: none;
    transition: all var(--transition);
}

.post-tag:hover {
    background: var(--blue-light);
    border-color: var(--blue-border);
    color: var(--blue);
}

/* Sidebar */
.post-sidebar { position: sticky; top: 88px; }

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.sidebar-widget-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-light);
    margin-bottom: 1rem;
    display: block;
}

/* Table of contents */
.toc-list { display: flex; flex-direction: column; gap: 0; }

.toc-item a {
    display: block;
    font-size: 0.84rem;
    color: var(--slate-mid);
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: color var(--transition);
    line-height: 1.45;
}

.toc-item:last-child a { border-bottom: none; }
.toc-item a:hover { color: var(--blue); }
.toc-item a.active { color: var(--blue); font-weight: 600; }

/* Sidebar CTA */
.sidebar-cta {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.sidebar-cta p {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    margin-bottom: 1.1rem;
}

.sidebar-cta .btn { width: 100%; justify-content: center; font-size: 0.85rem; padding: 0.7rem 1rem; }

/* Related posts */
.related-posts { background: var(--bg); padding-block: clamp(3rem, 5vw, 4rem); border-top: 1px solid var(--border); }

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Blog listing */
.blog-header { background: var(--navy); padding-block: clamp(3rem, 6vw, 5rem); }

.blog-header h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.025em; margin-bottom: 0.65rem; }
.blog-header p { color: rgba(255,255,255,0.55); font-size: 1rem; }

/* Post responsive */
@media (max-width: 900px) {
    .post-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .post-sidebar { position: static; display: none; }
    .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* =============================================
   NOTICE
   ============================================= */
.notice { padding: 0.9rem 1.1rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem; }
.notice--success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.notice--error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .challenges-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .who-inner, .about-inner { grid-template-columns: 1fr; gap: 3rem; }
    .cta-inner { grid-template-columns: 1fr; gap: 2rem; }
    .cta-actions { flex-direction: row; }
}

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

    .site-nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 76px; /* JS overrides this via inline style on open */
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        padding: 0.5rem 1.25rem 3rem;
        z-index: 9999;
        border-top: 2px solid #e2e8f0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav.open ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .site-nav.open li { display: block; width: 100%; }

    .site-nav.open a {
        display: block;
        padding: 1rem 0.75rem;
        font-size: 1.1rem;
        font-weight: 500;
        color: #0e1f3d;
        background: transparent;
        border-bottom: 1px solid #f1f5f9;
        text-decoration: none;
        width: 100%;
    }

    .site-nav.open li:last-child a { border-bottom: none; }

    .site-nav.open a:hover,
    .site-nav.open a:active {
        color: #0275d3;
        background: #eff6ff;
    }

    .how-grid { grid-template-columns: 1fr; }
    .challenges-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
    .contact-inner { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .service-body-inner { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; }
}
