/*
Theme Name: Stick n Throttle
Theme URI: https://sticknthrottle.co.za
Author: Custom Theme
Author URI: https://sticknthrottle.co.za
Description: WordPress theme for Stick n Throttle Aviation - converted from static HTML
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stick-n-throttle
*/

/* Reset and Base Styles */
body {
    margin: 0;
    padding: 0;
}

body,
td,
th {
    font-family: Verdana, Geneva, sans-serif;
    font-size: medium;
    color: #4b4b4d;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #353375;
}

/* Header Logo */
#header {
    width: 25%;
    margin-left: auto;
    margin-right: auto;
    min-width: 280px;
}

#header img {
    width: 100%;
    height: auto;
    display: block;
}

/* Banner Image */
#top {
    width: 100%;
    margin-top: 25px;
}

#top img {
    width: 100%;
    height: auto;
    display: block;
}

/* Banner video (when video URL is set – overrides image) */
.banner-video-wrap {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 42.86%; /* 9 / 21 */
    overflow: hidden;
    background: #000;
}

.banner-video-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
}

.banner-video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation */
nav {
    font-size: medium;
    color: #353375;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 25px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    cursor: pointer;
    padding: 10px;
    flex: auto;
    text-align: center;
    text-decoration: none;
}

nav ul li:hover {
    color: blue;
}

nav ul li a {
    color: inherit;
    text-decoration: none;
}

/* Optional page title (above main content) */
.page-title-area {
    margin-bottom: 1em;
}

.page-title-area .page-title {
    margin: 0 0 0.5em;
    color: #353375;
}

/* Secondary page menu ribbon (below optional title, above content) */
.page-menu-ribbon {
    background-color: #353375;
    margin: 0 -15px 1em;
    padding: 10px 15px;
    width: calc(100% + 30px);
    box-sizing: border-box;
}

.page-menu-ribbon ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 1em;
    justify-content: center;
}

.page-menu-ribbon ul li {
    margin: 0;
    padding: 0;
}

.page-menu-ribbon ul li a {
    color: #fff;
    text-decoration: none;
}

.page-menu-ribbon ul li a:hover {
    text-decoration: underline;
}

/* Boxes */
.boxes {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 1fr 1fr 1fr;
}

.box {
    text-align: center;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Main Content Area */
.main {
    width: 100%;
    display: flex;
    margin-top: 25px;
    padding: 15px;
    box-sizing: border-box;
}

.main > div {
    margin: 15px;
}

.main2 {
    width: 80%;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.main3 {
    width: 40%;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
}

/* Sidebars and Content */
.column.left {
    width: 15%;
    flex: 0 0 15%;
    padding: 15px;
    box-sizing: border-box;
    min-width: 0;
}

.column.right {
    width: 15%;
    flex: 0 0 15%;
    padding: 15px;
    box-sizing: border-box;
    min-width: 0;
}

.column.center {
    width: 70%;
    flex: 0 0 70%;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
    min-width: 0;
}

/* Full width content when no sidebars */
.column.center.full-width {
    width: 100%;
    flex: 1 1 100%;
}

/* Content with only right sidebar */
.column.center.no-left-sidebar {
    width: 85%;
    flex: 0 0 85%;
}

/* Content with only left sidebar */
.column.center.no-right-sidebar {
    width: 85%;
    flex: 0 0 85%;
}

.column.left,
.column.right {
    align-items: center;
}

/* Widget Areas */
.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 10px;
}

/* Row */
.row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 0 4px;
}

.general {
    width: 100%;
}

/* Footer */
.footer {
    width: 100%;
    background-color: gray;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 25px;
    min-height: 120px;
    color: white;
    font-size: small;
    padding: 20px;
    box-sizing: border-box;
}

.footer a {
    color: white;
}

.footer a:hover {
    color: #ffcccc;
}

/* Tables */
table {
    border: 1px solid #ccc;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    width: 100%;
    table-layout: fixed;
}

table caption {
    font-size: 1.5em;
    margin: 0.5em 0 0.75em;
}

table tr {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: 0.35em;
}

table th,
table td {
    padding: 0.625em;
    text-align: center;
}

table th {
    font-size: 0.85em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4b4b4d;
}

/* Captcha Styles */
.capbox {
    background-color: #434440;
    border: white 0px solid;
    border-width: 0px 0px 0px 0px;
    display: inline-block;
    display: inline;
    zoom: 1;
    padding: 8px 8px 8px 8px;
}

