/*
 * NDA Direct — S&Z site chrome CSS
 * Carried over verbatim from Licence Direct's app/static/chrome.css (itself
 * copied from the licence-direct-brand-pack, extracted from
 * https://snz.co.za/css/stylesheet.css and applied in Patent Direct). Hex
 * values, fonts, spacing and radii are unchanged - same brand, same chrome,
 * every "Direct" product family member included.
 *
 * One adaptation, inherited from Licence Direct: the brand pack targets the
 * site nav with a bare `nav` element selector, but this app's own
 * questionnaire already has an unrelated `<nav class="step-nav">` (the
 * step-by-step section list) - so this file scopes the site nav rule to
 * #navInsidePages instead, to avoid hijacking that element. See
 * app/templates/base.html for the markup.
 */

html { height: 100%; box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body {
    position: relative;
    margin: 0;
    min-height: 100%;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    font-family: "Nunito", serif;
    font-weight: 300;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

#body { background-color: #eaf1fa; }

h1, h2, h3 {
    font-family: "Lato", serif;
    font-weight: bold;
}

a { color: #022f52; }
a:hover { color: #b94803; }

/* ─── NAV ─────────────────────────────────────────────────────────────────── */
/* navbar.js (see base.html) injects an actual <nav> element inside
   #navbar-container/.navInsidePages - the fixed/flex/background styling
   below targets that injected <nav>, not the (otherwise empty) container
   div, matching how snz.co.za's own stylesheet.css scopes it
   (.navInsidePages nav {...}) rather than a bare `nav` selector, which
   would also hijack the unrelated <nav class="step-nav"> element. */
.navInsidePages nav {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #022f52;
    background-color: #ffffff;
    padding-left: 20px;
    padding-right: 20px;
    position: fixed;
    width: 100%;
    z-index: 3000;
    top: 0;
    left: 0;
    height: 64px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

#logoDiv {
    display: flex;
    align-items: center;
    flex-grow: 2;
    height: 64px;
}

#logo { width: 60px; margin-right: 10px; }

#logoP {
    margin: 0;
    font-size: 20px;
    font-family: "Lato", serif;
    font-weight: 400;
    color: #022f52;
}

#logoPa {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #022f52;
}

#navItems {
    display: flex;
    align-items: center;
    gap: 4px;
}

#navItems a {
    text-decoration: none;
    color: #022f52;
    padding: 20px 12px;
    white-space: nowrap;
}

#navItems a:hover, #navItems a:hover .navItemsP { color: #b94803; }

.navItemsP {
    font-family: "Nunito", serif;
    font-weight: 300;
    font-size: 15px;
    margin: 0;
    cursor: pointer;
}

.nav-active .navItemsP { color: #b94803; font-weight: 600; }

/* navbar.js's injected markup includes an <img class="navIcon"> next to
   every nav item's label - the real site hides these on desktop (text
   labels only) and only shows them at its own mobile breakpoint; this
   file doesn't carry that breakpoint's icon-sizing rules, so keep icons
   hidden at all widths rather than showing them unstyled/oversized. */
.navIcon { display: none; }

.navDropdown { cursor: pointer; position: relative; }
.navDropdown:hover { color: #b94803; }

.ddiconHeading { display: flex; align-items: center; }

#saniNavitem, #ipDirectNavitem { padding: 20px; margin-top: 3px; }
#ipDirectNavitem { color: #f09e1b; font-weight: bold; }

#saniDropDown, #ipDirectDropDown {
    display: none;
    position: absolute;
    width: 200px;
    background: #f5f9fe;
    border-radius: 18px;
    padding-top: 10px;
    padding-bottom: 13px;
    z-index: 3001;
}

.navDropdown:hover > #saniDropDown,
.navDropdown:hover > #ipDirectDropDown { display: block; }

.ddanchor {
    display: block;
    text-decoration: none;
    color: #022f52;
    padding: 10px 15px 5px 25px;
}

.ddAnchorHyphen { display: none; }

#hamburger { display: none; width: 28px; cursor: pointer; }
#closeMenu {
    display: none;
    cursor: pointer;
    font-size: 22px;
    margin: 0 12px 0 0;
    color: #022f52;
}

/* ─── FLOAT BUTTONS ───────────────────────────────────────────────────────── */
#floatButtons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: fixed;
    top: 88px;
    right: 30px;
    z-index: 2999;
    align-items: stretch;
}

#startNdaDirectButton {
    background: #f09e1b;
    padding: 7px 22px 9px 22px;
    cursor: pointer;
    color: #fff;
    z-index: 6;
    border-radius: 22px;
    font-size: 21px;
    outline: none;
    border: none;
    border-bottom: 3px solid #805209;
    font-family: "Lato", serif;
    font-weight: 400;
}

