/*
Theme Name: Skyfilming
Author: Sky Filming
Description: A clean, responsive, full-width WordPress theme with a customisable banner and navigation bar beneath it.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skyfilming
Tags: full-width-template, custom-header, custom-logo, custom-menu, featured-images, responsive-layout
*/

:root {
    --sky-primary: #14283d;
    --sky-primary-dark: #0b1826;
    --sky-accent: #4aa3df;
    --sky-text: #202833;
    --sky-muted: #66717f;
    --sky-border: #dce3ea;
    --sky-surface: #ffffff;
    --sky-background: #f4f7fa;
    --sky-content-width: 1400px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--sky-text);
    background: var(--sky-background);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #176ca5;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.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 {
    top: 8px;
    left: 8px;
    z-index: 100000;
    width: auto;
    height: auto;
    padding: 12px 16px;
    clip: auto;
    color: #000;
    background: #fff;
    border: 2px solid #000;
}

.site-header {
    width: 100%;
}

.site-banner {
    position: relative;
    display: flex;
    min-height: 340px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--sky-primary);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.site-banner::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(3, 15, 27, 0.68), rgba(3, 15, 27, 0.26));
}

.site-banner__inner {
    position: relative;
    z-index: 1;
    width: min(100% - 40px, var(--sky-content-width));
    color: #fff;
}

.custom-logo-link {
    display: inline-block;
    margin-bottom: 18px;
}

.custom-logo {
    width: auto;
    max-height: 95px;
}

.site-title {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5.7rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    max-width: 760px;
    margin: 20px 0 0;
    font-size: clamp(1rem, 2vw, 1.35rem);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.site-navigation {
    position: relative;
    z-index: 20;
    width: 100%;
    background: var(--sky-primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.navigation-inner {
    display: flex;
    width: min(100% - 40px, var(--sky-content-width));
    min-height: 64px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}

.menu-toggle {
    display: none;
    padding: 11px 14px;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    font: inherit;
    cursor: pointer;
}

.primary-menu,
.primary-menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.primary-menu > li {
    position: relative;
}

.primary-menu a {
    display: flex;
    min-height: 64px;
    padding: 0 21px;
    align-items: center;
    color: #fff;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    background: var(--sky-accent);
}

.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 230px;
    background: var(--sky-primary-dark);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
    display: block;
}

.primary-menu .sub-menu a {
    min-height: 48px;
}

.site-content {
    width: 100%;
}

.content-wrap {
    width: min(100% - 40px, var(--sky-content-width));
    margin: 0 auto;
    padding: 56px 0 72px;
}

.content-wrap--full {
    width: 100%;
    padding: 0;
}

.entry-card {
    padding: clamp(24px, 5vw, 56px);
    margin-bottom: 32px;
    background: var(--sky-surface);
    border: 1px solid var(--sky-border);
    border-radius: 8px;
    box-shadow: 0 7px 24px rgba(20, 40, 61, 0.06);
}

.entry-header {
    margin-bottom: 24px;
}

.entry-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
}

.entry-title a {
    color: var(--sky-text);
}

.entry-meta {
    margin-top: 12px;
    color: var(--sky-muted);
    font-size: 0.92rem;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content .alignwide {
    width: min(100%, 1600px);
    max-width: none;
    margin-right: auto;
    margin-left: auto;
}

.entry-content .alignfull {
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
}

.post-thumbnail {
    margin: 0 0 28px;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    border-radius: 6px;
}

.wp-block-button__link,
button,
input[type="submit"] {
    border-radius: 4px;
}

.page-links,
.posts-navigation,
.post-navigation,
.pagination {
    margin: 30px 0;
}

.site-footer {
    padding: 34px 20px;
    color: rgba(255, 255, 255, 0.78);
    background: var(--sky-primary-dark);
    text-align: center;
}

.site-footer a {
    color: #fff;
}

@media (max-width: 820px) {
    .site-banner {
        min-height: 270px;
    }

    .navigation-inner {
        display: block;
        width: 100%;
        min-height: auto;
        padding: 10px 20px;
    }

    .menu-toggle {
        display: inline-block;
    }

    .primary-menu-container {
        display: none;
        width: 100%;
        padding-top: 10px;
    }

    .primary-menu-container.is-open {
        display: block;
    }

    .primary-menu {
        display: block;
    }

    .primary-menu a {
        min-height: 48px;
        padding: 0 14px;
    }

    .primary-menu .sub-menu {
        position: static;
        display: block;
        padding-left: 15px;
        box-shadow: none;
    }
}

@media (max-width: 520px) {
    .site-banner__inner,
    .content-wrap {
        width: min(100% - 24px, var(--sky-content-width));
    }

    .site-banner {
        min-height: 230px;
    }

    .content-wrap {
        padding-top: 28px;
    }
}
