:root {
    /* Brand colors */
    --color-primary: #1D248C;
    --color-brand-red: #F20F0F;
    --color-black: #000000;
    --color-text: #111827;
    --color-text-muted: #6B7280;
    --color-border: #E5E7EB;
    /* --body-color: #FFFFFF; */
    --body-color: #f7f7fb;
    --color-footer-text: #D1D5DB;
    --color-footer-text-dim: #9CA3AF;

    /* Typography */
    --body-font: 'Poppins', sans-serif;
    --font-display: 'Squada One', sans-serif;

    /* Layout */
    --page-gutter: 120px;
    --container-x: 120px; /* mirrors --page-gutter but scoped to the
        contact page's own 960px breakpoint, so it won't collide with
        the 1100/640/767 breakpoints the other pages use --page-gutter at */
    --header-color: var(--body-color);
    --header-height: 80px;
    --header-padding: 12px 120px;
    --footer-color: #080A26;
    --footer-height: 602px;
    --footer-padding: 120px 24px 80px;

    /* Radii & shadow (contact page) */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 20px 45px rgba(8, 10, 38, 0.18);
}

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

body {
    overflow-x: hidden;
}

img {
    display: block;
}

/* Header Styles */

header {
    background-color: var(--header-color);
    font-family: var(--body-font);
    width: 100%;
    height: var(--header-height);
    padding: var(--header-padding);
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img{
    border-radius: 50%;
}

nav {
    background-color: rgba(194, 194, 194, 0.1);
    justify-content: space-evenly;
    align-items: center;
    display: flex;
    padding: 10px;
    width: 501px;
    max-width: 100%;
    height: 44px;
    gap: 24px;
    border-radius: 50px;
}

nav a {
    text-decoration: none;
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

nav a:hover {
    color: var(--color-primary);
    font-weight: 600;
}

nav a.active {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}

.menu-toggle,
.nav-close,
.nav-backdrop {
    display: none;
}

/* Hero Section Styles */
.hero {
    height: auto;
}

.coming-soon {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 533px;
    height: 533px;
}

/* Slider Section Styles */
.slideshow-container {
    width: 100%;
    height: 494px;
}

.swiper-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    align-content: center;
    justify-content: center;
    height: 100%;
}

.swiper-slide img {
    align-self: start;
    grid-column: 2;
    grid-row: 1 / -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    display: flex;
    grid-column: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 81px;
    gap: 24px;
}

.slide-text h1 {
    font-family: var(--body-font);
    color: var(--color-primary);
    align-self: flex-start;
}

.slide-text p {
    font-family: var(--body-font);
}

/* Override Swiper's default nav button look */
.swiper-button-prev, .swiper-button-next {
    background-color: #d9d9d934;
    border: #d9d9d934 1px solid;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.prev::after, .next::after {
    font-family: initial;
    content: '';
}

/* Or, simplest: keep Swiper's built-in arrow icons and just recolor them */
.prev, .next {
    color: var(--color-primary);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.prev:hover, .next:hover {
    background-color: var(--color-primary);
    color: var(--body-color);
    transform: scale(1.1);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.swiper-pagination {
    --swiper-pagination-color: var(--color-primary);
}

.swiper-pagination-bullet {
    background-color: var(--color-primary);
}

/* Brand Section Styles */
.brand_section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    background-color: var(--body-color);
    gap: 24px;
}

.brand_wrapper {
display: flex;
flex-direction: row;
justify-content: space-evenly;
width: 100%;

}

.brand_section h3 {
    font-family: var(--body-font);
    text-transform: uppercase;
    color: #9d9d9d;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;

}

.brand_section img {
    max-width: 100px;
    height: auto;
    margin: 0 10px;
}

/* Footer Styles */

.footer {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, max-content);
    grid-template-rows: 1fr;
    column-gap: 100px;
    justify-content: center;
    justify-items: start;
    align-items: start;
    background-color: var(--footer-color);
    color: var(--body-color);
    padding: var(--footer-padding);
    font-family: var(--body-font);
    height: var(--footer-height);
    width: 100%;
}

/* .quick-links and .services share one layout; .contact-info differs only
   in line-height and its icon/link row layout, so it keeps its own rule. */
.quick-links,
.services,
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    text-align: center;
    gap: 12px;
}

.quick-links,
.services {
    cursor: pointer;
}

