/* ==========================================================================
   MEDILEGAL Consulting — Main Stylesheet
   Version: 1.0.0
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--navy);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

/* Accessibility — skip link */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: auto;
    height: auto;
    padding: 1rem 2rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--navy);
    color: var(--white);
    font-size: 1rem;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
}

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


/* ---------- DESIGN TOKENS ---------- */
:root {
    /* Palette */
    --navy:    #0F2748;
    --steel:   #516B7D;
    --silver:  #A8B7C6;
    --ice:     #F2F4F6;
    --white:   #FFFFFF;

    /* Derived */
    --navy-95: rgba(15, 39, 72, 0.95);
    --navy-80: rgba(15, 39, 72, 0.80);
    --navy-60: rgba(15, 39, 72, 0.60);
    --navy-10: rgba(15, 39, 72, 0.08);
    --steel-50: rgba(81, 107, 125, 0.5);
    --silver-30: rgba(168, 183, 198, 0.3);

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  2rem;
    --text-4xl:  2.75rem;
    --text-5xl:  3.5rem;

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2rem;
    --space-xl:  3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --header-height: 80px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.2s;
    --duration-base: 0.35s;
    --duration-slow: 0.6s;

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --border-light: 1px solid rgba(15, 39, 72, 0.08);
}


/* ---------- LAYOUT ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}


/* ---------- TYPOGRAPHY ---------- */
.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: var(--space-md);
}

.section-label-light {
    color: var(--silver);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--navy);
    max-width: 720px;
}

.section-title-light {
    color: var(--white);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--steel);
    max-width: 600px;
    margin-top: var(--space-md);
    line-height: 1.7;
}

.section-header {
    margin-bottom: var(--space-3xl);
}


/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--radius-full);
    transition: all var(--duration-base) var(--ease-out);
    white-space: nowrap;
    position: relative;
}

.btn svg {
    transition: transform var(--duration-base) var(--ease-out);
    flex-shrink: 0;
}

.btn:hover svg {
    transform: translateX(3px);
}

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

.btn-primary:hover {
    background-color: #1a3a66;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(15, 39, 72, 0.25);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--navy);
    border: 1px solid var(--navy-10);
}

.btn-secondary:hover {
    background-color: var(--ice);
    border-color: var(--silver);
    transform: translateY(-1px);
}

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

.btn-light:hover {
    background-color: var(--ice);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--navy);
    border: 1px solid var(--navy-10);
}

.btn-outline:hover {
    border-color: var(--navy);
    background-color: var(--navy);
    color: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}


/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: background-color var(--duration-base) ease,
                box-shadow var(--duration-base) ease,
                backdrop-filter var(--duration-base) ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--navy-10);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    z-index: 1001;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--navy);
}

.logo-descriptor {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--steel);
}

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--steel);
    letter-spacing: 0.01em;
    border-radius: var(--radius-sm);
    transition: color var(--duration-fast) ease,
                background-color var(--duration-fast) ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy);
    background-color: var(--navy-10);
}

/* Header CTA */
.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--white);
    background-color: var(--navy);
    border-radius: var(--radius-full);
    transition: all var(--duration-base) var(--ease-out);
    flex-shrink: 0;
}

.header-cta:hover {
    background-color: #1a3a66;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(15, 39, 72, 0.25);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--navy);
    border-radius: 2px;
    transition: all var(--duration-base) var(--ease-out);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-height) + var(--space-3xl)) var(--space-lg) var(--space-3xl);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-arc {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border: 1px solid var(--navy-10);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.hero-arc::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 60px;
    right: 60px;
    bottom: 60px;
    border: 1px solid var(--navy-10);
    border-radius: 50%;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--white), transparent);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--navy);
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--steel);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto var(--space-xl);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--navy), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50%      { opacity: 0.8; transform: scaleY(1.2); }
}


/* ==========================================================================
   ABOUT
   ========================================================================== */
.section-about {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-lead {
    font-size: var(--text-lg);
    color: var(--navy);
    line-height: 1.7;
    margin-top: var(--space-lg);
}

.about-text {
    font-size: var(--text-base);
    color: var(--steel);
    line-height: 1.8;
    margin-top: var(--space-md);
}

/* Pillars */
.about-pillars {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.pillar {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border: var(--border-light);
    transition: all var(--duration-base) var(--ease-out);
}

.pillar:hover {
    border-color: var(--silver);
    background-color: var(--ice);
}

.pillar-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--navy);
}

.pillar-content h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.pillar-content p {
    font-size: var(--text-sm);
    color: var(--steel);
    line-height: 1.6;
}


/* ==========================================================================
   SERVICES
   ========================================================================== */
.section-services {
    background-color: var(--ice);
}

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

.service-card {
    padding: var(--space-xl) var(--space-lg);
    background-color: var(--white);
    border-radius: var(--radius-lg);
    border: var(--border-light);
    transition: all var(--duration-base) var(--ease-out);
    animation-delay: var(--delay, 0s);
}

.service-card:hover {
    border-color: var(--silver);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 39, 72, 0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    margin-bottom: var(--space-md);
    background-color: var(--ice);
    border-radius: var(--radius-md);
}

.service-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.service-desc {
    font-size: var(--text-sm);
    color: var(--steel);
    line-height: 1.7;
}


/* ==========================================================================
   SECTORS
   ========================================================================== */
