:root {
    --color-primary: #124395;
    --color-primary-dark: #0d3272;
    --color-text: #2f343a;
    --color-muted: #5f6874;
    --color-border: #d7dde6;
    --color-surface-soft: #f5f7fb;
    --shadow-lg: 0 24px 48px rgba(16, 26, 41, .12);
    --shadow-md: 0 12px 28px rgba(16, 26, 41, .08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --container: 1180px;
    --gutter: 24px
}

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

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background: #fff;
    line-height: 1.6
}

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

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

p {
    margin: 0 0 1rem
}

h1, h2, h3, .hero-title, .section-title {
  font-family: 'Cormorant Garamond', sans-serif;
}

h1,
h2,
h3 {
    margin: 0 0 1rem;
    line-height: 1.05;
    letter-spacing: 0.01em;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.4rem, 3.3vw, 4.2rem);
    color: #124395;
}

h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    color: #124395;
}

h3 {
    font-size: clamp(1.1rem, 1.4vw, 1.25rem);
}

.h-white {
    color: #ffffff;
}

.hero-title {
    max-width: 900px;
    line-height: .98;
    letter-spacing: .01em;
    margin-inline: auto;
    font-weight: 500;
}

.blue-text {
    color: #124395;
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: 1.8rem;
    line-height: 2.2rem;
    font-weight: 600;
}

ul {
    padding-left: 1.2rem
}

.container {
    width: min(var(--container), calc(100% - 2 * var(--gutter)));
    margin-inline: auto
}

.narrow {
    max-width: 840px
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 1000;
    background: #fff;
    padding: .75rem 1rem;
    border-radius: 10px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(18, 67, 149, .08)
}

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

.brand img {
    width: 165px;
    height: auto
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px
}

.site-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0
}

.site-nav a:not(.button) {
    font-weight: 600;
    color: var(--color-text);
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--color-primary)
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-text);
    margin: 6px 0;
    border-radius: 1px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.3rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: .2s ease
}

.button--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-md)
}

.button--primary:hover,
.button--primary:focus {
    background: var(--color-primary-dark);
    color: #ffffff !important;
}
.button--secondary {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .35);
    color: #fff
}

.button--secondary:hover,
.button--secondary:focus {
    background: #fff;
    border-color: #fff;
    color: var(--color-primary)
}

.button--light {
    background: #fff;
    color: var(--color-primary)
}

.button--nav {
    min-height: 46px;
    padding-inline: 1.1rem
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-primary)
}

.eyebrow--light {
    color: #d9e4ff
}

.hero {
    position: relative;
    overflow: hidden;
    background: #0f1c33
}

.hero--video {
    min-height: calc(100vh - 86px);
    display: flex;
    align-items: center;
    /*max-height: 60vh;*/
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 40, .58);
    z-index: 1
}

.hero-center {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 86px);
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: left;
    padding: 48px 0 72px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - 86px);
    padding: 48px 0 72px
}

.hero-copy {
    max-width: 650px
}

.hero-copy--center {
    max-width: auto;
    /*margin-inline: auto*/
}

.hero--home .hero-center {
    width: min(var(--container), calc(100% - 2 * var(--gutter)));
    margin-inline: auto;
    justify-content: space-between;
    gap: 32px;
}

.hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    margin-left: auto;
    flex-shrink: 0;
}

