/*
Theme Name: SmartHomeNest UK
Theme URI: https://smarthomenest.co.uk
Author: SmartHomeNest UK
Author URI: https://smarthomenest.co.uk
Description: A lightweight, responsive UK smart home and security technology magazine theme.
Version: 1.0.0
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: smarthomenest
Tags: blog, news, custom-logo, custom-menu, featured-images, responsive-layout
*/

/* =====================================================
   SMART HOMENEST UK — DESIGN SYSTEM
===================================================== */

:root {
    --shn-navy: #10243a;
    --shn-navy-light: #193852;
    --shn-teal: #12b8a6;
    --shn-teal-dark: #079887;
    --shn-text: #263445;
    --shn-muted: #718096;
    --shn-background: #f5f8fa;
    --shn-white: #ffffff;
    --shn-border: #e4ebf0;
    --shn-radius: 12px;
    --shn-shadow: 0 8px 30px rgba(16,36,58,.07);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--shn-background);
    color: var(--shn-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: var(--shn-teal-dark);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--shn-navy);
}

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

button,
input {
    font: inherit;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--shn-navy);
    line-height: 1.25;
    font-weight: 750;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }

::selection {
    background: var(--shn-teal);
    color: var(--shn-white);
}


/* =====================================================
   HEADER & NAVIGATION
===================================================== */

.site-header {
    background: var(--shn-white);
    box-shadow: 0 2px 12px rgba(16,36,58,.06);
    position: relative;
    z-index: 100;
}

.header-main {
    background: var(--shn-navy);
    color: var(--shn-white);
}

.header-inner,
.navigation-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.header-inner {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.site-branding {
    min-width: 0;
}

.site-title {
    color: var(--shn-white);
    display: inline-flex;
    align-items: baseline;
    font-size: 2rem;
    font-weight: 850;
    letter-spacing: -1.3px;
    line-height: 1.2;
}

.site-title:hover {
    color: var(--shn-white);
}

.brand-nest {
    color: var(--shn-teal);
}

.brand-uk {
    color: #a9bac9;
    font-size: .75rem;
    margin-left: 7px;
    letter-spacing: 1px;
}

.site-tagline {
    color: #c5d3df;
    font-size: .78rem;
    margin: 7px 0 0;
    letter-spacing: .2px;
}

.custom-logo {
    width: auto;
    max-height: 76px;
}

.header-search {
    width: min(340px, 38%);
}

.search-form {
    display: flex;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.search-form label {
    flex: 1;
}

.search-field {
    width: 100%;
    min-width: 0;
    border: 0;
    padding: 12px 15px;
    outline: none;
}

.search-submit {
    border: 0;
    background: var(--shn-teal);
    color: var(--shn-navy);
    padding: 0 17px;
    font-weight: 750;
    cursor: pointer;
}

.search-submit:hover {
    background: #55d9ca;
}

.navigation-bar {
    background: var(--shn-white);
    border-bottom: 1px solid var(--shn-border);
}

.primary-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    display: block;
    padding: 17px 19px;
    color: var(--shn-navy);
    font-size: .88rem;
    font-weight: 700;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
    color: var(--shn-teal-dark);
}

.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: var(--shn-white);
    box-shadow: var(--shn-shadow);
    border: 1px solid var(--shn-border);
    border-radius: 0 0 8px 8px;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
    display: block;
}

.primary-menu .sub-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--shn-text);
    font-size: .88rem;
}

.primary-menu .sub-menu a:hover {
    background: var(--shn-background);
    color: var(--shn-teal-dark);
}

.mobile-menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 9999;
    padding: 10px 15px;
    background: var(--shn-white);
}

.skip-link:focus {
    left: 10px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 760px) {
    .header-inner,
    .navigation-inner {
        width: min(100% - 30px, 1200px);
    }

    .header-inner {
        min-height: 90px;
        gap: 12px;
    }

    .site-title {
        font-size: 1.55rem;
    }

    .site-tagline {
        font-size: .65rem;
    }

    .header-search {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 10px;
    }

    .mobile-menu-toggle > span:not(.screen-reader-text) {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--shn-white);
    }

    .navigation-bar {
        display: none;
    }

    .navigation-bar.is-open {
        display: block;
    }

    .primary-menu {
        display: block;
        padding: 8px 0;
    }

    .primary-menu > li > a {
        padding: 12px 8px;
        border-bottom: 1px solid var(--shn-border);
    }

    .primary-menu .sub-menu {
        display: block;
        position: static;
        box-shadow: none;
        border: 0;
        padding-left: 15px;
    }
}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    margin-top: 70px;
    color: #c5d3df;
    background: var(--shn-navy);
}

