/*
Theme Name: GodParticles
Theme URI: https://godparticles.com/
Author: Bytelabz
Author URI: https://bytelabz.com/
Description: Custom WordPress theme for Godparticle Biotech Solutions Private Limited — exporter, importer and distributor of medical and hospital equipment. Hand-built homepage driven entirely by native custom fields (no page builder, no ACF), a Products post type surfaced as category and product carousels, a sticky mega menu, captcha-protected enquiry forms, and GSAP ScrollTrigger reveals that replay on every re-entry.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: godparticles
Tags: custom-theme, business, one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/*
 * GodParticles design system — ported verbatim from ui-design/godparticles/style.css.
 *
 * Four deliberate deviations from the prototype, each documented where it occurs:
 *   1. Google Fonts are enqueued in inc/enqueue.php, not @import-ed, so WordPress owns the
 *      handle and the request is not render-blocking.
 *   2. url('imgs/...') is rewritten to url('assets/images/...').
 *   3. The two CSS background images are field-editable: the hero resolves through
 *      --gp-hero-image, and the reach map became an <img> so the animated SVG arc overlay
 *      can share its coordinate space (a background-image cannot be coordinate-mapped).
 *   4. .nav changed from `inset: 0 0 auto` to `inset: 0` because it now sits inside
 *      .site-header__inner — a fixed 100px box that recreates the prototype's 1440-wide
 *      centred coordinate box, so every nav child keeps its original pixel offsets.
 *      See PLAN.md section 7 for why the header had to leave .hero.
 *
 * Everything WordPress needs that the prototype had no equivalent for — core classes,
 * mega menu, archives, single templates, the enquiry modal — lives in assets/css/wp.css.
 * Keep that split.
 */

:root {
    --navy: #141F5F;
    --blue: #2940C5;
    --rust: #A84509;
    --rust-dark: #953104;
    --green: #065619;
    --gold: #F8B74B;
    --amber: #B3861B;
    --ink: #000;
    --body: #526674;
    --steel: #B7C7D1;
    --mist: #F1F1F1;
    --sky: #F2F7F9;
    --deep: #06233F;
    --shadow: 0 0 10px 3px rgba(0, 0, 0, 0.05);
    --grad-blue: linear-gradient(85.5deg, var(--navy) 0%, var(--blue) 50%);
    --grad-gold: linear-gradient(87.76deg, var(--gold) 0%, var(--rust) 50%);

    /* Theme-owned. --gp-hero-image is overridden inline by the hero template when a
       Hero slide image is set; the fallback keeps the bundled design asset. */
    --gp-hero-image: url('assets/images/hero-bg.webp');
    --gp-header-h: 100px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;
    background: #fff;
    color: var(--ink);
    font-family: 'Geist', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
}

.center {
    display: flex;
    justify-content: center;
}

.ico {
    flex: none;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--rust);
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
}

.eyebrow--rust {
    color: var(--rust-dark);
}

.eyebrow--gold {
    color: var(--gold);
}

.eyebrow--amber {
    color: var(--amber);
}

.eyebrow--black {
    color: #000;
}

.eyebrow--tight {
    letter-spacing: 1.76px;
}

.h2 {
    margin-top: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -2.04px;
    color: var(--navy);
}

.h2--light {
    color: #fff;
}

.h2--dark {
    color: #1F0E00;
}

.h2--vm {
    letter-spacing: -1.4px;
    max-width: 586px;
}