.hero-stat-pill {
    min-width: 180px;
    padding: 1.1rem 1.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 14px 34px rgba(6, 12, 24, .16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    color: #fff;
}

.hero-stat-pill strong {
    display: block;
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: 2rem;
    line-height: 1;
    font-weight: 600;
    margin-bottom: .38rem;
}

.hero-stat-pill span {
    display: block;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
}

.hero-text {
    font-size: 1.12rem;
    color: var(--color-muted);
    max-width: 54ch
}

.hero-text--light {
    color: rgba(255, 255, 255, .88);
    /*margin-inline: auto*/
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 1.8rem
}

.hero-actions--center {
    /*justify-content: center*/
}

.hero-art img {
    width: 100%;
    border-radius: 32px;
    box-shadow: var(--shadow-lg)
}

.page-hero {
    background: linear-gradient(180deg, #f7f9fc 0%, #ecf0f7 100%);
    padding: 100px 0 60px;
    border-bottom: 1px solid #e1e6ef
}

.page-hero.page-hero--compact {
    padding: 54px 0 36px
}

.page-hero--services {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: clamp(470px, 52vw, 650px);
    padding: clamp(110px, 13vw, 170px) 0 clamp(80px, 10vw, 130px);
    overflow: hidden;
    border-bottom: 0;
    background: #102c4f
}

.page-hero__image,
.page-hero__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%
}

.page-hero__image {
    z-index: -2;
    object-fit: cover;
    object-position: center center
}

.page-hero__overlay {
    z-index: -1;
    background: linear-gradient(90deg, rgba(7, 25, 51, .92) 0%, rgba(9, 35, 70, .78) 42%, rgba(10, 38, 75, .34) 72%, rgba(7, 25, 51, .38) 100%), linear-gradient(180deg, rgba(4, 17, 34, .2) 0%, rgba(4, 17, 34, .1) 52%, rgba(4, 17, 34, .5) 100%)
}

.page-hero--services .container {
    width: min(var(--container), calc(100% - 2 * var(--gutter)))
}

.page-hero__content {
    max-width: 760px
}

.page-hero--services .eyebrow {
    color: #c9dcfa
}

.page-hero--services h1 {
    max-width: 730px;
    color: #fff;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(2, 13, 29, .28)
}

.page-hero__content > p:last-child {
    max-width: 660px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.7
}

.page-hero--coverage .page-hero__image {
    object-position: center center
}

@media (max-width: 767px) {
    .page-hero.page-hero--services {
        min-height: 500px;
        padding: 104px 0 64px;
        align-items: end
    }

    .page-hero--services .page-hero__image {
        object-position: 58% center
    }

    .page-hero--coverage .page-hero__image {
        object-position: 62% center
    }

    .page-hero--services .page-hero__overlay {
        background: linear-gradient(180deg, rgba(5, 21, 43, .5) 0%, rgba(6, 25, 51, .74) 38%, rgba(5, 22, 45, .94) 100%)
    }

    .page-hero--services h1 {
        font-size: clamp(2.35rem, 12vw, 3.35rem)
    }
}

.page-hero.page-hero--company {
    align-items: end;
    padding-top: clamp(220px, 32vw, 400px);
    padding-bottom: clamp(52px, 6vw, 76px)
}

.page-hero--company .page-hero__image {
    object-position: center center
}

.page-hero--company .page-hero__overlay {
    background: linear-gradient(180deg, rgba(4, 17, 34, .04) 0%, rgba(4, 17, 34, .08) 34%, rgba(5, 22, 45, .68) 68%, rgba(5, 21, 43, .96) 100%)
}

.page-hero--company .page-hero__content {
    max-width: 900px
}

.page-hero--company h1 {
    max-width: 820px
}

.page-hero--company .page-hero__content > p:last-child {
    max-width: 740px
}

@media (max-width: 767px) {
    .page-hero.page-hero--company {
        min-height: 540px;
        padding: 220px 0 54px
    }

    .page-hero--company .page-hero__image {
        object-position: center top
    }

    .page-hero--company .page-hero__overlay {
        background: linear-gradient(180deg, rgba(4, 17, 34, .06) 0%, rgba(4, 17, 34, .16) 36%, rgba(5, 22, 45, .8) 66%, rgba(5, 21, 43, .98) 100%)
    }
}

.section {
    padding: 88px 0
}

.section--light {
    background: var(--color-surface-soft)
}

.section-head {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 430px);
    gap: 26px;
    align-items: end;
    margin-bottom: 2rem
}

