/* Modern UI override inspired by contemporary energy/tech sites (original design)
   Load AFTER /assets/css/main.css
   Goals: bright, clean, confident, “renewables / modern industry” feel
*/

/* ----------------------------
   Theme tokens
----------------------------- */
:root {
    /* Base */
    --bg: #fff4e5;
    --bg-2: #ffeacc;
    --surface: #ffffff;
    --surface-2: rgba(255, 255, 255, 0.72);

    --text: rgb(227, 227, 227);
    --muted: rgb(227, 227, 227);

    --border: rgba(10, 24, 50, 0.12);

    /* Accent system (eco + tech) */
    --accent: #35c76a;      /* clean green */
    --accent-2: #14b8a6;    /* teal */
    --accent-3: #2dd4ff;    /* light cyan */
    --brand: #ff9900;       /* keep existing brand orange as secondary highlight */

    --link: #ff9900;
    --link-hover: #c60;

    /* Effects */
    --shadow-1: 0 10px 30px rgba(16, 24, 40, 0.08);
    --shadow-2: 0 20px 60px rgba(16, 24, 40, 0.12);

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;

    --container: 100%;

    --ring: 0 0 0 4px rgba(11, 99, 243, 0.18);
}

/* ----------------------------
   Base / background
----------------------------- */
html, body {
    background:
            /*radial-gradient(900px 520px at 12% 0%, rgba(53, 199, 106, 0.16), transparent 60%),*/
            /*radial-gradient(900px 520px at 92% 0%, rgba(45, 212, 255, 0.14), transparent 62%),*/
            linear-gradient(180deg, var(--bg), var(--bg-2));
    color: var(--text);

    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.55;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Better spacing below fixed header (legacy header is fixed on small screens) */
main {
    padding: 92px 1.25rem 56px;
}

/* Constrain without breaking legacy .container usage */
.container {
    background: transparent;
}
.container > main.clearfix,
.container > main {
    max-width: var(--container);
    margin: 0 auto;
}

/* ----------------------------
   Typography
----------------------------- */
h1, h2, h3 {
    color: rgba(6, 12, 24, 0.92);
    letter-spacing: -0.02em;
}

h1 {
    font-weight: 850;
    font-size: clamp(1.75rem, 3.0vw, 2.65rem);
    line-height: 1.12;
    margin: 0 0 0.75rem 0;
}

h2 {
    font-weight: 800;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    line-height: 1.2;
}

p, li {
    color: var(--muted);
    font-size: 1.03rem;
}

/* Small “kicker” feel for strong emphasis text */
strong {
    color: rgba(6, 12, 24, 0.88);
}

/* ----------------------------
   Links
----------------------------- */
a {
    color: var(--link);
    text-decoration: none;
    font-weight: 650;
    text-underline-offset: 0.18em;
}
a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Legacy selectors that forced black/orange underlines */
p a, .hc-links a, #sitemap a {
    color: var(--link);
    border-bottom: 2px solid rgba(11, 99, 243, 0.24);
    font-weight: 700;
}
p a:hover, .hc-links a:hover, #sitemap a:hover {
    border-bottom-color: #c60;
    text-decoration: none;
    color: #c60;
}

/* ----------------------------
   Header / Navigation (clean “tech” header)
----------------------------- */
header.main {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);

    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);

    height: 64px;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

/* Prevent legacy large-screen header background image from showing */
@media only screen and (min-width: 60em) {
    header.main {
        background-image: none !important;
        position: sticky;
        top: 0;
        z-index: 999;
        height: auto;
    }
}

