/* ==========================================================================
   ACPL Chemical Advisory Website — Master Stylesheet
   Design System: Corporate Minimal
   Brand Colors: Navy #003049 · Red #C1121F · Steel Blue #669BBC
                 Cream #FDF0D5 · Maroon #780000 · White #FFFFFF
   ========================================================================== */

/* ---------- Google Fonts ---------- */
/* Fonts are now preloaded in HTML header */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand palette — Primary */
    --navy: #003049;
    --navy-dark: #00243a;
    --navy-light: #004a6e;
    --red: #C1121F;
    --red-dark: #780000;
    /* Deep maroon — richer dark red */
    --red-light: #d4343f;
    --maroon: #780000;
    /* Deep maroon accent */

    /* Brand palette — Extended */
    --steel-blue: #669BBC;
    /* Muted blue for secondary accents */
    --steel-blue-light: rgba(102, 155, 188, 0.12);
    /* Subtle tint */
    --steel-blue-mid: rgba(102, 155, 188, 0.25);
    --cream: #FDF0D5;
    /* Warm cream for soft backgrounds */
    --cream-dark: #f5e4be;
    /* Slightly deeper cream */

    /* Neutrals */
    --white: #FFFFFF;
    --light-grey: #F5F5F5;
    --mid-grey: #E0E0E0;
    --dark-grey: #333333;
    --text-grey: #555555;
    --border-grey: #D5D5D5;

    /* Typography */
    --font-heading: 'Montserrat', 'Inter', sans-serif;
    --font-body: 'Open Sans', 'Inter', sans-serif;

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --container-wide: 1400px;
    --nav-height: 80px;
    --border-radius: 4px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows — warmed with steel blue tint */
    --shadow-sm: 0 2px 8px rgba(0, 48, 73, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 48, 73, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 48, 73, 0.12);
    --shadow-hover: 0 12px 48px rgba(102, 155, 188, 0.2);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--dark-grey);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-body);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

p {
    font-size: 1rem;
    color: var(--text-grey);
    line-height: 1.8;
    max-width: 72ch;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-grey);
}

/* ---------- Utility Classes ---------- */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.container-wide {
    width: 92%;
    max-width: var(--container-wide);
    margin: 0 auto;
}

.section {
    padding: var(--space-xxl) 0;
}

.section-sm {
    padding: var(--space-xl) 0;
}

.section-grey {
    background: var(--cream);
}

.section-cream {
    background: var(--cream);
}

.section-navy {
    background: var(--navy);
    color: var(--white);
}

.section-navy h2,
.section-navy h3,
.section-navy h4,
.section-navy p {
    color: var(--white);
}

.section-navy p {
    color: rgba(255, 255, 255, 0.8);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--maroon);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-grey);
    max-width: 640px;
    line-height: 1.8;
}

.section-subtitle.centered {
    margin: 0 auto;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--steel-blue));
    margin: var(--space-md) 0;
    border-radius: 2px;
}

.divider.centered {
    margin: var(--space-md) auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--maroon);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(120, 0, 0, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--steel-blue);
}

.btn-secondary:hover {
    border-color: var(--cream);
    background: rgba(102, 155, 188, 0.15);
    color: var(--cream);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
}

.btn-navy:hover {
    background: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 48, 73, 0.3);
}

.btn-arrow::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.btn-arrow:hover::after {
    transform: translateX(4px);
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--steel-blue);
    transition: all var(--transition-base);
    padding: 0.5rem 0;
}

