/*
 * Modern polish (2026-11-21). Loaded after custom.css; changes only how things look, never the layout's
 * structure or what anything does. Same colours (brand blue #29A8DF, navy #000944, dark gray footer),
 * same fonts (Fjalla One headings, Lato text), same page sections. Remove the <link> in
 * templates/layout/default.php to go back.
 */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

:root {
    --cgo-blue: #29A8DF;
    --cgo-blue-dark: #1b8cbf;
    --cgo-navy: #000944;
    --cgo-ink: #1d2330;
    --cgo-muted: #5b6473;
    --cgo-line: #e3e7ee;
    --cgo-soft: #f5f7fa;
    --cgo-radius: 10px;
    --cgo-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .08);
    --cgo-shadow-hover: 0 6px 24px rgba(16, 24, 40, .16);
}

html { scroll-behavior: smooth; }
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6, h2.h1 { letter-spacing: .01em; line-height: 1.15; }
a { transition: color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
:focus-visible { outline: 3px solid rgba(41, 168, 223, .55); outline-offset: 2px; }

/* ---------- header and navigation ---------- */
.navbar-inverse.navbar-fixed-top {
    background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
    padding-top: 6px;
}
@media (min-width: 768px) {
    /* keep the menu clear of the logo */
    .navbar-nav { padding-left: 170px; padding-right: 20px; }
    .navbar-inverse .navbar-collapse { border: 0; box-shadow: none; }
}
.nav > li > a {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    position: relative;
}
@media (min-width: 768px) {
    .nav > li > a::after {
        content: "";
        position: absolute;
        left: 15px;
        right: 15px;
        bottom: 8px;
        height: 2px;
        background: var(--cgo-blue);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .2s ease;
    }
    .nav > li > a:hover::after,
    .nav > li > a:focus::after,
    .nav > li.open > a::after { transform: scaleX(1); }
}
.nav > li > a:hover, .nav > li > a:focus, .nav > li.open > a,
.navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover {
    background: transparent !important;
}
.dropdown-menu {
    border: 0;
    border-radius: 8px;
    padding: 6px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.dropdown-menu > li > a {
    padding: 7px 18px;
    font-size: 13px;
    letter-spacing: .04em;
}
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    background: var(--cgo-soft);
    color: var(--cgo-blue-dark);
}
.dropdown-submenu > .dropdown-menu { border-radius: 8px; }
#logo { padding: 6px 0 0 6px; transition: opacity .2s ease; }
#logo:hover { opacity: .9; }
@media (max-width: 767px) {
    .navbar-collapse { border-radius: 0 0 10px 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
    .navbar-inverse .navbar-toggle { border-radius: 8px; border-color: rgba(255, 255, 255, .25); }
}

/* ---------- buttons ---------- */
.btn, .btn.btn-primary, input[type="submit"], .marketing button, .view-cart button {
    display: inline-block;
    border: 0 !important;
    border-radius: 999px;
    background: var(--cgo-blue) !important;
    color: #fff !important;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 10px 24px;
    box-shadow: 0 4px 14px rgba(41, 168, 223, .35);
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:hover, .btn:focus, input[type="submit"]:hover, .marketing button:hover, .view-cart button:hover {
    background: var(--cgo-blue-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(41, 168, 223, .45);
}
.btn:active, input[type="submit"]:active, .marketing button:active { transform: translateY(0); }
.btn.btn-block { border-radius: 10px; }

/* ---------- home page ---------- */
.home h1, .home h2.h1, .home .container1 h3 { text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.home .container3 h1, .home .container3 h2.h1, .home .container4 h1, .home .container4 h2.h1 { text-shadow: none; }
.home .container1 p, .home .container2 p, .home .container3 p { font-size: 16px; max-width: 32em; }
.home .container1 .btn, .home .container2 .btn, .home .container3 .btn { margin-top: 8px; }
.home .container4 { padding-top: 70px; padding-bottom: 60px; }
.home .container4 .col-sm-3, .home .container4 [class*="col-"] > a > img { transition: transform .25s ease; }
.home .container4 img {
    border-radius: var(--cgo-radius);
    box-shadow: var(--cgo-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.home .container4 a:hover img { transform: translateY(-4px); box-shadow: var(--cgo-shadow-hover); }
.home .container4 h3 a, .home .container4 h3 { color: var(--cgo-blue-dark); }
.home .container4 p { color: var(--cgo-muted); }

/* ---------- product category pages ---------- */
.products .hero .image img { border-radius: 0 0 var(--cgo-radius) 0; }
.products .hero .copy { padding-top: 10px; padding-bottom: 20px; }
.products .hero .copy p { color: #333; }
.products .categories { background-color: var(--cgo-soft); }
.products .categories > .row { padding-left: 15px; padding-right: 15px; }
.products .categories .row img {
    border-radius: var(--cgo-radius);
    box-shadow: var(--cgo-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.products .categories .row a:hover img { transform: translateY(-4px); box-shadow: var(--cgo-shadow-hover); }
.products .categories .row a.link { color: var(--cgo-ink); }
.products .categories .row a.link:hover { color: var(--cgo-blue-dark); text-decoration: none; }
.bread-crumbs { font-size: 13px; color: var(--cgo-muted); }

/* pager */
ul.pager li > a, ul.pager li > span {
    font-family: 'Lato', sans-serif !important;
    font-weight: 700;
    border-radius: 999px;
    border-color: var(--cgo-line);
    min-width: 34px;
    padding: 5px 12px;
}
ul.pager li > a:hover { background: var(--cgo-blue); border-color: var(--cgo-blue); color: #fff !important; }
ul.pager li.current > a { background: var(--cgo-navy); border-color: var(--cgo-navy); color: #fff !important; }

/* ---------- product tables ---------- */
.marketing .table-responsive {
    border-radius: var(--cgo-radius);
    box-shadow: var(--cgo-shadow);
    background: #fff;
    margin-bottom: 30px;
}
.marketing table { font-size: 14px; }
.marketing table th {
    background-color: #2b3240;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    vertical-align: middle !important;
    border-color: #3a4252 !important;
}
.marketing table tr:nth-child(odd) { background-color: var(--cgo-soft); }
.marketing table td {
    border-right: 1px solid var(--cgo-line);
    border-bottom: 1px solid var(--cgo-line);
    vertical-align: middle !important;
    padding: 9px 6px;
}
.marketing table tbody tr:hover { background-color: #e8f5fc; }
.marketing table input[type="text"], .marketing table input[type="number"] {
    border: 1px solid #c9d1dc;
    border-radius: 6px;
    padding: 3px 6px;
}

/* ---------- cart and checkout ---------- */
/* header text: white on the slate header (cart tables don't set it themselves, unlike product tables) */
.marketing table th { color: #fff; }
.marketing table td a img[src*="red-x"] { opacity: .7; transition: opacity .15s ease; }
.marketing table td a:hover img[src*="red-x"] { opacity: 1; }
.checkout-table { border-radius: var(--cgo-radius); overflow: hidden; box-shadow: var(--cgo-shadow); background: #fff; }
.checkout-table .warning:not(:empty) {
    background: #fff4e5; border: 1px solid #f5c27a; color: #7a4b00; border-radius: 8px; padding: 10px 14px;
}
.marketing .checkout-fields > td {
    vertical-align: top !important;
    text-align: left !important;
    padding: 28px 28px 32px !important;
    background: #fff;
    border-bottom: 0;
}
.checkout-fields h4 {
    font-family: 'Fjalla One', sans-serif;
    font-size: 22px;
    color: var(--cgo-navy);
    margin: 0 0 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cgo-line);
}
.checkout-fields h4 ~ h4 { margin-top: 30px; }
.checkout-fields small { display: block; color: var(--cgo-muted); margin-top: 4px; }
.checkout-fields label { display: block; margin: 14px 0 5px; font-size: 13px; letter-spacing: .02em; }
.checkout-fields input[type="text"], .checkout-fields input[type="email"], .checkout-fields input[type="tel"],
.checkout-fields input[type="password"], .checkout-fields input[type="number"],
.checkout-fields select, .checkout-fields textarea {
    width: 100%;
    max-width: none;
    height: 42px;
    padding: 8px 12px;
    font-size: 15px;
    line-height: 1.4;
    background: #fff;
}
.checkout-fields textarea { height: auto; min-height: 110px; resize: vertical; }
.checkout-fields input[type="checkbox"] {
    width: 20px; height: 20px; margin: 2px 0 14px; accent-color: var(--cgo-blue); cursor: pointer;
}
.checkout-fields a[href*="cvv"] { display: inline-block; margin-top: 6px; font-size: 13px !important; }
.marketing .checkout-submit, .marketing .checkout-submit > td { background: var(--cgo-soft) !important; }
.marketing .checkout-submit > td { border: 0; padding: 22px 28px !important; }
.checkout-submit button { font-size: 16px; padding: 14px 34px; white-space: nowrap; }
@media (max-width: 767px) {
    .checkout-table, .checkout-table tbody { display: block; }
    /* the item and total rows: each its own seven equal columns, so they still line up and fit the screen */
    .checkout-table tr:not(.checkout-fields):not(.checkout-submit) { display: table; table-layout: fixed; width: 100%; }
    .marketing .checkout-table th, .marketing .checkout-table tr:not(.checkout-fields) > td {
        font-size: 11px; padding: 8px 2px !important; letter-spacing: 0; overflow-wrap: anywhere;
    }
    .marketing .checkout-fields > td { display: block; width: 100%; padding: 20px 16px !important; border-right: 0; }
    .marketing .checkout-submit > td:empty { display: none; }
    .marketing .checkout-submit > td { display: block; text-align: center !important; }
}

/* ---------- forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"],
select, textarea, .form-control {
    border: 1px solid #c9d1dc;
    border-radius: 8px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="password"]:focus,
input[type="number"]:focus, select:focus, textarea:focus, .form-control:focus {
    border-color: var(--cgo-blue);
    box-shadow: 0 0 0 3px rgba(41, 168, 223, .2);
    outline: 0;
}
.form-control { height: auto; padding: 9px 12px; }
label { font-weight: 700; color: var(--cgo-ink); }

/* ---------- footer ---------- */
footer.footer { background-color: #24272c; }
/* short pages: below the footer the window shows the footer colour, not a band of black
   (with a background of its own on html, body's black stays on the body box) */
html { background-color: #24272c; }
footer.footer section:nth-child(2) { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
footer.footer section:nth-child(2) p { color: rgba(255, 255, 255, .7); }
footer.footer a { color: #fff; }
footer.footer a:hover, footer.footer a:focus { color: var(--cgo-blue); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- CVV help lightbox (checkout) ---------- */
.cvv-modal .modal-content { border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.cvv-modal .modal-header { background: #2b3240; color: #fff; border-bottom: 0; padding: 14px 20px; }
.cvv-modal .modal-header .modal-title { color: #fff; font-family: 'Fjalla One', sans-serif; font-size: 20px; margin: 0; border: 0; padding: 0; }
.cvv-modal .modal-header .close { color: #fff; opacity: .8; text-shadow: none; font-size: 28px; margin-top: -4px; }
.cvv-modal .modal-header .close:hover { opacity: 1; }
.cvv-modal .modal-body { padding: 0; }
.cvv-modal .modal-body iframe { display: block; width: 100%; height: 460px; max-height: 70vh; border: 0; background: #fff; }
.cvv-modal .modal-footer { background: var(--cgo-soft, #f3f5f8); border-top: 1px solid #e3e7ee; padding: 12px 20px; }
.cvv-modal .modal-footer a { float: left; line-height: 34px; font-size: 13px; }
.modal-backdrop.in { opacity: .6; }
/* the header logo sits at z-index 9999: keep the lightbox and its backdrop above it */
.modal-backdrop { z-index: 10040; }
.cvv-modal { z-index: 10050; }
@media (max-width: 767px) {
  .cvv-modal .modal-dialog { margin: 10px; }
  .cvv-modal .modal-body iframe { height: 62vh; max-height: none; }
}

/* ---------- product cards (phones) ----------
   product-cards.js labels each cell and marks the table .pt-cards; each product row becomes a card
   with its values in two columns, the More Info text written out, and the Qty field full size. */
.pt-info-text { display: none; }
@media (max-width: 767px) {
    .marketing .table-responsive.pt-cards-wrap {
        overflow: visible; border: 0; box-shadow: none; background: transparent; margin-bottom: 20px;
    }
    table.pt-cards, table.pt-cards > tbody { display: block; width: 100%; background: transparent; }
    table.pt-cards thead { display: none; }
    .marketing table.pt-cards tr {
        display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
        background: #fff !important; border: 1px solid var(--cgo-line); border-radius: var(--cgo-radius);
        box-shadow: var(--cgo-shadow); padding: 14px 16px; margin-bottom: 14px;
    }
    .marketing table.pt-cards td {
        display: block; border: 0 !important; padding: 0 !important; text-align: left;
        font-size: 15px; color: var(--cgo-ink); min-width: 0; overflow-wrap: anywhere;
    }
    .marketing table.pt-cards td::before {
        content: attr(data-label); display: block; margin-bottom: 2px;
        font-family: 'Lato', sans-serif; font-size: 11px; font-weight: 700;
        letter-spacing: .06em; text-transform: uppercase; color: var(--cgo-muted);
    }
    .marketing table.pt-cards td.pt-title {
        grid-column: 1 / -1; font-family: 'Lato', sans-serif; font-size: 18px; font-weight: 700;
        color: var(--cgo-navy); padding-bottom: 8px !important; border-bottom: 1px solid var(--cgo-line) !important;
    }
    .marketing table.pt-cards td.pt-title::before { content: none; }
    .marketing table.pt-cards td.pt-empty { display: none; }
    .marketing table.pt-cards td.info-clm { grid-column: 1 / -1; }
    .marketing table.pt-cards td.info-clm > a { display: none; }
    .marketing table.pt-cards .pt-info-text {
        display: block; font-size: 13px; line-height: 1.5; background: var(--cgo-soft);
        border-radius: 8px; padding: 8px 10px;
    }
    .marketing table.pt-cards td input[type="number"] {
        width: 100%; max-width: 160px; font-size: 16px; padding: 8px 10px; /* 16px: no zoom on iOS */
    }
    .marketing table.pt-cards td.ttl-clm { font-size: 17px; font-weight: 700; color: var(--cgo-navy); align-self: end; }
}
