/* CodeFix Business v0.4 — responsive, accessible business theme. */
:root {
    color-scheme: light;
    --ink: #171d24;
    --muted: #586371;
    --surface: #ffffff;
    --soft: #f4f6f8;
    --accent: #b72b37;
    --accent-hover: #89202a;
    --line: #e0e5e9;
    --radius: 20px;
    --max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font: 400 1rem/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
    overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}
.container { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
.narrow { max-width: 800px; }
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 99;
    background: var(--ink);
    color: #fff;
    padding: .6rem 1rem;
}
.skip-link:focus { top: 1rem; color: #fff; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner, .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    min-height: 88px;
    padding-block: 1rem;
}
.brand a {
    text-decoration: none;
    font-weight: 800;
    font-size: 1.17rem;
    letter-spacing: -.035em;
}
.custom-logo { max-height: 62px; width: auto; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}
.nav-list a { font-weight: 600; text-decoration: none; }
.current-menu-item > a {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 7px;
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-soft { background: var(--soft); }
.section-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.14;
    letter-spacing: -.045em;
    margin: 0 0 1.2rem;
    max-width: 19ch;
}
.section-intro { color: var(--muted); max-width: 67ch; margin-bottom: 2rem; }
.section-intro p, .lead p { margin-top: 0; }

/* The first screen works both with a photo and without any uploaded media. */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(4rem, 7.5vw, 7rem);
    background: linear-gradient(110deg, #fff 0%, #fff 52%, #f7f8fa 100%);
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}
.hero-copy { min-width: 0; }
.eyebrow {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 1rem;
}
.hero-title {
    font-size: clamp(2.5rem, 4.65vw, 4.9rem);
    line-height: 1.07;
    letter-spacing: -.058em;
    margin: 0 0 1.5rem;
    max-width: 17ch;
    text-wrap: balance;
}
.lead { font-size: clamp(1.075rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.hero-media {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--soft);
    aspect-ratio: 5 / 4;
    box-shadow: 0 20px 65px rgb(23 29 36 / 7%);
}
.hero-image { width: 100%; height: 100%; object-fit: cover; }

/* Without an image, do not reserve an empty column (visible in the first demo screenshot).
   Pseudo-elements are decorative CSS only: no HTTP request or CLS. */
.hero--without-image { min-height: clamp(480px, 62vh, 710px); display: grid; align-items: center; }
.hero--without-image .hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero--without-image .hero-copy { max-width: min(890px, 85%); position: relative; z-index: 1; }
.hero--without-image .hero-title { max-width: 22ch; font-size: clamp(2.65rem, 5vw, 5rem); }
.hero--without-image::before, .hero--without-image::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.hero--without-image::before {
    width: clamp(220px, 35vw, 540px);
    aspect-ratio: 1;
    border: clamp(28px, 4vw, 70px) solid rgb(183 43 55 / 6%);
    border-radius: 50%;
    right: max(-8%, -110px);
    top: 8%;
}
.hero--without-image::after {
    width: clamp(160px, 26vw, 390px);
    aspect-ratio: 1;
    border: 1px solid rgb(183 43 55 / 16%);
    border-radius: 50%;
    right: max(-2%, -30px);
    top: 20%;
}
.actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: .7rem 1.2rem;
    border: 2px solid var(--accent);
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 750;
    line-height: 1.2;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.button-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.button-outline:hover { background: var(--soft); color: var(--ink); border-color: var(--ink); }

.card-grid, .benefit-grid, .step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius);
}
.card h3, .benefit h3, .step h3 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 .65rem; }
.card > div, .benefit p, .step p { color: var(--muted); }
.text-link { display: inline-block; margin-top: 1rem; color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
.benefit-grid, .step-grid { padding: 0; list-style: none; }
.benefit { padding: 1.5rem 0; border-top: 3px solid var(--accent); }
.benefit p, .step p { margin-bottom: 0; }
.step { padding: 1.5rem 0; }
.step-no { color: var(--accent); display: block; font-weight: 800; margin-bottom: 1.25rem; }
.faq-item { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.faq-item summary { font-weight: 750; cursor: pointer; font-size: 1.08rem; }
.faq-answer { color: var(--muted); padding-top: .7rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.cta { background: var(--ink); color: #fff; }
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; }
.cta .section-title { max-width: 22ch; }
.cta .section-intro { color: #e0e5eb; }
.button-light { background: #fff; border-color: #fff; color: var(--ink); }
.button-light:hover { background: var(--soft); border-color: var(--soft); color: var(--ink); }

.site-footer { background: #111820; color: #fff; }
.site-footer .nav-list a { font-size: .9rem; }
.site-footer p { margin: 0; }
.standard-page { padding-block: 4rem; min-height: 50vh; }
.standard-page h1 { font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1.15; letter-spacing: -.04em; }
.entry-content { max-width: 800px; }
.entry-content img { height: auto; }
.post-list { display: grid; gap: 1.5rem; }
.post-card { border-bottom: 1px solid var(--line); padding-block: 1.5rem; }
.post-card h2 { margin: 0; }
.post-meta { color: var(--muted); font-size: .88rem; }
.page-heading { padding-top: 3rem; }
.page-heading h1 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.12; letter-spacing: -.045em; margin: 0; }

@media (max-width: 800px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-title { max-width: 22ch; }
    .hero-media { max-height: 520px; }
    .hero--without-image .hero-copy { max-width: 100%; }
    .card-grid, .benefit-grid, .step-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .container { width: min(calc(100% - 2rem), var(--max)); }
    .header-inner { align-items: flex-start; min-height: auto; }
    .nav-list { gap: .7rem 1rem; }
    .nav-list a { font-size: .92rem; }
    .card-grid, .benefit-grid, .step-grid { grid-template-columns: 1fr; }
    .hero-title, .hero--without-image .hero-title { font-size: clamp(2.25rem, 10.5vw, 3.6rem); }
    .hero--without-image { min-height: 0; }
    .hero--without-image::before, .hero--without-image::after { opacity: .38; }
    .actions { align-items: stretch; flex-direction: column; }
    .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Consistent anchor navigation for the ACF demo, including keyboard users. */
section[id] { scroll-margin-top: 1rem; }
