/*
Theme Name: Delay Services
Theme URI: https://delayservices.com/
Author: Delay Services
Description: Custom lightweight theme for the Delay Services website build.
Version: 1.0.0
Text Domain: delay-services
*/

:root {
    --color-bg: #f7f3eb;
    --color-surface: #ffffff;
    --color-surface-alt: #efe8da;
    --color-ink: #10233d;
    --color-muted: #5d6b7a;
    --color-accent: #d9782d;
    --color-accent-dark: #b85d1f;
    --color-support: #1f6f78;
    --color-border: #d7ddd6;
    --color-success: #0f7a43;
    --shadow-soft: 0 18px 46px rgba(16, 35, 61, 0.08);
    --shadow-strong: 0 24px 70px rgba(16, 35, 61, 0.14);
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background:
        radial-gradient(circle at top left, rgba(217, 120, 45, 0.08), transparent 28rem),
        radial-gradient(circle at bottom right, rgba(31, 111, 120, 0.08), transparent 28rem),
        var(--color-bg);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

p {
    margin: 0 0 1rem;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

.site-main ul,
.site-main ol {
    padding-left: 1.15rem;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin-inline: auto;
}

.section {
    padding: 4.5rem 0;
}

.section--contrast {
    background: rgba(255, 255, 255, 0.48);
}

.section-heading {
    max-width: 42rem;
    margin-bottom: 2rem;
}

.section-heading__eyebrow {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: var(--color-support);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h1,
.section-heading h2,
.section-heading h3,
.page-hero h1,
.hero__copy h1,
.article-shell h1,
.entry-content h2,
.entry-content h3 {
    margin: 0 0 1rem;
    font-family: "Trebuchet MS", "Avenir Next", sans-serif;
    line-height: 1.05;
}

.section-heading h2,
.page-hero h1,
.article-shell h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-heading p,
.page-hero p,
.hero__copy p,
.entry-content p {
    color: var(--color-muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(215, 221, 214, 0.9);
    background: rgba(247, 243, 235, 0.94);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 0;
}

.site-brand {
    text-decoration: none;
}

.site-brand__title {
    display: block;
    font-family: "Trebuchet MS", "Avenir Next", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.site-brand__tagline {
    display: block;
    color: var(--color-muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-nav-toggle {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.site-nav {
    grid-column: 1 / -1;
    display: none;
}

.site-nav.is-open {
    display: block;
}

.site-nav .menu {
    display: grid;
    gap: 0.5rem;
    list-style: none;
}

.site-nav .menu a {
    display: block;
    padding: 0.8rem 0.95rem;
    border-radius: 0.9rem;
    text-decoration: none;
    font-weight: 700;
}

.site-nav .menu a:hover,
.site-nav .menu a:focus {
    background: rgba(16, 35, 61, 0.06);
}

.header-call {
    display: none;
}

.hero {
    padding: 4rem 0 3.5rem;
}

.hero__layout {
    display: grid;
    gap: 1.5rem;
}

.hero__copy,
.hero__form,
.service-card,
.split-card,
.review-card,
.cta-panel,
.content-panel,
.pricing-card,
.article-card,
.contact-card {
    border: 1px solid rgba(215, 221, 214, 0.95);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.hero__copy {
    padding: 1.75rem;
    background:
        linear-gradient(135deg, rgba(16, 35, 61, 0.96), rgba(31, 111, 120, 0.88)),
        var(--color-ink);
    color: #ffffff;
    overflow: hidden;
}

.hero__copy p,
.hero__copy .section-heading__eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.hero__copy h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.hero__service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.35rem 0 0;
    padding-left: 0;
    list-style: none;
}

.hero__service-list li {
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.hero__microcopy {
    margin-top: 1rem;
    font-weight: 700;
}

.hero__stat {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
}

.hero__stat strong {
    display: block;
    font-size: 1.35rem;
}

.hero__form {
    padding: 0;
    overflow: hidden;
}

.services-grid,
.reviews-grid,
.pricing-grid,
.article-grid,
.contact-grid,
.cta-grid {
    display: grid;
    gap: 1rem;
}

.service-card,
.review-card,
.pricing-card,
.article-card,
.contact-card,
.content-panel {
    padding: 1.5rem;
}

.content-panel--feature {
    background: linear-gradient(180deg, #ffffff, #fbf6ec);
}

.service-card h3,
.review-card h3,
.pricing-card h3,
.content-panel h3,
.contact-card h3 {
    margin: 0 0 0.8rem;
    font-family: "Trebuchet MS", "Avenir Next", sans-serif;
}

.service-card ul,
.pricing-card ul,
.content-panel ul,
.article-card ul {
    display: grid;
    gap: 0.45rem;
    margin-top: 1rem;
    color: var(--color-muted);
}

.before-after {
    display: grid;
    gap: 1rem;
}

.split-card {
    padding: 1.6rem;
}

.split-card--before {
    background: #fff8f4;
}

.split-card--after {
    background: #f4fbf7;
}

.review-card blockquote {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.review-card cite {
    display: block;
    margin-top: 1rem;
    color: var(--color-muted);
    font-style: normal;
}

.cta-panel {
    padding: 1.75rem;
}

.cta-panel--accent {
    background:
        linear-gradient(135deg, rgba(16, 35, 61, 0.96), rgba(217, 120, 45, 0.92)),
        var(--color-ink);
    color: #ffffff;
}

.cta-panel--accent p {
    color: rgba(255, 255, 255, 0.84);
}

.cta-panel--light {
    background: linear-gradient(135deg, #ffffff, #f5efe3);
}

.cta-panel--final {
    text-align: left;
}

.page-hero {
    padding: 3.5rem 0 2rem;
}

.page-hero__inner {
    padding: 1.8rem;
    border: 1px solid rgba(215, 221, 214, 0.95);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(239, 232, 218, 0.95));
    box-shadow: var(--shadow-soft);
}

.entry-content,
.article-shell {
    padding-bottom: 4rem;
}

.content-panel + .content-panel,
.article-shell .content-panel + .content-panel {
    margin-top: 1rem;
}

.article-shell__meta,
.article-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.article-card a,
.article-shell a,
.entry-content a,
.service-link {
    color: var(--color-support);
}

.faq-list {
    display: grid;
    gap: 0.9rem;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.15rem;
    font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item__content {
    padding: 0 1.15rem 1.1rem;
    color: var(--color-muted);
}

.site-footer {
    border-top: 1px solid rgba(215, 221, 214, 0.95);
    background: #10233d;
    color: rgba(255, 255, 255, 0.88);
}

.site-footer__inner {
    display: grid;
    gap: 1.5rem;
    padding: 2.5rem 0;
}

.site-footer__brand h2 {
    margin: 0 0 0.4rem;
    color: #ffffff;
    font-family: "Trebuchet MS", "Avenir Next", sans-serif;
}

.site-footer .menu {
    display: grid;
    gap: 0.5rem;
    list-style: none;
}

.site-footer .menu a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
}

.site-footer__legal {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 0 2rem;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.92rem;
}

.empty-state {
    padding: 1.25rem;
    border: 1px dashed var(--color-border);
    border-radius: 1rem;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.55);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0.9rem 1.3rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.button-link--solid {
    background: var(--color-accent);
    color: #ffffff;
}

.button-link--ghost {
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.trust-strip__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-ink);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.trust-strip__link--solid {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.trust-strip__link:hover,
.trust-strip__link:focus {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.service-area-list {
    display: grid;
    gap: 0.8rem;
    list-style: none;
    padding-left: 0;
}

.section-link-row {
    margin-top: 1.5rem;
}

.service-area-list li,
.check-list li {
    position: relative;
    padding-left: 1.4rem;
}

.service-area-list li::before,
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--color-accent);
}

.check-list {
    display: grid;
    gap: 0.6rem;
    list-style: none;
    padding-left: 0;
}

.entry-content > * + *,
.article-shell > * + * {
    margin-top: 1rem;
}

.entry-content .wp-block-image,
.entry-content .wp-block-gallery {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.pagination {
    margin-top: 2rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.8rem;
    min-height: 2.8rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    text-decoration: none;
    font-weight: 700;
}

.nav-links .current {
    background: var(--color-ink);
    color: #ffffff;
    border-color: var(--color-ink);
}

@media (min-width: 720px) {
    .services-grid,
    .reviews-grid,
    .pricing-grid,
    .article-grid,
    .contact-grid,
    .cta-grid,
    .before-after {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__inner {
        grid-template-columns: 1.4fr 1fr;
        align-items: start;
    }
}

@media (min-width: 960px) {
    .site-header__inner {
        grid-template-columns: auto 1fr auto;
        gap: 1.5rem;
    }

    .site-nav-toggle {
        display: none;
    }

    .site-nav {
        display: block;
        grid-column: auto;
    }

    .site-nav .menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem;
    }

    .header-call {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 3rem;
        padding: 0.85rem 1.2rem;
        border-radius: 999px;
        background: var(--color-ink);
        color: #ffffff;
        text-decoration: none;
        font-weight: 800;
    }

    .hero__layout {
        grid-template-columns: 1.35fr 0.95fr;
        align-items: stretch;
    }

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .reviews-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cta-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .contact-grid {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

@media (max-width: 960px) {
    .jtows-stage3-dashboard-route .jtows-stage3-nav {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
        scroll-snap-type: none;
    }

    .jtows-stage3-dashboard-route .jtows-stage3-nav a {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
        white-space: normal;
        scroll-snap-align: none;
    }
}
