/*
Theme Name: Global Shipping Line
Theme URI: https://example.com/globalsafetrack
Author: Codex
Description: A professional logistics and package tracking WordPress theme for Global Shipping Line.
Version: 2.0.0
Text Domain: globalsafetrack
*/

:root {
    --primary: #0b63ce;
    --primary-dark: #071d33;
    --primary-deep: #0a2d52;
    --accent: #19a8d8;
    --text: #172331;
    --muted: #647386;
    --surface: #f4f8fc;
    --surface-strong: #e8f0f8;
    --white: #ffffff;
    --line: rgba(7, 29, 51, 0.12);
    --shadow: 0 24px 60px rgba(7, 29, 51, 0.14);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
}

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

a:hover {
    color: var(--primary);
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--primary-dark);
    line-height: 1.12;
    letter-spacing: 0;
}

p {
    color: var(--muted);
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    z-index: 10000;
    clip: auto;
    padding: 10px 14px;
    background: var(--primary-dark);
    color: var(--white);
}

.topbar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.topbar a {
    color: rgba(255, 255, 255, 0.92);
}

.topbar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.site-nav {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-weight: 800;
    font-size: 0.9rem;
}

.brand-text {
    display: grid;
    gap: 1px;
}

.brand-text strong {
    color: var(--primary-dark);
    font-size: 1.05rem;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

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

.primary-nav {
    justify-self: end;
}

.primary-nav .main-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav .main-menu a {
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
}

.primary-nav .main-menu a:hover,
.primary-nav .main-menu .current-menu-item > a {
    color: var(--primary);
}

.primary-nav {
    transition: max-height 0.28s ease, opacity 0.28s ease;
}

.primary-nav.is-open {
    display: block;
    opacity: 1;
    max-height: 100vh;
}

.menu-toggle {
    display: none;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--primary-dark);
    font-weight: 800;
    padding: 10px 14px;
}

.header-cta,
.btn,
.tracking-form button,
.contact-form button,
.wpcargo-theme-form input[type="submit"],
.wpcargo-theme-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: var(--radius);
    border: 0;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.header-cta,
.btn-primary,
.tracking-form button,
.contact-form button,
.wpcargo-theme-form input[type="submit"],
.wpcargo-theme-form button {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 28px rgba(11, 99, 206, 0.24);
}

.btn:hover,
.header-cta:hover,
.tracking-form button:hover,
.contact-form button:hover {
    transform: translateY(-2px);
    color: var(--white);
}

.btn-secondary-light {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
    color: var(--primary-dark);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: none;
}

.btn-outline:hover {
    color: var(--primary);
    box-shadow: 0 12px 24px rgba(7, 29, 51, 0.1);
}

.section {
    padding: 86px 0;
}

.bg-soft {
    background: linear-gradient(180deg, var(--surface), #ffffff);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h2,
.content-copy h2,
.banner-content h2,
.cta-banner h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 16px;
}

.section-heading p,
.content-copy p,
.banner-content p,
.cta-banner p {
    font-size: 1.05rem;
}

.eyebrow,
.panel-label,
.value-card span,
.process-card span,
.icon-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero {
    position: relative;
    min-height: 690px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero::before,
.page-hero::before,
.banner-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 29, 51, 0.93), rgba(7, 29, 51, 0.66) 50%, rgba(7, 29, 51, 0.35));
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    gap: 42px;
    align-items: center;
    padding: 84px 0;
}

.hero-content h1 {
    max-width: 740px;
    margin-bottom: 18px;
    color: var(--white);
    font-size: clamp(2.55rem, 5vw, 5rem);
}

.hero-content p {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.18rem;
}

.company-kicker {
    margin: 12px 0 10px;
    color: var(--white);
    font-size: clamp(1.5rem, 2vw, 2.1rem);
}

.hero .eyebrow,
.banner-section .eyebrow,
.page-hero .eyebrow {
    color: #9fe4ff;
}

.hero-actions,
.contact-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.trust-strip span {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.94);
    font-weight: 800;
    font-size: 0.9rem;
}

.tracking-panel,
.contact-card,
.form-card,
.support-card,
.content-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tracking-panel {
    padding: 30px;
}

.tracking-panel h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.55rem, 2vw, 2.3rem);
}

.tracking-panel p {
    margin-bottom: 18px;
}

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

