/* =========================================================
   MALJIAN CX — MASTER STYLESHEET
   Structure:
   Reset → Tokens → Base → Layout → Components →
   Sections → Utilities → Responsive
========================================================= */

/* =========================================================
   1. RESET
========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================================
   2. DESIGN TOKENS
========================================================= */

:root {

    /* ===============================
       COLORS
    =============================== */

    --white: #ffffff;
    --off-white: #f8fafc;
    --slate-50: #f1f5f9;

    --navy-deep: #0a1628;
    --navy-light: #112240;
    --navy-accent: #1a3365;

    --text-primary: #0a1628;
    --text-muted: #475569;
    --text-light: #64748b;

    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --accent-green: #0f766e;
    --accent-green-light: #f0fdfa;

    /* ===============================
       SHADOWS
    =============================== */

    --shadow-soft: 0 8px 24px rgba(10, 22, 40, 0.08);
    --shadow-card: 0 4px 12px rgba(10, 22, 40, 0.06);
    --shadow-button: 0 4px 10px rgba(10, 22, 40, 0.12);
    --shadow-hover: 0 12px 32px rgba(10, 22, 40, 0.12);

    /* ===============================
       RADIUS
    =============================== */

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* ===============================
       SPACING
    =============================== */

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* ===============================
       TYPOGRAPHY
    =============================== */

    --text-xs: 0.8rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.05rem;
    --text-lg: 1.15rem;
    --text-xl: 1.3rem;
    --text-2xl: 1.8rem;
    --text-3xl: 2rem;

    --text-4xl: clamp(2rem, 4vw, 3rem);
    --text-5xl: clamp(2.4rem, 5vw, 4.2rem);

    /* ===============================
       LAYOUT
    =============================== */

    --container-max: 1400px;
    --content-max: 850px;
    --hero-content-max: 950px;

    /* ===============================
       TRANSITIONS
    =============================== */

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.25s ease;

    /* ===============================
       HEADER
    =============================== */

    --header-logo-height: 90px;
    --header-logo-height-mobile: 72px;
}

/* =========================================================
   3. BASE ELEMENTS
========================================================= */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background-color: var(--white);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

strong {
    color: var(--navy-deep);
    font-weight: 700;
}

/* =========================================================
   4. ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid rgba(17, 34, 64, 0.3);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* =========================================================
   5. TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4 {
    color: var(--navy-deep);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

/* =========================================================
   6. LAYOUT
========================================================= */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.content {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding-bottom: var(--space-2xl);
}

/* =========================================================
   7. HEADER / NAVIGATION
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
}

.site-logo img {
    width: auto;
    height: var(--header-logo-height);
    transition: opacity var(--transition-fast);
}

.site-logo:hover img {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy-deep);
}

.nav-links a.active {
    border-bottom-color: var(--navy-deep);
}

.nav-cta {
    background-color: var(--navy-deep);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border-bottom: none !important;
    transition: background-color var(--transition-smooth), transform var(--transition-fast);
}

.nav-cta:hover {
    background-color: var(--navy-light);
    transform: translateY(-1px);
    color: var(--white) !important;
}

.nav-cta.active {
    background-color: transparent;
    color: var(--navy-deep) !important;
    border: 2px solid var(--navy-deep);
    padding: calc(0.5rem - 2px) calc(1.25rem - 2px) !important;
}

.nav-cta.active:hover {
    background-color: var(--navy-deep);
    color: var(--white) !important;
}

/* =========================================================
   8. BUTTONS
========================================================= */

.btn {
    display: inline-block;
    background-color: var(--navy-deep);
    color: var(--white);
    border: 2px solid var(--navy-deep);
    border-radius: var(--radius-sm);
    padding: 0.9rem var(--space-md);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-button);
    transition:
        background-color var(--transition-smooth),
        border-color var(--transition-smooth),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: var(--text-md);
}

@media (hover: hover) {
    .btn:hover {
        background-color: var(--navy-light);
        border-color: var(--navy-light);
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }

    .btn:active {
        transform: translateY(0);
    }
}

/* =========================================================
   9. HERO
========================================================= */

.hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
}

