/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px; /* 1 */
}

    /*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

    .visually-hidden.focusable:active,
    .visually-hidden.focusable:focus {
        clip: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        position: static;
        white-space: inherit;
        width: auto;
    }

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
}

.clearfix::after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx), (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important; /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

        a[href]::after {
            content: " (" attr(href) ")";
        }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* ==========================================================================
   Theme Tokens & Utilities
   ========================================================================== */

:root {
    --army: #8B865C;
    --white: #FFFFFF; /* aktifkan kembali */
    --navy: #71828E;
    --ash: #C6CDD2;
    --sunrise: #D87355;
    --forest: #6B8B5C;
    --sunset: #D8B355;
    --dark: #212529;
    --gray: hsl(0, 0%, 70%);
    --semidark: hsl(0, 0%, 50%);
    --lightgreen: #60C769;
    --deepblue: #003A79;
}

html, body, div, p, span {
    font-family: "poppinsregular" !important;
}

h1, h2, h3, h4, h5, h6, button, a, strong, .fw-bold {
    font-family: "poppinssemibold" !important;
}

.text-army, .text-army svg path {
    fill: var(--army) !important;
    color: var(--army) !important;
}

.text-navy, .text-navy svg path {
    fill: var(--navy) !important;
    color: var(--navy) !important;
}

.text-ash, .text-ash svg path {
    fill: var(--ash) !important;
    color: var(--ash) !important;
}

.text-sunrise, .text-sunrise svg path {
    fill: var(--sunrise) !important;
    color: var(--sunrise) !important;
}

.text-forest, .text-forest svg path {
    fill: var(--forest) !important;
    color: var(--forest) !important;
}

.text-sunset, .text-sunset svg path {
    fill: var(--sunset) !important;
    color: var(--sunset) !important;
}

.text-gray, .text-gray svg path {
    fill: var(--gray) !important;
    color: var(--gray) !important;
}

.text-semidark, .text-semidark svg path {
    fill: var(--semidark) !important;
    color: var(--semidark) !important;
}

.text-lightgreen, .text-lightgreen svg path {
    fill: var(--lightgreen) !important;
    color: var(--lightgreen) !important;
}

.text-deepblue, .text-deepblue svg path {
    fill: var(--deepblue) !important;
    color: var(--deepblue) !important;
}

.text-white svg path {
    fill: #fff !important;
}

