/* Archway Point - shared stylesheet
   Serves index.php, service pages, contact, blog, and 404.
   Cache-busted via ?v= in inc/header.php (bump ASSET_VERSION in inc/config.php). */

:root {
    --tan: #d8c3a5;
    --tan-light: #f2e5d0;
    --tan-soft: #fff7eb;
    --purple: #5b2a86;
    --purple-dark: #2e1248;
    --purple-mid: #7044a0;
    --ink: #241f1c;
    --muted: #665b52;
    --white: #ffffff;
    --success: #1d6b3a;
    --error: #9f1d1d;
    --warning: #8a5a00;
    --border: rgba(46, 18, 72, 0.18);
    --shadow: 0 18px 45px rgba(46, 18, 72, 0.16);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--tan);
    color: var(--ink);
    line-height: 1.6;
}

a {
    color: inherit;
}

.top-bar {
    background: var(--purple-dark);
    color: white;
    padding: 10px 7%;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

header {
    background: rgba(255, 247, 235, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 18px 7%;
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    text-decoration: none;
    white-space: nowrap;
    font-size: 28px;
    font-weight: 900;
    color: var(--purple-dark);
    letter-spacing: -0.8px;
}

.logo span {
    color: var(--purple);
}

.logo:hover {
    color: var(--purple);
}

nav {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--purple-dark);
    font-weight: 700;
    font-size: 15px;
}

.nav-button {
    background: var(--purple);
    color: white;
    padding: 10px 16px;
    border-radius: 999px;
}

.hero {
    padding: 92px 7% 74px;
    background:
        radial-gradient(circle at top right, rgba(91, 42, 134, 0.18), transparent 34%),
        linear-gradient(135deg, var(--tan), var(--tan-light));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 42px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    color: var(--purple-dark);
    background: rgba(91, 42, 134, 0.11);
    border: 1px solid rgba(91, 42, 134, 0.22);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 18px;
    font-size: 14px;
}

h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    color: var(--purple-dark);
    letter-spacing: -2.5px;
    margin-bottom: 24px;
}

.hero p {
    font-size: 20px;
    color: #3a3029;
    max-width: 790px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 32px;
}

.button {
    display: inline-block;
    background: var(--purple);
    color: white;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 800;
    border: 2px solid var(--purple);
    transition: 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--purple-dark);
    border-color: var(--purple-dark);
}

.button.secondary {
    background: transparent;
    color: var(--purple-dark);
}

.button.secondary:hover {
    background: var(--purple-dark);
    color: white;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 820px;
}

.hero-point {
    background: rgba(255, 247, 235, 0.7);
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    color: var(--purple-dark);
}