.section-head__lead--blue {
    color: var(--color-primary)
}

.section-head--locations > .section-head__lead {
    grid-column: 1 / -1
}

.section-head__lead--columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 48px)
}

.section-head__lead--columns p {
    margin-bottom: 0
}

@media (max-width: 767px) {
    .section-head__lead--columns {
        grid-template-columns: 1fr;
        gap: 1rem
    }
}

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

.split-grid--reverse {
    grid-template-columns: .95fr 1.05fr
}

.highlight-card,
.feature-card,
.service-card,
.location-card,
.contact-panel {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md)
}

.highlight-card {
    padding: 2rem
}

.highlight-card--image {
    padding: 0;
    overflow: hidden;
    background: #f7f9fc
}

.highlight-card__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 499;
    object-fit: cover
}

.highlight-card__content {
    position: relative;
    margin: -12px 20px 20px;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: calc(var(--radius-md) - 6px);
    background: rgba(18, 48, 87, .97);
    box-shadow: 0 18px 40px rgba(8, 27, 55, .2)
}

.highlight-card__content p {
    margin-top: 0;
    color: #eef4fc
}

.highlight-card--compact-copy .highlight-card__content p {
    font-size: .95rem
}

.highlight-card__content .blue-text {
    display: block;
    color: #b9d6ff
}

.page-hero--coverage .page-hero__image {
    object-position: center center
}

@media (max-width: 767px) {
    .highlight-card__content {
        margin: -8px 14px 14px;
        padding: 1.4rem
    }
}

.highlight-card strong {
    display: block;
    font-size: 1.6rem;
    line-height: 1.15
}

.image-panel {
    background: #dfe7f2;
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-md)
}

.image-panel img {
    width: 100%;
    border-radius: 22px
}

.image-panel--photo {
    padding: 10px;
    background: #fff
}

.image-panel--photo img {
    display: block;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover
}

.image-panel--photo-wide img {
    aspect-ratio: 3 / 2
}

.image-panel--soft {
    background: #edf2f8
}

.image-panel--map img {
    max-height: 720px;
    object-fit: contain;
    margin-inline: auto
}

.image-panel--map-photo {
    background: #fff
}

.services-layout {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 28px;
    align-items: stretch
}

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

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

.services-intro {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 28px
}

.services-intro--three {
    grid-template-columns: 1.3fr .58fr .82fr;
    gap: 22px
}

.services-intro__support {
    padding: 8px
}

.services-intro__support img {
    aspect-ratio: 541 / 918;
    object-fit: cover
}

.services-intro--three .services-copy p {
    color: var(--color-primary);
    font-size: 1rem
}

@media (min-width: 1024px) {
    .services-intro--three {
        align-items: stretch
    }

    .services-intro--three > .image-panel {
        display: flex
    }

    .services-intro--three > .image-panel img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

    .services-intro--three .services-copy p {
        font-size: 1.2rem
    }
}

@media (max-width: 1023px) {
    .services-intro__support {
        width: min(70%, 360px);
        justify-self: center
    }
}

.services-copy {
    max-width: 520px
}

.services-copy p {
    font-size: 1.08rem;
    color: var(--color-text)
}

.services-cards-row {
    margin-top: 8px
}

.service-card {
    padding: 1.5rem;
    background: linear-gradient(180deg, #124395 0%, #0f3a83 100%);
    color: #fff
}

.service-card--alt {
    background: #fff;
    color: var(--color-text)
}

.service-card--media {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden
}

.service-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 800 / 350;
    object-fit: cover
}

.service-card__body {
    flex: 1;
    padding: 1.5rem
}

.service-card__body p:last-child {
    margin-bottom: 0
}

.service-card--alt h2 {
    font-size: 1.4rem
}

.service-card p {
    color: rgba(255, 255, 255, .9)
}

.service-card--alt p {
    color: var(--color-muted)
}

