/*!
Theme Name: LoadLineData
Theme URI: https://loadlinedata.com
Author: Michael Litchfield & Jim Harris
Author URI: https://loadlinedata.com
Description: Custom WordPress theme for LoadLineData LLC — boutique data center advisory and intermediary firm.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: loadlinedata
*/

/*
 * TABLE OF CONTENTS
 * ─────────────────────────────────────────────────────────────────────────────
 * 1.  Design Tokens (CSS Custom Properties)
 * 2.  CSS Reset & Base
 * 3.  Typography — Scale, Rhythm, Defaults
 * 4.  Layout System — Container, Grid, Section
 * 5.  Buttons
 * 6.  Navigation / Site Header
 * 7.  Hero
 * 8.  Section Labels & Tags
 * 9.  Cards — Article & Service
 * 10. Highlighted Callout Block
 * 11. Team Tile
 * 12. Why Us — Passionate / Professional / Personal
 * 13. CTA Banner
 * 14. Contact Form
 * 15. Single Article — Reading View
 * 16. Site Footer
 * 17. 404 / No Results
 * 18. WordPress Block & Core Styles
 * 19. Utility Classes
 * 20. Animations & Motion
 * 21. Media Queries (Responsive)
 * ─────────────────────────────────────────────────────────────────────────────
 */


/* =============================================================================
   1. DESIGN TOKENS
   ============================================================================= */

:root {

    /* — Colors — */
    --color-dark:        #0D0F14;   /* Primary dark background */
    --color-navy:        #102143;   /* Secondary dark background */
    --color-surface:     #1C2333;   /* Card / tile backgrounds */
    --color-border:      #2A3447;   /* Subtle borders and dividers */
    --color-blue:        #1A6BF5;   /* Accent — buttons, highlights */
    --color-blue-light:  #3D8BFF;   /* Hover states */
    --color-blue-dim:    #1254C4;   /* Active / pressed states */
    --color-orange:      #F68206;   /* Secondary accent */
    --color-white:       #F5F7FA;   /* Body text on dark */
    --color-mid:         #8A9BB0;   /* Subtext, labels, meta */
    --color-light-bg:    #F0F2F5;   /* Light section backgrounds */
	--color-grey:    	 #B8C3D1;   /* Light section backgrounds */
    --color-light-text:  #1A2030;   /* Dark text on light sections */

    /* — Typography — Fonts loaded via functions.php / wp_enqueue_style — */
    --font-heading: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
    --font-body:    'Inter', 'Source Sans 3', system-ui, sans-serif;

    /* — Type Scale — */
    --text-xs:   0.75rem;    /*  12px */
    --text-sm:   0.875rem;   /*  14px */
    --text-base: 1rem;       /*  16px */
    --text-lg:   1.125rem;   /*  18px */
    --text-xl:   1.25rem;    /*  20px */
    --text-2xl:  1.5rem;     /*  24px */
    --text-3xl:  1.875rem;   /*  30px */
    --text-4xl:  2.25rem;    /*  36px */
    --text-5xl:  3rem;       /*  48px */
    --text-6xl:  3.75rem;    /*  60px */
    --text-7xl:  4.5rem;     /*  72px */

    /* — Heading Sizes (used via CSS custom properties so they're easy to tune) — */
    --h1-size: var(--text-6xl);
    --h2-size: var(--text-4xl);
    --h3-size: var(--text-2xl);
    --h4-size: var(--text-xl);
    --h5-size: var(--text-lg);
    --h6-size: var(--text-base);

    /* — Line Heights — */
    --leading-tight:  1.15;
    --leading-snug:   1.3;
    --leading-normal: 1.6;
    --leading-loose:  1.8;

    /* — Letter Spacing — */
    --tracking-tight:  -0.02em;
    --tracking-normal:  0;
    --tracking-wide:    0.05em;
    --tracking-wider:   0.1em;
    --tracking-widest:  0.15em;

    /* — Spacing Scale (8px base unit) — */
    --space-1:   0.25rem;    /*  4px */
    --space-2:   0.5rem;     /*  8px */
    --space-3:   0.75rem;    /* 12px */
    --space-4:   1rem;       /* 16px */
    --space-5:   1.25rem;    /* 20px */
    --space-6:   1.5rem;     /* 24px */
    --space-8:   2rem;       /* 32px */
    --space-10:  2.5rem;     /* 40px */
    --space-12:  3rem;       /* 48px */
    --space-16:  4rem;       /* 64px */
    --space-20:  5rem;       /* 80px */
    --space-24:  6rem;       /* 96px */
    --space-32:  8rem;       /* 128px */

    /* — Section Padding — */
    --section-padding-y:    var(--space-20);   /* 80px on mobile */
    --section-padding-y-lg: 7.5rem;            /* 120px on desktop */

    /* — Layout — */
    --container-max:  1200px;
    --container-px:   var(--space-6);   /* 24px */
    --reading-max:    720px;            /* Single article column */
    --grid-gap:       var(--space-8);   /* 32px */

    /* — Border Radius — */
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --radius-xl:  20px;

    /* — Shadows — */
    --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg:  0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 24px rgba(26, 107, 245, 0.25);

    /* — Transitions — */
    --transition-fast:   150ms ease;
    --transition-base:   200ms ease;
    --transition-slow:   350ms ease;

    /* — Z-Index Stack — */
    --z-below:   -1;
    --z-base:     0;
    --z-raised:   10;
    --z-nav:      100;
    --z-overlay:  200;
    --z-modal:    300;
}