.hero__title {
    max-width: var(--hero-content-max);
    margin: 0 auto 1.5rem;
    font-size: var(--text-5xl);
}

.hero__subtitle {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    font-size: var(--text-lg);
    line-height: 1.75;
}

.hero .btn {
    margin-top: 0.75rem;
}

.hero__image-wrapper {
    padding-bottom: var(--space-xl);
    text-align: center;
}

.hero__image {
    width: 100%;
    max-width: var(--hero-content-max);
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* =========================================================
   10. CARD GRID
========================================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

/* On pages with only 2 cards (Services page), prevent stretching */
.card-grid:has(.card:only-child),
.card-grid:has(.card:nth-child(2):last-child) {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   10b. EXPANDABLE CARDS (Home page)
========================================================= */

.card-grid--expandable {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
}

.card--expandable {
    cursor: default;
    padding: 1.75rem var(--space-md);
    transition: padding 0.4s ease;
}

/* Kill hover lift on expandable cards */
.card--expandable:hover {
    transform: none;
}

/* The clickable trigger */
.card__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: inherit;
}

.card__trigger-text {
    flex: 1;
}

.card__subtitle {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-top: 0.35rem;
    line-height: 1.5;
}

/* The +/− icon */
.card__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    position: relative;
    transition: transform var(--transition-smooth);
}

.card__icon::before,
.card__icon::after {
    content: "";
    position: absolute;
    background-color: var(--navy-deep);
    transition: transform var(--transition-smooth);
}

/* Horizontal line */
.card__icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

/* Vertical line */
.card__icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

/* Open state: rotate icon */
.card--expandable.open .card__icon {
    transform: rotate(45deg);
}

/* Expandable body */
.card__body {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.card__body > * {
    min-height: 0;
}

.card--expandable.open .card__body {
    grid-template-rows: 1fr;
    margin-top: var(--space-sm);
}

/* Inner content animation */
.card--expandable .card__text,
.card--expandable .card__list {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card--expandable.open .card__text,
.card--expandable.open .card__list {
    opacity: 1;
    transform: translateY(0);
}

.card--expandable.open .card__list {
    transition-delay: 0.05s;
}

/* Expandable card title override */
.card--expandable .card__title {
    margin-bottom: 0;
}

/* =========================================================
   10c. STANDARD CARDS (Services page, non-expandable)
========================================================= */

.card {
    background-color: var(--off-white);
    padding: 2.5rem var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.card--featured {
    position: relative;
    background-color: var(--white);
    border-color: var(--navy-deep);
    border-width: 2px;
    box-shadow: var(--shadow-soft);
}

/* Featured badge */
.card--featured::before {
    content: "Flagship Service";
    position: absolute;
    top: -13px;
    left: var(--space-md);
    background-color: var(--navy-deep);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    z-index: 1;
}
/* Override featured card when it's also expandable */
.card--expandable.card--featured {
    background-color: var(--off-white);
    box-shadow: none;
}

.card--expandable.card--featured.open {
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
}

.card__title {
    margin-bottom: var(--space-sm);
    font-size: var(--text-xl);
}

.card__text {
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.card__text:last-of-type {
    margin-bottom: 0;
}

/* Card list */
.card__list {
    list-style: none;
    margin: 1.25rem 0;
    padding: 0;
}

.card__list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.65rem;
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.6;
}

.card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background-color: var(--navy-deep);
    border-radius: 50%;
}

.card__list li:last-child {
    margin-bottom: 0;
}

@media (hover: hover) {
    .card:not(.card--expandable):hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-soft);
        border-color: var(--navy-deep);
    }

    .card--featured:not(.card--expandable):hover {
        box-shadow: var(--shadow-hover);
    }
}

/* =========================================================
   11. METRICS / VALUE PROPOSITION ROW
========================================================= */

.metric-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-xl);
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.metric {
    flex: 1 1 200px;
    max-width: 280px;
}