.body {
    font-size: 16px;
    line-height: 30px;
    color: var(--body);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 20px;
    border: 0;
    border-radius: 8px;
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    line-height: 21px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn--blue {
    background: var(--grad-blue);
}

.btn--lg {
    padding: 16px 24px;
}

/*
 * The ghost button sits on the hero photograph, which is pale and busy. At 8% tint over 1px of
 * 35% border it effectively disappeared against the bright areas of the image, so the fill is
 * now near-opaque white with a solid navy edge: still clearly the secondary of the pair, but
 * legible wherever the slide happens to be light.
 */
.btn--ghost {
    padding: 15px 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(20, 31, 95, 0.55);
    color: var(--navy);
    box-shadow: 0 4px 14px rgba(6, 35, 63, 0.14);
    backdrop-filter: blur(4px);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn--ghost:hover {
    border-color: var(--navy);
    background: #fff;
}

.btn--gold {
    padding: 15px 20px;
    background: var(--grad-gold);
    font-family: 'DM Sans', sans-serif;
}

.btn--sm {
    background: linear-gradient(83.98deg, var(--gold) 0%, var(--rust) 50%);
    font-family: 'Geist', sans-serif;
}

.btn--submit {
    padding: 15px 20px;
    background: linear-gradient(87.06deg, var(--navy) 0%, var(--blue) 49.07%);
}

.hero {
    position: relative;
    height: 700px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 81.5%, #fff 100%),
        var(--gp-hero-image) center / cover no-repeat;
}

.hero__inner {
    position: relative;
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
}

.nav {
    position: absolute;
    inset: 0;
    height: 100px;
}

.nav__logo {
    position: absolute;
    left: 130px;
    top: 16px;
    width: 260px;
    height: 68px;
}

.nav__mark {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 68px;
}

.nav__word {
    position: absolute;
    left: 70px;
    top: 18px;
    width: 190px;
    height: 33px;
}

.nav__links {
    position: absolute;
    left: 50%;
    top: 39px;
    display: flex;
    gap: 31px;
    transform: translateX(-50%);
}

.nav__links a {
    font-size: 14px;
    line-height: 21px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.nav__links a.is-active,
.nav__links a:hover {
    color: var(--rust-dark);
}

.nav__cta {
    position: absolute;
    right: 114px;
    top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 17px;
    border-radius: 8px;
    background: var(--green);
    font-size: 14px;
    line-height: 21px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.nav__toggle {
    display: none;
}

.hero__copy {
    position: absolute;
    left: 122px;
    top: 148px;
    width: 670px;
}

.hero__title {
    width: 510px;
    margin-top: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 50px;
    line-height: 64px;
    letter-spacing: -3.24px;
    color: #000;
}

.hero__title span {
    color: var(--navy);
}

.hero__lead {
    margin-top: 12px;
    font-size: 18px;
    line-height: 27px;
    color: #000;
}

.hero__actions {
    display: flex;
    gap: 24px;
    margin: 48px 0 0 -2px;
}

.stats {
    position: absolute;
    left: 120px;
    top: 611px;
    display: grid;
    grid-template-columns: 260px 260px 260px auto;
}

.stat {
    display: flex;
    align-items: center;
    gap: 13px;
    height: 89px;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.stat:first-child {
    padding-left: 0;
}

.stat+.stat {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.stat__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #0E6813;
}

.stat strong {
    display: block;
    font-size: 14px;
    line-height: 21px;
    font-weight: 700;
    color: var(--navy);
}

.stat small {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
    color: #000;
}

.about {
    position: relative;
    margin-top: -6px;
    padding: 60px 0;
    background: var(--sky);
}

.about__grid {
    display: grid;
    grid-template-columns: 550fr 600fr;
    column-gap: 50px;
    align-items: start;
}

.about__img {
    width: 100%;
    aspect-ratio: 550 / 374;
    margin-top: 92px;
    border-radius: 8px;
    object-fit: cover;
}

.about__p1 {
    max-width: 597px;
    margin-top: 24px;
}

.about__p2 {
    max-width: 597px;
    margin: 12px 0 24px;
}

.categories {
    margin-top: 12px;
    padding: 60px 0;
}

.head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.head-row>.btn {
    margin-top: 103px;
}

.head-row__p {
    max-width: 680px;
    margin-top: 24px;
}

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

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.card__img {
    width: 100%;
    aspect-ratio: 384 / 233;
    object-fit: cover;
}

.card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 27px;
    color: var(--navy);
}

.card__text {
    margin-top: 10px;
    font-size: 14px;
    line-height: 23px;
    color: var(--body);
}

.card__text--3 {
    min-height: 70px;
}

.card__text--2 {
    min-height: 47px;
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 28px;
    font-size: 13px;
    line-height: 20px;
    font-weight: 700;
    color: var(--green);
    text-decoration: none;
}

.cards.is-carousel {
    display: block;
}

.carousel__view {
    overflow: hidden;
    margin: -16px;
    padding: 16px;
}

.carousel__track {
    display: flex;
    will-change: transform;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
}

.dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D9D9D9;
    transition: background-color 0.3s;
}

.dots i:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
}

.dots i.is-on {
    background: var(--rust);
}

.innovative {
    padding: 60px 0;
    background: var(--mist);
}

.head-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.head-center .h2 {
    margin-top: 10px;
}

.head-center__p {
    max-width: 680px;
    margin-top: 24px;
}

.innovative .head-center__p {
    max-width: 629px;
}

.innovative .cards {
    margin-top: 54px;
}

.innovative .center {
    margin-top: 22px;
}

.supply {
    overflow: hidden;
    background: var(--deep);
}

.supply__grid {
    display: grid;
    grid-template-columns: 440px 660px;
    justify-content: space-between;
    padding-top: 60px;
    padding-bottom: 60px;
}

.supply__text {
    padding-top: 76px;
}

.supply__p {
    margin: 24px 0 48px;
    color: #ACC0CA;
}

.orbit {
    position: relative;
    width: 660px;
    height: 510px;
    border: 1px solid rgba(248, 183, 75, 0.23);
    border-radius: 290px;
}

.orbit__ring {
    position: absolute;
    border: 1px solid rgba(248, 183, 75, 0.16);
}

.orbit__ring--2 {
    left: 55px;
    top: 55px;
    width: 548px;
    height: 398px;
    border-radius: 233.5px;
}

.orbit__ring--3 {
    left: 115px;
    top: 115px;
    width: 428px;
    height: 278px;
    border-radius: 172.47px;
}

.orbit__core {
    position: absolute;
    left: 226.5px;
    top: 151.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 205px;
    height: 205px;
    border-radius: 50%;
    background: #0C4265;
    box-shadow: 0 0 70px rgba(37, 168, 171, 0.2);
    color: #fff;
}

.orbit__core small {
    font-size: 9px;
    line-height: 14px;
    letter-spacing: 1.53px;
}

.orbit__core b {
    padding: 7px 0;
    font-size: 58px;
    line-height: 58px;
    font-weight: 800;
}

.pill {
    position: absolute;
    padding: 9px 13px;
    border: 1px solid rgba(248, 183, 75, 0.35);
    border-radius: 20px;
    background: #103C5B;
    font-size: 14px;
    line-height: 21px;
    font-weight: 600;
    color: #D5E5E8;
    white-space: nowrap;
}

.strengths {
    padding: 60px 0;
}

.strengths .grid4 {
    margin-top: 68px;
}

.grid4 {
    display: grid;
    grid-template-columns: 406fr 386fr 406fr;
    grid-template-rows: 228px 228px;
    max-width: 1198px;
    margin-inline: auto;
}

.tile {
    padding: 24px;
}

.tile--blue {
    background: var(--steel);
}

.tile--grey {
    background: var(--mist);
}

.tile--tl {
    grid-column: 1;
    grid-row: 1;
    border-top-left-radius: 8px;
}

.tile--tr {
    grid-column: 3;
    grid-row: 1;
    border-top-right-radius: 8px;
}

.tile--bl {
    grid-column: 1;
    grid-row: 2;
    border-bottom-left-radius: 8px;
}

.tile--br {
    grid-column: 3;
    grid-row: 2;
    border-bottom-right-radius: 8px;
}

.grid4__img {
    grid-column: 2;
    grid-row: 1 / 3;
    position: relative;
    width: 100%;
    height: 456px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.tile__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #000;
}

.tile__title {
    margin-top: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    color: var(--navy);
}

.tile__text {
    margin-top: 10px;
    font-size: 16px;
    line-height: 30px;
    color: var(--navy);
}

.tile--alt .tile__title,
.tile--br .tile__title {
    font-family: 'Manrope', sans-serif;
}

.tile--alt .tile__text {
    color: #000;
}

.tile--bl .tile__text {
    font-family: 'DM Sans', sans-serif;
}

.reach {
    height: 507px;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
    background: #02122b;
    color: #fff;
}

.reach__p1 {
    width: 478px;
    max-width: 100%;
    margin-top: 24px;
    color: #F0F0F0;
}

.route {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 40px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 23px;
}

.route li {
    display: grid;
    grid-template-columns: 18px auto;
    justify-content: start;
    align-items: center;
    column-gap: 7px;
    min-height: 10px;
}

.route li:not(.route__step) {
    height: 24px;
}

.route li>img,
.route li>svg {
    justify-self: center;
}

.route__step {
    color: var(--gold);
}

.reach__p2 {
    width: 396px;
    max-width: 100%;
    margin-top: 11px;
    font-size: 16px;
    line-height: 29px;
    color: #F0F0F0;
}

.quality {
    padding: 60px 0;
}

.quality .wrap>.eyebrow,
.quality .wrap>.h2,
.quality__img {
    margin-left: 3px;
}

.quality__grid {
    display: grid;
    grid-template-columns: 596fr 559fr;
    column-gap: 43px;
    margin-top: 48px;
}

.quality__img {
    width: calc(100% - 3px);
    aspect-ratio: 596 / 298;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.quality__quote {
    font-size: 16px;
    line-height: 30px;
    color: #49707F;
}

.checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 496.2px;
    max-width: 100%;
    margin-top: 33px;
    border-top: 1px solid #D9E4E8;
}

.checks li {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 68px;
    padding: 19px 0 18px;
    border-bottom: 1px solid #D9E4E8;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 30px;
    font-weight: 600;
    color: #244557;
}

.checks svg {
    flex: none;
    color: var(--green);
}

.vm {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 497px;
}

.vm__half {
    padding-top: 60px;
}

.vm__half--vision {
    background: var(--steel);
}

.vm__half--mission {
    background: var(--mist);
}

.vm__half--vision .vm__inner {
    max-width: 720px;
    margin-left: auto;
    padding: 0 20px 0 123px;
}

.vm__half--mission .vm__inner {
    padding: 0 20px 0 67px;
    max-width: 720px;
}

.vm__p {
    width: 478px;
    max-width: 100%;
    margin-top: 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    line-height: 30px;
    color: #000;
}

.mission {
    width: 533px;
    max-width: 100%;
    margin-top: 24px;
}

.mission li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 12px 0;
    border-top: 1px solid #D4E0E4;
    font-size: 16px;
    line-height: 30px;
    color: #000;
}

.mission li:last-child {
    border-bottom: 1px solid #D4E0E4;
}

.mission svg {
    flex: none;
    margin-top: 5px;
    color: var(--green);
}

.mission li:first-child span {
    max-width: 372px;
}

.support {
    padding: 60px 0;
}

.support .head-center .h2 {
    margin-top: 10px;
}

.support__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.who {
    position: relative;
    height: 238px;
    padding: 21px 24px 0;
    border-top: 3px solid var(--green);
    background: var(--mist);
    box-shadow: var(--shadow);
}

.who__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--green);
}