/* =============================================================================
   2. CSS RESET & BASE
   ============================================================================= */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-white);
    background-color: var(--color-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

ul,
ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    background: none;
    border: none;
}

:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 3px;
}

::selection {
    background: var(--color-blue);
    color: var(--color-white);
}


/* =============================================================================
   3. TYPOGRAPHY — SCALE, RHYTHM, DEFAULTS
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-white);
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }
h5 { font-size: var(--h5-size); }
h6 { font-size: var(--h6-size); }

p {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-white);
}

/* Readable body text — slightly softer than pure white */
.body-text p,
.entry-content p {
    color: rgba(245, 247, 250, 0.85);
    max-width: 70ch;
}

/* Subtext / meta */
.text-mid {
    color: var(--color-mid);
}

/* Strong emphasis */
strong, b {
    font-weight: 600;
}

em, i {
    font-style: italic;
}

/* Links in body copy */
.entry-content a {
    color: var(--color-blue-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.entry-content a:hover {
    color: var(--color-white);
}

/* Blockquotes */
blockquote {
    border-left: 3px solid var(--color-blue);
    padding: var(--space-4) var(--space-6);
    margin: var(--space-8) 0;
    font-size: var(--text-lg);
    line-height: var(--leading-snug);
    color: var(--color-white);
    font-style: italic;
}

/* Code */
code {
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.1em 0.4em;
}

pre {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    overflow-x: auto;
    margin: var(--space-8) 0;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: var(--text-sm);
}

/* Horizontal rule */
hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-12) 0;
}


/* =============================================================================
   4. LAYOUT SYSTEM — CONTAINER, GRID, SECTION
   ============================================================================= */

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-px);
}

/* Narrow container for reading */
.container--narrow {
    max-width: var(--reading-max);
}

/* Section base */
.section {
    padding-block: var(--section-padding-y);
}