.metric__number {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--navy-deep);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.metric__label {
    max-width: 240px;
    margin: 0 auto;
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================================
   12. CALLOUT
========================================================= */

.callout {
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl) var(--space-lg);
    background-color: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.callout__title {
    margin-bottom: 1.25rem;
    font-size: var(--text-3xl);
}

.callout__text {
    max-width: 720px;
    margin-bottom: 1.25rem;
}

.callout__text:last-of-type {
    margin-bottom: 0;
}

/* =========================================================
   13. PAGE HEADER (About, Contact, Services)
========================================================= */

.page-header {
    padding: var(--space-xl) 0 var(--space-md);
    text-align: center;
}

.page-header h1 {
    font-size: var(--text-4xl);
    margin-bottom: 0.5rem;
}

.page-header__subtitle {
    max-width: 640px;
    margin: 0.75rem auto 0;
    font-size: var(--text-lg);
    color: var(--text-muted);
    line-height: 1.7;
}

/* =========================================================
   14. ABOUT PAGE
========================================================= */

.about-content h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: var(--text-2xl);
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: var(--text-md);
}

.about-content ul {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.about-content ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: var(--text-md);
    line-height: 1.6;
}

.about-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background-color: var(--navy-deep);
    border-radius: 50%;
}

.about-content ul li:last-child {
    margin-bottom: 0;
}

.about-content .btn {
    margin-top: var(--space-lg);
}

/* =========================================================
   15. CONTACT PAGE
========================================================= */

.contact-content {
    padding-top: var(--space-md);
    text-align: center;
}

.contact-content h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: var(--text-2xl);
}

.contact-content h2:first-child {
    margin-top: 0;
}

.contact-content p {
    max-width: 640px;
    margin: 0 auto 1.25rem;
    font-size: var(--text-md);
}

/* Contact qualification list */
.contact-list {
    list-style: none;
    text-align: left;
    max-width: 640px;
    margin: 0 auto 2rem;
    padding: 0;
}

.contact-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.65;
}

.contact-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 10px;
    height: 10px;
    background-color: var(--navy-deep);
    border-radius: 50%;
}

.contact-list li strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--navy-deep);
}

.contact-list li:last-child {
    margin-bottom: 0;
}

.contact-content .btn {
    margin: var(--space-md) 0 var(--space-sm);
}

.contact-note {
    font-size: var(--text-sm);
    color: var(--text-light);
}

.linkedin-wrapper {
    margin-top: var(--space-md);
    font-size: var(--text-base);
    color: var(--text-muted);
}