.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #ffffff;
  margin-bottom: 12px;
}

.text-link {
    display: inline-block;
    margin-top: .75rem;
    font-weight: 700;
    color: #dfe9ff
}

.service-card--alt .text-link {
    color: var(--color-primary)
}

.feature-card,
.location-card {
    padding: 1.5rem
}

.feature-card--media {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden
}

.feature-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 800 / 350;
    object-fit: cover
}

.feature-card__body {
    flex: 1;
    padding: 1.5rem
}

.feature-card__body p:last-child {
    margin-bottom: 0
}

.operations-hero {
    margin-bottom: clamp(30px, 4vw, 48px);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #dfe7f2;
    box-shadow: var(--shadow-md)
}

.operations-hero img {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 462;
    object-fit: cover
}

.page-hero--coverage .page-hero__image {
    object-position: center center
}

@media (max-width: 767px) {
    .operations-hero {
        margin-bottom: 30px;
        border-radius: var(--radius-md)
    }

    .operations-hero img {
        aspect-ratio: 16 / 9
    }
}

.coverage-locations-hero img {
    object-position: center center
}

.operations-hero.operations-hero--ending {
    margin-top: clamp(30px, 4vw, 48px);
    margin-bottom: 0
}

.company-office-hero img {
    object-position: center center
}

.company-values-hero img {
    object-position: center center
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.35rem 0 0;
    display: grid;
    gap: .75rem
}

.check-list li {
    position: relative;
    padding-left: 1.7rem;
    color: var(--color-text)
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5rem;
    width: .8rem;
    height: .8rem;
    border-radius: 50%;
    background: var(--color-primary)
}

.cta-band {
    background: linear-gradient(135deg, #124395 0%, #0d3272 100%);
    color: #fff
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

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

.contact-layout {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 24px;
    align-items: start
}

.contact-panel {
    padding: 2rem
}

.contact-side {
    display: grid;
    gap: 18px
}

.quote-form {
    margin-top: 1rem
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 1.2rem
}

label {
    display: grid;
    gap: .45rem;
    font-weight: 600;
    font-size: .95rem
}

label span {
    color: var(--color-text)
}

.page-hero--contact + .section .contact-panel#quote .form-grid label span {
    color: #c1c1c1
}

input,
select,
textarea {
    width: 100%;
    padding: .95rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    font: inherit;
    color: var(--color-text);
    background: #fff
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(18, 67, 149, .18);
    border-color: var(--color-primary)
}

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

.who-memberships {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;

  color: #2f3e55;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(47, 62, 85, 0.2);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.page-hero--coverage .page-hero__image {
    object-position: center center
}

@media (max-width: 767px) {
  .who-memberships {
    justify-content: center;
  }

  .badge {
    font-size: 12px;
    padding: 8px 14px;
  }
}

.site-footer {
    background: #1d304d;
    color: #d6dbea;
    padding-top: 72px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr .75fr 1.25fr;
    gap: 28px;
    align-items: start
}

.footer-logo {
    width: 150px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1)
}

.footer-link,
.footer-links a {
    display: block;
    color: #d6dbea;
    margin-bottom: .45rem
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 16px;
}

.social-icon {
  width: 22px;
  height: 22px;
  fill: rgba(255, 255, 255, 0.8);
  transition: all 0.25s ease;
}

.footer-social a:hover .social-icon {
  fill: #ffffff;
  transform: translateY(-2px);
}

.text-copyright {
    color: #546173;
    font-size: 0.8rem;
}

.location-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem
}

.location-list li {
    display: grid;
    gap: .2rem
}

.location-list strong {
    color: #fff
}

.footer-bottom {
    margin-top: 28px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .09)
}

