/* ============================================
   EnergySouth — Shared Stylesheet
   Design System: Industrial Editorial
   ============================================ */

/* Material Symbols base variation */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Typography ─────────────────────────────── */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    color: #191c1c;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
}

/* Hero text — tight tracking for industrial feel */
.hero-text {
    letter-spacing: -0.04em;
}

/* Clamp-based fluid display size */
.text-huge {
    font-size: clamp(3rem, 8vw, 6.25rem);
    line-height: 0.9;
}

/* Drop shadow for hero text on image backgrounds */
.hero-text-shadow {
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ── Ghost Border (accessibility fallback only) ─ */
.ghost-border {
    outline: 1px solid rgba(192, 200, 200, 0.15);
}

/* ── H2 Watermark Text ───────────────────────── */
.text-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

/* ── Partner Banner Infinite Scroll ──────────── */
@keyframes infinite-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.animate-infinite-scroll {
    animation: infinite-scroll 40s linear infinite;
}

.logo-scroll-container {
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

/* ── Navigation ──────────────────────────────── */
nav a.nav-active {
    color: #003030;
    border-bottom: 2px solid #003030;
    padding-bottom: 4px;
}

/* ── Buttons ─────────────────────────────────── */
/* Primary button gradient per design system */
.btn-primary {
    background: linear-gradient(135deg, #003030, #002020);
    color: #ffffff;
    border-radius: 2px;
    padding: 16px 32px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.85;
}

/* ── Cards ───────────────────────────────────── */
/* Ken Burns hover effect for portrait/image cards */
.ken-burns-container {
    overflow: hidden;
}

.ken-burns-container img {
    transition: transform 0.7s ease;
}

.ken-burns-container:hover img {
    transform: scale(1.05);
}

/* ── Input Focus State ───────────────────────── */
/* Override Tailwind forms plugin defaults for design-system focus */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: none;
    border-bottom: 2px solid #003030 !important;
}

/* ── Scroll Behavior ─────────────────────────── */
html {
    scroll-behavior: smooth;
}

/* ── Utility: No select (watermark text) ────── */
.no-select {
    user-select: none;
    pointer-events: none;
}

/* ── Section spacing ─────────────────────────── */
.section-pad {
    padding-top: 160px;
    padding-bottom: 160px;
}

/* ── Editorial 12-col grid ───────────────────── */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 0;
    row-gap: 2rem;
}

@media (min-width: 768px) {
    .editorial-grid {
        column-gap: 2.5rem;
        row-gap: 2.5rem;
    }
}

/* ── Animate pulse for map pins ─────────────── */
@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(0, 48, 48, 0.4); }
    70%  { box-shadow: 0 0 0 12px rgba(0, 48, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 48, 48, 0); }
}

.map-pin-pulse {
    animation: pulse-ring 2s ease-out infinite;
}