.who__title {
    margin-top: 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 27px;
    color: #1F0E00;
}

.who__text {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 151px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 23px;
    color: #000;
}

.who--last .who__title {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 30px;
}

.who--last .who__text {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    line-height: 30px;
}

.gallery {
    padding: 60px 0;
    background: var(--deep);
}

.gallery__p {
    max-width: 478px;
    margin-top: 24px;
    font-size: 16px;
    line-height: 30px;
    color: #fff;
}

.head-row--gallery {
    align-items: flex-start;
}

.head-row--gallery>.btn {
    margin-top: 105px;
}

.gallery__grid {
    display: grid;
    grid-template-columns: 495fr 330fr 330fr;
    grid-template-rows: 234px 234px;
    gap: 24px;
    width: calc(100% + 3px);
    margin-top: 48px;
}

.gallery__grid>div {
    overflow: hidden;
    border-radius: 8px;
}

.gallery__grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.gallery__grid>div:hover img {
    transform: scale(1.08);
}

.gallery__a {
    grid-row: 1 / 3;
}

.gallery__d {
    grid-column: 2 / 4;
}

.cta {
    padding: 60px 0;
}

.cta__grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
}

.cta__text {
    width: 467px;
    max-width: 100%;
}

.cta__h2 {
    padding-top: 0;
}

