:root {
    --blue: #147cbc;
    --blue-deep: #1446a5;
    --blue-bright: #0f75bc;
    --navy: #001f63;
    --navy-dark: #001747;
    --accent: #fcb03b;
    --accent-strong: #ffb329;
    --ink: #102343;
    --muted: #657790;
    --line: rgba(255, 255, 255, 0.18);
    --white: #fff;
    --off-white: #f4f8fc;
    --shadow: 0 35px 90px rgba(0, 31, 99, 0.22);
    --radius: 6px;
    --container: 1180px;
    --font-body: "Open Sans", Arial, sans-serif;
    --font-heading: "Titillium Web", Arial, sans-serif;
}

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

html {
    background-color: var(--navy);
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

body {
    margin: 0;
    background: var(--navy);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.55em;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.08;
}

p {
    margin: 0 0 1.2em;
}

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

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

.screen-reader-text:focus {
    z-index: 100000;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    padding: 12px 18px;
    clip: auto;
    background: var(--white);
    color: var(--navy);
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    transition: color 180ms ease, background 180ms ease, border 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button--accent {
    background: var(--accent);
    color: #101d37;
}

.button--accent:hover,
.button--accent:focus-visible {
    background: #ffc45d;
}

.button--ghost {
    border-color: rgba(255, 255, 255, 0.48);
    color: var(--white);
}

.button--ghost:hover,
.button--ghost:focus-visible {
    border-color: var(--white);
    background: var(--white);
    color: var(--navy);
}

.button--blue {
    background: var(--blue-deep);
    color: var(--white);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue-deep);
    font-weight: 700;
}

.text-link span {
    transition: transform 180ms ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

.text-link--light {
    color: var(--white);
}

.site-header {
    position: absolute;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    color: var(--white);
    transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.site-header.is-stuck {
    position: fixed;
    background: rgba(0, 31, 99, 0.96);
    box-shadow: 0 12px 35px rgba(0, 15, 55, 0.22);
    backdrop-filter: blur(14px);
}

.admin-bar .site-header.is-stuck {
    top: 32px;
}

.site-header__inner {
    display: grid;
    min-height: 104px;
    grid-template-columns: 250px 1fr auto;
    align-items: center;
    gap: 38px;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    width: 220px;
    max-height: 62px;
    object-fit: contain;
    object-position: left center;
}

.brand-wordmark {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
}

.primary-navigation {
    justify-self: center;
}

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

.primary-navigation a {
    position: relative;
    display: block;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
}

.primary-navigation a::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 2px;
    background: var(--accent);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after,
.primary-navigation .current-menu-item > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-phone {
    min-height: 44px;
    padding-inline: 20px;
    white-space: nowrap;
}

.header-phone svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 10px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 180ms ease;
}

.menu-toggle > span:not(.screen-reader-text) {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.hero {
    position: relative;
    display: flex;
    min-height: 790px;
    align-items: center;
    overflow: hidden;
    background-color: var(--blue);
    background-image: var(--hero-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
}

.hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 124, 188, 0.04) 48%, rgba(0, 31, 99, 0.08));
    content: "";
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

.hero__copy {
    width: min(620px, 58%);
}

.hero h1 {
    max-width: 610px;
    margin-bottom: 24px;
    font-size: clamp(58px, 6vw, 88px);
    letter-spacing: -0.025em;
}

.hero h1 span {
    color: var(--accent);
}

.hero__lead {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero__scroll {
    position: absolute;
    z-index: 2;
    bottom: 42px;
    left: 50%;
    display: grid;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    place-items: center;
    transform: translateX(-50%);
}

.hero__scroll span {
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: translateY(-2px) rotate(45deg);
}

.about-section {
    position: relative;
    padding: 92px 0 115px;
    background: var(--blue-deep);
    color: var(--white);
}

.about-card {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 500px;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    overflow: hidden;
    padding: 80px 90px;
    border-radius: var(--radius);
    margin-top: 0;
    background-image:
        linear-gradient(90deg, rgba(20, 70, 165, 0.94), rgba(20, 70, 165, 0.66)),
        var(--about-bg);
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow);
}

.about-card__copy {
    max-width: 610px;
}

.about-card h2 {
    font-size: clamp(40px, 4.2vw, 58px);
}

.about-card__copy > p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.about-card__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--accent);
    text-align: center;
    text-transform: uppercase;
}