.navbar.scrolled {
    background: rgba(102, 155, 188, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 48, 73, 0.15);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar .container-wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

.nav-logo img {
    height: 50px;
    width: auto;
    transition: height var(--transition-base);
}

.navbar.scrolled .nav-logo img {
    height: 42px;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    padding: 0.5rem 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition-fast);
    opacity: 0.85;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(90deg, var(--cream), var(--white));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    background: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--steel-blue);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-nav.active {
    display: flex;
    opacity: 1;
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color var(--transition-fast);
    opacity: 0.85;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--cream);
    opacity: 1;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 48, 73, 0.93) 0%,
            rgba(0, 48, 73, 0.78) 40%,
            rgba(102, 155, 188, 0.25) 80%,
            rgba(0, 36, 58, 0.88) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding: var(--space-xxl) 0;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: var(--space-md);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--steel-blue);
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-weight: 800;
}

.hero p {
    color: var(--cream);
    font-size: 1.15rem;
    margin-bottom: var(--space-lg);
    max-width: 580px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Hero geometric accents */
.hero-accent {
    position: absolute;
    border: 2px solid rgba(102, 155, 188, 0.2);
    border-radius: 50%;
    z-index: 1;
}

.hero-accent-1 {
    width: 400px;
    height: 400px;
    right: -100px;
    top: 10%;
    animation: pulse-slow 8s ease-in-out infinite;
}

.hero-accent-2 {
    width: 250px;
    height: 250px;
    right: 15%;
    bottom: 15%;
    animation: pulse-slow 6s ease-in-out 2s infinite;
}

.hero-accent-3 {
    width: 150px;
    height: 150px;
    right: 30%;
    top: 20%;
    border-color: rgba(253, 240, 213, 0.12);
    animation: pulse-slow 10s ease-in-out 1s infinite;
}

@keyframes pulse-slow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
    position: relative;
    padding: calc(var(--nav-height) + var(--space-xxl)) 0 var(--space-xxl);
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, rgba(102, 155, 188, 0.2) 100%);
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    border: 2px solid rgba(102, 155, 188, 0.15);
    border-radius: 50%;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.page-hero p {
    color: var(--cream);
    font-size: 1.1rem;
    opacity: 0.85;
}

.page-hero .section-label {
    color: var(--steel-blue);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-md);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ---------- Industry Overview Section ---------- */
.industry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.industry-text h2 {
    margin-bottom: var(--space-md);
}

.industry-text p {
    margin-bottom: var(--space-md);
}

.industry-visual {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.industry-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.industry-visual-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(transparent, rgba(0, 36, 58, 0.88));
}

/* ---------- Stats Bar ---------- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg) var(--space-sm);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.section-navy .stat-number {
    color: var(--cream);
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--steel-blue);
}

/* ---------- Service Cards ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.service-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 155, 188, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--steel-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius);
    background: var(--steel-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    transition: background var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--navy);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--steel-blue);
    fill: none;
    stroke-width: 1.5;
    transition: stroke var(--transition-base);
}

.service-card:hover .service-icon svg {
    stroke: var(--white);
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-grey);
    line-height: 1.7;
}

/* ---------- Markets Grid ---------- */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.market-tile {
    position: relative;
    aspect-ratio: 3/2;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.market-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.market-tile:hover img {
    transform: scale(1.08);
}

.market-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 30%,
            rgba(0, 36, 58, 0.88) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    transition: background var(--transition-base);
}

.market-tile:hover .market-overlay {
    background: linear-gradient(180deg,
            rgba(102, 155, 188, 0.15) 0%,
            rgba(0, 36, 58, 0.94) 100%);
}

.market-overlay h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.market-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.5;
    transform: translateY(10px);
    opacity: 0;
    transition: all var(--transition-base);
}

.market-tile:hover .market-overlay p {
    transform: translateY(0);
    opacity: 1;
}

/* ---------- Global Network Section ---------- */
.global-network {
    position: relative;
    overflow: hidden;
    padding: var(--space-xxl) 0;
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 50%, rgba(102, 155, 188, 0.15) 100%);
}

.network-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.12;
}

.network-bg img {
    width: 80%;
    max-width: 900px;
    object-fit: contain;
}

.network-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.network-content h2 {
    color: var(--cream);
    margin-bottom: var(--space-md);
}