@media (max-width:1023px) {

    .hero-grid,
    .split-grid,
    .services-layout,
    .services-intro,
    .contact-layout,
    .footer-grid,
    .section-head,
    .locations-grid {
        grid-template-columns: 1fr
    }

    .services-copy {
        max-width: none
    }

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

    .hero-grid {
        min-height: auto;
        padding: 36px 0 58px
    }

    .hero-stats {
        display: none;
    }
}

@media (max-width:767px) {
    :root {
        --gutter: 18px
    }

    .header-inner {
        min-height: 78px
    }

    .brand img {
        width: 148px
    }

    .nav-toggle {
        display: block
    }

    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        padding: 14px var(--gutter) 20px;
        display: none;
        align-items: flex-start;
        flex-direction: column
    }

    .site-nav.is-open {
        display: flex
    }

    .site-nav ul {
        flex-direction: column;
        gap: 14px;
        width: 100%
    }

    .button--nav {
        width: 100%
    }

    .hero-actions,
    .cta-band__inner {
        flex-direction: column;
        align-items: flex-start
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .hero-actions .button {
        padding: 0 1rem;
        min-height: 44px;
        font-size: 0.9rem;
    }

    .card-grid,
    .card-grid--three,
    .locations-grid,
    .form-grid {
        grid-template-columns: 1fr
    }


    .section {
        padding: 68px 0
    }

    .page-hero {
        padding: 84px 0 44px
    }

    .hero-art {
        order: -1
    }

    .hero-center {
        min-height: auto;
        padding: 120px 0 72px
    }
}

.rq-hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.contact-panel#quote {
    background: linear-gradient(180deg, #10397f 0%, #0c2f69 100%);
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 24px 48px rgba(7, 18, 37, .22);
}

.contact-panel#quote h2,
.contact-panel#quote .eyebrow {
    color: #ffffff;
}

.contact-panel#quote .eyebrow {
    opacity: .88;
}

.contact-panel#quote p,
.contact-panel#quote .form-intro {
    color: rgba(255, 255, 255, .78);
}

.quote-form--custom {
    margin-top: 1.35rem;
}

.quote-form--custom .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 1.4rem;
}

.quote-form--custom label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quote-form--custom label.full {
    grid-column: 1 / -1;
}

.quote-form--custom label span {
    display: block;
    font-size: .78rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .88);
}

.quote-form--custom input,
.quote-form--custom select,
.quote-form--custom textarea {
    width: 100%;
    min-height: 54px;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(9, 22, 45, .38);
    color: #f4f7fc !important;
    -webkit-text-fill-color: #f4f7fc !important;
    font: inherit;
    font-size: .98rem;
    line-height: 1.45;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
    caret-color: #ffffff;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.quote-form--custom input[type="datetime-local"] {
    color-scheme: dark
}

.quote-form--custom input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    width: 1.25rem;
    height: 1.25rem;
    padding: .2rem;
    border-radius: 6px;
    filter: brightness(0) invert(1);
    opacity: .9;
    cursor: pointer
}

.quote-form--custom input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    background-color: rgba(255, 255, 255, .14);
    opacity: 1
}

.quote-form--custom .form-help {
    color: rgba(226, 235, 249, .68);
    font-size: .78rem;
    font-weight: 400;
    line-height: 1.45
}

.quote-form--custom .form-field-error {
    color: #ffd0d0;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.4
}

.quote-form--custom .eta-field.has-error input,
.quote-form--custom .attachment-field.has-error input,
.quote-form--custom input[type="datetime-local"]:user-invalid {
    border-color: rgba(255, 138, 138, .9);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .14)
}

.quote-form--custom textarea {
    min-height: 180px;
    resize: vertical;
}

.quote-form--custom input::placeholder,
.quote-form--custom textarea::placeholder {
    color: rgba(226, 235, 249, .42) !important;
    -webkit-text-fill-color: rgba(226, 235, 249, .42) !important;
    font-weight: 400;
}