.section-sectors {
    background-color: var(--white);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

.sector-card {
    padding: var(--space-lg);
    text-align: center;
    border-radius: var(--radius-md);
    border: var(--border-light);
    transition: all var(--duration-base) var(--ease-out);
    animation-delay: var(--delay, 0s);
}

.sector-card:hover {
    border-color: var(--silver);
    background-color: var(--ice);
    transform: translateY(-2px);
}

.sector-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    color: var(--navy);
    opacity: 0.8;
}

.sector-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.sector-desc {
    font-size: var(--text-xs);
    color: var(--steel);
    line-height: 1.5;
}


/* ==========================================================================
   CONFERENCES
   ========================================================================== */
.section-conferences {
    background-color: var(--navy);
    color: var(--white);
    overflow: hidden;
    padding: var(--space-4xl) 0;
}

.conferences-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.conferences-arc {
    position: absolute;
    top: 50%;
    left: -15%;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    transform: translateY(-50%);
}

.conferences-arc::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 50px;
    right: 50px;
    bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.conferences-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.conferences-text {
    font-size: var(--text-lg);
    color: var(--silver);
    line-height: 1.8;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.conferences-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-xl);
}

.topic-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--silver);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    letter-spacing: 0.01em;
}


/* ==========================================================================
   YOUTUBE
   ========================================================================== */
.section-youtube {
    background-color: var(--ice);
}

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

.youtube-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: var(--border-light);
    background-color: var(--white);
    transition: all var(--duration-base) var(--ease-out);
}

.youtube-card:hover {
    border-color: var(--silver);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 39, 72, 0.08);
}

.youtube-thumb {
    aspect-ratio: 16 / 9;
    background-color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.youtube-play {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--duration-base) ease;
}

.youtube-card:hover .youtube-play {
    color: rgba(255, 255, 255, 0.9);
}

.youtube-info {
    padding: var(--space-md) var(--space-lg);
}

.youtube-info h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.youtube-info p {
    font-size: var(--text-sm);
    color: var(--steel);
    line-height: 1.6;
}

.youtube-channel-link {
    text-align: center;
    margin-top: var(--space-xl);
}


/* ==========================================================================
   CONTACT
   ========================================================================== */
.section-contact {
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-text {
    font-size: var(--text-lg);
    color: var(--steel);
    line-height: 1.7;
    margin-top: var(--space-md);
    margin-bottom: var(--space-xl);
}

/* Contact channels */
.contact-channels {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border: var(--border-light);
    transition: all var(--duration-base) var(--ease-out);
}

.contact-channel:hover {
    border-color: var(--silver);
    background-color: var(--ice);
}

.channel-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    flex-shrink: 0;
}

.channel-text strong {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--navy);
}

.channel-text span {
    font-size: var(--text-sm);
    color: var(--steel);
}

/* Form */
.contact-form-wrap {
    background-color: var(--ice);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.375rem;
}

.form-group label span {
    color: var(--steel);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--text-base);
    background-color: var(--white);
    border: var(--border-light);
    border-radius: var(--radius-sm);
    transition: border-color var(--duration-fast) ease,
                box-shadow var(--duration-fast) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px var(--navy-10);
    outline: none;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* Form submit */
#cf-submit {
    margin-top: var(--space-sm);
    position: relative;
}

#cf-submit.loading .btn-text {
    opacity: 0;
}

#cf-submit.loading .btn-loader {
    display: block;
}

.btn-loader {
    display: none;
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-feedback {
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    padding: 0;
    border-radius: var(--radius-sm);
    transition: all var(--duration-base) ease;
}

.form-feedback.success {
    padding: var(--space-sm) var(--space-md);
    background-color: #e8f5e9;
    color: #2e7d32;
}

.form-feedback.error {
    padding: var(--space-sm) var(--space-md);
    background-color: #fce4ec;
    color: #c62828;
}


/* ==========================================================================
   FOOTER CTA
   ========================================================================== */
.footer-cta {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a66 100%);
    padding: var(--space-4xl) 0;
    text-align: center;
}

.footer-cta-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 600px;
    margin: 0 auto var(--space-md);
}

.footer-cta-text {
    font-size: var(--text-lg);
    color: var(--silver);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto var(--space-xl);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--navy);
    color: var(--silver);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.footer-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo-name {
    display: block;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--white);
}

.footer-logo-descriptor {
    display: block;
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--silver);
}

.footer-slogan {
    font-size: var(--text-sm);
    color: var(--steel);
    margin-top: var(--space-md);
    line-height: 1.6;
}

.footer-heading {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    font-size: var(--text-sm);
    color: var(--steel);
    transition: color var(--duration-fast) ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

/* Social icons */
.social-icons {
    display: flex;
    gap: var(--space-sm);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    color: var(--steel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--duration-fast) ease;
}

.social-icons a:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.06);
}

/* Footer bottom */
.footer-bottom {
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    font-size: var(--text-xs);
    color: var(--steel);
}


/* ==========================================================================
   PAGE CONTENT (for inner pages)
   ========================================================================== */
.page-content {
    padding-top: calc(var(--header-height) + var(--space-3xl));
    min-height: 60vh;
}

.page-header {
    margin-bottom: var(--space-xl);
}

.entry-content {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--navy);
}

.entry-content p {
    margin-bottom: var(--space-md);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    font-weight: 600;
}


/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Posts list (archive) */
.posts-list .post-item {
    padding: var(--space-lg) 0;
    border-bottom: var(--border-light);
}

.posts-list .post-date {
    display: block;
    font-size: var(--text-sm);
    color: var(--steel);
    margin-bottom: 0.25rem;
}

.posts-list .post-item h2 {
    font-size: var(--text-xl);
    font-weight: 600;
}

.posts-list .post-item h2 a:hover {
    color: var(--steel);
}