.quick-links a,
.services a {
    text-decoration: none;
    color: var(--body-color);
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.contact-info a {
    text-decoration: none;
    color: var(--body-color);
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
}

.contact-info > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quick-links a:hover,
.services a:hover,
.contact-info a:hover {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}

.contact-info i{
    width: 20px;
    height: 20px;
}

.copyright-section {
    position: absolute;
    top: 429px;
    left: 50%;
    transform: translateX(-50%);
    width: 1162px;
    text-align: left;
    align-items: start;
}

hr{
    border: 1px solid #cac4d0;
    width: 100%;
    margin: 2rem 0;
    color: #cac4d0;
}

/* About Page Styles */
.about-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 80px;
    width: 100%;
    height: 601px;
    gap: 80px;
}

.about-hero img {
    width: min(100%, 520px);
    height: min(100%, 520px);
    justify-self: center;
    align-self: center;
    border-radius: 50%;
    object-fit: cover;
}

.about-hero-text{
    font-family: var(--body-font);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 12px;
}

.about-hero-text h2 {
    font-size: 14px;
    color: #9d9d9d;
    line-height: 24px;
    font-weight: 500;
}

.about-hero-text h1{
    font-family: 'Squada One', sans-serif;
    font-size: 48px;
    color: var(--color-primary);
    line-height: 52px;
    font-weight: 400;
    font-style: normal;
}

.about-hero-text p{
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    letter-spacing: 0.02em; /* fixed: "2%" is not a valid letter-spacing unit */
}

.mission-vision-values {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    align-items: start;
    gap: 24px;
    padding: 80px;
}

.mission-item {
    display: grid;
    grid-template-rows: 60px 24px 1fr;
    align-items: start;
    gap: 12px;
    font-family: var(--body-font);
    text-align: center;
}

.mission-item > i,
.mission-item > svg,
.mission-item > h3 {
    justify-self: center;
}

.mission-item > svg {
    display: block;
    margin-inline: auto;
}

.mission-item > p {
    width: 100%;
}

.mission-item h3{
    font-size: 14px;
    color: #9d9d9d;
    line-height: 24px;
    font-weight: 500;
}

@media (max-width: 640px) {
    .mission-vision-values {
        grid-template-columns: 1fr;
        padding: 48px 24px;
        gap: 48px;
    }
}

.team_section {
    padding: 56px 8vw 72px;
    font-family: var(--body-font);
    text-align: center;
    background-color: var(--body-color);
}

.team_intro {
    max-width: 680px;
    margin: 0 auto;
}

.team_eyebrow {
    display: block;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    line-height: 16px;
    text-transform: uppercase;
}

.team_intro h3 {
    margin-top: 8px;
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 600;
    line-height: 46px;
}

.team_intro p {
    max-width: 560px;
    margin: 40px auto 0;
    color: var(--color-text);
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 28px;
}

.team_rule {
    display: block;
    width: 84px;
    height: 3px;
    margin: 12px auto 0;
    background-color: var(--color-brand-red);
}

.team_group {
    max-width: 1120px;
    margin: 40px auto 0;
}

.team_grid {
    display: grid;
    align-items: start;
    gap: 24px 20px;
}

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

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

.team_group_experts {
    margin-top: 72px;
}

.team_group h3 {
    margin: 0;
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    line-height: 42px;
}

.team_group_experts .team_grid {
    margin-top: 36px;
}

.team_member {
    min-width: 0;
}

.team_member h4 {
    margin: 0;
    color: var(--color-text);
    font-family: var(--body-font);
    font-size: 17px;
    font-weight: 600;
    line-height: 24px;
}

.team_member span {
    display: block;
    margin-top: 6px;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 18px;
}

/* Testimonial Section Styles */
.testimonial_section {
    width: 100%;
    height: auto;
    padding: 96px 120px;
    display: flex;
    flex-direction: column;
    position: relative;
    font-family: var(--body-font);
    align-items: center;
    gap: 36px;
}

section.testimonial_section[hidden] {
    display: none !important;
}

.testimonial_section h3 {
    color: #9d9d9d;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.02em; /* fixed: "2%" is not a valid letter-spacing unit */
    text-transform: uppercase;
}

/* CHANGED: was a plain flex row — now a fixed-height stage the cards
   position themselves inside of, which is what makes the center/side
   layout and animation possible. */
