/*
Theme Name: Skylatek
Text Domain: skylatek
Description: A bespoke standalone WordPress theme created for Skylatek.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* This file holds the WordPress theme header (above) plus truly global
 * rules only. Tailwind handles everything else.
 *
 * - Design tokens live in theme.css's @theme block.
 * - Prose + form styles live in presets.css.
 * - Layout, color, typography utilities come from Tailwind v4.
 *
 * Do NOT add component classes here (.btn-primary, .card, etc.). Use
 * Tailwind utilities in templates instead.
 */

html {
	scroll-behavior: smooth;
}


/* Skylatek Insights — featured image layout */

.sky-insight-card {
    display: grid;
    grid-template-columns: 240px 160px minmax(0, 1fr);
    column-gap: 32px;
    row-gap: 16px;
    align-items: center;
}

.sky-insight-image {
    display: block;
    grid-column: 1;
    grid-row: 1 / 4;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.sky-insight-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.sky-insight-card > div {
    grid-column: 2;
    grid-row: 1 / 4;
}

.sky-insight-card > h3 {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
}

.sky-insight-card > p {
    grid-column: 3;
    grid-row: 2;
    min-width: 0;
}

.sky-insight-card > .sky-insight-read {
    grid-column: 3;
    grid-row: 3;
}

@media (max-width: 900px) {
    .sky-insight-card {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 20px;
    }

    .sky-insight-image {
        grid-column: 1;
        grid-row: 1 / 4;
    }

    .sky-insight-card > div,
    .sky-insight-card > h3,
    .sky-insight-card > p,
    .sky-insight-card > .sky-insight-read {
        grid-column: 2;
        grid-row: auto;
    }
}

@media (max-width: 600px) {
    .sky-insight-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .sky-insight-image,
    .sky-insight-card > div,
    .sky-insight-card > h3,
    .sky-insight-card > p,
    .sky-insight-card > .sky-insight-read {
        grid-column: 1;
        grid-row: auto;
    }

    .sky-insight-card > div {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Skylatek Insights — final two-column layout */

.sky-insight-card {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    column-gap: 48px;
    row-gap: 12px;
    align-items: start;
}

.sky-insight-image {
    grid-column: 1;
    grid-row: 1 / 5;
    align-self: center;
    width: 100%;
}

.sky-insight-card > div,
.sky-insight-card > h3,
.sky-insight-card > p,
.sky-insight-card > .sky-insight-read {
    grid-column: 2;
    grid-row: auto;
    min-width: 0;
    margin: 0;
}

.sky-insight-card > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.sky-insight-card > h3 {
    line-height: 1.2;
}

@media (max-width: 900px) {
    .sky-insight-card {
        grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
        column-gap: 24px;
    }
}

@media (max-width: 600px) {
    .sky-insight-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .sky-insight-image,
    .sky-insight-card > div,
    .sky-insight-card > h3,
    .sky-insight-card > p,
    .sky-insight-card > .sky-insight-read {
        grid-column: 1;
        grid-row: auto;
    }

    .sky-insight-image {
        margin-bottom: 4px;
    }
}

/* Insights — align article metadata */

.sky-insight-card > div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
    text-align: left;
}

.sky-insight-card > div span {
    margin: 0;
    width: auto;
}

@media (max-width: 600px) {
    .sky-insights-stream {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .sky-insight-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
    }

    .sky-insight-card > * {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}
/* Skylatek — desktop hero typography adjustment */
@media (min-width: 901px) {
    .sky-page-hero h1,
    .sky-service-hero h1,
    .sky-contact-hero h1,
    .sky-about-hero h1,
    .sky-insights-hero h1,
    .sky-systems-hero h1,
    .sky-managed-hero h1,
    .sky-division-hero h1 {
        font-size: clamp(3.4rem, 6.8vw, 6.8rem);
    }
}