/* Hamburger button: neat, minimal */
.c-hamburger {
    width: 46px;
    height: 46px;
    margin: 9px 10px 0;
    border-radius: 999px;

    background: rgba(6, 12, 24, 0.05);
    border: 1px solid rgba(6, 12, 24, 0.10);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;

    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.c-hamburger:hover {
    transform: translateY(-1px);
    background: rgba(6, 12, 24, 0.07);
    box-shadow: var(--shadow-1);
}
.c-hamburger span,
.c-hamburger span::before,
.c-hamburger span::after {
    background: rgba(6, 12, 24, 0.70);
}

/* Active state */
.c-hamburger--htx.is-active {
    background: rgba(11, 99, 243, 0.10);
    border-color: rgba(11, 99, 243, 0.22);
}
.c-hamburger--htx.is-active span {
    background: none;
}

/* Company name + phone */
nav .coname {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
    font-weight: 900;
    letter-spacing: 0.01em;
    margin: 18px 0 0 14px;
    color: rgba(6, 12, 24, 0.82);
}
nav .phone {
    margin: 18px 14px 0 0;
    color: rgba(6, 12, 24, 0.62);
    font-weight: 650 !important;
}
nav .phone:hover {
    color: rgba(6, 12, 24, 0.85);
    text-decoration: none;
}

/* Mobile menu panel: white sheet */
nav.main ul {
    background: rgba(255, 255, 255, 0.96);
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-2);
    width: min(390px, 92vw);
}

/* Menu items */
nav li a {
    border-top: 1px solid rgba(10, 24, 50, 0.10);
    color: rgba(6, 12, 24, 0.78);
    padding: 14px 18px;

    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 0.98rem;
    font-weight: 700;

    transition: background 150ms ease, color 150ms ease;
}
nav li a:hover,
nav li a.active {
    background: linear-gradient(90deg, rgba(53, 199, 106, 0.14), rgba(45, 212, 255, 0.10));
    color: rgba(6, 12, 24, 0.92);
    text-decoration: none;
}

/* Desktop nav: pill bar */
@media only screen and (min-width: 60em) {
    nav {
        border-radius: 999px;
        border: 1px solid rgba(10, 24, 50, 0.10);
        background: rgba(255, 255, 255, 0.72);

        backdrop-filter: saturate(160%) blur(14px);
        -webkit-backdrop-filter: saturate(160%) blur(14px);

        box-shadow: var(--shadow-1);
        overflow: visible;
    }

    nav.main ul {
        background: transparent;
        border-right: none;
        box-shadow: none;
        width: auto;
    }

    nav.main li a {
        border-top: none;
        margin: 6px 6px;
        border-radius: 999px;
        padding: 12px 14px;
        background: transparent;
    }

    nav.main li a:hover,
    nav.main li a.active {
        background: rgba(11, 99, 243, 0.10);
    }

    /* Dropdown: crisp popover */
    nav.main li ul {
        top: 52px;
        left: 0;
        right: auto;

        border: 1px solid rgba(10, 24, 50, 0.10);
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.98);
        padding: 8px;

        box-shadow: var(--shadow-2);
        min-width: 260px;
    }
    nav.main li ul li a {
        margin: 0;
        border-radius: 12px;
        padding: 10px 12px;
        border-top: none;
    }

    .container {
        width: min(100%, var(--container));
        margin: 0 auto;
    }

    main {
        padding: 36px 24px 64px;
    }
}

/* ----------------------------
   Content surfaces / cards
----------------------------- */
article, aside {
    background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(10, 24, 50, 0.10);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
}

/* Add subtle “energy stripe” accent to the left of major blocks */
article, aside, form, main table {
    position: relative;
}
article::before,
aside::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 999px;
    /*background: linear-gradient(180deg, var(--accent), var(--accent-3));*/
    opacity: 0.65;
}
article, aside {
    padding-left: 22px;
}

/* ----------------------------
   Hero image styling (legacy .holder)
----------------------------- */
.holder {
    border-radius: calc(var(--radius-lg) + 8px);
    overflow: hidden;
    box-shadow: var(--shadow-2);
    border: 1px solid rgba(10, 24, 50, 0.10);
}
.holder img {
    width: 100%;
    border-radius: calc(var(--radius-lg) + 8px);
    transform: scale(1.01);
    filter: contrast(1.03) saturate(1.04);
}

/* Intro overlay blocks (legacy ids/classes) */
#fp-intro,
.fp-apps {
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(10, 24, 50, 0.12);
    box-shadow: var(--shadow-2);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    color: rgba(6, 12, 24, 0.86);
}