.testimonial_wrapper {
    position: relative;
    width: 100%;
    max-width: 1300px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CHANGED: added position:absolute + a transition so JS can animate
   between states by just swapping a class. Kept your sizing/shadow/radius. */
.testimonial_card {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 600px;
    border-radius: 16px;
    width: 577.44px;
    height: 292px;
    box-shadow: 0px 4px 24px rgba(8, 10, 38, 0.12);
    transition: transform 0.55s cubic-bezier(.4,0,.2,1),
                opacity 0.55s ease,
                filter 0.55s ease;
}

.testimonial_card img {
    border-radius: 16px 0 0 16px;
    object-fit: cover;
}

.testimonial_content {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 32px 24px;
    gap: 16px;
    height: 100%;
    background-color: var(--body-color);
    border-radius: 0 16px 16px 0;
}

.testimonial_content h4{
    font-size: 16px;
    line-height: 26px;
    font-weight: 500;
    color: #000;
}

.testimonial_content span{
    font-size: 16px;
    line-height: 26px;
    color: #6b7280;
}

/* NEW: the four states JS toggles between. This is the actual carousel logic. */
.testimonial_card.is-active {
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: blur(0);
    z-index: 3;
}

.testimonial_card.is-prev {
    transform: translateX(-480px) scale(0.78);
    opacity: 0.7;
    filter: blur(3px);
    z-index: 2;
}

.testimonial_card.is-next {
    transform: translateX(480px) scale(0.78);
    opacity: 0.7;
    filter: blur(3px);
    z-index: 2;
}

.testimonial_card.is-hidden {
    transform: translateX(0) scale(0.6);
    opacity: 0;
    filter: blur(4px);
    z-index: 1;
    pointer-events: none;
}

/* NEW: dot navigation */
.testimonial_dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.testimonial_dots button {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: #d9d9d9;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial_dots button.active {
    width: 12px;
    height: 12px;
    background: var(--color-primary);
}

@media (max-width: 640px) {
    .testimonial_card { width: 90vw; flex-direction: column; height: auto; }
    .testimonial_card img { width: 100% !important; height: 180px !important; }
    .testimonial_card.is-prev, .testimonial_card.is-next { display: none; }
    .testimonial_wrapper { height: 420px; }
}

/* =============================================================
   GQ System Solutions — Blog page
   ============================================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-weight: 400;
    color: var(--color-text);
    background: var(--body-color);
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* -------------------------------------------------------------
   Temporary coming soon state for blog and shop pages
   ------------------------------------------------------------- */

.page-coming-soon {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    padding: 48px 24px;
    background-image: linear-gradient(rgba(7, 11, 34, 0.58), rgba(7, 11, 34, 0.58)),
        url('assets/images/Create_technology_hero_banner_202608071840.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.page-coming-soon__content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 900px);
    min-height: 100%;
    padding: clamp(18px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    background: rgba(8, 10, 38, 0.18);
    backdrop-filter: blur(2px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.page-coming-soon__badge {
    display: block;
    max-width: min(480px, 72vw);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.25));
}

.page-coming-soon__text {
    color: var(--body-color);
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 5vw, 6rem);
    line-height: 0.9;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.page-coming-soon--blog .page-coming-soon__badge {
    display: none;
}

.page-coming-soon--shop .page-coming-soon__text {
    display: none;
}

/* =============================================================
   GQ System Solutions — Services page
   ============================================================= */

.services-page {
    background: #f3f3f3;
    color: var(--color-text);
    font-family: var(--body-font);
}

.services-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 437px;
    padding: 40px 24px 24px;
    background-image: url("assets/images/IT_technician_repairing_desktop_…_202608041030.jpeg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    isolation: isolate;
}

.services-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: -1;
}

.services-hero h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.services-hero p {
    font-size: clamp(0.95rem, 1.3vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.services-list {
    max-width: 1020px;
    margin: 0 auto;
    padding: 48px 24px 72px;
    display: flex;
    flex-direction: column;
    gap: 58px;
}

.service-card {
    display: grid;
    grid-template-columns: minmax(300px, 1.5fr) minmax(320px, 1.8fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    width: 100%;
}

.service-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
    padding: 8px 0;
}

.service-card__content h2 {
    font-size: clamp(2rem, 2vw, 2.6rem);
    line-height: 1.2;
    font-weight: 700;
    color: #111111;
    margin-bottom: 18px;
}

.service-card__content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(17, 17, 17, 0.8);
    max-width: 520px;
    margin-bottom: 18px;
}

.service-card__content ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 18px;
}

.service-card__content button,
.service-card__content a,
.services-cta button {
    align-self: flex-start;
    border: none;
    border-radius: 14px;
    background: #1d248c;
    color: #ffffff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    padding: 12px 22px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(29, 36, 140, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card__content button:hover,
.service-card__content a:hover,
.services-cta button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 25px rgba(29, 36, 140, 0.22);
}

.service-card__image {
    position: relative;
    width: 100%;
    min-height: 240px;
    border-radius: 16px;
    overflow: hidden;
    
    background:
        linear-gradient(45deg, rgba(255,255,255,0.4) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.4) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.4) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.4) 75%),
        #9d9d9d;
    background-size: 26px 26px;
    background-position: 0 0, 0 13px, 13px -13px, -13px 0;
    box-shadow: 0 8px 24px 0 rgba(17, 17, 17, 0.12);
}