.cta__p {
    margin-top: 24px;
    max-width: 413px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 30px;
    color: #000;
}

.cta__wa {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 35px;
    font-family: 'DM Sans', sans-serif;
    color: var(--green);
}

.cta__wa b {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.cta__wa span {
    padding-left: 4px;
    font-size: 12.8px;
    line-height: 19px;
    color: #819EAC;
}

.form {
    width: 687.5px;
    max-width: 100%;
    min-height: 585.59px;
    padding: 24px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.form__title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    color: var(--rust);
}

.form__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 28px 14px 0;
}

.field {
    display: block;
}

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

.field span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    color: #000;
}

.field input,
.field textarea {
    display: block;
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #D6E0E4;
    border-radius: 8px;
    background: var(--mist);
    font-family: 'Geist', sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #000;
}

.field input {
    height: 45.5px;
}

.field textarea {
    height: 84.5px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid var(--navy);
    outline-offset: 1px;
}

.btn--submit {
    margin: 24px 0 0 14.5px;
}

.footer {
    position: relative;
    height: 714px;
    overflow: hidden;
    background: #fff;
}

.footer__wave {
    position: absolute;
    left: 0;
    top: 72px;
    width: 100%;
    height: 642px;
}

.footer__inner {
    position: relative;
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
}

.footer__logo {
    position: absolute;
    left: calc(50% - 100px);
    top: 0;
    width: 200px;
    height: 174px;
}