.linkedin-link {
    color: var(--navy-deep);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.linkedin-link:hover {
    color: var(--navy-light);
}

/* =========================================================
   16. FOOTER
========================================================= */

.site-footer {
    margin-top: auto;
    padding: var(--space-md);
    background-color: var(--off-white);
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: var(--text-sm);
}

.site-footer p {
    color: var(--text-muted);
}

/* =========================================================
   17. RESPONSIVE — TABLET
========================================================= */

@media (max-width: 768px) {

    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .site-nav {
        padding: var(--space-sm) 0;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .hero {
        padding: var(--space-xl) 0 var(--space-lg);
    }

    .hero__title {
        font-size: clamp(1.8rem, 4vw, var(--text-4xl));
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    .card-grid--expandable {
        grid-template-columns: 1fr;
    }

    .card {
        padding: var(--space-md) 1.5rem;
    }

    .card--featured::before {
        left: 1.25rem;
        font-size: 0.7rem;
        padding: 0.25rem 0.85rem;
        top: -12px;
    }

    .callout {
        padding: var(--space-lg) var(--space-md);
    }

    .metric-row {
        gap: var(--space-md);
        padding: var(--space-lg) 0;
    }

    .metric__number {
        font-size: 1.4rem;
    }

    .page-header {
        padding: var(--space-lg) 0 var(--space-md);
    }

    .page-header h1 {
        font-size: var(--text-3xl);
    }

    .content {
        padding-bottom: var(--space-xl);
    }

    .about-content h2,
    .contact-content h2 {
        font-size: 1.5rem;
    }
}

/* =========================================================
   18. RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 480px) {

    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1.25rem;
    }

    .site-nav {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm) 1rem;
    }

    .site-logo img {
        height: var(--header-logo-height-mobile);
    }

    .hero {
        padding: var(--space-lg) 0 var(--space-md);
    }

    .hero__subtitle {
        font-size: var(--text-base);
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        margin-bottom: var(--space-xl);
    }

    .card {
        padding: 1.75rem 1.5rem;
    }

    .card--expandable {
        padding: 1.5rem 1.25rem;
    }

    .card--featured::before {
        left: 1.25rem;
        top: -11px;
        font-size: 0.65rem;
        padding: 0.25rem 0.75rem;
    }

    .card__title {
        font-size: var(--text-lg);
    }

    .card__list li {
        font-size: var(--text-sm);
    }

    .card__icon {
        width: 24px;
        height: 24px;
    }

    .card__subtitle {
        font-size: var(--text-xs);
    }

    .callout {
        padding: var(--space-md) 1.5rem;
        margin-bottom: var(--space-xl);
    }

    .callout__title {
        font-size: var(--text-2xl);
    }

    .metric-row {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
        padding: var(--space-md) 0;
        margin-bottom: var(--space-lg);
    }

    .metric {
        max-width: 100%;
    }

    .metric__number {
        font-size: 1.3rem;
    }

    .page-header {
        padding: var(--space-lg) 0 var(--space-sm);
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header__subtitle {
        font-size: var(--text-base);
    }

    .about-content h2,
    .contact-content h2,
    .content h2 {
        font-size: 1.4rem;
    }

    .about-content p,
    .contact-content p {
        font-size: var(--text-base);
    }

    .about-content ul li {
        font-size: var(--text-base);
    }

    .contact-list li {
        font-size: var(--text-sm);
        padding-left: 1.5rem;
    }

    .contact-list li strong {
        font-size: var(--text-base);
    }

    .site-footer {
        padding: 1.25rem;
    }
}

/* =========================================================
   19. RESPONSIVE — LARGE SCREENS
========================================================= */

@media (min-width: 1800px) {

    html {
        font-size: 18px;
    }

    .card-grid:not(.card-grid--expandable) {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }

    .hero {
        padding: var(--space-3xl) 0 var(--space-2xl);
    }
}

/* =========================================================
   20. PRINT STYLES
========================================================= */

@media print {

    .site-header,
    .site-footer,
    .btn {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .hero,
    .card,
    .callout {
        padding: 1rem 0;
        box-shadow: none;
        border: none;
    }
}/* =========================================================
   MALJIAN CX — MASTER STYLESHEET
   Structure:
   Reset → Tokens → Base → Layout → Components →
   Sections → Utilities → Responsive
========================================================= */

/* =========================================================
   1. RESET
========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================================
   2. DESIGN TOKENS
========================================================= */

:root {

    /* ===============================
       COLORS
    =============================== */

    --white: #ffffff;
    --off-white: #f8fafc;
    --slate-50: #f1f5f9;

    --navy-deep: #0a1628;
    --navy-light: #112240;
    --navy-accent: #1a3365;

    --text-primary: #0a1628;
    --text-muted: #475569;
    --text-light: #64748b;

    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --accent-green: #0f766e;
    --accent-green-light: #f0fdfa;

    /* ===============================
       SHADOWS
    =============================== */

    --shadow-soft: 0 8px 24px rgba(10, 22, 40, 0.08);
    --shadow-card: 0 4px 12px rgba(10, 22, 40, 0.06);
    --shadow-button: 0 4px 10px rgba(10, 22, 40, 0.12);
    --shadow-hover: 0 12px 32px rgba(10, 22, 40, 0.12);

    /* ===============================
       RADIUS
    =============================== */

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* ===============================
       SPACING
    =============================== */

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* ===============================
       TYPOGRAPHY
    =============================== */

    --text-xs: 0.8rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.05rem;
    --text-lg: 1.15rem;
    --text-xl: 1.3rem;
    --text-2xl: 1.8rem;
    --text-3xl: 2rem;

    --text-4xl: clamp(2rem, 4vw, 3rem);
    --text-5xl: clamp(2.4rem, 5vw, 4.2rem);

    /* ===============================
       LAYOUT
    =============================== */

    --container-max: 1400px;
    --content-max: 850px;
    --hero-content-max: 950px;

    /* ===============================
       TRANSITIONS
    =============================== */

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.25s ease;

    /* ===============================
       HEADER
    =============================== */

    --header-logo-height: 90px;
    --header-logo-height-mobile: 72px;
}

/* =========================================================
   3. BASE ELEMENTS
========================================================= */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background-color: var(--white);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

strong {
    color: var(--navy-deep);
    font-weight: 700;
}

/* =========================================================
   4. ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid rgba(17, 34, 64, 0.3);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* =========================================================
   5. TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4 {
    color: var(--navy-deep);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

/* =========================================================
   6. LAYOUT
========================================================= */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.content {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding-bottom: var(--space-2xl);
}

/* =========================================================
   7. HEADER / NAVIGATION
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
}

.site-logo img {
    width: auto;
    height: var(--header-logo-height);
    transition: opacity var(--transition-fast);
}

.site-logo:hover img {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy-deep);
}

.nav-links a.active {
    border-bottom-color: var(--navy-deep);
}

.nav-cta {
    background-color: var(--navy-deep);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border-bottom: none !important;
    transition: background-color var(--transition-smooth), transform var(--transition-fast);
}

.nav-cta:hover {
    background-color: var(--navy-light);
    transform: translateY(-1px);
    color: var(--white) !important;
}

.nav-cta.active {
    background-color: transparent;
    color: var(--navy-deep) !important;
    border: 2px solid var(--navy-deep);
    padding: calc(0.5rem - 2px) calc(1.25rem - 2px) !important;
}

.nav-cta.active:hover {
    background-color: var(--navy-deep);
    color: var(--white) !important;
}

/* =========================================================
   8. BUTTONS
========================================================= */

.btn {
    display: inline-block;
    background-color: var(--navy-deep);
    color: var(--white);
    border: 2px solid var(--navy-deep);
    border-radius: var(--radius-sm);
    padding: 0.9rem var(--space-md);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-button);
    transition:
        background-color var(--transition-smooth),
        border-color var(--transition-smooth),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: var(--text-md);
}

@media (hover: hover) {
    .btn:hover {
        background-color: var(--navy-light);
        border-color: var(--navy-light);
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }

    .btn:active {
        transform: translateY(0);
    }
}

/* =========================================================
   9. HERO
========================================================= */

.hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
}

.hero__title {
    max-width: var(--hero-content-max);
    margin: 0 auto 1.5rem;
    font-size: var(--text-5xl);
}

.hero__subtitle {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    font-size: var(--text-lg);
    line-height: 1.75;
}

.hero .btn {
    margin-top: 0.75rem;
}

.hero__image-wrapper {
    padding-bottom: var(--space-xl);
    text-align: center;
}

.hero__image {
    width: 100%;
    max-width: var(--hero-content-max);
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* =========================================================
   10. CARD GRID
========================================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

/* On pages with only 2 cards (Services page), prevent stretching */
.card-grid:has(.card:only-child),
.card-grid:has(.card:nth-child(2):last-child) {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   10b. EXPANDABLE CARDS (Home page)
========================================================= */

.card-grid--expandable {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
}

.card--expandable {
    cursor: default;
}

/* Kill hover lift on expandable cards */
.card--expandable:hover {
    transform: none;
}

/* The clickable trigger */
.card__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: inherit;
}

.card__trigger-text {
    flex: 1;
}

.card__subtitle {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-top: 0.35rem;
    line-height: 1.5;
}

/* The +/− icon */
.card__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    position: relative;
    transition: transform var(--transition-smooth);
}

.card__icon::before,
.card__icon::after {
    content: "";
    position: absolute;
    background-color: var(--navy-deep);
    transition: transform var(--transition-smooth);
}

/* Horizontal line */
.card__icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

/* Vertical line */
.card__icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

/* Open state: rotate icon */
.card--expandable.open .card__icon {
    transform: rotate(45deg);
}

/* Expandable body */
.card__body {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.card__body > * {
    min-height: 0;
}

.card--expandable.open .card__body {
    grid-template-rows: 1fr;
    margin-top: var(--space-sm);
}

/* Inner content animation */
.card--expandable .card__text,
.card--expandable .card__list {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card--expandable.open .card__text,
.card--expandable.open .card__list {
    opacity: 1;
    transform: translateY(0);
}

.card--expandable.open .card__list {
    transition-delay: 0.05s;
}

/* Expandable card title override */
.card--expandable .card__title {
    margin-bottom: 0;
}

/* =========================================================
   10c. STANDARD CARDS (Services page, non-expandable)
========================================================= */

.card {
    background-color: var(--off-white);
    padding: 2.5rem var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.card--featured {
    position: relative;
    background-color: var(--white);
    border-color: var(--navy-deep);
    border-width: 2px;
    box-shadow: var(--shadow-soft);
}

/* Featured badge */
.card--featured::before {
    content: "Flagship Service";
    position: absolute;
    top: -13px;
    left: var(--space-md);
    background-color: var(--navy-deep);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    z-index: 1;
}

.card__title {
    margin-bottom: var(--space-sm);
    font-size: var(--text-xl);
}

.card__text {
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.card__text:last-of-type {
    margin-bottom: 0;
}

/* Card list */
.card__list {
    list-style: none;
    margin: 1.25rem 0;
    padding: 0;
}

.card__list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.65rem;
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.6;
}

.card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background-color: var(--navy-deep);
    border-radius: 50%;
}

.card__list li:last-child {
    margin-bottom: 0;
}

@media (hover: hover) {
    .card:not(.card--expandable):hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-soft);
        border-color: var(--navy-deep);
    }

    .card--featured:not(.card--expandable):hover {
        box-shadow: var(--shadow-hover);
    }
}

/* =========================================================
   11. METRICS / VALUE PROPOSITION ROW
========================================================= */

.metric-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-xl);
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.metric {
    flex: 1 1 200px;
    max-width: 280px;
}

.metric__number {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--navy-deep);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.metric__label {
    max-width: 240px;
    margin: 0 auto;
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================================
   12. CALLOUT
========================================================= */

.callout {
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl) var(--space-lg);
    background-color: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.callout__title {
    margin-bottom: 1.25rem;
    font-size: var(--text-3xl);
}

.callout__text {
    max-width: 720px;
    margin-bottom: 1.25rem;
}

.callout__text:last-of-type {
    margin-bottom: 0;
}

/* =========================================================
   13. PAGE HEADER (About, Contact, Services)
========================================================= */

.page-header {
    padding: var(--space-xl) 0 var(--space-md);
    text-align: center;
}

.page-header h1 {
    font-size: var(--text-4xl);
    margin-bottom: 0.5rem;
}

.page-header__subtitle {
    max-width: 640px;
    margin: 0.75rem auto 0;
    font-size: var(--text-lg);
    color: var(--text-muted);
    line-height: 1.7;
}

/* =========================================================
   14. ABOUT PAGE
========================================================= */

.about-content h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: var(--text-2xl);
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: var(--text-md);
}

.about-content ul {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.about-content ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: var(--text-md);
    line-height: 1.6;
}

.about-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background-color: var(--navy-deep);
    border-radius: 50%;
}