.quote-form--custom select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 46px;
    background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.72) 50%), linear-gradient(135deg, rgba(255,255,255,.72) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.quote-form--custom select:invalid {
    color: rgba(226, 235, 249, .5) !important;
    -webkit-text-fill-color: rgba(226, 235, 249, .5) !important;
}

.quote-form--custom select option {
    color: #1e2a3b;
    background: #ffffff;
}

.quote-form--custom input:hover,
.quote-form--custom select:hover,
.quote-form--custom textarea:hover {
    background-color: rgba(9, 22, 45, .48);
    border-color: rgba(255, 255, 255, .24);
}

.quote-form--custom input:focus,
.quote-form--custom select:focus,
.quote-form--custom textarea:focus {
    outline: none;
    background-color: rgba(10, 25, 52, .62);
    border-color: rgba(255, 255, 255, .42);
    box-shadow: 0 0 0 4px rgba(184, 210, 255, .12);
}

.quote-form--custom .button--primary {
    min-height: 54px;
    padding-inline: 1.55rem;
    box-shadow: 0 16px 36px rgba(7, 19, 38, .22);
}

.form-alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 600;
}

.form-alert--success {
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .35);
    color: #d7ffe6;
}

.form-alert--error {
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .35);
    color: #ffd8d8;
}

@media (max-width: 860px) {
    .quote-form--custom .form-grid {
        grid-template-columns: 1fr;
    }
}
/* --- FIX: text selection visibility in dark quote form --- */
.quote-form--custom input::selection,
.quote-form--custom textarea::selection {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.quote-form--custom input::-moz-selection,
.quote-form--custom textarea::-moz-selection {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ensure typed text always contrasts properly */
.quote-form--custom input,
.quote-form--custom textarea {
    color: #f4f7fc !important;
    -webkit-text-fill-color: #f4f7fc !important;
}

/* slightly dim placeholders further (better hierarchy) */
.quote-form--custom input::placeholder,
.quote-form--custom textarea::placeholder {
    color: rgba(226, 235, 249, 0.32) !important;
    -webkit-text-fill-color: rgba(226, 235, 249, 0.32) !important;
}

/* Autofill fix for dark quote form */
.quote-form--custom input:-webkit-autofill,
.quote-form--custom input:-webkit-autofill:hover,
.quote-form--custom input:-webkit-autofill:focus,
.quote-form--custom textarea:-webkit-autofill,
.quote-form--custom textarea:-webkit-autofill:hover,
.quote-form--custom textarea:-webkit-autofill:focus,
.quote-form--custom select:-webkit-autofill,
.quote-form--custom select:-webkit-autofill:hover,
.quote-form--custom select:-webkit-autofill:focus {
    -webkit-text-fill-color: #f4f7fc !important;
    caret-color: #ffffff !important;
    box-shadow: 0 0 0 1000px rgba(9, 22, 45, .92) inset !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(9, 22, 45, .92) inset !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    transition: background-color 9999s ease-in-out 0s;
}

.quote-form--custom input:-moz-autofill,
.quote-form--custom textarea:-moz-autofill,
.quote-form--custom select:-moz-autofill {
    box-shadow: 0 0 0 1000px rgba(9, 22, 45, .92) inset !important;
    color: #f4f7fc !important;
    -webkit-text-fill-color: #f4f7fc !important;
    caret-color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
}

/* News page */
.page-hero--news {
    background: linear-gradient(180deg, rgba(9, 24, 40, 0.98) 0%, rgba(14, 37, 58, 0.94) 100%);
    color: #fff;
}

.page-hero--news .page-hero__image {
    object-position: center center
}

@media (max-width: 767px) {
    .page-hero--news .page-hero__image {
        object-position: 58% center
    }
}

.page-hero--contact .page-hero__image {
    object-position: center center
}

@media (max-width: 767px) {
    .page-hero--contact .page-hero__image {
        object-position: 55% center
    }
}

.section--news-toolbar {
    padding-top: 2rem;
    padding-bottom: 0;
}

.news-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.news-language-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.news-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(9, 24, 40, 0.12);
    border-radius: 999px;
    background: #fff;
    color: #16324a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.news-filter-chip:hover,
.news-filter-chip.is-active {
    background: #16324a;
    border-color: #16324a;
    color: #fff;
}

.news-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(10, 31, 49, 0.1);
}

.news-featured-media {
    display: block;
    min-height: 100%;
}



.news-featured-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.news-source-badge,
.news-lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-weight: 700;
}