.footer a {
    text-decoration: none;
}

.footer__col {
    position: absolute;
    top: 333px;
}

.footer__col--links {
    left: 121px;
}

.footer__col--cats {
    left: 1073px;
    top: 334px;
}

.footer__h {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    text-transform: capitalize;
    color: #FFF9F9;
}

.footer__col--cats .footer__h {
    font-family: 'Inter', sans-serif;
}

.footer__h i {
    width: 8.1px;
    height: 8px;
    border-radius: 2px;
    background: var(--gold);
}

.footer__col ul {
    margin-top: 10px;
}

.footer__col li {
    position: relative;
    padding-left: 30px;
    font-size: 14px;
    line-height: 21px;
    text-transform: capitalize;
    color: #FFF9F9;
}

.footer__col li+li {
    margin-top: 12px;
}

.footer__col li::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.footer__col a {
    color: inherit;
}

.footer__col a,
.footer__col li:not(:has(a)),
.footer__contact li,
.footer__social a {
    transition: color .2s ease, background-color .2s ease;
}

.footer__col li,
.footer__col li:not(:has(a)),
.footer__contact li {
    transition: color .2s ease, transform .25s ease;
}

.footer__col li:hover,
.footer__contact li:hover {
    transform: translateX(4px);
}

.footer__col a:hover,
.footer__col li:not(:has(a)):hover,
.footer__contact li:hover,
.footer__contact a:hover {
    color: var(--gold);
}

.footer__social a:hover {
    color: #000;
    background: var(--gold);
}

.footer__rule {
    position: absolute;
    top: 321px;
    width: 1px;
    height: 162px;
    background: rgba(255, 249, 249, 0.5);
}