.footer-inner,
.footer-bottom-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.footer-main {
    padding: 55px 0 45px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr .8fr 1fr;
    gap: 55px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 850;
    letter-spacing: -.8px;
}

.footer-title span {
    color: var(--shn-teal);
}

.footer-brand > p:first-of-type {
    color: var(--shn-teal);
    font-size: .85rem;
    margin: 10px 0;
}

.footer-description,
.footer-disclosure p {
    color: #b5c5d2;
    font-size: .88rem;
    line-height: 1.8;
}

.footer-inner h3 {
    color: #ffffff;
    font-size: 1rem;
    margin: 5px 0 18px;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-menu a,
.footer-legal a {
    color: #c5d3df;
    font-size: .88rem;
}

.footer-menu a:hover,
.footer-legal a:hover {
    color: var(--shn-teal);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #aebdca;
    font-size: .82rem;
}

.footer-legal {
    display: flex;
    gap: 22px;
}

@media (max-width: 760px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


/* =====================================================
   HOMEPAGE LAYOUT
===================================================== */

.content-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.site-main {
    min-height: 500px;
}

.home-intro {
    padding: 85px 20px 90px;
    color: #ffffff;
    text-align: center;
    background:
        radial-gradient(ellipse at 85% 20%, rgba(18,184,166,.22), transparent 38%),
        linear-gradient(125deg, #10243a 0%, #193852 65%, #10243a 100%);
}

.home-intro .content-container {
    max-width: 850px;
}

.section-eyebrow {
    display: inline-block;
    color: var(--shn-teal-dark);
    font-size: .73rem;
    font-weight: 850;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.home-intro .section-eyebrow {
    color: var(--shn-teal);
}

.home-intro h1 {
    color: #ffffff;
    margin: 18px 0;
    font-size: clamp(2.3rem, 5vw, 4rem);
    letter-spacing: -1.8px;
}

.home-intro h1 span {
    color: var(--shn-teal);
}

.home-intro p {
    max-width: 680px;
    margin: 0 auto 30px;
    color: #d2dee7;
    font-size: 1.08rem;
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 23px;
    border-radius: 7px;
    background: var(--shn-teal);
    color: var(--shn-navy);
    font-weight: 800;
    transition: background .2s ease, transform .2s ease;
}

.button-primary:hover {
    color: var(--shn-navy);
    background: #55d9ca;
    transform: translateY(-2px);
}

.home-content {
    padding-top: 65px;
}

.featured-section,
.latest-section,
.category-section {
    margin-bottom: 75px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-heading h2 {
    margin: 7px 0 0;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 25px;
}

.featured-card {
    overflow: hidden;
    border: 1px solid var(--shn-border);
    border-radius: var(--shn-radius);
    background: var(--shn-white);
    box-shadow: var(--shn-shadow);
}

.featured-card-1 {
    grid-row: span 2;
}

.article-image {
    display: block;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #193852, #12b8a6);
}

.featured-card-1 .article-image {
    height: 340px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.article-card:hover .article-image img,
.featured-card:hover .article-image img {
    transform: scale(1.04);
}

.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 850;
    letter-spacing: .5px;
}

.article-card-content {
    padding: 22px;
}

.article-date {
    color: var(--shn-muted);
    font-size: .76rem;
    font-weight: 650;
}

.article-card-content h3 {
    margin: 9px 0;
    font-size: 1.2rem;
}

.featured-card-1 .article-card-content h3 {
    font-size: 1.65rem;
}

.article-card-content h3 a {
    color: var(--shn-navy);
}

.article-card-content h3 a:hover {
    color: var(--shn-teal-dark);
}

.article-card-content p {
    color: var(--shn-muted);
    font-size: .9rem;
    margin: 0 0 15px;
}

.read-more {
    font-size: .85rem;
    font-weight: 800;
}

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

.article-card {
    overflow: hidden;
    border: 1px solid var(--shn-border);
    border-radius: var(--shn-radius);
    background: var(--shn-white);
    box-shadow: var(--shn-shadow);
}

.empty-content {
    padding: 45px 25px;
    text-align: center;
    background: var(--shn-white);
    border: 1px solid var(--shn-border);
    border-radius: var(--shn-radius);
}

.empty-content h3 {
    margin-top: 0;
}

.empty-content p {
    color: var(--shn-muted);
}

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

.category-card {
    position: relative;
    display: block;
    min-height: 180px;
    padding: 25px;
    border: 1px solid var(--shn-border);
    border-radius: var(--shn-radius);
    background: var(--shn-white);
    box-shadow: var(--shn-shadow);
    transition: transform .2s ease, border-color .2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--shn-teal);
}

.category-card h3 {
    margin: 22px 0 8px;
    color: var(--shn-navy);
}

.category-card p {
    margin: 0;
    color: var(--shn-muted);
    font-size: .85rem;
}

.category-arrow {
    color: var(--shn-teal-dark);
    font-size: 1.4rem;
    font-weight: 850;
}

.guides-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 40px;
    margin-bottom: 70px;
    border-radius: var(--shn-radius);
    background: #e9f5f5;
}

.guides-banner h2 {
    margin: 10px 0;
}

.guides-banner p {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--shn-muted);
}

@media (max-width: 900px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 600px) {
    .content-container {
        width: calc(100% - 30px);
    }

    .home-intro {
        padding: 65px 15px;
    }

    .home-intro h1 {
        letter-spacing: -.8px;
    }

    .home-content {
        padding-top: 40px;
    }

    .featured-grid,
    .article-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .featured-card-1 {
        grid-row: auto;
    }

    .featured-card-1 .article-image {
        height: 230px;
    }

    .section-heading {
        margin-bottom: 18px;
    }

    .guides-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }
}


/* =========================================
   ARTICLE PAGE
========================================= */

.article-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 55px 24px 80px;
}