.section--dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.section--navy {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.section--surface {
    background-color: var(--color-surface);
    color: var(--color-white);
}

.section--light {
    background-color: var(--color-grey);
    color: var(--color-light-text);
}

.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4,
.section--light h5,
.section--light h6 {
    color: var(--color-light-text);
}

.section--light p {
    color: rgba(26, 32, 48, 0.8);
}

/* Section header — label above headline */
.section-header {
    margin-bottom: var(--space-12);
}

.section-header--centered {
    text-align: center;
}

.section-header p {
    margin-top: var(--space-4);
    font-size: var(--text-lg);
    color: var(--color-mid);
    max-width: 60ch;
}

.section-header--centered p {
    margin-inline: auto;
}

/* Grid system */
.grid {
    display: grid;
    gap: var(--grid-gap);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Two-column with sidebar */
.grid--content-aside {
    grid-template-columns: 1fr 320px;
    gap: var(--space-12);
}

/* Flex helpers */
.flex         { display: flex; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4        { gap: var(--space-4); }
.gap-6        { gap: var(--space-6); }
.gap-8        { gap: var(--space-8); }


/* =============================================================================
   5. BUTTONS
   ============================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition:
        background-color var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base),
        box-shadow var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

/* Primary — filled blue */
.btn--primary {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: var(--color-white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: var(--color-blue-light);
    border-color: var(--color-blue-light);
    box-shadow: var(--shadow-glow);
    color: var(--color-white);
}

.btn--primary:active {
    background-color: var(--color-blue-dim);
    border-color: var(--color-blue-dim);
}

/* Ghost / Secondary — outline */
.btn--ghost {
    background-color: transparent;
    border-color: rgba(245, 247, 250, 0.5);
    color: var(--color-white);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    border-color: var(--color-white);
    background-color: rgba(245, 247, 250, 0.08);
    color: var(--color-white);
}

/* Ghost on light backgrounds */
.section--light .btn--ghost {
    border-color: rgba(26, 32, 48, 0.4);
    color: var(--color-light-text);
}

.section--light .btn--ghost:hover {
    border-color: var(--color-light-text);
    background-color: rgba(26, 32, 48, 0.06);
}

/* Large button variant */
.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

/* Small button variant */
.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* Button group — side-by-side CTAs */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
}


/* =============================================================================
   6. NAVIGATION / SITE HEADER
   ============================================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding-block: var(--space-4);
    transition: background-color var(--transition-slow), backdrop-filter var(--transition-slow), box-shadow var(--transition-slow);
}

/* JS adds .is-scrolled when user scrolls down */
.site-header.is-scrolled {
    background-color: rgba(13, 15, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--color-border);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-px);
}

/* — Logo — */
.site-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--text-2xl);
    color: var(--color-white);
    letter-spacing: var(--tracking-tight);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.site-logo:hover {
    opacity: 0.85;
}

.logo-bracket {
    color: var(--color-orange);
    font-weight: 700;
}

.logo-name-load {
    color: var(--color-white);
	font-style: italic;
	font-weight: 800;
}

.logo-name-line {
    color: var(--color-grey);
	font-style: italic;
	font-weight: 600;
}

.logo-name-data {
    color: var(--color-mid);
    font-style: italic;
    font-weight: 300;
    font-size: var(--text-2xl);
}

/* — Primary Nav — */
.primary-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.primary-nav li {
    position: relative;
}

.primary-nav a {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: rgba(245, 247, 250, 0.75);
    text-decoration: none;
    transition: color var(--transition-fast);
    padding-block: var(--space-2);
}

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

/* Active indicator — subtle underline */
.primary-nav .current-menu-item > a::after,
.primary-nav .current-page-ancestor > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-blue);
    border-radius: 2px;
}

/* — Mobile Menu Toggle — */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: var(--z-nav);
}

.menu-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition:
        transform var(--transition-base),
        opacity var(--transition-fast);
}

/* Animated X when open */
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =============================================================================
   7. HERO
   ============================================================================= */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100svh;
    padding-block: calc(var(--space-32) + 80px) var(--space-32);
    overflow: hidden;
    background-color: var(--color-dark);
}

/* Inner page hero — shorter */
.hero--short {
    min-height: 40vh;
    padding-block: calc(var(--space-20) + 80px) var(--space-20);
}