.border-gray {
    border: 1px solid var(--gray);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

/* Army Buttons */
.btn.btn-army {
    color: var(--white);
    background-color: var(--army);
}

    .btn.btn-army svg path {
        fill: var(--white);
    }

    .btn.btn-army:hover,
    .btn.btn-army:hover svg path,
    .btn.btn-army:active,
    .btn.btn-army:active svg path,
    .btn.btn-army:focus,
    .btn.btn-army:focus svg path,
    .btn.btn-army.active,
    .btn.btn-army.active svg path {
        fill: var(--army) !important;
        color: var(--army);
        background-color: transparent;
        border: 0.5px solid var(--army);
    }

.btn.btn-outline-army {
    color: var(--army);
    background-color: transparent;
    border: 0.5px solid var(--army);
}

.btn-outline-army-no-hover {
    fill: var(--army);
    color: var(--army);
    background-color: transparent;
}

.btn.btn-outline-army-no-hover svg path {
    fill: var(--army);
}

.btn.btn-outline-army-no-hover:hover {
    fill: var(--army);
    color: var(--army);
    background-color: transparent;
}

.btn.btn-outline-army svg path {
    fill: var(--army);
}

.btn.btn-outline-army:hover,
.btn.btn-outline-army:hover svg path,
.btn.btn-outline-army:active,
.btn.btn-outline-army:active svg path,
.btn.btn-outline-army:focus,
.btn.btn-outline-army:focus svg path,
.btn.btn-outline-army.active,
.btn.btn-outline-army.active svg path {
    fill: var(--white);
    color: var(--white);
    background-color: var(--army);
}

.btn.btn-quick:hover,
.btn.btn-quick:hover svg path,
.btn.btn-quick:active,
.btn.btn-quick:active svg path,
.btn.btn-quick:focus,
.btn.btn-quick:focus svg path,
.btn.btn-quick.active,
.btn.btn-quick.active svg path {
    fill: var(--dark);
    color: var(--dark);
    background-color: inherit;
}

/* FIX placeholder selector (tanpa spasi setelah 'input') */
input.text-army::placeholder {
    color: var(--army) !important;
    opacity: .25;
}

/* Sunrise Buttons */
.btn.btn-sunrise {
    color: var(--white);
    background-color: var(--sunrise);
}

    .btn.btn-sunrise svg path {
        fill: var(--white);
    }

    .btn.btn-sunrise:hover,
    .btn.btn-sunrise:hover svg path,
    .btn.btn-sunrise:active,
    .btn.btn-sunrise:active svg path,
    .btn.btn-sunrise:focus,
    .btn.btn-sunrise:focus svg path,
    .btn.btn-sunrise.active,
    .btn.btn-sunrise.active svg path {
        fill: var(--sunrise) !important;
        color: var(--sunrise);
        background-color: transparent;
        border: 0.5px solid var(--sunrise);
    }

.btn.btn-outline-sunrise {
    color: var(--sunrise);
    background-color: transparent;
    border: 0.5px solid var(--sunrise);
}

    .btn.btn-outline-sunrise svg path {
        fill: var(--sunrise);
    }

    .btn.btn-outline-sunrise:hover,
    .btn.btn-outline-sunrise:hover svg path,
    .btn.btn-outline-sunrise:active,
    .btn.btn-outline-sunrise:active svg path,
    .btn.btn-outline-sunrise:focus,
    .btn.btn-outline-sunrise:focus svg path,
    .btn.btn-outline-sunrise.active,
    .btn.btn-outline-sunrise.active svg path {
        fill: var(--white);
        color: var(--white);
        background-color: var(--sunrise);
    }

input.text-sunrise::placeholder {
    color: var(--sunrise) !important;
    opacity: .25;
}

/* Navy Buttons */
.btn.btn-navy {
    color: var(--white);
    background-color: var(--navy);
}

    .btn.btn-navy svg path {
        fill: var(--white);
    }

    .btn.btn-navy:hover,
    .btn.btn-navy:hover svg path,
    .btn.btn-navy:active,
    .btn.btn-navy:active svg path,
    .btn.btn-navy:focus,
    .btn.btn-navy:focus svg path,
    .btn.btn-navy.active,
    .btn.btn-navy.active svg path {
        fill: var(--navy) !important;
        color: var(--navy);
        background-color: transparent;
        border: 0.5px solid var(--navy);
    }

.btn.btn-outline-navy {
    color: var(--navy);
    background-color: transparent;
    border: 0.5px solid var(--navy);
}

    .btn.btn-outline-navy svg path {
        fill: var(--navy);
    }

    .btn.btn-outline-navy:hover,
    .btn.btn-outline-navy:hover svg path,
    .btn.btn-outline-navy:active,
    .btn.btn-outline-navy:active svg path,
    .btn.btn-outline-navy:focus,
    .btn.btn-outline-navy:focus svg path,
    .btn.btn-outline-navy.active,
    .btn.btn-outline-navy.active svg path {
        fill: var(--white);
        color: var(--white);
        background-color: var(--navy);
    }

input.text-navy::placeholder {
    color: var(--navy) !important;
    opacity: .25;
}

/* Forest Buttons */
.btn.btn-forest {
    color: var(--white);
    background-color: var(--forest);
}

    .btn.btn-forest svg path {
        fill: var(--white);
    }

    .btn.btn-forest:hover,
    .btn.btn-forest:hover svg path,
    .btn.btn-forest:active,
    .btn.btn-forest:active svg path,
    .btn.btn-forest:focus,
    .btn.btn-forest:focus svg path,
    .btn.btn-forest.active,
    .btn.btn-forest.active svg path {
        fill: var(--forest) !important;
        color: var(--forest);
        background-color: transparent;
        border: 0.5px solid var(--forest);
    }

.btn.btn-outline-forest {
    color: var(--forest);
    background-color: transparent;
    border: 0.5px solid var(--forest);
}

    .btn.btn-outline-forest svg path {
        fill: var(--forest);
    }

    .btn.btn-outline-forest:hover,
    .btn.btn-outline-forest:hover svg path,
    .btn.btn-outline-forest:active,
    .btn.btn-outline-forest:active svg path,
    .btn.btn-outline-forest:focus,
    .btn.btn-outline-forest:focus svg path,
    .btn.btn-outline-forest.active,
    .btn.btn-outline-forest.active svg path {
        fill: var(--white);
        color: var(--white);
        background-color: var(--forest);
    }

input.text-forest::placeholder {
    color: var(--forest) !important;
    opacity: .25;
}

/* Deepblue Buttons */
.btn.btn-deepblue {
    color: var(--white);
    background-color: var(--deepblue);
}

    .btn.btn-deepblue svg path {
        fill: var(--white);
    }

    .btn.btn-deepblue:hover,
    .btn.btn-deepblue:hover svg path,
    .btn.btn-deepblue:active,
    .btn.btn-deepblue:active svg path,
    .btn.btn-deepblue:focus,
    .btn.btn-deepblue:focus svg path,
    .btn.btn-deepblue.active,
    .btn.btn-deepblue.active svg path {
        fill: var(--deepblue) !important;
        color: var(--deepblue);
        background-color: transparent;
        border: 0.5px solid var(--deepblue);
    }

.btn.btn-outline-deepblue {
    color: var(--deepblue);
    background-color: transparent;
    border: 0.5px solid var(--deepblue);
}

    .btn.btn-outline-deepblue svg path {
        fill: var(--deepblue);
    }

    /* FIX: selector hover untuk outline-deepblue (hapus typo '-forest') */
    .btn.btn-outline-deepblue:hover,
    .btn.btn-outline-deepblue:hover svg path,
    .btn.btn-outline-deepblue:active,
    .btn.btn-outline-deepblue:active svg path,
    .btn.btn-outline-deepblue:focus,
    .btn.btn-outline-deepblue:focus svg path,
    .btn.btn-outline-deepblue.active,
    .btn.btn-outline-deepblue.active svg path {
        fill: var(--white);
        color: var(--white);
        background-color: var(--deepblue);
    }

input.text-deepblue::placeholder {
    color: var(--deepblue) !important;
    opacity: .25;
}

/* White Outline Buttons */
.btn.btn-outline-white-no-hover {
    fill: var(--white);
    color: var(--white);
    background-color: transparent;
}

    .btn.btn-outline-white-no-hover svg path {
        fill: var(--white);
    }

    .btn.btn-outline-white-no-hover:hover {
        background-color: transparent;
        fill: var(--white);
        color: var(--white);
    }

.btn.btn-outline-white {
    color: var(--white);
    background-color: transparent;
    border: 0.5px solid var(--white);
}

    .btn.btn-outline-white svg path {
        fill: var(--white);
    }

    .btn.btn-outline-white:hover,
    .btn.btn-outline-white:hover svg path,
    .btn.btn-outline-white:active,
    .btn.btn-outline-white:active svg path,
    .btn.btn-outline-white:focus,
    .btn.btn-outline-white:focus svg path,
    .btn.btn-outline-white.active,
    .btn.btn-outline-white.active svg path {
        fill: var(--dark);
        color: var(--dark);
        background-color: var(--white);
    }

input.text-white::placeholder {
    color: var(--white) !important;
    opacity: .25;
}

/* Dark Outline Buttons */
.btn.btn-outline-dark {
    color: var(--dark);
    background-color: transparent;
    border: 0.5px solid var(--dark);
}

    .btn.btn-outline-dark svg path {
        fill: var(--dark);
    }

    .btn.btn-outline-dark:hover,
    .btn.btn-outline-dark:hover svg path,
    .btn.btn-outline-dark:active,
    .btn.btn-outline-dark:active svg path,
    .btn.btn-outline-dark:focus,
    .btn.btn-outline-dark:focus svg path,
    .btn.btn-outline-dark.active,
    .btn.btn-outline-dark.active svg path {
        fill: var(--white);
        color: var(--white);
        background-color: var(--dark);
    }

input.text-dark::placeholder {
    color: var(--dark) !important;
    opacity: .25;
}

/* ==========================================================================
   Background Utilities
   ========================================================================== */

.bg-twilight-gradient {
    background: rgb(216,115,85);
    background: linear-gradient(50deg, rgba(216,115,85,1) 0%, rgba(150,80,59,1) 100%);
}

.bg-sunset-gradient {
    background: rgb(216,179,85);
    background: linear-gradient(50deg, rgba(216,179,85,1) 0%, rgba(178,153,92,1) 100%);
}

.bg-grass-gradient {
    background: rgb(106,138,91);
    background: linear-gradient(50deg, rgba(106,138,91,1) 0%, rgba(76,98,65,1) 100%);
}

.bg-sunrise {
    background-color: var(--sunrise);
}

.bg-sunset {
    background-color: var(--sunset);
}

.bg-army {
    background-color: var(--army);
}

.bg-navy {
    background-color: var(--navy);
}

.bg-forest {
    background-color: var(--forest);
}

/* FIX: gunakan warna ash sebenarnya */
.bg-ash {
    background-color: var(--ash);
}

.bg-deepblue {
    background-color: var(--deepblue);
}