.about-card__stat strong {
    margin: -10px 0;
    font-family: var(--font-heading);
    font-size: clamp(110px, 13vw, 180px);
    line-height: 1;
}

.about-card__stat span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.promise-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 110px;
    padding-top: 110px;
}

.promise-heading h2 {
    font-size: clamp(38px, 4vw, 56px);
}

.promise-heading h2 span {
    color: var(--accent);
    text-transform: uppercase;
}

.promise-copy {
    display: grid;
    gap: 36px;
}

.promise-copy article {
    padding-left: 26px;
    border-left: 3px solid var(--accent);
}

.promise-copy h3 {
    margin-bottom: 8px;
    font-size: 24px;
}

.promise-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
}

.services-section {
    position: relative;
    padding: 110px 0 130px;
    background-color: var(--blue);
    background-image: linear-gradient(rgba(18, 120, 183, 0.93), rgba(18, 120, 183, 0.97)), var(--services-bg);
    background-position: center;
    background-size: cover;
    color: var(--white);
}

.services-brand {
    width: 170px;
    margin: 0 auto 28px;
    opacity: 0.98;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 54px;
}

.section-heading--center {
    margin-inline: auto;
    text-align: center;
}

.section-heading--split {
    display: flex;
    max-width: none;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.section-heading h2 {
    font-size: clamp(40px, 4.7vw, 62px);
}

.section-heading > p:last-child {
    color: rgba(255, 255, 255, 0.72);
}

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

.service-card {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background-image:
        linear-gradient(180deg, rgba(0, 31, 99, 0.38) 0%, rgba(20, 70, 165, 0.93) 84%),
        var(--card-image);
    background-position: center;
    background-size: cover;
    box-shadow: 0 18px 55px rgba(0, 31, 99, 0.18);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
    box-shadow: 0 26px 70px rgba(0, 31, 99, 0.28);
    transform: translateY(-7px);
}

.service-card::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 64px;
    background: var(--accent);
    content: "";
}

.service-card__content {
    position: absolute;
    inset: auto 0 0;
    padding: 38px 34px;
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 24px;
    text-transform: uppercase;
}

.service-card ul {
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    list-style: none;
}

.service-card li {
    position: relative;
    padding-left: 16px;
    margin: 5px 0;
}

.service-card li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--accent);
    content: "–";
}

.insight-section {
    position: relative;
    overflow: hidden;
    padding: 130px 0;
    background: var(--off-white);
}

.insight-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.insight-card {
    padding: 60px;
    border-top: 5px solid var(--accent);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 25px 70px rgba(14, 62, 120, 0.12);
}

.insight-card h2 {
    color: var(--blue-deep);
    font-size: clamp(34px, 3.5vw, 48px);
}

.insight-card h2 span {
    color: var(--accent);
}

.insight-card p:not(.eyebrow),
.check-list {
    color: var(--muted);
}

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

.check-list li {
    position: relative;
    padding-left: 30px;
    margin: 10px 0;
}

.check-list li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--accent);
    content: "✓";
    font-weight: 700;
}

.insight-shape {
    position: absolute;
    z-index: 1;
    background: var(--navy);
    opacity: 0.08;
    pointer-events: none;
}

.insight-shape--left {
    bottom: -180px;
    left: -180px;
    width: 520px;
    height: 520px;
    border-radius: 46% 54% 62% 38%;
    transform: rotate(18deg);
}

.insight-shape--right {
    top: -150px;
    right: -120px;
    width: 450px;
    height: 450px;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    transform: rotate(24deg);
}

.offer-section {
    padding: 96px 0 120px;
    background: linear-gradient(180deg, var(--off-white) 0 58%, var(--blue) 58% 100%);
}