/* Background image overlay */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark gradient overlay on top of photo */
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 15, 20, 0.88) 0%,
        rgba(13, 15, 20, 0.65) 50%,
        rgba(13, 15, 20, 0.78) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1);
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-px);
    width: 100%;
}

.hero__eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-blue);
    margin-bottom: var(--space-4);
}

.hero__headline {
    font-family: var(--font-heading);
    font-size: clamp(var(--text-4xl), 6vw, var(--h1-size));
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-white);
    max-width: 18ch;
    margin-bottom: var(--space-6);
}

/* Short-page hero headline — smaller */
.hero--short .hero__headline {
    font-size: clamp(var(--text-3xl), 4vw, var(--h2-size));
}

.hero__subhead {
    font-size: clamp(var(--text-base), 1.5vw, var(--text-xl));
    line-height: var(--leading-normal);
    color: rgba(245, 247, 250, 0.8);
    max-width: 55ch;
    margin-bottom: var(--space-10);
}

/* Scroll indicator */
.hero__scroll-hint {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-mid);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    animation: scroll-bounce 2.5s ease-in-out infinite;
}


/* =============================================================================
   8. SECTION LABELS & TAGS
   ============================================================================= */

/* ALL CAPS label above section headlines */
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: var(--space-4);
}

/* On light sections */
.section--light .section-label {
    color: var(--color-blue);
}

/* Article date / tag pill */
.tag {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-mid);
    background-color: var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-1) var(--space-3);
}

/* Read more style inline links */
.inline-link {
    font-weight: 600;
    color: var(--color-blue-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.inline-link:hover {
    color: var(--color-white);
}

/* Arrow link — "Learn more →" */
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-blue-light);
    text-decoration: none;
    transition: gap var(--transition-base), color var(--transition-fast);
}

.arrow-link::after {
    content: '→';
    transition: transform var(--transition-base);
}

.arrow-link:hover {
    color: var(--color-white);
    gap: var(--space-3);
}

.arrow-link:hover::after {
    transform: translateX(3px);
}


/* =============================================================================
   9. CARDS — ARTICLE & SERVICE
   ============================================================================= */

/* — Article Card — */
.article-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.article-card:hover {
    border-color: rgba(26, 107, 245, 0.4);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.article-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-border);
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-card__image img {
    transform: scale(1.04);
}

.article-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6);
    flex: 1;
}

.article-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-tight);
    color: var(--color-white);
    margin: 0;
}

.article-card__title a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

.article-card__title a:hover {
    color: var(--color-blue-light);
}

.article-card__meta {
    font-size: var(--text-xs);
    color: var(--color-mid);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

.article-card__excerpt {
    font-size: var(--text-base);
    color: rgba(245, 247, 250, 0.75);
    line-height: var(--leading-normal);
    flex: 1;
}

.article-card__excerpt p {
    margin: 0;
    color: inherit;
}

.article-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-blue-light);
    text-decoration: none;
    margin-top: var(--space-2);
    transition: gap var(--transition-base), color var(--transition-fast);
}

.article-card__link:hover {
    color: var(--color-white);
    gap: var(--space-3);
}

/* Article grid container */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}
.articles-grid--two-col {
    grid-template-columns: repeat(2, 1fr);
}

/* — Service Card — */
.service-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
    border-color: rgba(26, 107, 245, 0.35);
    box-shadow: var(--shadow-md);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    color: var(--color-blue);
    margin-bottom: var(--space-2);
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
}

.service-card__body {
    font-size: var(--text-base);
    color: rgba(245, 247, 250, 0.75);
    line-height: var(--leading-normal);
    flex: 1;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}


/* =============================================================================
   10. HIGHLIGHTED CALLOUT BLOCK
   ============================================================================= */