.news-source-badge {
    background: rgba(14, 68, 116, 0.1);
    color: #0e4474;
}

.news-lang-pill {
    background: rgba(9, 24, 40, 0.08);
    color: #16324a;
    letter-spacing: 0.04em;
    font-size: 0.76rem;
}

.news-date {
    color: #66768a;
}

.news-featured-card h2,
.news-card h3 {
    margin: 0 0 0.85rem;
}

.news-featured-excerpt,
.news-card p {
    color: #506174;
}

.news-card-actions {
    margin-top: 1.2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(10, 31, 49, 0.08);
}



.news-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-link {
    margin-top: auto;
    font-weight: 700;
    text-decoration: none;
    color: #0e4474;
}

.news-card-link:hover {
    text-decoration: underline;
}

.news-empty-state {
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 14px 36px rgba(10, 31, 49, 0.06);
}

@media (max-width: 980px) {
    .news-featured-card,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .news-featured-body,
    .news-card-body {
        padding: 1.2rem;
    }

    .news-toolbar {
        align-items: stretch;
    }
}

/* Mattina article page */

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

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.article-title {
    margin-bottom: 18px;
}

.article-excerpt {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #5d6c7c;
    margin-bottom: 28px;
}

.article-image-wrap {
    margin-bottom: 30px;
}

.article-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
}

.article-content {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #23364a;
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}


/* --- Mattina news image layout --- */

.news-featured-card.has-image {
    display: grid;
    grid-template-columns: minmax(140px, 16.666%) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.news-featured-card.no-image {
    display: block;
}

.news-featured-media {
    display: block;
    min-width: 0;
    margin-left: 12px;
}

.news-featured-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    border-radius: 24px;
}

.news-card.has-image {
    display: grid;
    grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
    grid-template-areas:
        "media meta"
        "media title"
        "excerpt excerpt"
        "link link";
    column-gap: 1.15rem;
    row-gap: 0.75rem;
    align-items: start;
    padding: 1.25rem;
}

.news-card.has-image .news-card-media {
    grid-area: media;
    align-self: stretch;
    min-width: 0;
}

.news-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    border-radius: 18px;
}

.news-card.has-image .news-card-body {
    display: contents;
}

.news-card.has-image .news-card-meta {
    grid-area: meta;
    align-self: end;
    margin-bottom: 0;
}

.news-card.has-image h3 {
    grid-area: title;
    align-self: start;
    margin-bottom: 0;
}

.news-card.has-image .news-card-body > p {
    grid-area: excerpt;
    margin: 0.35rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(14, 68, 116, 0.12);
}

.news-card.has-image .news-card-link {
    grid-area: link;
    margin-top: 0.15rem;
}

.news-card.no-image {
    display: block;
}

.news-card-body,
.news-featured-body {
    min-width: 0;
}

@media (max-width: 900px) {
    .news-featured-card.has-image {
        grid-template-columns: 1fr;
    }

    .news-featured-media img {
        max-height: none;
    }
}

@media (max-width: 640px) {
    .news-card.has-image {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "meta"
            "title"
            "excerpt"
            "link";
        padding: 1.1rem;
    }

    .news-card-media img {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}


.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: .25rem;
    color: var(--color-muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.language-switcher a {
    color: inherit;
    text-decoration: none;
    padding: .3rem .2rem;
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a[aria-current="page"] {
    color: var(--color-primary);
}

.language-switcher a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