#startNdaDirectButton:hover { background: #e08f0a; }

#startNdaDirectButtonA {
    color: #ffffff;
    text-decoration: none;
    font-family: "Lato", serif;
    font-weight: 400;
}

#floatContactButton {
    background: #f09e1b;
    color: #fff;
    border: none;
    border-bottom: 3px solid #805209;
    border-radius: 22px;
    padding: 7px 20px 6px;
    font-family: "Nunito", serif;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.15s;
}

#floatContactButton:hover { background: #d98b0f; }

/* ─── PAGE WRAPPER ────────────────────────────────────────────────────────── */
#pageWrapper { padding-top: 64px; }

/* ─── HERO ────────────────────────────────────────────────────────────────── */
#heroBanner {
    position: relative;
    height: 420px;
    background-color: #163250;
    background-image: url("https://snz.co.za/images/pageImages/bannerForPages.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

#heroBannerOverlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
}

#heroBannerContent { text-align: center; }

#heroBannerHeading {
    font-family: "Lato", serif;
    font-weight: 900;
    font-size: clamp(64px, 10vw, 120px);
    color: #ffffff;
    text-shadow: 2px 2px #040404;
    margin: 0;
}

#heroBannerSubtitle {
    color: #fbe5b9;
    font-size: clamp(18px, 3vw, 38px);
    margin: 8px 0 0 0;
    text-shadow: 1px 1px #040404;
    font-family: "Lato", serif;
    font-weight: 200;
}

/* ─── STICKY ANCHOR NAV ───────────────────────────────────────────────────── */
#anchorNav {
    background-color: #022f52;
    padding: 18px 20px;
    position: sticky;
    top: 64px;
    z-index: 2000;
}

.tmButtonCont {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tmButton {
    text-align: center;
    padding: 8px 18px;
    min-width: 160px;
    cursor: pointer;
    background: #004370;
    color: #ffffff;
    font-size: 15px;
    font-family: "Nunito", serif;
    font-weight: 400;
    border-radius: 3px;
    border-bottom: 3px solid #06273a;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s, transform 0.1s;
}

.tmButton:hover { background: #005a9a; color: #fff; }
.tmButton:active { transform: translateY(2px); }

/* ─── SECTIONS ────────────────────────────────────────────────────────────── */
.pdSection { padding: 70px 20px; }
.pdSectionLight { background-color: #ffffff; }
.pdSectionDark { background-color: #173151; }
.pdSectionMid { background-color: #022f52; }

.pdSectionInner {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.pdSectionHeading {
    font-family: "Lato", serif;
    font-weight: 400;
    font-size: 42px;
    color: #022f52;
    margin: 0 0 14px 0;
}

.pdSectionHeadingLight { color: #ffffff; }

.pdSectionSubtitle {
    font-family: "Nunito", serif;
    font-weight: 300;
    font-size: 18px;
    color: #555;
    max-width: 760px;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.pdSectionSubtitleLight { color: #ccdde8; }

/* ─── SNZ BUTTON ──────────────────────────────────────────────────────────── */
.snzButton {
    color: #ffffff;
    padding: 9px 15px 9px 17px;
    text-align: center;
    background: #004370;
    border-radius: 18px;
    border: 0;
    cursor: pointer;
    outline: none;
    margin-top: 20px;
    font-family: "Nunito", serif;
    font-weight: 400;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s;
}

.snzButton:hover { background: #005a9a; color: #fff; }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
#siteFooter {
    background: #022f52;
    padding: 28px 20px;
}

#footerInner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footerP {
    color: #a8c4d8;
    font-size: 14px;
    font-family: "Nunito", serif;
    font-weight: 300;
    margin: 0;
}

.footerP a { color: #a8c4d8; }
.footerP a:hover { color: #ffffff; }
.footerSmall { font-size: 12px; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    #navItems { display: none; }
    #hamburger { display: block; }

    #floatButtons {
        top: auto;
        bottom: 8px;
        left: 8px;
        right: auto;
        flex-direction: row;
    }

    #startNdaDirectButton {
        font-size: 16px;
        padding: 5px 15px 4px 15px;
    }

    #heroBanner { height: 280px; }
    #heroBannerHeading { font-size: 48px; }
    #heroBannerSubtitle { font-size: 18px; }

    #footerInner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
    .pdSection { padding: 50px 16px; }
    .pdSectionHeading { font-size: 30px; }
    .tmButtonCont { flex-direction: column; align-items: center; }
    .tmButton { width: 280px; }
}