.offer-card {
    display: grid;
    min-height: 420px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    padding: 70px 80px;
    border-radius: var(--radius);
    background-color: var(--blue-deep);
    background-image: linear-gradient(90deg, rgba(20, 70, 165, 0.96), rgba(0, 31, 99, 0.72)), var(--offer-bg);
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow);
    color: var(--white);
}

.offer-card h2 {
    font-size: clamp(40px, 4vw, 58px);
}

.offer-card .check-list {
    color: rgba(255, 255, 255, 0.82);
}

.testimonials-section {
    position: relative;
    overflow: hidden;
    padding: 112px 0 130px;
    background-color: var(--blue);
    background-image: linear-gradient(90deg, rgba(0, 31, 99, 0.96), rgba(20, 124, 188, 0.72)), var(--stories-bg);
    background-position: center;
    background-size: cover;
    color: var(--white);
}

.testimonials-section::before {
    position: absolute;
    bottom: -260px;
    left: -200px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: var(--navy);
    content: "";
}

.testimonial-slider {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.testimonial-slider > .eyebrow {
    margin-bottom: 30px;
}

.testimonial-track {
    position: relative;
    min-height: 400px;
}

.testimonial {
    position: absolute;
    inset: 0;
    display: flex;
    margin: 0;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    pointer-events: none;
    transform: translateX(28px);
    transition: opacity 300ms ease, transform 300ms ease;
}

.testimonial.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.testimonial blockquote {
    max-width: 820px;
    margin: 0 0 30px;
    font-size: clamp(22px, 2.2vw, 32px);
    font-style: italic;
    line-height: 1.52;
}

.testimonial figcaption {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial figcaption img {
    width: 64px;
    height: 64px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    object-fit: cover;
}

.testimonial figcaption span {
    display: flex;
    flex-direction: column;
}

.testimonial figcaption small {
    color: rgba(255, 255, 255, 0.58);
}

.testimonial-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

.testimonial-controls button {
    display: grid;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    place-items: center;
    transition: background 180ms ease, color 180ms ease;
}

.testimonial-controls button:hover,
.testimonial-controls button:focus-visible {
    background: var(--accent);
    color: var(--navy);
}

.testimonial-controls span {
    min-width: 58px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-align: center;
}

.latest-posts-section {
    padding: 110px 0 135px;
    background: var(--blue);
    color: var(--white);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.post-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 22px 60px rgba(0, 31, 99, 0.13);
    color: var(--ink);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.post-card:hover {
    box-shadow: 0 28px 70px rgba(0, 31, 99, 0.22);
    transform: translateY(-6px);
}

.post-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1.48 / 1;
    background: #dce9f5;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.post-card:hover .post-card__image img {
    transform: scale(1.035);
}

.post-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.post-card__body {
    padding: 28px 28px 32px;
}

.post-card time {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-card h2 {
    margin: 11px 0 12px;
    font-size: 25px;
    line-height: 1.18;
}

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

.post-card p {
    color: var(--muted);
    font-size: 14px;
}

.site-footer {
    position: relative;
    padding: 125px 0 34px;
    background-color: var(--navy);
    background-image:
        linear-gradient(
            180deg,
            rgba(0, 31, 99, 0.94) 0%,
            rgba(0, 31, 99, 0.72) 48%,
            rgba(0, 31, 99, 0.14) 100%
        ),
        var(--footer-bg);
    background-position: center, center bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, 100% auto;
    color: var(--white);
}

.contact-section {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 110px;
}

.contact-intro h2 {
    max-width: 430px;
    font-size: clamp(46px, 5vw, 68px);
}

.contact-intro > p:not(.eyebrow) {
    max-width: 390px;
    color: rgba(255, 255, 255, 0.55);
}

.contact-email {
    display: inline-block;
    margin: 16px 0 24px;
    color: var(--accent);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: grid;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    place-items: center;
}

.social-links a:hover,
.social-links a:focus-visible {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--navy);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form label {
    display: block;
}

.contact-form label > span {
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 17px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    outline: 0;
    background: rgba(0, 22, 75, 0.34);
    color: var(--white);
    transition: border 180ms ease, background 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    background: rgba(0, 22, 75, 0.58);
}

.contact-form label:nth-of-type(1) input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form label:nth-of-type(1) input::before {
    content: "";
}

.contact-form input[name="contact_name"] {
    --placeholder: "Vaše ime i prezime";
}

.contact-form input[name="contact_phone"] {
    --placeholder: "Kontakt telefon";
}

.contact-form input[name="contact_email"] {
    --placeholder: "Vaša e-mail adresa";
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .button {
    justify-self: start;
    min-width: 210px;
    margin-top: 8px;
    border: 0;
    cursor: pointer;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.form-notice {
    padding: 14px 18px;
    border-left: 3px solid var(--accent);
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.form-notice--sent {
    border-color: #54d68b;
}

.form-notice--failed,
.form-notice--invalid,
.form-notice--security {
    border-color: #ff7171;
}

.footer-bottom {
    display: grid;
    min-height: 120px;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 30px;
    padding-top: 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 100px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
}

.footer-bottom p {
    margin: 0;
}

.footer-mark {
    justify-self: center;
}

.footer-mark img {
    width: 64px;
    max-height: 80px;
    object-fit: contain;
}

.footer-credit {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    opacity: 0.82;
    transition: opacity 180ms ease, transform 180ms ease;
}

.footer-credit:hover,
.footer-credit:focus-visible {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-credit img {
    width: 74px;
    height: auto;
}

.internal-hero {
    display: flex;
    min-height: 520px;
    align-items: end;
    padding: 190px 0 100px;
    background:
        linear-gradient(120deg, rgba(0, 31, 99, 0.98), rgba(20, 124, 188, 0.9)),
        url("/wp-content/uploads/2020/03/gradjevina-saveti-pri-kupovini-1.jpg") center/cover;
    color: var(--white);
}

.internal-hero--compact {
    min-height: 400px;
    padding-bottom: 75px;
}

.internal-hero__content {
    max-width: var(--container);
}

.internal-hero h1 {
    max-width: 900px;
    font-size: clamp(52px, 7vw, 86px);
}

.internal-hero p:last-child,
.archive-description {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 18px;
}

.archive-section {
    padding: 100px 0 130px;
    background: var(--off-white);
}

.archive-section .posts-grid {
    row-gap: 38px;
}

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

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

.pagination .page-numbers {
    display: inline-grid;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d8e2ed;
    background: var(--white);
    place-items: center;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
    border-color: var(--blue-deep);
    background: var(--blue-deep);
    color: var(--white);
}

.single-hero {
    position: relative;
    display: flex;
    min-height: 720px;
    align-items: end;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
}

.single-hero__media,
.single-hero__overlay {
    position: absolute;
    inset: 0;
}

.single-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-hero__overlay {
    background: linear-gradient(180deg, rgba(0, 31, 99, 0.2), rgba(0, 18, 60, 0.92));
}

.single-hero__content {
    position: relative;
    z-index: 2;
    padding-bottom: 85px;
}

.single-hero__content h1 {
    max-width: 980px;
    margin-top: 15px;
    font-size: clamp(46px, 6vw, 78px);
}

.single-hero__content time {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.single-hero__back {
    display: block;
    margin-bottom: 45px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.single-content {
    max-width: 930px;
    padding-top: 95px;
    padding-bottom: 110px;
    color: var(--white);
}

.single-post {
    background:
        radial-gradient(circle at 85% 20%, rgba(20, 124, 188, 0.48), transparent 42%),
        linear-gradient(180deg, var(--blue-deep) 0%, var(--blue) 100%);
}

.entry-content {
    font-size: 18px;
}

.entry-content > * {
    max-width: 780px;
    margin-right: auto;
    margin-left: auto;
}

.entry-content > .alignwide {
    max-width: 1080px;
}

.entry-content > .alignfull {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.65em;
    color: var(--white);
}

.entry-content h2 {
    font-size: 40px;
}

.entry-content h3 {
    font-size: 30px;
}

.entry-content p,
.entry-content li {
    color: rgba(255, 255, 255, 0.9);
}

.entry-content p *,
.entry-content li * {
    color: inherit !important;
}

.entry-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content figure,
.entry-content img {
    border-radius: var(--radius);
}

.article-inline-image {
    display: inline-block;
    width: calc(50% - 0.75rem);
    margin: 1.5rem 0.6rem 1.5rem 0;
    vertical-align: top;
}

.article-inline-image:nth-of-type(even) {
    margin-right: 0;
    margin-left: 0.6rem;
}

.article-inline-image img {
    display: block;
    width: 100%;
    height: auto;
}

.entry-content blockquote {
    padding: 25px 32px;
    border-left: 5px solid var(--accent);
    background: rgba(0, 31, 99, 0.48);
    color: var(--white);
    font-size: 22px;
    font-style: italic;
}

.single-footer {
    display: flex;
    max-width: 780px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 45px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    margin: 70px auto 0;
}

.single-footer a:not(.button) {
    color: var(--accent);
}

.single-footer .button--blue {
    background: var(--accent);
    color: var(--navy);
}

.related-posts {
    padding: 105px 0 130px;
    background: var(--off-white);
}

.related-posts .section-heading {
    color: var(--ink);
}

.standard-page {
    max-width: 930px;
    padding-top: 90px;
    padding-bottom: 110px;
    background: var(--white);
}

.not-found {
    display: flex;
    min-height: 760px;
    align-items: center;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: var(--white);
    text-align: center;
}

.not-found h1 {
    font-size: clamp(52px, 7vw, 92px);
}

.not-found p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
}

.not-found .button {
    margin: 20px 6px 0;
}

.empty-state {
    padding: 80px 0;
    text-align: center;
}

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .site-header__inner {
        grid-template-columns: 190px 1fr auto;
        gap: 24px;
    }

    .custom-logo {
        width: 185px;
    }

    .primary-navigation .menu {
        gap: 21px;
    }

    .header-phone {
        padding-inline: 14px;
    }

    .about-card {
        padding: 70px 60px;
    }

    .service-card {
        min-height: 560px;
    }

    .service-card__content {
        padding: 30px 26px;
    }

    .insight-card {
        padding: 48px;
    }
}

@media (max-width: 920px) {
    .container {
        width: min(calc(100% - 36px), var(--container));
    }

    .site-header__inner {
        min-height: 84px;
        grid-template-columns: 1fr auto;
    }

    .site-branding {
        position: relative;
        z-index: 1002;
    }

    .custom-logo {
        width: 190px;
    }

    .menu-toggle {
        position: relative;
        z-index: 1002;
        display: block;
        justify-self: end;
    }

    .menu-open .menu-toggle > span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-open .menu-toggle > span:nth-child(2) {
        opacity: 0;
    }

    .menu-open .menu-toggle > span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .menu-open .menu-toggle {
        background: rgba(255, 255, 255, 0.08);
    }

    .primary-navigation {
        position: fixed;
        z-index: 1001;
        inset: 0;
        display: flex;
        width: 100vw;
        min-height: 100vh;
        height: 100dvh;
        align-items: center;
        align-self: stretch;
        justify-content: center;
        justify-self: stretch;
        overflow-y: auto;
        padding: 112px 28px max(40px, env(safe-area-inset-bottom));
        visibility: hidden;
        background:
            radial-gradient(circle at 85% 18%, rgba(20, 124, 188, 0.32), transparent 38%),
            rgba(0, 31, 99, 0.995);
        opacity: 0;
        overscroll-behavior: contain;
        transition: opacity 180ms ease, visibility 180ms ease;
    }

    .menu-open .primary-navigation {
        visibility: visible;
        opacity: 1;
    }

    .primary-navigation .menu {
        position: relative;
        z-index: 1;
        width: min(100%, 320px);
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .primary-navigation .menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    }

    .primary-navigation .menu > li:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.13);
    }

    .primary-navigation a {
        padding: 16px 12px;
        font-family: var(--font-heading);
        font-size: 28px;
        line-height: 1.15;
    }

    .primary-navigation a::after {
        right: 42%;
        bottom: 9px;
        left: 42%;
    }

    .header-phone {
        display: none;
    }

    .hero {
        min-height: 700px;
        background-image: linear-gradient(rgba(0, 31, 99, 0.26), rgba(20, 124, 188, 0.42)), var(--hero-mobile-image);
        background-position: center;
    }

    .hero__copy {
        width: min(610px, 86%);
    }

    .about-card,
    .promise-grid,
    .insight-grid,
    .offer-card,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .about-card {
        gap: 40px;
        padding: 60px;
        margin-top: 0;
    }

    .about-card__stat {
        align-items: flex-start;
        text-align: left;
    }

    .about-card__stat strong {
        font-size: 115px;
    }

    .promise-grid {
        gap: 60px;
    }

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

    .service-card {
        min-height: 520px;
    }

    .insight-grid {
        gap: 24px;
    }

    .offer-card {
        gap: 30px;
    }

    .contact-section {
        gap: 60px;
    }

    .contact-intro h2 {
        max-width: 620px;
    }

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

    .footer-mark {
        display: none;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 15px;
    }

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .custom-logo {
        width: 165px;
    }

    .hero {
        min-height: 720px;
        align-items: end;
        padding-bottom: 105px;
    }

    .hero__inner {
        padding-top: 90px;
    }

    .hero__copy {
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(48px, 14vw, 66px);
    }

    .hero__lead {
        font-size: 16px;
    }

    .hero__actions .button {
        flex: 1 1 100%;
    }

    .hero__scroll {
        bottom: 28px;
    }

    .about-section {
        padding: 58px 0 90px;
    }

    .about-card {
        min-height: auto;
        gap: 28px;
        padding: 42px 28px;
        margin-top: 0;
    }

    .about-card h2,
    .promise-heading h2,
    .section-heading h2,
    .offer-card h2 {
        font-size: 38px;
    }

    .about-card__copy > p:not(.eyebrow) {
        font-size: 16px;
    }

    .about-card__stat strong {
        font-size: 90px;
    }

    .promise-grid {
        gap: 45px;
        padding-top: 80px;
    }

    .services-section,
    .insight-section,
    .testimonials-section,
    .latest-posts-section {
        padding-top: 85px;
        padding-bottom: 95px;
    }

    .services-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 530px;
    }

    .insight-card {
        padding: 36px 28px;
    }

    .insight-card h2 {
        font-size: 34px;
    }

    .offer-section {
        padding: 64px 0 80px;
    }

    .offer-card {
        min-height: auto;
        padding: 46px 28px;
    }

    .testimonial-track {
        min-height: 390px;
    }

    .testimonial blockquote {
        font-size: 20px;
        line-height: 1.55;
    }

    .section-heading--split {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer {
        padding-top: 90px;
        background-size: cover, auto 42%;
    }

    .contact-intro h2 {
        font-size: 46px;
    }

    .footer-bottom {
        min-height: auto;
        grid-template-columns: 1fr;
        align-items: center;
        padding-top: 40px;
        margin-top: 70px;
        text-align: center;
    }

    .footer-credit {
        justify-self: center;
    }

    .internal-hero {
        min-height: 440px;
        padding-top: 150px;
        padding-bottom: 70px;
    }

    .internal-hero h1 {
        font-size: 50px;
    }

    .single-hero {
        min-height: 620px;
    }

    .single-hero__content {
        padding-bottom: 55px;
    }

    .single-hero__content h1 {
        font-size: 43px;
    }

    .single-content {
        padding-top: 65px;
        padding-bottom: 75px;
    }

    .entry-content {
        font-size: 16px;
    }

    .entry-content h2 {
        font-size: 34px;
    }

    .article-inline-image,
    .article-inline-image:nth-of-type(even) {
        display: block;
        width: 100%;
        margin: 1.25rem 0;
    }

    .single-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-bar .site-header.is-stuck {
        top: 46px;
    }
}

@media (max-width: 920px) and (max-height: 620px) {
    .primary-navigation {
        align-items: flex-start;
        padding-top: 96px;
    }

    .primary-navigation a {
        padding-block: 11px;
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