/* Blue-background pull quote — "LoadLine acts as your intermediary..." */
.callout-block {
    background-color: var(--color-blue);
    border-radius: var(--radius-md);
    padding: var(--space-6) var(--space-8);
    margin-block: var(--space-8);
}

.callout-block p {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: var(--leading-snug);
    color: var(--color-white);
    max-width: none;
}


/* =============================================================================
   11. TEAM TILE
   ============================================================================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10);
}

.team-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
}

.team-tile--full {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-8);
}

.team-tile__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
}

/* Full bio — larger photo */
.team-tile--full .team-tile__photo {
    width: 180px;
    height: 180px;
}

.team-tile__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter var(--transition-slow);
}

.team-tile:hover .team-tile__photo img {
    filter: grayscale(60%);
}

.team-tile__name {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
}

.team-tile__title {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-blue);
    margin: 0;
}

.team-tile__bio {
    font-size: var(--text-base);
    color: rgba(245, 247, 250, 0.75);
    line-height: var(--leading-normal);
}

.team-tile__linkedin {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-blue-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.team-tile__linkedin:hover {
    color: var(--color-white);
}

/* Credentials highlight chips */
.team-tile__credentials {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.credential-chip {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-mid);
    background-color: var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-1) var(--space-3);
}


/* =============================================================================
   12. WHY US — PASSIONATE / PROFESSIONAL / PERSONAL
   ============================================================================= */

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.why-us-tile {
    padding: var(--space-8);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: border-color var(--transition-base);
}

.why-us-tile:hover {
    border-color: rgba(26, 107, 245, 0.35);
}

.why-us-tile__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-blue-light);
    margin: 0;
}

.why-us-tile__body {
    font-size: var(--text-base);
    color: rgba(245, 247, 250, 0.75);
    line-height: var(--leading-normal);
}


/* =============================================================================
   13. CTA BANNER
   ============================================================================= */

.cta-banner {
    background-color: var(--color-navy);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--section-padding-y);
    text-align: center;
}

.cta-banner__headline {
    font-family: var(--font-heading);
    font-size: clamp(var(--text-3xl), 4vw, var(--h2-size));
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.cta-banner__body {
    font-size: var(--text-lg);
    color: var(--color-mid);
    max-width: 55ch;
    margin-inline: auto;
    margin-bottom: var(--space-8);
}


/* =============================================================================
   14. CONTACT FORM
   ============================================================================= */

.contact-form-wrap {
    max-width: 680px;
}

/* CF7 / WPForms overrides */
.wpcf7-form,
.wpforms-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-field,
.wpcf7-form .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

label,
.form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-mid);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    padding: var(--space-3) var(--space-4);
    width: 100%;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(26, 107, 245, 0.2);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-mid);
    opacity: 0.6;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* CF7 specific overrides */
.wpcf7-form input[type="submit"],
.wpcf7-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-8);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    background-color: var(--color-blue);
    border: 2px solid var(--color-blue);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    cursor: pointer;
    transition:
        background-color var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
    background-color: var(--color-blue-light);
    border-color: var(--color-blue-light);
    box-shadow: var(--shadow-glow);
}

/* CF7 response messages */
.wpcf7-response-output {
    border-radius: var(--radius-sm);
    padding: var(--space-4);
    font-size: var(--text-sm);
    margin-top: var(--space-4) !important;
}

.wpcf7-mail-sent-ok {
    background-color: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4) !important;
    color: #4ade80;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    background-color: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #f87171;
}

.wpcf7-not-valid-tip {
    font-size: var(--text-xs);
    color: #f87171;
    margin-top: var(--space-1);
}


/* =============================================================================
   15. SINGLE ARTICLE — READING VIEW
   ============================================================================= */

.single-article {
    padding-block: var(--space-20);
}

.article-header {
    margin-bottom: var(--space-10);
}

.article-header__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-mid);
    text-decoration: none;
    margin-bottom: var(--space-8);
    transition: color var(--transition-fast);
}

.article-header__back::before {
    content: '←';
}

