/*
Theme Name: Stew's Driving School
Description: Like-for-like modern replacement for the legacy Green Simple theme.
Version: 1.0.1
Author: DSW
Text Domain: stews-driving-school
Requires at least: 6.5
Requires PHP: 8.1
*/

* { box-sizing: border-box; }
html { background: #fff; }
body {
    margin: 0;
    color: #000;
    background: #fff;
    font: 13px/1.45 Verdana, Geneva, Arial, Helvetica, sans-serif;
}
a { color: #3e6f42; text-decoration: none; }
a:visited { color: #575757; }
a:hover, a:focus { color: #83c322; }
img { max-width: 100%; height: auto; }
.alignleft { float: left; margin: 0 1em .75em 0; }
.alignright { float: right; margin: 0 0 .75em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.site {
    width: 1000px;
    margin: 5px auto 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #cfd8c9;
    border-radius: 9px;
    box-shadow: 0 1px 4px rgba(0,0,0,.22);
}
.site-header {
    position: relative;
    width: 970px;
    height: 150px;
    overflow: hidden;
    background: url('assets/header.jpg') center center / 964px 144px no-repeat,
                url('assets/header.png') left top / 970px 150px no-repeat;
}
.header-text {
    position: absolute;
    left: 10px;
    top: 27px;
    width: 950px;
    text-align: center;
    color: #fff;
}
.site-title { margin: 0; font-family: "Britannic Bold", Impact, "Arial Black", sans-serif; font-size: 58px; line-height: 1.05; font-weight: 700; letter-spacing: 1px; }
.site-title a, .site-title a:link, .site-title a:visited, .site-title a:hover { color: #fff; }
.site-description { margin: 4px 0 0; font-size: 20px; line-height: 1.25; color: #fff; }

.primary-navigation {
    position: relative;
    min-height: 35px;
    padding: 8px 4px 0;
    z-index: 10;
    background: #fff;
}
.primary-menu, .primary-menu ul { margin: 0; padding: 0; list-style: none; }
.primary-menu { display: flex; flex-wrap: wrap; align-items: flex-start; }
.primary-menu > li { position: relative; }
.primary-menu > li > a {
    display: block;
    min-height: 27px;
    padding: 4px 12px 5px;
    color: #f2f2f2;
    line-height: 18px;
    text-align: center;
    white-space: nowrap;
    margin: 0 2px;
    border: 1px solid #487448;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(#6fa55f 0%, #4f894d 48%, #3f743f 52%, #315e34 100%);
}
.primary-menu > li > a:hover, .primary-menu > li:hover > a { color: #fff; background: linear-gradient(#83bd66, #4b8747); }
.primary-menu .current-menu-item > a, .primary-menu .current_page_item > a, .primary-menu .current-menu-ancestor > a {
    color: #f2f2f2;
    background: linear-gradient(#83bd55, #4d8b43);
    box-shadow: inset 0 1px rgba(255,255,255,.35);
}
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 190px;
    padding: 3px;
    background: #edf3e9;
    border: 1px solid #91aa89;
    box-shadow: 0 3px 7px rgba(0,0,0,.25);
}
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { display: block; padding: 5px 9px; color: #424242; }
.primary-menu .sub-menu a:hover { color: #000; background: #d7e6cf; }
.menu-toggle { display: none; }

.site-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(180px, 1fr); gap: 0; width: 970px; }
.content { min-width: 0; padding: 9px 10px 12px; }
.sidebar { min-width: 0; padding: 8px 0 12px 3px; }
.entry { margin: 0 0 14px; }
.entry::after, .entry-content::after { content: ""; display: table; clear: both; }
.entry-title, .archive-header .entry-title {
    margin: .4em 0 .6em;
    color: #3e6f42;
    font: normal 32px/1.15 "Trebuchet MS", Arial, Helvetica, sans-serif;
}
.entry-title a, .entry-title a:visited { color: #3e6f42; }
.entry-content { overflow-wrap: break-word; }
.entry-content p { margin: .5em 0; }
.entry-content h1 { font: normal 32px/1.15 "Trebuchet MS", Arial, sans-serif; }
.entry-content h2 { font: normal 24px/1.2 "Trebuchet MS", Arial, sans-serif; }
.entry-content h3 { font: normal 20px/1.25 "Trebuchet MS", Arial, sans-serif; }
.entry-content table { max-width: 100%; }
.entry-content blockquote { margin: 10px 0; padding: 8px 12px 8px 42px; background: #fff url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="28" height="22"%3E%3Ctext y="20" font-size="28" fill="%233e6f42"%3E%E2%80%9C%3C/text%3E%3C/svg%3E') 8px 5px no-repeat; }

.widget { margin: 0 0 12px; padding: 8px; border: 1px solid #bdcdb7; border-radius: 7px; background: #f8fbf6; }
.widget-title {
    margin: -8px -8px 8px;
    padding: 5px 9px;
    color: #fff;
    background: linear-gradient(#6ca15f, #3e7440);
    border-radius: 6px 6px 0 0;
    font: normal 16px/1.2 "Trebuchet MS", Arial, sans-serif;
}
.widget ul { margin: 0; padding-left: 17px; }
.widget input[type="search"], .widget input[type="text"] { width: 100%; max-width: 100%; }
.widget button, .widget input[type="submit"] { margin-top: 5px; padding: 4px 9px; border: 1px solid #54784d; border-radius: 3px; color: #fff; background: linear-gradient(#83bd55, #4d8b43); }
.widget_calendar table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: center; }
.widget_calendar th, .widget_calendar td { padding: 2px; }

.site-footer { min-height: 38px; padding: 10px 18px 8px; color: #cfcfcf; text-align: center; background: #335b37; border-radius: 0 0 3px 3px; }
.site-footer p { margin: 0; }
.site-footer a, .site-footer a:link { color: #fff; }
.site-footer a:visited, .site-footer a:hover { color: #b8b8b8; }
.designer { margin: 10px 0; color: #666; text-align: center; font: 10px Arial, sans-serif; }
.designer a { color: #666; text-decoration: underline; }
.navigation.pagination { margin: 15px 0; }
.page-numbers { display: inline-block; margin-right: 3px; padding: 4px 7px; border: 1px solid #8cab82; }

@media (max-width: 1020px) {
    .site { width: calc(100% - 20px); padding: 10px; }
    .site-header, .site-layout { width: 100%; }
    .site-header { background-size: cover, cover; }
    .header-text { left: 3%; width: 94%; }
    .site-title { font-size: clamp(32px, 6vw, 58px); }
    .site-description { font-size: clamp(13px, 2.1vw, 20px); }
}
@media (max-width: 700px) {
    .site { width: 100%; margin: 0; padding: 6px; border: 0; border-radius: 0; }
    .site-header { height: 125px; }
    .header-text { top: 25px; }
    .menu-toggle { display: block; width: 100%; padding: 7px 10px; border: 1px solid #487448; color: #fff; background: linear-gradient(#6fa55f, #315e34); text-align: left; font: inherit; }
    .primary-menu { display: none; flex-direction: column; }
    .primary-menu.is-open { display: flex; }
    .primary-menu > li, .primary-menu > li > a { width: 100%; text-align: left; }
    .primary-menu .sub-menu { position: static; display: block; width: 100%; padding-left: 18px; box-shadow: none; }
    .site-layout { display: block; }
    .content, .sidebar { padding: 8px; }
    .entry-title, .archive-header .entry-title { font-size: 27px; }
    .entry-content h1 { font-size: 27px; }
    .entry-content table { width: 100% !important; height: auto !important; }
}
