/* ============================================================
   BASËTHIC — main.css
   All visual styling. No inline styles anywhere in the theme.
   ============================================================ */


/* ------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
    --color-bg:           #0a0a0a;
    --color-bg-card:      #1a1a1a;
    --color-bg-card-alt:  #141414;
    --color-bg-section:   #111111;
    --color-border:       #2a2a2a;
    --color-text:         #f0f0f0;
    --color-text-muted:   #888888;
    --color-accent:       #e8650a;
    --color-accent-hover: #c95508;

    --font-family:         'Inter', sans-serif;
    --font-weight-light:   300;
    --font-weight-regular: 400;
    --font-weight-semi:    600;
    --font-weight-bold:    700;

    --container-max:     1140px;
    --container-narrow:  740px;
    --container-padding: 1.5rem;

    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  6rem;
    --space-2xl: 9rem;

    --header-height: 72px;
    --border-radius: 3px;
}


/* ------------------------------------------------------------
   BASE
   ------------------------------------------------------------ */
html {
    overflow-x: hidden; /* clip lacks iOS Safari < 16 support; hidden is universal */
    width: 100%;
}

body {
    /* Do NOT set overflow-x here — it would make body a scroll container and break position:sticky */
    margin: 0;
    width: 100%;
    max-width: 100%;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family);
    font-weight: var(--font-weight-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* Offset anchors so sticky header doesn't overlap */
[id] {
    scroll-margin-top: calc(var(--header-height) + 1.5rem);
}


/* ------------------------------------------------------------
   LAYOUT — CONTAINERS
   ------------------------------------------------------------ */

/* Prevent grid/flex children from overflowing their tracks */
.problem-grid > *,
.methodology-columns > *,
.service-details > *,
.credentials-grid > *,
.diagnostic-grid > *,
.footer-inner > *,
.stack-row > * {
    min-width: 0;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto !important; /* override WP global-styles inline margin injection */
    padding-inline: var(--container-padding);
    box-sizing: border-box;
}

.container-narrow {
    max-width: var(--container-narrow);
}


/* ------------------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--color-text);
}

p {
    font-weight: var(--font-weight-light);
    color: var(--color-text);
}

a {
    color: var(--color-text);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

strong {
    font-weight: var(--font-weight-semi);
}


/* ------------------------------------------------------------
   EYEBROWS
   ------------------------------------------------------------ */
.eyebrow {
    display: block;
    font-size: 0.6875rem;     /* 11px */
    font-weight: var(--font-weight-semi);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}


/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semi);
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: var(--border-radius);
    border: none;
    line-height: 1.4;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--color-accent-hover);
    color: #ffffff;
}

.link-arrow {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semi);
    color: var(--color-text);
    transition: color 0.2s ease;
}

.link-arrow:hover {
    color: var(--color-accent);
}


/* ------------------------------------------------------------
   SECTION BASE
   ------------------------------------------------------------ */
.section {
    padding-block: var(--space-xl);
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-header-center {
    text-align: center;
}

.section-headline {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-subheadline {
    font-size: 1.125rem;
    font-weight: var(--font-weight-light);
    color: var(--color-text-muted);
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
}

.cta-body {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    width: 100%;
    max-width: 580px;
    margin-inline: auto;
    margin-bottom: var(--space-md);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
}


/* ------------------------------------------------------------
   SITE HEADER / NAV
   ------------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background-color: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.site-logo img {
    height: 36px;
    width: auto;
    display: block;
}

/* Primary nav */
.primary-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-list li a {
    font-size: 0.9375rem;
    font-weight: var(--font-weight-regular);
    color: var(--color-text);
    transition: color 0.2s ease;
}

.nav-list li a:hover {
    color: var(--color-accent);
}

/* Nav CTA button — WordPress assigns "current-menu-item" class; override for CTA */
.nav-list .nav-cta a,
.nav-list li:last-child a.btn-primary {
    padding: 0.5rem 1.125rem;
    background-color: var(--color-accent);
    color: #ffffff;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semi);
}

.nav-list .nav-cta a:hover,
.nav-list li:last-child a.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: #ffffff;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-text);
    transition: transform 0.25s ease, opacity 0.25s ease;
    border-radius: 1px;
}

/* Open state — applied by JS */
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.section-hero {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-border);
}

.hero-headline {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    letter-spacing: -0.02em;
    width: 100%;
    max-width: 800px;
    margin-bottom: 1.25rem;
}

.hero-subheadline {
    font-size: 1.125rem;
    font-weight: var(--font-weight-light);
    color: var(--color-text-muted);
    width: 100%;
    max-width: 580px;
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}


/* ------------------------------------------------------------
   WHAT I FIX — PROBLEM CARDS
   ------------------------------------------------------------ */
.section-what-i-fix {
    background-color: var(--color-bg-section);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.problem-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 2rem;
}