.hero-panel {
    background: var(--tan-soft);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-header {
    background: var(--purple-dark);
    color: white;
    padding: 22px;
}

.panel-header h2 {
    color: white;
    margin: 0;
    font-size: 24px;
}

.panel-body {
    padding: 24px;
}

.metric {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(46, 18, 72, 0.12);
}

.metric:last-child {
    border-bottom: none;
}

.metric-number {
    background: rgba(91, 42, 134, 0.12);
    color: var(--purple-dark);
    font-weight: 900;
    border-radius: 16px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

section {
    padding: 78px 7%;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-heading {
    max-width: 900px;
    margin-bottom: 38px;
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--purple-dark);
    line-height: 1.1;
    letter-spacing: -1.2px;
    margin-bottom: 16px;
}

.section-heading p {
    font-size: 18px;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    background: var(--tan-soft);
    border: 1px solid var(--border);
    border-top: 7px solid var(--purple);
    padding: 28px;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(46, 18, 72, 0.08);
}

.card h3 {
    color: var(--purple-dark);
    font-size: 23px;
    margin-bottom: 12px;
}

.card p {
    color: #3d352e;
}

.web-dev-section {
    background:
        radial-gradient(circle at top left, rgba(91, 42, 134, 0.12), transparent 30%),
        var(--tan);
}

.split-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: start;
}

.feature-panel {
    background: var(--purple-dark);
    color: white;
    border-radius: 26px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.feature-panel h3 {
    font-size: 30px;
    margin-bottom: 14px;
}

.feature-panel p {
    color: rgba(255,255,255,0.82);
    margin-bottom: 18px;
}

.feature-panel ul {
    padding-left: 20px;
    color: rgba(255,255,255,0.9);
}

.feature-panel li {
    margin-bottom: 10px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.service-item {
    background: var(--tan-soft);
    border: 1px solid var(--border);
    border-left: 7px solid var(--purple);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(46, 18, 72, 0.08);
}

.service-item h3 {
    color: var(--purple-dark);
    margin-bottom: 10px;
    font-size: 22px;
}

.dark-section {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.13), transparent 32%),
        linear-gradient(135deg, var(--purple-dark), #4d1e76);
    color: white;
}

.dark-section h2,
.dark-section h3 {
    color: white;
}

.dark-section .section-heading p {
    color: rgba(255,255,255,0.78);
}

.infra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.infra-card {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 24px;
    padding: 30px;
}

.infra-card ul {
    margin-top: 16px;
    padding-left: 22px;
}

.infra-card li {
    margin-bottom: 10px;
}

.ai-section {
    background: var(--tan-light);
}

.ai-box {
    background: var(--tan-soft);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 34px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 30px;
    align-items: center;
}

.ai-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-pills span {
    background: rgba(91, 42, 134, 0.12);
    color: var(--purple-dark);
    border: 1px solid rgba(91, 42, 134, 0.2);
    padding: 11px 14px;
    border-radius: 999px;
    font-weight: 800;
}

.process {
    background: var(--tan);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: steps;
}

.step {
    background: var(--tan-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    position: relative;
}

.step:before {
    counter-increment: steps;
    content: counter(steps);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 16px;
}

.industries {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill {
    background: var(--tan-soft);
    border: 1px solid var(--border);
    color: var(--purple-dark);
    padding: 11px 15px;
    border-radius: 999px;
    font-weight: 800;
}

.lead-section {
    background: linear-gradient(135deg, var(--tan), var(--tan-light));
}

.lead-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 34px;
    align-items: start;
}

.contact-card {
    background: var(--purple-dark);
    color: white;
    border-radius: 26px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.contact-card h2 {
    color: white;
}

.contact-card p {
    color: rgba(255,255,255,0.82);
    margin-bottom: 18px;
}

.contact-list {
    margin-top: 22px;
}

.contact-list div {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

form {
    background: var(--tan-soft);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 800;
    color: var(--purple-dark);
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(46, 18, 72, 0.24);
    background: white;
    color: var(--ink);
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

textarea {
    min-height: 135px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(91, 42, 134, 0.18);
    border-color: var(--purple);
}

.hidden-field {
    display: none;
}

.submit-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px;
}

button {
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

button:hover {
    background: var(--purple-dark);
}

.privacy-note {
    color: var(--muted);
    font-size: 13px;
}

.status {
    padding: 15px 18px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 800;
}

.status.success {
    background: rgba(29, 107, 58, 0.12);
    color: var(--success);
    border: 1px solid rgba(29, 107, 58, 0.28);
}

.status.error {
    background: rgba(159, 29, 29, 0.12);
    color: var(--error);
    border: 1px solid rgba(159, 29, 29, 0.28);
}

.status.warning {
    background: rgba(138, 90, 0, 0.12);
    color: var(--warning);
    border: 1px solid rgba(138, 90, 0, 0.28);
}

footer {
    background: var(--purple-dark);
    color: white;
    padding: 36px 7%;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

footer p {
    color: rgba(255,255,255,0.76);
}


/* ========== Blog ========== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    background: var(--tan-soft);
    border: 1px solid var(--border);
    border-top: 7px solid var(--purple);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 12px 28px rgba(46, 18, 72, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 275px;
}

.post-date {
    color: var(--purple);
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 10px;
}

.post-card h2 {
    color: var(--purple-dark);
    font-size: 25px;
    line-height: 1.15;
    margin-bottom: 14px;
}

.post-card h2 a {
    text-decoration: none;
    color: var(--purple-dark);
}

.post-card h2 a:hover {
    color: var(--purple);
}

.post-card p {
    color: var(--muted);
    margin-bottom: 22px;
}

.read-more {
    margin-top: auto;
    display: inline-block;
    color: white;
    background: var(--purple);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 800;
    align-self: flex-start;
}

.read-more:hover {
    background: var(--purple-dark);
}

.empty-box {
    background: var(--tan-soft);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.empty-box h2 {
    color: var(--purple-dark);
    margin-bottom: 10px;
}

.article-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 34px;
    align-items: start;
}

article {
    background: var(--tan-soft);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: clamp(26px, 5vw, 54px);
    box-shadow: var(--shadow);
}

article h1,
article h2,
article h3 {
    color: var(--purple-dark);
    line-height: 1.15;
    margin-top: 26px;
    margin-bottom: 14px;
}

article h1:first-child,
article h2:first-child,
article h3:first-child {
    margin-top: 0;
}

article h1 {
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -1.5px;
}

article h2 {
    font-size: clamp(28px, 3.5vw, 40px);
}

article h3 {
    font-size: 24px;
}

article p {
    margin-bottom: 18px;
    font-size: 18px;
}

article ul,
article ol {
    margin: 14px 0 22px 24px;
}

article li {
    margin-bottom: 9px;
    font-size: 18px;
}

article blockquote {
    border-left: 6px solid var(--purple);
    background: rgba(91, 42, 134, 0.08);
    padding: 18px 22px;
    border-radius: 14px;
    margin: 24px 0;
    font-weight: 700;
    color: var(--purple-dark);
}

article img {
    max-width: 100%;
    border-radius: 18px;
    margin: 20px 0;
}

article a {
    color: var(--purple);
    font-weight: 800;
}

article time {
    display: block;
    color: var(--purple);
    font-weight: 900;
    margin-bottom: 18px;
}

.article-meta {
    color: var(--purple);
    font-weight: 900;
    margin-bottom: 18px;
}

.sidebar {
    background: var(--purple-dark);
    color: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.sidebar p {
    color: rgba(255,255,255,0.82);
    margin-bottom: 18px;
}

.sidebar a {
    display: inline-block;
    background: white;
    color: var(--purple-dark);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 12px;
    font-weight: 900;
    margin-top: 6px;
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--purple-dark);
    font-weight: 900;
    text-decoration: none;
}

.not-found {
    background: var(--tan-soft);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.not-found h2 {
    color: var(--purple-dark);
    margin-bottom: 10px;
}

.not-found a {
    color: var(--purple);
    font-weight: 900;
}


/* ==========================================================================
   Additions: navigation, breadcrumbs, service pages, FAQ, contact, footer
   ========================================================================== */

/* Accessibility: skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--purple-dark);
    color: #fff;
    padding: 12px 18px;
    border-radius: 0 0 12px 0;
    font-weight: 800;
    z-index: 200;
}

.skip-link:focus {
    left: 0;
}

/* Top bar with real contact details */
.top-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.top-bar a:hover {
    text-decoration: underline;
}

.top-bar-contact {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

/* Mobile navigation toggle (CSS-only checkbox pattern).
   Visually hidden but still keyboard focusable, so the menu can be
   opened without a mouse. */
.nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.nav-toggle:focus-visible + .nav-toggle-label {
    outline: 3px solid var(--purple);
    outline-offset: 3px;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 12px;
    border: 2px solid var(--purple-dark);
    color: var(--purple-dark);
    font-weight: 900;
    font-size: 15px;
    user-select: none;
}

nav a[aria-current="page"] {
    color: var(--purple);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 3px;
}

nav a.nav-button[aria-current="page"] {
    color: #fff;
    text-decoration: none;
}

/* Dropdown for Services in the main nav */
/*
 * The trigger is padded vertically and pulled back with an equal negative
 * margin, so its hover area reaches down to the menu without changing the
 * header's height. Without this there is a dead gap between the link and the
 * menu, and the menu closes while the pointer crosses it.
 */
.nav-group {
    position: relative;
    padding: 14px 0;
    margin: -14px 0;
}

.nav-group > a:after {
    content: " ▾";
    font-size: 12px;
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    background: var(--tan-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 10px;
    min-width: 268px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 60;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
    display: flex;
}

/*
 * The menu is wider than the trigger, so a diagonal pointer path can leave the
 * trigger before reaching the menu. This invisible strip spans the full menu
 * width just above it and, being inside .nav-group, keeps the menu open.
 */
.nav-menu:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
}

.nav-menu a {
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 15px;
}

.nav-menu a:hover,
.nav-menu a:focus {
    background: rgba(91, 42, 134, 0.11);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 16px 7% 0;
    font-size: 14px;
    color: var(--muted);
}

.breadcrumbs .container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--purple);
    font-weight: 700;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Service page hero */
.page-hero {
    padding: 62px 7% 58px;
    background:
        radial-gradient(circle at top right, rgba(91, 42, 134, 0.18), transparent 34%),
        linear-gradient(135deg, var(--tan), var(--tan-light));
}

.page-hero .container {
    max-width: 1280px;
}

.page-hero h1 {
    max-width: 980px;
    font-size: clamp(38px, 5vw, 60px);
}

.page-hero p.lead {
    font-size: 20px;
    color: #3a3029;
    max-width: 820px;
    margin-bottom: 26px;
}

/* Local service-area strip */
.area-strip {
    background: var(--tan-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 22px 7%;
    font-size: 15px;
    color: var(--muted);
}

.area-strip .container {
    display: flex;
    gap: 10px 18px;
    flex-wrap: wrap;
    align-items: baseline;
}

.area-strip strong {
    color: var(--purple-dark);
}

/* Two-column prose + aside used on service pages */
.detail-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 34px;
    align-items: start;
}

.prose h3 {
    color: var(--purple-dark);
    font-size: 26px;
    margin: 30px 0 12px;
}

.prose h3:first-child {
    margin-top: 0;
}

.prose p {
    margin-bottom: 16px;
    color: #3d352e;
}

.prose ul,
.prose ol {
    margin: 0 0 18px 22px;
    color: #3d352e;
}

.prose li {
    margin-bottom: 9px;
}

.aside-card {
    background: var(--tan-soft);
    border: 1px solid var(--border);
    border-top: 7px solid var(--purple);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 12px 28px rgba(46, 18, 72, 0.08);
    position: sticky;
    top: 108px;
}

.aside-card h3 {
    color: var(--purple-dark);
    font-size: 21px;
    margin-bottom: 12px;
}

.aside-card ul {
    margin: 0 0 18px 20px;
    color: #3d352e;
}

.aside-card li {
    margin-bottom: 8px;
}

/* Deliverables / pricing-signal table */
.deliverables {
    width: 100%;
    border-collapse: collapse;
    background: var(--tan-soft);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(46, 18, 72, 0.08);
}

.deliverables th,
.deliverables td {
    text-align: left;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.deliverables th {
    background: var(--purple-dark);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.deliverables tr:last-child td {
    border-bottom: none;
}

/* FAQ */
.faq {
    display: grid;
    gap: 14px;
    max-width: 950px;
}

.faq details {
    background: var(--tan-soft);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: 0 12px 28px rgba(46, 18, 72, 0.06);
}

.faq summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--purple-dark);
    font-size: 18px;
    list-style: none;
}

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

.faq summary:before {
    content: "+ ";
    color: var(--purple);
    font-weight: 900;
}

.faq details[open] summary:before {
    content: "– ";
}

.faq details p {
    margin-top: 12px;
    color: #3d352e;
}

/* Related services cross-links */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    display: block;
    background: var(--tan-soft);
    border: 1px solid var(--border);
    border-left: 7px solid var(--purple);
    border-radius: 20px;
    padding: 24px;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: 0 12px 28px rgba(46, 18, 72, 0.08);
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-card strong {
    display: block;
    color: var(--purple-dark);
    font-size: 20px;
    margin-bottom: 8px;
}

.related-card span {
    color: var(--muted);
    font-size: 15px;
}

/* Contact page */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 38px;
}

.contact-method {
    background: var(--tan-soft);
    border: 1px solid var(--border);
    border-top: 7px solid var(--purple);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 12px 28px rgba(46, 18, 72, 0.08);
}

.contact-method h3 {
    color: var(--purple-dark);
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-method a {
    color: var(--purple);
    font-weight: 800;
    font-size: 19px;
    text-decoration: none;
    word-break: break-word;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* Expanded footer */
.footer-columns {
    max-width: 1280px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-columns h4 {
    font-size: 15px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 14px;
}

.footer-columns ul {
    list-style: none;
}

.footer-columns li {
    margin-bottom: 9px;
}

.footer-columns a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 15px;
}

.footer-columns a:hover {
    text-decoration: underline;
    color: #fff;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
}

/* Field-level validation errors + preserved values */
.field-error {
    color: var(--error);
    font-size: 13px;
    font-weight: 700;
}

input.has-error,
select.has-error,
textarea.has-error {
    border-color: var(--error);
    background: rgba(159, 29, 29, 0.04);
}

.status ul {
    margin: 8px 0 0 20px;
    font-weight: 600;
}

/* 404 */
.error-page {
    padding: 96px 7%;
    text-align: center;
}

.error-page h1 {
    margin: 0 auto 18px;
}

.error-page p {
    color: var(--muted);
    font-size: 19px;
    max-width: 640px;
    margin: 0 auto 28px;
}

/* ========== Responsive (base) ========== */
@media (max-width: 980px) {
    .hero-grid,
    .split-grid,
    .ai-box,
    .lead-grid {
        grid-template-columns: 1fr;
    }

    .cards,
    .service-list,
    .infra-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    header {
        position: static;
    }

    nav {
        width: 100%;
        gap: 12px;
    }

    nav a {
        font-size: 14px;
    }

    .cards,
    .service-list,
    .infra-grid,
    .steps,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 56px;
    }

    section {
        padding: 58px 6%;
    }

    .top-bar,
    header,
    footer {
        padding-left: 6%;
        padding-right: 6%;
    }
}
@media (max-width: 980px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }

    .article-wrap {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 680px) {
    header {
        position: static;
    }

    nav {
        width: 100%;
        gap: 12px;
    }

    nav a {
        font-size: 14px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .top-bar,
    header,
    .hero,
    main,
    footer {
        padding-left: 6%;
        padding-right: 6%;
    }
}

/* ==========================================================================
   Responsive additions
   ========================================================================== */

@media (max-width: 980px) {
    .detail-grid,
    .contact-methods,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .aside-card {
        position: static;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .nav-toggle-label {
        display: inline-block;
    }

    header {
        flex-wrap: wrap;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding-top: 14px;
    }

    .nav-toggle:checked ~ nav {
        display: flex;
    }

    nav a {
        width: 100%;
        padding: 12px 4px;
        border-bottom: 1px solid var(--border);
        font-size: 16px;
    }

    nav a.nav-button {
        text-align: center;
        border-bottom: none;
        margin-top: 10px;
        padding: 13px 16px;
    }

    .nav-group {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-menu:before {
        content: none;
    }

    .nav-menu {
        position: static;
        display: flex;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 14px;
        margin-top: 0;
        min-width: 0;
    }

    .nav-group > a:after {
        content: "";
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 44px 6% 40px;
    }

    .breadcrumbs {
        padding-left: 6%;
        padding-right: 6%;
    }

    .area-strip {
        padding-left: 6%;
        padding-right: 6%;
    }
}

.container.narrow {
    max-width: 1180px;
}

main.blog-main {
    padding: 64px 7%;
}

@media (max-width: 680px) {
    main.blog-main {
        padding-left: 6%;
        padding-right: 6%;
    }
}

/* Blog index hero sits inside the padded blog main element */
main.blog-main > .page-hero {
    margin: -64px -7% 46px;
}

@media (max-width: 680px) {
    main.blog-main > .page-hero {
        margin: -64px -6% 32px;
    }
}