.service-card--image-left .service-card__image {
    order: 1;
}

.service-card--image-left {
    grid-template-columns: minmax(320px, 1.8fr) minmax(300px, 1.5fr);
}

.service-card--image-left .service-card__content {
    order: 2;
}

.service-card--image-right .service-card__content {
    order: 1;
}

.service-card--image-right .service-card__image {
    order: 2;
}

.services-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 34px 24px 44px;
    text-align: center;
    background: linear-gradient(180deg, #1d248c 0%, #1a1f75 100%);
    color: var(--body-color);
}

.services-cta h3 {
    font-size: clamp(1.7rem, 2.5vw, 2.5rem);
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.services-cta button {
    background: #ffffff;
    color: #111111;
    border-radius: 18px;
    padding: 12px 22px 12px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: none;
}

.services-cta button span {
    display: inline-block;
    font-size: 1.25rem;
    line-height: 1;
}

@media (max-width: 840px) {
    .service-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card--image-left,
    .service-card--image-right {
        grid-template-columns: 1fr;
    }

    .service-card__content {
        order: 1;
    }

    .service-card__image {
        order: 2;
        min-height: 220px;
    }

    .service-card--image-left .service-card__content,
    .service-card--image-left .service-card__image,
    .service-card--image-right .service-card__content,
    .service-card--image-right .service-card__image {
        order: initial;
    }

    .service-card--image-right .service-card__image {
        order: 1;
    }

    .service-card--image-right .service-card__content {
        order: 2;
    }

    .service-card__content p {
        max-width: 100%;
    }
}

/* =============================================================
   GQ System Solutions — Contact page
   ============================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: var(--header-height);
    background: var(--body-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px var(--container-x);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.site-logo .logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2f39c2, #0d1157);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--body-color);
    flex-shrink: 0;
}

.site-logo .logo-badge span {
    color: var(--color-brand-red);
}

.site-logo .logo-text {
    display: flex;
    flex-direction: column;
}

.site-logo .logo-text .logo-name {
    font-size: 20px;
    letter-spacing: 1px;
    color: var(--color-text);
}

.site-logo .logo-text .logo-name .q {
    color: var(--color-brand-red);
}

.site-logo .logo-text .logo-sub {
    font-family: var(--body-font);
    font-size: 10px;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    text-transform: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--color-text);
    cursor: pointer;
    padding: 8px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    font-weight: 300;
    font-size: 16px;
    color: var(--color-text);
    padding: 10px 0;
    transition: color 0.15s ease;
}

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

.main-nav a.is-active {
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Contact hero: map + floating form card */

.contact-hero {
    position: relative;
    display: flow-root;
    width: 100%;
    min-height: 794px;
    background: #e9ebef;
}

.map-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.map-embed {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.15) contrast(1.02);
}

.contact-form-card {
    position: relative;
    z-index: 2;
    margin-left: auto;
    width: min(360px, 90vw);
    background: var(--body-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 32px 28px;
    margin-top: 80px;
    margin-right: var(--container-x);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    font-family: var(--body-font);
    font-size: 14px;
    color: var(--color-text);
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--body-color);
    outline: none;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-footer-text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(29, 36, 140, 0.12);
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: var(--color-brand-red);
}