.card-title {
    font-size: 1.0625rem;
    font-weight: var(--font-weight-semi);
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.card-body {
    font-size: 0.9375rem;
    font-weight: var(--font-weight-light);
    color: var(--color-text-muted);
    line-height: 1.7;
}


/* ------------------------------------------------------------
   METHODOLOGY — THREE COLUMNS
   ------------------------------------------------------------ */
.methodology-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.method-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semi);
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.method-body {
    font-size: 0.9375rem;
    font-weight: var(--font-weight-light);
    color: var(--color-text-muted);
    line-height: 1.7;
}


/* ------------------------------------------------------------
   REVENUE SIGNAL AUTOMATION
   ------------------------------------------------------------ */
.section-rsa {
    background-color: var(--color-bg-section);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-rsa .section-headline {
    max-width: 620px;
    margin-bottom: var(--space-md);
}

.rsa-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: var(--space-md);
}

.rsa-body p {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}


/* ------------------------------------------------------------
   SYSTEMS STACK
   ------------------------------------------------------------ */
.stack-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-block: var(--space-md);
}

.stack-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semi);
    color: var(--color-text);
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.stack-note {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}


/* ------------------------------------------------------------
   CLOSING CTA SECTIONS
   ------------------------------------------------------------ */
.section-closing-cta {
    background-color: var(--color-bg-card-alt);
    border-top: 1px solid var(--color-border);
}

.section-closing-cta .section-headline {
    margin-bottom: 1.25rem;
}


/* ------------------------------------------------------------
   PAGE HEADER (inner pages)
   ------------------------------------------------------------ */
.page-header {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.page-headline {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 820px;
    margin-bottom: 1.25rem;
}

.page-subheadline {
    font-size: 1.125rem;
    font-weight: var(--font-weight-light);
    color: var(--color-text-muted);
    width: 100%;
    max-width: 620px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.page-header-about .page-headline {
    max-width: 900px;
}


/* ------------------------------------------------------------
   SERVICES PAGE
   ------------------------------------------------------------ */
.section-service {
    border-bottom: 1px solid var(--color-border);
}

.section-service-alt {
    background-color: var(--color-bg-section);
}

.service-block {
    max-width: 820px;
}

.service-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: var(--font-weight-semi);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: var(--border-radius);
    padding: 0.25rem 0.625rem;
    margin-bottom: 1rem;
}

.service-headline {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.25rem;
}

.service-description {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: var(--space-md);
}

.service-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: var(--space-md);
}

.service-details-label {
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semi);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.875rem;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.service-list li {
    font-size: 0.9375rem;
    color: var(--color-text);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.6;
}

.service-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: var(--font-weight-semi);
}

.service-who p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Primary CTA spacing */
.cta-primary {
    margin-bottom: 32px;
}

/* Diagnostic sub-block within Service 1 — contained next-step panel */
.service-next-step {
    margin-top: 0;
    margin-bottom: 2rem;
    padding: 20px 24px;
    background-color: var(--color-bg-card-alt);
    border: 1px solid var(--color-border);
    border-top: 2px solid rgba(255, 106, 0, 0.7);
    border-radius: var(--border-radius);
}

.service-next-step-label {
    display: block;
    font-size: 11px;
    font-weight: var(--font-weight-semi);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    opacity: 0.6;
    margin-bottom: 8px;
}

.service-next-step-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: 0.875rem;
}

.service-next-step-desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* Secondary CTA inside diagnostic panel */
.service-next-step .cta-secondary {
    margin-top: 16px;
}

.cta-secondary {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    background: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
    border-color: #ff6a00;
    color: #ff6a00;
}


/* ------------------------------------------------------------
   CASE STUDIES PAGE
   ------------------------------------------------------------ */
.section-case-study {
    border-bottom: 1px solid var(--color-border);
}

.section-case-study-alt {
    background-color: var(--color-bg-section);
}

.case-study-block {
    max-width: 820px;
}

.case-study-headline {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-md);
}

.case-study-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.case-study-section-label {
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semi);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.875rem;
}

.case-study-section p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}

.case-study-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.case-study-list li {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.65;
}

.case-study-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: var(--font-weight-semi);
}

/* Hide the empty metrics placeholder divs visually */
.case-study-metrics-placeholder {
    display: none;
}

/* Case study metrics strip */
.case-study-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.case-study-metric {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.metric-value {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    line-height: 1.1;
}

.metric-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.4;
}


/* ------------------------------------------------------------
   ABOUT PAGE
   ------------------------------------------------------------ */
.section-about-body {
    border-bottom: 1px solid var(--color-border);
}