.article-single {
    width: 100%;
}

.article-header {
    max-width: 850px;
    margin: 0 auto 38px;
    text-align: center;
}

.article-category {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 15px;
    border-radius: 30px;
    background: #e6f5f4;
    color: #087f83;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

.article-title {
    margin: 0 0 20px;
    color: #10243a;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.8px;
}

.article-excerpt {
    max-width: 720px;
    margin: 0 auto 22px;
    color: #637386;
    font-size: 19px;
    line-height: 1.7;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #748195;
    font-size: 13px;
}

.article-featured-image {
    margin: 0 auto 48px;
    max-width: 1100px;
}

.article-featured-image img {
    display: block;
    width: 100%;
    max-height: 580px;
    border-radius: 18px;
    object-fit: cover;
}

.article-layout {
    max-width: 760px;
    margin: 0 auto;
}

.article-body {
    color: #354457;
    font-size: 18px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin-top: 42px;
    margin-bottom: 16px;
    color: #10243a;
    line-height: 1.3;
}

.article-body h2 {
    font-size: 30px;
}

.article-body h3 {
    font-size: 24px;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body a {
    color: #07888b;
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.article-body blockquote {
    margin: 32px 0;
    padding: 22px 28px;
    border-left: 4px solid #0b9b9d;
    border-radius: 0 10px 10px 0;
    background: #f1f7f8;
    color: #31485a;
    font-size: 20px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 25px;
    padding-left: 28px;
}

.article-tags {
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid #e5ebef;
    color: #637386;
    font-size: 14px;
}

.article-tags a {
    color: #087f83;
    text-decoration: none;
}

.related-articles {
    margin-top: 85px;
    padding-top: 45px;
    border-top: 1px solid #e5ebef;
}

.related-articles .section-heading {
    margin-bottom: 28px;
}

.related-articles .section-heading h2 {
    margin: 8px 0 0;
    color: #10243a;
    font-size: 32px;
}

.article-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 640 / 420;
    background: linear-gradient(135deg, #10243a, #087f83);
}

.article-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.04);
}

.article-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
}

.article-card-content time {
    display: block;
    margin-bottom: 10px;
    color: #8290a0;
    font-size: 12px;
}

.article-card-content h3 {
    margin: 0 0 10px;
    color: #10243a;
    font-size: 20px;
    line-height: 1.4;
}

.article-card-content h3 a {
    color: inherit;
    text-decoration: none;
}

.article-card-content h3 a:hover {
    color: #07888b;
}

.article-card-content p {
    color: #637386;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 760px) {
    .article-page {
        padding: 38px 18px 55px;
    }

    .article-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .article-excerpt {
        font-size: 17px;
    }

    .article-featured-image {
        margin-bottom: 32px;
    }

    .article-featured-image img {
        border-radius: 12px;
    }

    .article-body {
        font-size: 17px;
    }

    .article-body h2 {
        font-size: 26px;
    }

    .related-articles {
        margin-top: 55px;
    }
}


/* =========================================
   STANDARD PAGES
========================================= */

.standard-page {
    max-width: 100%;
    padding: 65px 24px 90px;
}

.standard-page-article {
    max-width: 900px;
    margin: 0 auto;
}

.standard-page-header {
    margin-bottom: 38px;
    text-align: center;
}

.standard-page-title {
    margin: 0 0 18px;
    color: #10243a;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.standard-page-excerpt {
    max-width: 720px;
    margin: 0 auto;
    color: #637386;
    font-size: 19px;
    line-height: 1.7;
}

.standard-page-featured-image {
    margin: 0 0 42px;
}

.standard-page-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.standard-page-content {
    color: #34465a;
    font-size: 17px;
    line-height: 1.85;
}