.tracking-form label,
.contact-form label {
    color: var(--primary-dark);
    font-weight: 800;
}

.tracking-form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.tracking-form input,
.contact-form input,
.contact-form textarea,
.wpcargo-theme-form input[type="text"],
.wpcargo-theme-form input[type="search"],
.wpcargo-theme-form select,
.wpcargo-theme-form textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--text);
    background: #fbfdff;
    font: inherit;
}

.tracking-note {
    margin: 0;
    font-size: 0.9rem;
}

.wpcargo-theme-form form {
    display: grid;
    gap: 12px;
}

.metrics-band {
    position: relative;
    z-index: 2;
    margin-top: -48px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.metrics-grid div {
    min-height: 118px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 20px;
    border-right: 1px solid var(--line);
}

.metrics-grid div:last-child {
    border-right: 0;
}

.metrics-grid strong {
    color: var(--primary);
    font-size: 2rem;
    line-height: 1;
}

.metrics-grid span {
    color: var(--muted);
    font-weight: 700;
}

.service-grid,
.process-grid,
.trust-grid,
.values-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

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

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

.service-card,
.process-card,
.trust-card,
.team-card,
.value-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 18px 40px rgba(7, 29, 51, 0.09);
}

.service-card,
.process-card,
.trust-card,
.team-card {
    padding: 18px;
}

.service-card h3,
.process-card h3,
.trust-card h3,
.team-card h3 {
    margin: 16px 0 10px;
    font-size: 1.28rem;
}

.service-card p,
.process-card p,
.trust-card p,
.team-card p {
    margin-bottom: 0;
}

.service-image,
.process-image,
.trust-image,
.team-image,
.contact-image,
.support-image,
.feature-image {
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.service-image {
    height: 210px;
}

.process-image {
    height: 220px;
}

.trust-image {
    height: 145px;
}

.team-image {
    height: 230px;
}

.feature-image,
.contact-image,
.support-image {
    height: 100%;
    min-height: 360px;
}

.icon-badge {
    margin-top: 16px;
    padding: 9px 10px;
    border-radius: var(--radius);
    background: #e9f5ff;
}

.text-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 900;
}

.text-link:hover {
    color: var(--primary-dark);
}

.section-action {
    margin-top: 28px;
}

.split-grid,
.tracking-layout,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.content-copy {
    max-width: 620px;
}

.media-stack {
    position: relative;
    min-height: 520px;
}

.stack-main {
    width: 82%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stack-card {
    position: absolute;
    right: 0;
    bottom: 24px;
    width: 48%;
    height: 245px;
    object-fit: cover;
    border: 8px solid var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.list-check {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}

.list-check li {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
    font-weight: 650;
}

.list-check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: inset 0 0 0 3px var(--white), 0 0 0 1px var(--accent);
}

.process-card span,
.value-card span {
    margin-top: 18px;
    color: var(--accent);
}

.banner-section,
.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
}

.banner-content,
.page-hero-content {
    position: relative;
    z-index: 1;
}

.banner-content {
    max-width: 760px;
    padding: 30px 0;
}

.banner-content h2,
.page-hero h1,
.page-hero p {
    color: var(--white);
}

.banner-content h2 {
    margin-bottom: 24px;
}

.page-hero {
    min-height: 390px;
    display: flex;
    align-items: end;
    padding: 92px 0 72px;
}

.page-hero-content {
    max-width: 760px;
}

.page-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(2.35rem, 4vw, 4.2rem);
}

.page-hero p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.photo-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    margin: 0;
    border: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(7, 29, 51, 0.08);
}

.photo-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-card figcaption {
    display: grid;
    gap: 4px;
    min-height: 104px;
    padding: 13px 14px 15px;
    background: var(--white);
}

.photo-card figcaption strong {
    color: var(--primary-dark);
    line-height: 1.25;
}

.photo-card figcaption span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.cta-section {
    padding-top: 0;
}

.cta-banner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 34px;
    border-radius: var(--radius);
    background: var(--primary-dark);
    box-shadow: var(--shadow);
}

.cta-banner h2,
.cta-banner p {
    color: var(--white);
}

.cta-banner p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

.values-grid {
    align-items: stretch;
}

.value-card {
    padding: 30px;
}