.section-about-body .container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-about-body p {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.section-credentials {
    border-bottom: 1px solid var(--color-border);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.credentials-label {
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semi);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.credentials-item p {
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.6;
}


/* ------------------------------------------------------------
   CONTACT PAGE
   ------------------------------------------------------------ */
.section-diagnostic-includes {
    border-bottom: 1px solid var(--color-border);
}

.section-diagnostic-includes .section-headline {
    margin-bottom: var(--space-md);
}

.diagnostic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.diagnostic-item {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 1.75rem;
}

.diagnostic-item-title {
    font-size: 1.0625rem;
    font-weight: var(--font-weight-semi);
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.diagnostic-item p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Booking section */
.section-booking {
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.section-booking .section-headline {
    margin-bottom: 1rem;
}

.booking-body {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

/* Contact form */
.section-contact-form {
    background-color: var(--color-bg-section);
}

.section-contact-form .section-headline {
    margin-bottom: 0.875rem;
}

.diagnostic-context {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    line-height: 1.7;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.intro-call-list {
    margin-top: 1.5rem;
}

.intro-call-list li {
    margin-bottom: 1rem;
}

.form-intro {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
    margin-bottom: var(--space-md);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: var(--font-weight-semi);
    color: var(--color-text);
}

.form-optional {
    font-weight: var(--font-weight-light);
    color: var(--color-text-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 0.9375rem;
    font-weight: var(--font-weight-light);
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--color-text-muted);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-field 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='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-submit {
    margin-top: 0.5rem;
}

.form-footer-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.6;
}


/* ------------------------------------------------------------
   CONTACT FORM 7 — match theme styles
   ------------------------------------------------------------ */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
    margin-bottom: var(--space-md);
}

.wpcf7-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.wpcf7-form label {
    font-size: 0.875rem;
    font-weight: var(--font-weight-semi);
    color: var(--color-text);
}

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-textarea,
.wpcf7-form .wpcf7-select {
    width: 100%;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 0.9375rem;
    font-weight: var(--font-weight-light);
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.wpcf7-form .wpcf7-text::placeholder,
.wpcf7-form .wpcf7-email::placeholder,
.wpcf7-form .wpcf7-textarea::placeholder {
    color: var(--color-text-muted);
}

.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-email:focus,
.wpcf7-form .wpcf7-textarea:focus,
.wpcf7-form .wpcf7-select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.wpcf7-form .wpcf7-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='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.wpcf7-form .wpcf7-submit {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semi);
    font-family: var(--font-family);
    background-color: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s ease;
    line-height: 1.4;
}

.wpcf7-form .wpcf7-submit:hover {
    background-color: var(--color-accent-hover);
}

.wpcf7-response-output {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9375rem;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.wpcf7-mail-sent-ok {
    border-color: #4a9e6b !important;
    color: #4a9e6b !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    border-color: var(--color-accent) !important;
    color: var(--color-accent) !important;
}

.wpcf7-not-valid-tip {
    font-size: 0.8125rem;
    color: var(--color-accent);
    margin-top: 0.25rem;
}


/* ------------------------------------------------------------
   SITE FOOTER
   ------------------------------------------------------------ */
.site-footer {
    background-color: var(--color-bg-card-alt);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-lg);
    padding-bottom: var(--space-md);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-md);
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    display: block;
    opacity: 0.9;
}

.footer-logo-link:hover .footer-logo-img {
    opacity: 1;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.footer-location {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    list-style: none;
}

.footer-nav-list li a {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.footer-nav-list li a:hover {
    color: var(--color-accent);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    align-items: flex-end;
}

.footer-email,
.footer-linkedin {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.footer-email:hover,
.footer-linkedin:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: 0;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
}


/* ------------------------------------------------------------
   RESPONSIVE — TABLET (max 960px)
   ------------------------------------------------------------ */
@media (max-width: 960px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .methodology-columns {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        max-width: 580px;
        margin-inline: auto;
    }

    .service-details {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .footer-contact {
        align-items: flex-start;
    }
}


/* ------------------------------------------------------------
   RESPONSIVE — MOBILE NAV (max 768px)
   Hamburger activates here so nav doesn't crowd at tablet widths.
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: rgba(10, 10, 10, 0.98);
        border-bottom: 1px solid var(--color-border);
        padding: 1.5rem var(--container-padding);
    }

    .primary-nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-list li:last-child {
        border-bottom: none;
        padding-top: 1rem;
    }

    .nav-list li a {
        display: block;
        padding: 0.875rem 0;
        font-size: 1rem;
    }

    .nav-list .nav-cta a,
    .nav-list li:last-child a.btn-primary {
        display: inline-block;
        width: auto;
        padding: 0.625rem 1.25rem;
    }
}


/* ------------------------------------------------------------
   RESPONSIVE — MOBILE (max 640px)
   ------------------------------------------------------------ */
@media (max-width: 640px) {

    :root {
        --space-xl:  4rem;
        --space-2xl: 5rem;
        --container-padding: 1.25rem;
    }

    /* Scale down large headlines so they don't push containers */
    .hero-headline {
        font-size: 2rem;
    }

    .section-headline {
        font-size: 1.625rem;
    }

    .page-headline {
        font-size: 1.75rem;
    }

    /* Grids */
    .problem-grid {
        grid-template-columns: 1fr;
    }

    .diagnostic-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer-contact {
        align-items: flex-start;
    }

    /* Hero */
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    /* Section header */
    .section-subheadline {
        margin-inline: 0;
    }

    /* Tighten page headers on small screens */
    .page-header {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-md);
    }

    /* Let service/case-study blocks use full width */
    .service-block,
    .case-study-block {
        max-width: 100%;
    }
}