.standard-page-content h2,
.standard-page-content h3 {
    margin-top: 38px;
    color: #10243a;
    line-height: 1.3;
}

.standard-page-content a {
    color: #07888b;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.standard-page-content img {
    max-width: 100%;
    height: auto;
}

.standard-page-content blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    border-left: 4px solid #07888b;
    background: #f2f7f8;
    color: #34465a;
}

/* =========================================
   ARCHIVE AND SEARCH HEADERS
========================================= */

.archive-header,
.search-page-header {
    padding: 65px 24px;
    background: linear-gradient(135deg, #10243a 0%, #173b50 100%);
    color: #ffffff;
}

.archive-header-inner,
.search-page-header-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.archive-title,
.search-page-title {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.2;
    letter-spacing: -1px;
}

.archive-description,
.search-page-header-inner > p {
    max-width: 760px;
    color: #d2e0e8;
    font-size: 17px;
    line-height: 1.75;
}

.archive-description p {
    margin: 0;
}

.search-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #63d2ce;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.search-page-title span {
    display: block;
    margin-top: 8px;
    color: #63d2ce;
    overflow-wrap: anywhere;
}

/* =========================================
   ARCHIVE AND SEARCH CONTENT
========================================= */

.archive-content,
.search-page-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 24px 85px;
}

.article-card-category {
    margin-bottom: 10px;
    color: #07888b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.article-card-image-placeholder {
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10243a, #087f83);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.article-card-read-more {
    display: inline-block;
    margin-top: 12px;
    color: #07888b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.article-card-read-more:hover {
    color: #10243a;
}

/* =========================================
   PAGINATION
========================================= */

.archive-pagination {
    margin-top: 55px;
    text-align: center;
}

.archive-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 9px;
}

.archive-pagination a,
.archive-pagination span.page-numbers {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid #dce5eb;
    border-radius: 8px;
    background: #ffffff;
    color: #10243a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.archive-pagination a:hover,
.archive-pagination span.current {
    border-color: #07888b;
    background: #07888b;
    color: #ffffff;
}

/* =========================================
   EMPTY STATES
========================================= */

.archive-empty {
    max-width: 700px;
    margin: 0 auto;
    padding: 55px 25px;
    border: 1px solid #e3ebef;
    border-radius: 16px;
    background: #f7fafb;
    text-align: center;
}

.archive-empty h2 {
    margin: 0 0 15px;
    color: #10243a;
    font-size: 28px;
}

.archive-empty p {
    color: #637386;
    line-height: 1.7;
}

.archive-empty > a {
    display: inline-block;
    margin-top: 18px;
    color: #07888b;
    font-weight: 700;
}

/* =========================================
   404 PAGE
========================================= */

.error-404-page {
    padding: 75px 24px 90px;
    background: #f7fafb;
}

.error-404-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.error-404-number {
    color: #07888b;
    font-size: clamp(90px, 18vw, 170px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -8px;
}

.error-404-eyebrow {
    display: block;
    margin: 25px 0 12px;
    color: #07888b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.error-404-content h1 {
    margin: 0 0 18px;
    color: #10243a;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.2;
}

.error-404-content > p {
    max-width: 620px;
    margin: 0 auto;
    color: #637386;
    font-size: 17px;
    line-height: 1.75;
}

.error-404-home-button {
    display: inline-block;
    margin-top: 28px;
    padding: 15px 25px;
    border-radius: 8px;
    background: #07888b;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.error-404-home-button:hover {
    background: #10243a;
}

.error-404-search {
    max-width: 560px;
    margin: 55px auto 0;
}

.error-404-search h2,
.error-404-categories h2 {
    margin-bottom: 20px;
    color: #10243a;
    font-size: 23px;
}

.error-404-categories {
    margin-top: 50px;
}

.error-404-category-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.error-404-category-links a {
    padding: 11px 17px;
    border: 1px solid #dce5eb;
    border-radius: 8px;
    background: #ffffff;
    color: #10243a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.error-404-category-links a:hover {
    border-color: #07888b;
    color: #07888b;
}

/* =========================================
   RESPONSIVE PAGE LAYOUTS
========================================= */

@media (max-width: 760px) {
    .standard-page {
        padding: 42px 18px 60px;
    }

    .standard-page-header {
        margin-bottom: 28px;
    }

    .standard-page-featured-image {
        margin-bottom: 28px;
    }

    .standard-page-content {
        font-size: 16px;
    }

    .archive-header,
    .search-page-header {
        padding: 45px 20px;
    }

    .archive-content,
    .search-page-content {
        padding: 38px 18px 60px;
    }

    .error-404-page {
        padding: 55px 18px 65px;
    }

    .error-404-number {
        letter-spacing: -4px;
    }

    .error-404-search {
        margin-top: 42px;
    }
}