.value-card h2 {
    margin: 12px 0;
    font-size: 1.55rem;
}

.tracking-layout {
    align-items: start;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
}

.tracking-page-panel {
    padding: 38px;
}

.support-card,
.contact-card,
.form-card,
.content-card {
    padding: 24px;
}

.support-card .btn {
    margin-top: 20px;
}

.contact-grid {
    align-items: stretch;
}

.contact-card,
.form-card {
    display: grid;
    align-content: start;
    gap: 18px;
}

.contact-details strong {
    color: var(--primary-dark);
}

.contact-card h2,
.form-card h3 {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    gap: 7px;
}

.map-placeholder {
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, rgba(7, 29, 51, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(7, 29, 51, 0.05) 1px, transparent 1px),
        linear-gradient(135deg, #eef6ff, #ffffff);
    background-size: 28px 28px, 28px 28px, auto;
    box-shadow: var(--shadow);
}

.map-placeholder div {
    display: grid;
    gap: 8px;
    width: min(360px, 100%);
    padding: 26px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    text-align: center;
}

.map-placeholder strong {
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.map-placeholder span {
    color: var(--primary);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.map-placeholder small {
    color: var(--muted);
}

.form-notice {
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-weight: 800;
}

.form-notice.success {
    color: #075f37;
    background: #e6f7ee;
}

.form-notice.error {
    color: #8a1f17;
    background: #fdecea;
}

.content-list {
    display: grid;
    gap: 24px;
}

.builder-section {
    padding-top: 0;
}

.builder-content {
    max-width: 980px;
}

.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.84);
    padding: 58px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.footer-brand,
.site-footer h3 {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 900;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-nav {
    display: grid;
    gap: 8px;
}

.footer-bottom {
    margin: 34px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.92rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.site-nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

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

.nav-menu a {
    color: var(--text);
    font-weight: 700;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: var(--radius);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 28px rgba(11, 99, 206, 0.24);
}

.hero-section {
    position: relative;
    min-height: 780px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: var(--white);
    background-image: linear-gradient(100deg, rgba(7, 29, 51, 0.94), rgba(7, 29, 51, 0.72)), url('photos/warehouse612x612.jpg');
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(5, 31, 57, 0.96), rgba(10, 44, 80, 0.62));
    z-index: 0;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 690px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 16px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #dcebff;
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-actions .primary,
.hero-actions .secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: var(--radius);
    font-weight: 800;
}

.hero-actions .primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.hero-actions .secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-tracking-card,
.hero-card {
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.hero-tracking-card h3 {
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 28px;
    align-items: center;
}

.about-media img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.photo-gallery-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 35px rgba(7, 29, 51, 0.09);
}

.photo-gallery-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.photo-gallery-card figcaption {
    display: grid;
    gap: 4px;
    padding: 13px 14px 15px;
    color: var(--muted);
    font-weight: 700;
}

.photo-gallery-card figcaption strong {
    color: var(--primary-dark);
}

.photo-gallery-card figcaption span {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .container {
        width: min(100%, calc(100% - 32px));
    }

    .site-nav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .primary-nav {
        width: 100%;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        display: block;
    }

    .primary-nav .main-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-top: 1px solid var(--line);
        margin-top: 14px;
        padding-top: 14px;
    }

    .primary-nav .main-menu li {
        width: 100%;
    }

    .primary-nav .main-menu a {
        display: block;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(11, 99, 206, 0.08);
    }

    .header-cta {
        width: 100%;
        text-align: center;
    }

    .page-hero,
    .hero,
    .hero-section {
        min-height: auto;
        padding: 72px 0 46px;
    }

    .hero-grid,
    .split-grid,
    .tracking-layout,
    .contact-grid,
    .about-grid,
    .photo-gallery-grid,
    .service-grid,
    .process-grid,
    .trust-grid,
    .values-grid,
    .team-grid,
    .metrics-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1,
    .page-hero h1,
    .banner-content h2 {
        font-size: clamp(2rem, 6vw, 3.2rem);
    }

    .feature-image,
    .contact-image,
    .support-image,
    .stack-main,
    .stack-card {
        height: auto;
    }

    .tracking-form-row {
        grid-template-columns: 1fr;
    }

    .form-card,
    .contact-card,
    .support-card,
    .tracking-panel,
    .value-card,
    .service-card,
    .process-card,
    .trust-card,
    .team-card,
    .photo-card,
    .footer-grid > * {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .topbar-inner,
    .site-nav,
    .hero-actions,
    .trust-strip,
    .button-row,
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-inner {
        gap: 10px;
    }

    .main-menu a,
    .header-cta,
    .btn,
    .tracking-form button,
    .contact-form button {
        font-size: 0.95rem;
    }

    .page-hero-content,
    .banner-content,
    .hero-content,
    .content-copy {
        width: 100%;
    }

    .page-hero,
    .hero,
    .hero-section {
        padding: 56px 0 40px;
    }

    .section {
        padding: 60px 0;
    }

    .page-hero h1,
    .hero-content h1,
    .banner-content h2 {
        font-size: clamp(1.85rem, 7vw, 2.8rem);
    }

    .section-heading h2,
    .content-copy h2,
    .cta-banner h2 {
        font-size: clamp(1.9rem, 6vw, 2.6rem);
    }

    .page-hero p,
    .section-heading p,
    .content-copy p,
    .banner-content p,
    .cta-banner p {
        font-size: 1rem;
    }

    .main-menu .current-menu-item > a,
    .main-menu a {
        padding-left: 6px;
    }

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

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

    .tracking-form-row,
    .split-grid,
    .contact-grid,
    .tracking-layout,
    .values-grid,
    .service-grid,
    .trust-grid,
    .photo-gallery-grid,
    .footer-grid {
        gap: 18px;
    }
}

@media (max-width: 540px) {
    .topbar-inner,
    .site-nav,
    .hero-actions,
    .trust-strip,
    .button-row,
    .contact-actions {
        gap: 12px;
    }

    .primary-nav .main-menu a {
        padding: 14px 0;
        font-size: 0.96rem;
    }

    .page-hero,
    .hero,
    .hero-section,
    .section {
        padding: 48px 0;
    }

    .hero-grid,
    .about-grid,
    .tracking-layout,
    .split-grid {
        gap: 22px;
    }

    .brand-text strong {
        font-size: 1rem;
    }

    .brand-text small {
        font-size: 0.72rem;
    }

    .header-cta,
    .btn,
    .tracking-form button,
    .contact-form button {
        width: 100%;
    }

    .page-hero h1,
    .hero-content h1,
    .banner-content h2 {
        font-size: 2.2rem;
    }
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

@media (max-width: 1080px) {
    .site-nav {
        grid-template-columns: auto auto;
    }

    .primary-nav {
        grid-column: 1 / -1;
        justify-self: stretch;
        display: none;
    }

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

    .main-menu {
        display: grid;
        gap: 0;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--white);
        overflow: hidden;
    }

    .main-menu a {
        display: block;
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
    }

    .main-menu li:last-child a {
        border-bottom: 0;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .header-cta {
        display: none;
    }

    .hero-grid,
    .split-grid,
    .tracking-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        padding: 64px 0;
    }

    .service-grid,
    .process-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 760px) {
    .topbar-inner {
        padding: 8px 0;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero::before,
    .page-hero::before,
    .banner-section::before {
        background: rgba(7, 29, 51, 0.82);
    }

    .section {
        padding: 62px 0;
    }

    .metrics-band {
        margin-top: 0;
    }

    .metrics-grid,
    .service-grid,
    .process-grid,
    .trust-grid,
    .values-grid,
    .team-grid,
    .footer-grid,
    .cta-banner {
        grid-template-columns: 1fr;
    }

    .metrics-grid div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .metrics-grid div:last-child {
        border-bottom: 0;
    }

    .tracking-form-row {
        grid-template-columns: 1fr;
    }

    .media-stack {
        min-height: auto;
    }

    .stack-main,
    .stack-card {
        position: static;
        width: 100%;
        height: auto;
        min-height: 260px;
        border: 0;
        margin-bottom: 12px;
    }

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

    .cta-banner {
        padding: 24px;
    }

}

@media (max-width: 480px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-text strong {
        font-size: 0.98rem;
    }

    .tracking-panel,
    .tracking-page-panel,
    .support-card,
    .contact-card,
    .form-card,
    .content-card {
        padding: 20px;
    }

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

/* Final responsive safeguards for WordPress theme layouts. */
.site-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
}

.primary-nav {
    min-width: 0;
}

.main-menu {
    flex-wrap: wrap;
}

.topbar-inner span,
.brand-text,
.content-copy,
.tracking-panel,
.contact-card,
.form-card,
.support-card,
.content-card,
.service-card,
.process-card,
.trust-card,
.team-card,
.value-card {
    min-width: 0;
}

.topbar-inner,
.contact-details,
.content-card,
.map-placeholder,
.footer-grid {
    overflow-wrap: anywhere;
}

@media (min-width: 1081px) and (max-width: 1240px) {
    .container {
        width: min(1120px, calc(100% - 40px));
    }

    .site-nav {
        gap: 14px;
    }

    .main-menu {
        gap: 16px;
    }

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

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
        gap: 30px;
    }
}

@media (max-width: 1080px) {
    .site-nav {
        grid-template-columns: 1fr auto;
        gap: 14px;
        padding: 12px 0;
    }

    .brand {
        min-width: 0;
    }

    .brand-text strong {
        overflow-wrap: anywhere;
    }

    .primary-nav {
        grid-column: 1 / -1;
        width: 100%;
    }

    .main-menu {
        width: 100%;
    }

    .hero {
        min-height: auto;
    }

    .page-hero {
        min-height: 330px;
        padding: 76px 0 58px;
    }

    .feature-image,
    .contact-image,
    .support-image {
        min-height: 320px;
        height: 320px;
    }

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

@media (max-width: 820px) {
    .topbar {
        font-size: 0.84rem;
    }

    .topbar-inner {
        align-items: flex-start;
        gap: 6px;
    }

    .hero-grid,
    .split-grid,
    .tracking-layout,
    .contact-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        padding: 52px 0;
    }

    .hero-content h1 {
        font-size: clamp(2.15rem, 10vw, 3.6rem);
    }

    .tracking-panel,
    .tracking-page-panel {
        padding: 24px;
    }

    .service-grid,
    .process-grid,
    .trust-grid,
    .values-grid,
    .team-grid,
    .photo-gallery-grid {
        grid-template-columns: 1fr;
    }

    .service-image,
    .process-image,
    .team-image {
        height: 230px;
    }

    .trust-image {
        height: 210px;
    }

    .cta-banner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .btn,
    .header-cta,
    .tracking-form button,
    .contact-form button {
        width: 100%;
    }

    .hero-actions .btn,
    .button-row .btn,
    .contact-actions .btn {
        width: auto;
        flex: 1 1 220px;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .site-nav {
        min-height: 66px;
    }

    .brand {
        gap: 9px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 0.78rem;
    }

    .brand-text strong {
        font-size: 0.92rem;
        line-height: 1.1;
    }

    .custom-logo {
        max-height: 42px;
    }

    .menu-toggle {
        min-height: 40px;
        padding: 8px 11px;
    }

    .section {
        padding: 48px 0;
    }

    .page-hero {
        min-height: 280px;
        padding: 56px 0 42px;
    }

    .page-hero h1 {
        font-size: clamp(2rem, 11vw, 2.75rem);
    }

    .hero-content p,
    .page-hero p,
    .section-heading p,
    .content-copy p {
        font-size: 1rem;
    }

    .tracking-form-row {
        grid-template-columns: 1fr;
    }

    .tracking-form input,
    .contact-form input,
    .contact-form textarea,
    .wpcargo-theme-form input[type="text"],
    .wpcargo-theme-form input[type="search"],
    .wpcargo-theme-form select,
    .wpcargo-theme-form textarea {
        min-width: 0;
    }

    .hero-actions,
    .button-row,
    .contact-actions {
        flex-direction: column;
    }

    .hero-actions .btn,
    .button-row .btn,
    .contact-actions .btn {
        width: 100%;
        flex-basis: auto;
    }

    .metrics-grid strong {
        font-size: 1.7rem;
    }

    .service-image,
    .process-image,
    .trust-image,
    .team-image,
    .feature-image,
    .contact-image,
    .support-image {
        height: 220px;
        min-height: 220px;
    }

    .photo-grid,
    .photo-gallery-grid {
        grid-template-columns: 1fr;
    }

    .map-placeholder {
        min-height: 260px;
        padding: 18px;
    }

    .site-footer {
        padding: 42px 0 26px;
    }
}