.about-content ul li:last-child {
    margin-bottom: 0;
}

.about-content .btn {
    margin-top: var(--space-lg);
}

/* =========================================================
   15. CONTACT PAGE
========================================================= */

.contact-content {
    padding-top: var(--space-md);
    text-align: center;
}

.contact-content h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: var(--text-2xl);
}

.contact-content h2:first-child {
    margin-top: 0;
}

.contact-content p {
    max-width: 640px;
    margin: 0 auto 1.25rem;
    font-size: var(--text-md);
}

/* Contact qualification list */
.contact-list {
    list-style: none;
    text-align: left;
    max-width: 640px;
    margin: 0 auto 2rem;
    padding: 0;
}

.contact-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.65;
}

.contact-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 10px;
    height: 10px;
    background-color: var(--navy-deep);
    border-radius: 50%;
}

.contact-list li strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--navy-deep);
}

.contact-list li:last-child {
    margin-bottom: 0;
}

.contact-content .btn {
    margin: var(--space-md) 0 var(--space-sm);
}

.contact-note {
    font-size: var(--text-sm);
    color: var(--text-light);
}

.linkedin-wrapper {
    margin-top: var(--space-md);
    font-size: var(--text-base);
    color: var(--text-muted);
}

.linkedin-link {
    color: var(--navy-deep);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.linkedin-link:hover {
    color: var(--navy-light);
}

/* =========================================================
   16. FOOTER
========================================================= */

.site-footer {
    margin-top: auto;
    padding: var(--space-md);
    background-color: var(--off-white);
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: var(--text-sm);
}

.site-footer p {
    color: var(--text-muted);
}

/* =========================================================
   17. RESPONSIVE — TABLET
========================================================= */

@media (max-width: 768px) {

    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .site-nav {
        padding: var(--space-sm) 0;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .hero {
        padding: var(--space-xl) 0 var(--space-lg);
    }

    .hero__title {
        font-size: clamp(1.8rem, 4vw, var(--text-4xl));
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    .card-grid--expandable {
        grid-template-columns: 1fr;
    }

    .card {
        padding: var(--space-md) 1.5rem;
    }

    .card--featured::before {
        left: 1.25rem;
        font-size: 0.7rem;
        padding: 0.25rem 0.85rem;
        top: -12px;
    }

    .callout {
        padding: var(--space-lg) var(--space-md);
    }

    .metric-row {
        gap: var(--space-md);
        padding: var(--space-lg) 0;
    }

    .metric__number {
        font-size: 1.4rem;
    }

    .page-header {
        padding: var(--space-lg) 0 var(--space-md);
    }

    .page-header h1 {
        font-size: var(--text-3xl);
    }

    .content {
        padding-bottom: var(--space-xl);
    }

    .about-content h2,
    .contact-content h2 {
        font-size: 1.5rem;
    }
}

/* =========================================================
   18. RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 480px) {

    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1.25rem;
    }

    .site-nav {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm) 1rem;
    }

    .site-logo img {
        height: var(--header-logo-height-mobile);
    }

    .hero {
        padding: var(--space-lg) 0 var(--space-md);
    }

    .hero__subtitle {
        font-size: var(--text-base);
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        margin-bottom: var(--space-xl);
    }

    .card {
        padding: 1.75rem 1.5rem;
    }

    .card--expandable {
        padding: 1.5rem 1.25rem;
    }

    .card--featured::before {
        left: 1.25rem;
        top: -11px;
        font-size: 0.65rem;
        padding: 0.25rem 0.75rem;
    }

    .card__title {
        font-size: var(--text-lg);
    }

    .card__list li {
        font-size: var(--text-sm);
    }

    .card__icon {
        width: 24px;
        height: 24px;
    }

    .card__subtitle {
        font-size: var(--text-xs);
    }

    .callout {
        padding: var(--space-md) 1.5rem;
        margin-bottom: var(--space-xl);
    }

    .callout__title {
        font-size: var(--text-2xl);
    }

    .metric-row {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
        padding: var(--space-md) 0;
        margin-bottom: var(--space-lg);
    }

    .metric {
        max-width: 100%;
    }

    .metric__number {
        font-size: 1.3rem;
    }

    .page-header {
        padding: var(--space-lg) 0 var(--space-sm);
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header__subtitle {
        font-size: var(--text-base);
    }

    .about-content h2,
    .contact-content h2,
    .content h2 {
        font-size: 1.4rem;
    }

    .about-content p,
    .contact-content p {
        font-size: var(--text-base);
    }

    .about-content ul li {
        font-size: var(--text-base);
    }

    .contact-list li {
        font-size: var(--text-sm);
        padding-left: 1.5rem;
    }

    .contact-list li strong {
        font-size: var(--text-base);
    }

    .site-footer {
        padding: 1.25rem;
    }
}

/* =========================================================
   19. RESPONSIVE — LARGE SCREENS
========================================================= */

@media (min-width: 1800px) {

    html {
        font-size: 18px;
    }

    .card-grid:not(.card-grid--expandable) {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }

    .hero {
        padding: var(--space-3xl) 0 var(--space-2xl);
    }
}

/* =========================================================
   20. PRINT STYLES
========================================================= */

@media print {

    .site-header,
    .site-footer,
    .btn {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .hero,
    .card,
    .callout {
        padding: 1rem 0;
        box-shadow: none;
        border: none;
    }
}