.article-header__back:hover {
    color: var(--color-white);
}

.article-header__title {
    font-family: var(--font-heading);
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

.article-header__meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.article-header__author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-mid);
}

.article-header__author-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--color-surface);
}

.article-header__author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.article-header__date {
    font-size: var(--text-sm);
    color: var(--color-mid);
}

/* Featured image */
.article-featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-12);
    background-color: var(--color-surface);
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Body content prose styles */
.article-body {
    color: rgba(245, 247, 250, 0.85);
    font-size: var(--text-lg);
    line-height: var(--leading-loose);
}

.article-body h2 {
    font-size: var(--text-3xl);
    margin-top: var(--space-12);
    margin-bottom: var(--space-4);
}

.article-body h3 {
    font-size: var(--text-2xl);
    margin-top: var(--space-10);
    margin-bottom: var(--space-3);
}

.article-body p {
    color: inherit;
    margin-bottom: var(--space-5);
}

.article-body ul,
.article-body ol {
    list-style: revert;
    padding-left: var(--space-6);
    margin-bottom: var(--space-5);
}

.article-body li {
    margin-bottom: var(--space-2);
    line-height: var(--leading-normal);
}

.article-body a {
    color: var(--color-blue-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.article-body a:hover {
    color: var(--color-white);
}

/* Author bio card */
.author-bio-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-8);
    margin-top: var(--space-16);
}

.author-bio-card__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--color-border);
}

.author-bio-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.author-bio-card__name {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-1);
}

.author-bio-card__role {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-blue);
    margin-bottom: var(--space-3);
}

.author-bio-card__bio {
    font-size: var(--text-base);
    color: rgba(245, 247, 250, 0.75);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-3);
}

/* Related articles */
.related-articles {
    margin-top: var(--space-16);
}

.related-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

/* Pagination */
.posts-navigation,
.navigation.pagination {
    margin-top: var(--space-12);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-mid);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: var(--color-white);
}


/* =============================================================================
   15b. PAGE-SPECIFIC LAYOUT STYLES
   ============================================================================= */

/* — Home: Intro Section — */
.intro-section__inner {
    max-width: var(--reading-max);
    margin-inline: auto;
    text-align: center;
}

.intro-section__body {
    font-size: var(--text-xl);
    line-height: var(--leading-normal);
    color: var(--color-light-text);
    margin-bottom: var(--space-8);
}

/* — Home: Potential Section — */
.potential-section__inner {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-16);
    align-items: center;
}

.potential-section__text h2 {
    margin-block: var(--space-3) var(--space-6);
}

.potential-section__text p {
    color: rgba(245, 247, 250, 0.75);
    margin-bottom: var(--space-4);
}

.potential-section__stat-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    border-left: 2px solid var(--color-border);
    padding-left: var(--space-8);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.stat-item__number {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--color-blue);
    line-height: 1;
}

.stat-item__label {
    font-size: var(--text-sm);
    color: var(--color-mid);
    line-height: var(--leading-snug);
}

/* — Services: Service Detail Sections — */
.service-detail__inner {
    max-width: 820px;
}

.service-detail__header {
    margin-bottom: var(--space-8);
}

.service-detail__header h2 {
    margin-top: var(--space-3);
}

.service-detail__body h3 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
    font-size: var(--text-xl);
    color: var(--color-white);
}

.section--light .service-detail__body h3 {
    color: var(--color-light-text);
}

.service-detail__body p {
    margin-bottom: var(--space-5);
}

.service-detail__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.service-detail__list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: rgba(245, 247, 250, 0.8);
    line-height: var(--leading-normal);
}

.section--light .service-detail__list li {
    color: rgba(26, 32, 48, 0.8);
}

.service-detail__list li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-blue);
    margin-top: 0.55em;
}

/* — About: Bio Section — */
.team-tile__content {
    flex: 1;
}

