/*
    Execuspecs CI overrides for Bootstrap 5.
    Values are lifted from css/styles.css and css/bootstrap-theme-override.css (the Bootstrap 3 /
    current-site CI stylesheets) so the new Bootstrap 5 pages stay visually consistent with the
    live site: flat/square black-and-white buttons, no rounded corners, same typography.
    Only used by Views/Shared/_LayoutBootstrap5.cshtml - never loaded alongside Bootstrap 3.

    Note: css/styles.css's @font-face rules for 'Renogare'/'District' are commented out site-wide
    (so the live site already falls back past them), so this stylesheet intentionally uses the
    Google Fonts that are actually active (Oswald for headings, Work Sans for body) rather than
    reintroducing a disabled brand font.
*/

:root {
    --bs-primary: #000000;
    --bs-primary-rgb: 0, 0, 0;
    --bs-secondary: #4F4F4F;
    --bs-secondary-rgb: 79, 79, 79;
    --bs-link-color: #000000;
    --bs-link-color-rgb: 0, 0, 0;
    --bs-link-hover-color: #000000;
    --bs-link-hover-color-rgb: 0, 0, 0;
    --bs-body-font-family: 'Work Sans', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --bs-border-radius: 0;
    --bs-border-radius-sm: 0;
    --bs-border-radius-lg: 0;
    --bs-link-decoration: none;
}

/*
   Caps content at 1650px on very wide/ultrawide monitors instead of letting it stretch
   edge-to-edge, and centers that capped box on the page (every section using this class shares
   the exact same max-width, so centering them all identically also keeps their content
   left-aligned with each other - unlike mixing this with plain Bootstrap .container elsewhere,
   which has a different max-width per breakpoint and would land at a different offset).
   The hero is the one deliberate exception - it stays full-bleed, not wrapped in this class.
   Section background colors stay full-bleed because they're painted on the wrapping element,
   not this one.
*/
.section-wide {
    width: 100%;
    max-width: 1650px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/*
    Bootstrap 5.3's own `a` rule computes colour from --bs-link-color-rgb via rgba(), not
    directly from --bs-link-color, so overriding the variables above isn't enough on its own -
    this direct rule guarantees it regardless of Bootstrap's internal wiring (matches css/styles.css's
    "a { color: #000 !important; }").
*/
a, a:hover {
    color: #000000;
    text-decoration: none;
}

body {
    font-family: var(--bs-body-font-family);
    font-size: 15px;
    color: #222222;
}

/** Headings - matches the Oswald heading font already loaded via Google Fonts in _Layout.cshtml **/
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: 'Oswald', 'Work Sans', sans-serif;
}

/* More room under h3 than Bootstrap's default 0.5rem, so a list or paragraph that follows
   (e.g. a "Specialised Equipment" sub-heading in a store blurb) doesn't sit tight against it. */
h3, .h3 {
    margin-bottom: 1rem;
}

/* Text selection highlight */
::selection {
    background-color: rgba(0, 0, 0, 0.15);
    color: #000;
}

::-moz-selection {
    background-color: rgba(0, 0, 0, 0.15);
    color: #000;
}

/** Buttons - flat/square/uppercase CI style, matches .btn / .home-products-button in styles.css **/
.btn {
    --bs-btn-border-radius: 0;
    --bs-btn-font-weight: 400;
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-bg: #e7e7e7;
    --bs-btn-disabled-border-color: #cecece;
    --bs-btn-disabled-opacity: 1;
    font-family: 'Oswald', 'Work Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #000000;
    --bs-btn-border-color: #000000;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #4F4F4F;
    --bs-btn-hover-border-color: #4F4F4F;
    --bs-btn-active-bg: #4F4F4F;
    --bs-btn-active-border-color: #4F4F4F;
}

.btn-secondary, .btn-info {
    --bs-btn-color: #555;
    --bs-btn-bg: #e7e7e7;
    --bs-btn-border-color: #cccccc;
    --bs-btn-hover-color: #555;
    --bs-btn-hover-bg: #cecece;
    --bs-btn-hover-border-color: #adadad;
}

/* Matches .home-products-button (the site's real "Book Eye Test"/"Book Hearing Test" CTA) -
   transparent with a black outline, inverts to solid black on hover. */
.btn-outline-dark {
    --bs-btn-color: #000;
    --bs-btn-border-color: #000;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #000;
    --bs-btn-hover-border-color: #000;
}

.btn-lg {
    --bs-btn-padding-y: 15px;
    --bs-btn-padding-x: 20px;
    --bs-btn-font-size: 13px;
}

/** Cards (Bootstrap 5 equivalent of a BS3 .panel) **/
.card {
    --bs-card-border-radius: 0;
}

/** Forms **/
.form-control, .form-select {
    --bs-border-radius: 0;
}

.form-check-input:checked {
    background-color: #000000;
    border-color: #000000;
}

.form-check-input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.15);
}

/** Badges (nav cart count) **/
.badge {
    --bs-badge-border-radius: 0;
    font-weight: 400;
}

/** Carousel - square/flat controls, matches the site's flat CI **/
.carousel-indicators [data-bs-target] {
    border-radius: 0;
}

/** Muted list links, matches css/bootstrap-theme-override.css footer/nav link styling **/
.footer-link, .footer-link:hover {
    color: #333;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* font-weight intentionally omitted - only Oswald weight 500 is loaded (see the Google Fonts
   link in _LayoutBootstrap5.cshtml), so asking for 700 here made the browser synthesize a
   heavier weight that looked chunky/too bold. */
.footerLink-headers {
    font-size: 18px;
}

/** Utility background used for the feature strip / placeholder panels **/
.ci-grey-panel {
    background-color: #F7F7F7;
}

/** Meta AI Glasses store section (Views/Store/_StoreMetaGlasses.cshtml): the shared checklist is
   one column here, and the video box is black so the 16:9 frame holds while the first frame loads. **/
.storeMetaGlasses .storeBlurb ul.checklist {
    column-count: 1;
}

.storeMetaGlasses .ratio {
    background-color: #000;
}