/* ----------------------------
   CTAs / link boxes
----------------------------- */
.linkbox a {
    background: linear-gradient(180deg, #ffc166, #ff9900);
    color: #ffffff;

    border-radius: 999px;
    padding: 12px 14px;
    font-weight: 850;
    letter-spacing: 0.01em;

    border: 1px solid rgba(10, 24, 50, 0.10);
    box-shadow: 0 14px 26px rgba(11, 99, 243, 0.18);

    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.linkbox a:hover {
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(11, 99, 243, 0.22);
    filter: saturate(1.02);
}
.linkbox a:focus {
    outline: none;
    box-shadow: var(--ring), 0 18px 34px rgba(11, 99, 243, 0.18);
}

/* ----------------------------
   Forms
----------------------------- */
label {
    color: rgba(6, 12, 24, 0.72);
    font-weight: 750;
    letter-spacing: 0.01em;
}

input, textarea, select {
    width: 100%;
    max-width: 560px;

    background: rgba(255, 255, 255, 0.96);
    color: rgba(6, 12, 24, 0.88);

    border: 1px solid rgba(10, 24, 50, 0.14);
    border-radius: 14px;

    padding: 12px 12px;
    font-size: 1rem;
    outline: none;

    transition: box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

input::placeholder, textarea::placeholder {
    color: rgba(6, 12, 24, 0.36);
}

input:focus, textarea:focus, select:focus {
    border-color: rgba(11, 99, 243, 0.45);
    box-shadow: var(--ring);
    background: #ffffff;
}

input.error, textarea.error {
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
    color: rgba(6, 12, 24, 0.88);
}

span.form-error {
    color: rgba(220, 38, 38, 0.92);
    font-weight: 850;
}

/* Primary actions */
input[type="submit"],
button,
button.g-recaptcha {
    background: linear-gradient(180deg, var(--accent), #1faa55);
    color: #062012;

    border: 1px solid rgba(10, 24, 50, 0.10);
    border-radius: 999px;
    padding: 10px 14px;

    font-weight: 900;
    letter-spacing: 0.01em;

    box-shadow: 0 16px 28px rgba(53, 199, 106, 0.20);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
input[type="submit"]:hover,
button:hover,
button.g-recaptcha:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(53, 199, 106, 0.24);
    filter: saturate(1.03);
}
input[type="submit"]:focus,
button:focus,
button.g-recaptcha:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(53, 199, 106, 0.20), 0 20px 34px rgba(53, 199, 106, 0.18);
}

/* Legacy desktop form layout: make the left border modern */
@media only screen and (min-width: 60em) {
    form {
        border-left: 0;
        padding-left: 26px;
        margin-left: 20px;
        position: relative;
    }
    form::before {
        content: "";
        position: absolute;
        left: 0;
        top: 10px;
        bottom: 10px;
        width: 4px;
        border-radius: 999px;
        background: linear-gradient(180deg, var(--accent-3), var(--accent));
        opacity: 0.65;
    }
}

/* ----------------------------
   Tables (spec-sheet clean)
----------------------------- */
main table {
    width: 100%;
    border: 1px solid rgba(10, 24, 50, 0.10);
    border-radius: var(--radius-md);
    overflow: hidden;

    background: var(--surface);
    box-shadow: var(--shadow-1);
}

main th, main td {
    border-color: rgba(10, 24, 50, 0.10);
    color: rgba(6, 12, 24, 0.78);
    font-size: 0.98rem;
    padding: 10px 10px;
}

main thead tr:first-of-type {
    background: linear-gradient(90deg, rgba(53, 199, 106, 0.18), rgba(45, 212, 255, 0.14));
    color: rgba(6, 12, 24, 0.84);
}
main thead tr:nth-of-type(2) {
    background: rgba(6, 12, 24, 0.03);
}
main tbody tr:hover {
    background: rgba(11, 99, 243, 0.06);
}

/* ----------------------------
   Footer
----------------------------- */
nav#footer {
    margin-top: 28px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(10, 24, 50, 0.10);
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: var(--shadow-1);
}

nav#footer li a {
    color: rgba(6, 12, 24, 0.62);
    font-weight: 700;
}
nav#footer li a:hover {
    color: rgba(6, 12, 24, 0.86);
    text-decoration: none;
}
.copyright {
    color: rgba(6, 12, 24, 0.52);
}

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