.team-tile__content .team-tile__bio p {
    color: rgba(245, 247, 250, 0.75);
    margin-bottom: var(--space-4);
}

/* — Contact: Two-Column Layout — */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-16);
    align-items: start;
}

.contact-layout__heading {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
}

.contact-layout__intro {
    color: var(--color-mid);
    margin-bottom: var(--space-8);
}

.contact-layout__direct-heading {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

.direct-contact-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.direct-contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base);
}

.direct-contact-card:hover {
    border-color: rgba(26, 107, 245, 0.35);
}

.direct-contact-card__photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%);
    flex-shrink: 0;
}

.direct-contact-card__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.direct-contact-card__info strong {
    font-size: var(--text-base);
    color: var(--color-white);
}

.direct-contact-card__info span {
    font-size: var(--text-xs);
    color: var(--color-mid);
    line-height: var(--leading-snug);
}

.direct-contact-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-blue-light);
    text-decoration: none;
    margin-top: var(--space-2);
    transition: color var(--transition-fast);
}

.direct-contact-card__link:hover {
    color: var(--color-white);
}

/* Responsive adjustments for new layouts */
@media (max-width: 1024px) {
    .potential-section__inner {
        grid-template-columns: 1fr;
    }

    .potential-section__stat-block {
        flex-direction: row;
        border-left: none;
        border-top: 2px solid var(--color-border);
        padding-left: 0;
        padding-top: var(--space-8);
    }
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .potential-section__stat-block {
        flex-direction: column;
    }
}


/* =============================================================================
   16. SITE FOOTER
   ============================================================================= */

.site-footer {
    background-color: var(--color-dark);
    border-top: 1px solid var(--color-border);
    padding-block: var(--space-12);
}

.footer-inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-px);
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.footer-row--bottom {
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

/* Footer logo — slightly smaller */
.--footer {
    font-size: var(--text-xl);
}

/* Footer nav */
.footer-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-mid);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-nav a:hover,
.footer-nav .current-menu-item a {
    color: var(--color-white);
}

/* Social links */
.footer-social {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.footer-social__label {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-mid);
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-mid);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-social__link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-social__link:hover {
    color: var(--color-white);
}

/* Copyright */
.footer-copyright {
    font-size: var(--text-sm);
    color: var(--color-mid);
}

.footer-copyright p {
    color: inherit;
}


/* =============================================================================
   17. 404 / NO RESULTS
   ============================================================================= */

.error-404 {
    text-align: center;
    padding-block: var(--space-24);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.error-404 .section-label {
    font-size: var(--text-sm);
}

.error-404 h1 {
    font-size: clamp(var(--text-3xl), 5vw, var(--h1-size));
}

.error-404 p {
    color: var(--color-mid);
    max-width: 45ch;
}

.no-results {
    text-align: center;
    padding-block: var(--space-16);
}


/* =============================================================================
   18. WORDPRESS BLOCK & CORE STYLES
   ============================================================================= */

/* Align classes */
.alignleft  { float: left; margin-right: var(--space-6); margin-bottom: var(--space-4); }
.alignright { float: right; margin-left: var(--space-6); margin-bottom: var(--space-4); }
.aligncenter {
    display: block;
    margin-inline: auto;
    margin-bottom: var(--space-6);
}
.alignwide   { max-width: 100%; }
.alignfull   { width: 100vw; margin-left: calc(50% - 50vw); }

/* WP caption */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--text-sm);
    color: var(--color-mid);
    text-align: center;
    margin-top: var(--space-2);
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-surface);
    border-radius: var(--radius-sm);
    clip: auto !important;
    clip-path: none;
    color: var(--color-white);
    display: block;
    font-size: var(--text-sm);
    font-weight: 700;
    height: auto;
    left: var(--space-4);
    padding: var(--space-3) var(--space-6);
    top: var(--space-4);
    width: auto;
    z-index: var(--z-modal);
}