.field-error {
    font-size: 12px;
    color: var(--color-brand-red);
    min-height: 14px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-primary);
    color: var(--body-color);
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.btn-submit:hover {
    background: #161c6e;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spinner {
    display: none;
}

.btn-submit.is-loading .btn-spinner {
    display: inline-block;
}

.form-status {
    margin: 0;
    font-size: 14px;
    min-height: 20px;
}

.form-status.success {
    color: #15803d;
}

.form-status.error {
    color: var(--color-brand-red);
}

/* Contact page footer (site-footer) — a richer variant of the
   simpler .footer used on the other pages; kept as its own
   component since the markup and layout differ. */

.site-footer {
    background: var(--footer-color);
    padding: 64px 24px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 47px 92px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 180px;
    padding: 16px;
}

.footer-col h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--body-color);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a,
.footer-col ul li span {
    font-size: 14px;
    color: var(--color-footer-text);
}

.footer-col ul li a:hover {
    color: var(--body-color);
}

.footer-brand {
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px 12px;
    text-align: center;
}

.footer-brand .brand-mark {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 38px;
    letter-spacing: 1.9px;
    color: var(--body-color);
    line-height: 1;
}

.footer-brand .brand-mark .q {
    color: var(--color-brand-red);
}

.footer-brand .brand-sub {
    font-family: var(--body-font);
    font-size: 12px;
    color: var(--body-color);
    margin-top: 4px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-contact .contact-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--color-footer-text);
}