.capbox-inner {
    font: bold 11px arial, sans-serif;
    color: #000000;
    background-color: lightgray;
    margin: 5px auto 0px auto;
    padding: 3px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

#CaptchaDiv {
    font: bold 17px verdana, arial, sans-serif;
    font-style: italic;
    color: #000000;
    background-color: #ffffff;
    padding: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

#CaptchaInput {
    margin: 1px 0px 1px 0px;
    width: 135px;
}

/* Links */
a:link {
    color: #353375;
    text-decoration: none;
}

a:visited {
    text-decoration: none;
    color: #353375;
}

a:hover {
    color: red;
    text-decoration: none;
}

a:active {
    text-decoration: none;
    color: #353375;
}

/* WordPress Content Styles */
.entry-content {
    text-align: left;
}

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

/* ==========================================================================
   WooCommerce – Theme blue buttons & single product
   ========================================================================== */

/* Add to cart & Proceed to checkout – theme blue background */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce a.checkout-button,
.woocommerce #respond input#submit {
    background-color: #353375 !important;
    color: #fff !important;
    border: 1px solid #353375 !important;
    padding: 0.6em 1.2em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce a.checkout-button:hover,
.woocommerce #respond input#submit:hover {
    background-color: #2a2960 !important;
    color: #fff !important;
    border-color: #2a2960 !important;
}

/* Single product – summary layout (title, price, add to cart) */
.woocommerce .summary.entry-summary {
    text-align: left;
    margin-top: 1em;
}

.woocommerce .summary.entry-summary .product_title {
    font-size: 1.5em;
    margin: 0 0 0.5em;
    color: #353375;
    line-height: 1.3;
}

.woocommerce .summary.entry-summary .price {
    font-size: 1.25em;
    margin: 0 0 1em;
    color: #353375;
    font-weight: bold;
}

.woocommerce .summary.entry-summary .woocommerce-product-details__short-description {
    margin-bottom: 1.25em;
}

.woocommerce .summary.entry-summary .cart {
    margin-top: 1.25em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75em 1em;
}

/* Quantity box – visible label */
.woocommerce .summary .quantity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
}

.woocommerce .summary .quantity .quantity-label {
    display: block;
    font-weight: bold;
    color: #353375;
    margin-right: 0.25em;
}

.woocommerce .summary .quantity input.qty {
    width: 4em;
    padding: 0.4em 0.5em;
    text-align: center;
}

/* Product images + summary row (single product) */
.woocommerce div.product div.images {
    margin-bottom: 1.5em;
}

.woocommerce div.product div.summary {
    margin-bottom: 2em;
}

/* ==========================================================================
   WooCommerce My Account – vertical menu & layout
   ========================================================================== */

.woocommerce-account .woocommerce {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

/* Navigation: horizontal list on top */
.woocommerce-MyAccount-navigation {
    width: 100%;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #f8f8f8;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.woocommerce-MyAccount-navigation ul li {
    display: inline-block;
    margin: 0;
    border-bottom: none;
    border-right: 1px solid #e0e0e0;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-right: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.65em 1em;
    color: #353375;
    text-decoration: none;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: #eee;
    color: #2a2960;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: #353375;
    color: #fff;
}

/* Content area: below menu */
.woocommerce-MyAccount-content {
    width: 100%;
}

/* Responsive Design */
@media all and (max-width: 800px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        text-align: center;
    }

    .main {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .main2 {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .main3 {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .column.left {
        width: 100%;
        flex: 1 1 100%;
        padding: 15px;
        margin: 0;
        text-align: center;
    }

    .column.center {
        width: 100%;
        flex: 1 1 100%;
        padding: 15px;
        margin: 0;
    }

    .column.right {
        width: 100%;
        flex: 1 1 100%;
        padding: 15px;
        margin: 0;
    }

    #contactBlock {
        width: 100%;
    }

    table {
        border: 0;
    }

    table caption {
        font-size: 1.3em;
    }

    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: 0.625em;
    }

    table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: 0.8em;
        text-align: right;
    }

    table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    table td:last-child {
        border-bottom: 0;
    }

    .boxes {
        grid-template-columns: 1fr;
    }

    .woocommerce .summary.entry-summary .cart {
        flex-direction: column;
        align-items: flex-start;
    }

    .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation ul li {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .woocommerce-MyAccount-navigation ul li:last-child {
        border-bottom: none;
    }
}