/* Skip to content */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    background: var(--color-blue);
    color: var(--color-white);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-sm);
    font-weight: 700;
    z-index: var(--z-modal);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-4);
}


/* =============================================================================
   19. UTILITY CLASSES
   ============================================================================= */

/* Text alignment */
.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

/* Display */
.block        { display: block; }
.inline-block { display: inline-block; }
.hidden       { display: none; }
.sr-only      { @extend .screen-reader-text; }

/* Spacing helpers */
.mt-0  { margin-top: 0; }
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* Max width helpers */
.max-prose   { max-width: 70ch; }
.max-reading { max-width: var(--reading-max); }
.max-full    { max-width: 100%; }

/* Color utilities */
.text-white  { color: var(--color-white); }
.text-mid    { color: var(--color-mid); }
.text-blue   { color: var(--color-blue); }
.text-accent { color: var(--color-blue-light); }

/* Divider */
.divider {
    width: 48px;
    height: 3px;
    background-color: var(--color-blue);
    border-radius: 2px;
    margin-block: var(--space-6);
}

.divider--centered {
    margin-inline: auto;
}

/* Fade-in base state (JS adds .is-visible) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity var(--transition-slow),
        transform var(--transition-slow);
}

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

/* Staggered children */
.fade-in-children > * {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity var(--transition-slow),
        transform var(--transition-slow);
}

.fade-in-children.is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.fade-in-children.is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 100ms; }
.fade-in-children.is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 200ms; }
.fade-in-children.is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 300ms; }


/* =============================================================================
   20. ANIMATIONS & MOTION
   ============================================================================= */

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(26, 107, 245, 0.2); }
    50%       { box-shadow: 0 0 28px rgba(26, 107, 245, 0.45); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .fade-in,
    .fade-in-children > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* =============================================================================
   21. MEDIA QUERIES (RESPONSIVE)
   ============================================================================= */

/* — Tablet (≤ 1024px) — */
@media (max-width: 1024px) {

    :root {
        --h1-size:           var(--text-5xl);
        --section-padding-y: var(--space-16);
    }

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

    .service-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-articles__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-tile--full {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* — Mobile (≤ 768px) — */
@media (max-width: 768px) {

    :root {
        --h1-size:           var(--text-4xl);
        --h2-size:           var(--text-3xl);
        --h3-size:           var(--text-xl);
        --section-padding-y: var(--space-12);
        --grid-gap:          var(--space-6);
        --container-px:      var(--space-4);
    }

    /* Mobile nav */
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        background-color: var(--color-navy);
        border-left: 1px solid var(--color-border);
        padding: 100px var(--space-8) var(--space-8);
        transform: translateX(100%);
        transition: transform var(--transition-slow);
        z-index: calc(var(--z-nav) - 1);
        overflow-y: auto;
    }

    .main-navigation.is-open {
        transform: translateX(0);
    }

    .primary-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-6);
    }

    .primary-nav a {
        font-size: var(--text-base);
    }

    /* Hero */
    .hero {
        min-height: 100svh;
        padding-block: calc(var(--space-24) + 64px) var(--space-16);
    }

    .hero--short {
        min-height: 50vh;
    }

    /* Grids go single column */
    .articles-grid,
    .service-cards-grid,
    .why-us-grid,
    .team-grid,
    .related-articles__grid,
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-row--main {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-6);
    }

    .footer-row--bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav {
        gap: var(--space-4);
    }

    /* CTA buttons stack */
    .btn-group {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Author bio card stacks */
    .author-bio-card {
        flex-direction: column;
    }

    /* Callout block */
    .callout-block p {
        font-size: var(--text-xl);
    }

    /* Team tile */
    .team-tile {
        align-items: center;
        text-align: center;
    }
}

/* — Large screens (≥ 1440px) — */
@media (min-width: 1440px) {

    :root {
        --section-padding-y: var(--section-padding-y-lg);
    }
}