.footer-contact .contact-line i {
    color: var(--color-footer-text);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact .contact-line a {
    color: var(--color-footer-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-contact .contact-line a:hover {
    color: var(--body-color);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--body-color);
    font-size: 18px;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.footer-social a:hover {
    opacity: 1;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 40px 0 24px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-footer-text-dim);
}

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */

@media (max-width: 1100px) {
    :root {
        --page-gutter: 48px;
    }

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

@media (max-width: 860px) {
    .site-header__nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px var(--page-gutter);
        background: var(--body-color);
        border-top: 1px solid #eee;
        transform: translateY(-150%);
        transition: transform 0.2s ease;
        z-index: 10;
    }

    .site-header__nav.is-open {
        transform: translateY(0);
    }

    .nav-toggle {
        display: block;
    }

    .footer-bottom {
        padding: 0 var(--page-gutter);
    }
}

@media (max-width: 640px) {
    :root {
        --page-gutter: 24px;
    }

    .featured-post {
        min-height: 320px;
        padding: 24px;
    }

    .featured-post__title {
        font-size: 26px;
    }

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

    .footer-brand,
    .footer-col {
        width: 100%;
        align-items: flex-start;
    }

    .footer-brand {
        align-items: center;
    }
}

@media (max-width: 1024px) {
    /* Tablet and mobile navigation */
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }

    header {
        height: auto;
        padding: 12px 5vw;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        border: 0;
        background: transparent;
        color: var(--color-primary);
        cursor: pointer;
        width: 44px;
        height: 44px;
    }

    .menu-toggle svg {
        width: 28px;
        height: 28px;
    }

    nav {
        position: fixed;
        z-index: 1001;
        top: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 8px;
        padding: 88px 28px 28px;
        width: min(320px, 82vw);
        height: 100vh;
        max-width: none;
        background-color: var(--body-color);
        border-radius: 0;
        box-shadow: -8px 0 24px rgba(8, 10, 38, 0.16);
        transform: translateX(100%);
        transition: transform 0.25s ease;
    }

    nav a {
        width: 100%;
        padding: 12px 0;
        font-size: 16px;
    }

    .nav-close {
        position: absolute;
        top: 20px;
        right: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        color: var(--color-primary);
        cursor: pointer;
    }

    .nav-close svg {
        width: 26px;
        height: 26px;
    }

    header.nav-open nav {
        transform: translateX(0);
    }

    .nav-backdrop {
        position: fixed;
        z-index: 1000;
        inset: 0;
        display: block;
        background-color: rgba(8, 10, 38, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    header.nav-open .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.nav-open {
        overflow: hidden;
    }

.hero {
        position: relative;
        height: 494px;
    }

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

    .coming-soon {
        top: 50%;
        width: min(300px, 55vw);
        height: auto;
    }

    .slide-text {
        padding: 0 32px;
        gap: 16px;
    }

    .slide-text h1 {
        font-size: 28px;
    }

    .brand_wrapper {
        flex-wrap: wrap;
        gap: 12px 20px;
        padding: 0 20px;
    }

    .brand_section img {
        margin: 0;
    }

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

    .footer {
        height: auto;
        min-height: 520px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 48px;
        row-gap: 48px;
        padding: 80px 8vw 40px;
    }

    .copyright-section {
        position: static;
        grid-column: 1 / -1;
        transform: none;
        width: 100%;
    }
}

@media (max-width: 767px) {
    /* Mobile layout */
    header {
        padding: 12px 20px;
    }

    .about-hero {
        grid-template-columns: 1fr;
        height: auto;
        gap: 32px;
        padding: 32px 20px 0;
    }

    .about-hero img {
        width: min(100%, 420px);
        height: min(calc(100vw - 40px), 420px);
    }

    .about-hero-text {
        padding-bottom: 8px;
    }

    .about-hero-text h1 {
        font-size: 40px;
        line-height: 44px;
    }

    header img {
        width: 52px;
        height: 52px;
    }

    .coming-soon {
        top: 50%;
        width: min(260px, 55vw);
        height: auto;
    }

    .slideshow-container {
        height: auto;
        min-height: 620px;
    }

    .swiper-slide {
        grid-template-columns: 1fr;
        grid-template-rows: 46% 54%;
    }

    .swiper-slide img {
        grid-column: 1;
        grid-row: 1;
        min-height: 0;
    }

    .slide-text {
        grid-column: 1;
        grid-row: 2;
        align-items: flex-start;
        padding: 24px 44px;
        overflow-y: auto;
    }

    .slide-text h1 {
        font-size: 24px;
    }

    .slide-text p {
        font-size: 14px;
        line-height: 1.6;
    }

    .brand_section {
        padding: 24px 0;
    }

    .brand_wrapper {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px 8px;
        padding: 0 16px;
    }

    .brand_section img {
        width: 100%;
        max-width: 90px;
        margin: 0 auto;
    }

    .footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        min-height: 0;
        row-gap: 40px;
        padding: 64px 24px 32px;
    }

    .quick-links,
    .services,
    .contact-info {
        align-items: center;
        width: 100%;
    }

    .contact-info > a {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .copyright-section {
        text-align: center;
    }

    .copyright {
        font-size: 12px;
    }

    .team_section {
        padding: 40px 20px 52px;
    }

    .team_eyebrow {
        font-size: 10px;
    }

    .team_intro h3 {
        margin-top: 10px;
        font-size: 30px;
        line-height: 38px;
    }

    .team_intro p {
        margin-top: 32px;
        font-size: 15px;
        line-height: 24px;
    }

    .team_rule {
        width: 64px;
        height: 2px;
        margin-top: 10px;
    }

    .team_group {
        margin-top: 32px;
    }

    .team_grid_founders,
    .team_grid_experts {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team_group_experts {
        margin-top: 48px;
    }

    .team_group h3 {
        font-size: 28px;
        line-height: 36px;
    }

    .team_group_experts .team_grid {
        margin-top: 28px;
    }

    .team_member h4 {
        font-size: 16px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    /* Tablet portrait slideshow */
    .swiper-slide {
        grid-template-columns: 1fr;
        grid-template-rows: 52% 48%;
    }

    .swiper-slide img {
        grid-column: 1;
        grid-row: 1;
    }

    .slide-text {
        grid-column: 1;
        grid-row: 2;
        align-items: flex-start;
        padding: 24px 56px;
        overflow-y: auto;
    }
}

/* Contact page — the site-header/nav/contact-form-card only exist on
   this page, so these breakpoints are scoped to those selectors and
   don't collide with the header/nav rules the other pages use above. */
@media (max-width: 960px) {
    :root {
        --container-x: 32px;
    }

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

    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--body-color);
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px var(--container-x) 20px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s ease, transform 0.15s ease;
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .contact-hero {
        min-height: auto;
    }

    .map-container {
        position: relative;
        height: 360px;
    }

    .contact-form-card {
        margin: -60px auto 0;
        width: min(420px, 92vw);
    }
}

@media (max-width: 480px) {
    .contact-form-card {
        padding: 24px 20px;
        margin-top: -40px;
    }

    .footer-brand {
        width: 100%;
    }
}