.network-content p {
    color: var(--steel-blue);
    margin: 0 auto var(--space-lg);
}

/* Network animated dots */
.network-dots {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.network-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--steel-blue);
    animation: dot-pulse 3s ease-in-out infinite;
}

.network-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(102, 155, 188, 0.5);
    animation: dot-ring 3s ease-in-out infinite;
}

/* Alternate some dots with cream/red for blend */
.network-dot:nth-child(2),
.network-dot:nth-child(5) {
    background: var(--cream);
}

.network-dot:nth-child(4),
.network-dot:nth-child(7) {
    background: var(--red);
}

.network-dot:nth-child(1) {
    top: 25%;
    left: 15%;
    animation-delay: 0s;
}

.network-dot:nth-child(2) {
    top: 40%;
    left: 45%;
    animation-delay: 0.5s;
}

.network-dot:nth-child(3) {
    top: 30%;
    left: 75%;
    animation-delay: 1s;
}

.network-dot:nth-child(4) {
    top: 60%;
    left: 25%;
    animation-delay: 1.5s;
}

.network-dot:nth-child(5) {
    top: 55%;
    left: 65%;
    animation-delay: 2s;
}

.network-dot:nth-child(6) {
    top: 70%;
    left: 50%;
    animation-delay: 0.8s;
}

.network-dot:nth-child(7) {
    top: 35%;
    left: 55%;
    animation-delay: 1.2s;
}

.network-dot:nth-child(8) {
    top: 50%;
    left: 85%;
    animation-delay: 2.3s;
}

@keyframes dot-pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes dot-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ---------- Insights Cards ---------- */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.insight-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid rgba(102, 155, 188, 0.15);
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.insight-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.insight-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.insight-card:hover .insight-card-image img {
    transform: scale(1.05);
}

.insight-card-body {
    padding: var(--space-md);
}

.insight-card-meta {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--steel-blue);
    margin-bottom: 0.5rem;
}

.insight-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.insight-card:hover h3 {
    color: var(--maroon);
}

.insight-card p {
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.6;
}

/* Insights list style (for insights page) */
.insights-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.insight-list-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-md);
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid rgba(102, 155, 188, 0.15);
}

.insight-list-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.insight-list-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 160px;
}

.insight-list-item .insight-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---------- About Preview ---------- */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-preview-text h2 {
    margin-bottom: var(--space-md);
}

.about-preview-text p {
    margin-bottom: var(--space-md);
}

.about-preview-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.about-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- About page content blocks ---------- */
.about-block {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--mid-grey);
}

.about-block:last-child {
    border-bottom: none;
}

.about-block h2 {
    margin-bottom: var(--space-md);
}

.about-text-content {
    max-width: 900px;
}

.about-text-content p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-grey);
    margin-bottom: 1.25rem;
}

.about-text-content p strong {
    color: var(--navy);
    font-weight: 600;
}

.about-placeholder {
    padding: var(--space-lg);
    background: var(--cream);
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--text-grey);
    font-style: italic;
    border: 2px dashed var(--steel-blue-mid);
}

/* ---------- Leadership Profiles ---------- */
.leadership-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--space-xl);
    align-items: center;
    margin-top: var(--space-lg);
}

.leadership-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--light-grey);
}

.leadership-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 70%, rgba(0, 48, 73, 0.2) 100%);
    pointer-events: none;
}


.leadership-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.leadership-grid:hover .leadership-image img {
    transform: scale(1.05);
}

.leadership-info h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: var(--navy);
}

.leadership-info .leadership-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--maroon);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
    display: block;
}

.leadership-bio p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-grey);
    margin-bottom: var(--space-md);
}


/* ---------- Contact Form ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-form-wrap {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(102, 155, 188, 0.15);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(102, 155, 188, 0.25);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--dark-grey);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--steel-blue);
    box-shadow: 0 0 0 3px rgba(102, 155, 188, 0.15);
    background: var(--white);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-info-side {
    padding: var(--space-lg) 0;
}

.contact-info-side h3 {
    margin-bottom: var(--space-md);
}

.contact-info-side p {
    margin-bottom: var(--space-md);
}

/* ---------- Industry Page Sections ---------- */
.industry-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(102, 155, 188, 0.15);
}