.footer__rule--l {
    left: 425px;
}

.footer__rule--r {
    left: 1014px;
}

.footer__center {
    position: absolute;
    left: 50%;
    top: 321px;
    width: 600px;
    margin-left: -290px;
    text-align: center;
}

.footer__center p {
    font-size: 16px;
    line-height: 24px;
    color: #D0DDE2;
}

.footer__center p+p {
    margin-top: 10px;
    color: #fff;
}

.footer__social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 77px;
}

.footer__social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: #fff;
}

.footer__social a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.footer__contact {
    position: absolute;
    left: 0;
    right: 0;
    top: 539px;
    height: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 30px;
    color: #FFF9F9;
}

.footer__contact li {
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.footer__contact li:nth-child(1) {
    left: 295px;
}

.footer__contact li:nth-child(2) {
    left: 593px;
}

.footer__contact li:nth-child(3) {
    left: 1005px;
}

.footer__contact li>span {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #fff;
    color: #000;
}

.footer__contact a {
    color: inherit;
}

.footer__copy {
    position: absolute;
    left: 50%;
    top: 656px;
    width: 476px;
    margin-left: -238px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    text-transform: capitalize;
    color: #fff;
}

@media (max-width: 1320px) {
    .wrap {
        padding-inline: 48px;
    }

    .hero {
        height: auto;
        padding-bottom: 0;
    }

    .hero__inner {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 100px 48px 0;
    }

    .nav {
        height: 100px;
    }

    .nav__logo {
        left: 48px;
    }

    .nav__links {
        left: 340px;
        gap: 20px;
        transform: none;
    }

    .nav__cta {
        right: 48px;
    }

    .hero__copy {
        position: static;
        width: auto;
        padding-top: 48px;
    }

    .hero__title {
        width: auto;
    }

    .hero__lead {
        max-width: 670px;
    }

    .hero__actions {
        margin-left: 0;
    }

    .stats {
        position: static;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        margin-top: 48px;
    }

    .stat {
        white-space: normal;
    }

    /*
     * Scale from the top CENTRE, not from a corner. A corner origin slides the whole graphic to
     * that side of its track as it shrinks, which is what left the A–Z circle visibly off-centre
     * in the section rather than sitting in the middle of its own rings' column.
     */
    .orbit {
        transform: scale(0.86);
        transform-origin: top center;
    }

    .supply__grid {
        grid-template-columns: 1fr 660px;
        column-gap: 24px;
    }

    .supply__text {
        padding-right: 24px;
    }

    .vm__half--vision .vm__inner {
        padding-left: 48px;
    }

    .footer__col--cats {
        left: auto;
        right: 48px;
    }

    .footer__col--links {
        left: 48px;
    }

    .footer__center {
        width: 30%;
        margin-left: -15%;
    }

    .footer__social {
        margin-top: 40px;
    }

    .footer__rule--l {
        left: 33%;
    }

    .footer__rule--r {
        left: 67%;
    }

    .footer__contact li:nth-child(1) {
        left: 8%;
    }

    .footer__contact li:nth-child(2) {
        left: 40%;
    }

    .footer__contact li:nth-child(3) {
        left: auto;
        right: 48px;
    }
}

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

    .stat:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 1000px) {
    .nav {
        position: static;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        height: auto;
        padding: 16px 0 0;
    }

    .nav__logo,
    .nav__links,
    .nav__cta {
        position: static;
        transform: none;
    }

    .nav__logo {
        display: flex;
        align-items: center;
        gap: 10px;
        width: auto;
        height: auto;
    }

    .nav__mark,
    .nav__word {
        position: static;
    }

    .nav__cta {
        display: none;
    }

    .nav__toggle {
        position: relative;
        z-index: 70;
        display: grid;
        place-items: center;
        width: 46px;
        height: 46px;
        padding: 0;
        border: 0;
        border-radius: 14px;
        /* A gold hairline inside the navy picks up the accent the drawer and footer share. */
        background:
            linear-gradient(145deg, var(--navy) 0%, var(--deep) 100%);
        box-shadow:
            inset 0 0 0 1px rgba(197, 154, 74, 0.45),
            0 6px 16px rgba(6, 35, 63, 0.28);
        cursor: pointer;
        transition: box-shadow 0.3s ease, transform 0.2s ease;
    }

    .nav__toggle:active {
        transform: scale(0.94);
    }

    .nav__toggle span,
    .nav__toggle span::before,
    .nav__toggle span::after {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: #fff;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s ease, background 0.3s ease;
    }

    .nav__toggle span {
        position: relative;
        width: 13px;
        /* The short middle bar is what stops this reading as the default three-line glyph. */
        margin-left: -5px;
        background: var(--gold);
    }

    .nav__toggle span::before,
    .nav__toggle span::after {
        content: '';
        position: absolute;
        left: 0;
        width: 18px;
    }

    .nav__toggle span::before {
        top: -6px;
    }

    .nav__toggle span::after {
        top: 6px;
    }

    /*
     * navigation.js puts .is-open on the button itself. The drawer covers it at this width, so
     * the X mostly matters on the way in and out of the transition — and at widths where the
     * panel is narrower than the viewport.
     */
    .nav__toggle.is-open {
        box-shadow:
            inset 0 0 0 1px rgba(197, 154, 74, 0.9),
            0 6px 16px rgba(6, 35, 63, 0.28);
    }

    .nav__toggle.is-open span {
        width: 0;
        background: transparent;
    }

    .nav__toggle.is-open span::before {
        transform: translate(-5px, 6px) rotate(45deg);
    }

    .nav__toggle.is-open span::after {
        transform: translate(-5px, -6px) rotate(-45deg);
    }

    .nav__links {
        position: fixed;
        inset: 0;
        z-index: 60;
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        height: 100vh;
        padding: 96px 24px 40px;
        background: var(--deep);
        overflow-y: auto;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.4s;
    }

    .nav.is-open .nav__links {
        transform: translateX(0);
        visibility: visible;
        transition-delay: 0s;
    }

    .nav__links a {
        display: block;
        padding: 18px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        font-size: 18px;
        line-height: 27px;
        color: #fff;
    }

    .nav__links a.is-active,
    .nav__links a:hover {
        color: var(--gold);
    }

    .hero__inner {
        padding: 0 24px;
    }

    .hero__title {
        font-size: 42px;
        line-height: 52px;
        letter-spacing: -2.6px;
    }

    .hero__title br {
        display: none;
    }

    .wrap {
        padding-inline: 24px;
    }

    .about__grid {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .about__img {
        margin-top: 0;
    }

    .head-row {
        flex-direction: column;
    }

    .head-row>.btn,
    .head-row--gallery>.btn {
        margin-top: 0;
    }

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

    .dots {
        display: none;
    }

    .supply__grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 40px;
    }

    .supply__text {
        padding-top: 0;
    }

    /*
     * One column from here down, so the orbit has the full width to itself and belongs in the
     * middle of it. justify-self centres the 660px layout box in the track; the top-centre origin
     * then shrinks the drawing toward that same centre line. The negative margin still claws back
     * the height the untransformed box reserves, because a transform does not affect layout.
     */
    .orbit {
        justify-self: center;
        transform: scale(0.82);
        transform-origin: top center;
        margin-bottom: -90px;
    }

    .grid4 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
        grid-auto-rows: auto;
    }

    .tile {
        grid-column: auto;
        grid-row: auto;
        border-radius: 0;
    }

    .grid4__img {
        grid-column: 1 / 3;
        grid-row: auto;
        height: 320px;
        order: -1;
    }

    .reach {
        height: auto;
        padding-bottom: 60px;
    }

    .quality__grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 32px;
    }

    .quality__img {
        width: 100%;
        margin-left: 0;
    }

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

    .vm__half--vision .vm__inner,
    .vm__half--mission .vm__inner {
        padding: 0 24px 60px;
        margin: 0;
    }

    .vm__half--vision,
    .vm__half--mission {
        padding-top: 60px;
    }

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

    .gallery__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
        width: 100%;
    }

    .gallery__a,
    .gallery__d {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .gallery__grid img {
        height: 240px;
    }

    .cta__grid {
        flex-direction: column;
    }

    .footer {
        height: auto;
        padding: 120px 24px 0;
        background: #000;
        overflow: visible;
    }

    .footer__wave {
        display: none;
    }

    /*
     * The desktop footer is an absolutely positioned 1440 box. Below 1000px it becomes a two
     * column grid rather than one tall stack: Quick Links and Categories are short lists that
     * wasted a full row each while using ~110px of width, which on a phone pushed the footer past
     * 940px tall and on a tablet left most of the black empty. Side by side they read as the pair
     * they are, and the footer loses roughly a third of its height.
     */
    .footer__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 24px;
        row-gap: 30px;
        height: auto;
        /* Without a cap the two columns drift to opposite edges of a tablet. */
        max-width: 560px;
        margin-inline: auto;
        padding-bottom: 32px;
    }

    .footer__col,
    .footer__center,
    .footer__contact,
    .footer__copy,
    .footer__rule {
        position: static;
        margin: 0;
    }

    .footer__rule {
        display: none;
    }

    /*
     * Rows are pinned rather than auto-placed. In the markup the tagline sits between the two
     * link columns, so auto-placement pushed Categories down past it and the pair never lined up.
     */
    .footer__logo {
        position: static;
        grid-area: 1 / 1 / 2 / -1;
        justify-self: center;
        margin-top: -150px;
        transform: none;
    }

    .footer__col--links {
        grid-area: 2 / 1 / 3 / 2;
    }

    .footer__col--cats {
        grid-area: 2 / 2 / 3 / 3;
    }

    .footer__contact {
        grid-area: 3 / 1 / 4 / -1;
    }

    .footer__center {
        grid-area: 4 / 1 / 5 / -1;
    }

    .footer__copy {
        grid-area: 5 / 1 / 6 / -1;
    }

    /*
     * Text-sized links are a poor touch target. Padding the row rather than the anchor keeps the
     * bullet aligned to the first line and makes the whole row tappable; the tighter indent buys
     * back the width the second column costs, so "Surgical Equipment" still fits on one line.
     */
    .footer__col li {
        padding-left: 18px;
        padding-block: 6px;
    }

    .footer__col li::before {
        left: 3px;
        top: 14px;
    }

    .footer__col li+li {
        margin-top: 0;
    }

    .footer__col a {
        display: block;
    }

    .footer__contact {
        display: flex;
        flex-direction: column;
        gap: 4px;
        height: auto;
    }

    .footer__contact li,
    .footer__contact li:nth-child(n) {
        position: static;
        padding-block: 7px;
        white-space: normal;
    }

    .footer__center {
        width: auto;
        padding-inline: 12px;
    }

    .footer__social {
        margin-top: 20px;
    }

    .footer__copy {
        width: auto;
    }
}

@media (max-width: 640px) {
    .h2 {
        font-size: 30px;
        line-height: 38px;
        letter-spacing: -1.6px;
    }

    .h2 br {
        display: none;
    }

    .hero__title {
        font-size: 34px;
        line-height: 42px;
        letter-spacing: -2px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .cards,
    .support__grid,
    .grid4 {
        grid-template-columns: 1fr;
    }

    .grid4__img {
        grid-column: 1;
    }

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

    .form__fields {
        grid-template-columns: 1fr;
        margin-inline: 0;
    }

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

    .btn--submit {
        margin-left: 0;
    }

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

    .gallery__a,
    .gallery__d {
        grid-column: 1;
    }

    .orbit {
        transform: scale(0.5);
        margin-bottom: -250px;
    }

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

    .stat+.stat {
        border-left: 0;
        padding-left: 0;
    }
}