.industry-section:last-child {
    border-bottom: none;
}

.industry-section.reverse {
    direction: rtl;
}

.industry-section.reverse>* {
    direction: ltr;
}

.industry-section-visual {
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.industry-section-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.industry-section-text h3 {
    margin-bottom: var(--space-sm);
}

.industry-section-text p {
    margin-bottom: var(--space-sm);
}

/* Feature list with icons */
.feature-list {
    margin-top: var(--space-md);
    display: grid;
    gap: 0.75rem;
}

.feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-list-item .feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--steel-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.feature-list-item .feature-icon svg {
    width: 12px;
    height: 12px;
    stroke: var(--steel-blue);
    fill: none;
    stroke-width: 2.5;
}

.feature-list-item span {
    font-size: 0.92rem;
    color: var(--text-grey);
    line-height: 1.5;
}

/* ---------- Services Detail ---------- */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(102, 155, 188, 0.15);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse>* {
    direction: ltr;
}

.service-detail-text h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.4rem;
}

.service-detail-text p {
    margin-bottom: var(--space-sm);
}

.service-detail-visual {
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--cream);
}

.service-detail-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Markets Detail ---------- */
.markets-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.market-detail-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(102, 155, 188, 0.15);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.market-detail-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--steel-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.market-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.market-detail-card:hover::after {
    transform: scaleX(1);
}

.market-detail-card .market-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    background: var(--steel-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.market-detail-card .market-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--steel-blue);
    fill: none;
    stroke-width: 1.5;
}

.market-detail-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.market-detail-card p {
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.7;
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: var(--space-xxl) 0;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, rgba(102, 155, 188, 0.18) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid rgba(102, 155, 188, 0.12);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--cream);
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: var(--steel-blue);
    margin: 0 auto var(--space-lg);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--steel-blue);
    color: var(--white);
    padding-top: var(--space-xxl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .nav-logo {
    margin-bottom: var(--space-md);
}

.footer-brand .nav-logo img {
    height: 44px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: var(--space-md);
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--white);
    border-color: var(--white);
}

.footer-social svg {
    width: 16px;
    height: 16px;
    fill: var(--white);
}

.footer-social a:hover svg {
    fill: var(--steel-blue);
}

.footer-bottom {
    padding: var(--space-md) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-md);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
}

.footer-bottom-links a:hover {
    color: var(--navy);
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered children */
.stagger-children .reveal {
    transition-delay: calc(var(--stagger-index, 0) * 0.1s);
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .industry-grid,
    .about-preview,
    .contact-grid,
    .industry-section,
    .service-detail,
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

    .leadership-image {
        max-width: 350px;
        margin: 0 auto;
    }



    .industry-section.reverse,
    .service-detail.reverse {
        direction: ltr;
    }

    .services-grid,
    .markets-grid,
    .insights-grid,
    .markets-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .insights-list {
        grid-template-columns: 1fr;
    }

    .insight-list-item {
        grid-template-columns: 180px 1fr;
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --space-xxl: 3.5rem;
        --space-xl: 2.5rem;
        --space-lg: 2rem;
        --nav-height: 70px;
    }

    .hero-content {
        padding: calc(var(--nav-height) + var(--space-lg)) 0 var(--space-lg);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        text-align: center;
        justify-content: center;
    }

    .hero-accent {
        display: none;
    }

    .services-grid,
    .markets-grid,
    .insights-grid,
    .markets-detail-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .insight-list-item {
        grid-template-columns: 1fr;
    }

    .insight-list-item img {
        min-height: 180px;
    }

    .section {
        padding: var(--space-xl) 0;
    }

    .page-hero {
        padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }
}