/* =========================================================
   KRISHNA SOLAR ENERGY - GLOBAL FOUNDATION
   ========================================================= */


/* =========================================================
   GOOGLE FONT
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');


/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {

    /* Brand */
    --color-primary: #0868C9;
    --color-primary-dark: #05529F;

    --color-navy: #071A2B;

    --color-amber: #F5A623;
    --color-green: #55B948;


    /* Background */
    --color-white: #FFFFFF;
    --color-warm-white: #F7F8F6;
    --color-light: #F4F7FA;


    /* Text */
    --color-text: #101820;
    --color-muted: #64748B;
    --color-heading: #071A2B;


    /* Border */
    --color-border: #E2E8F0;


    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;


    /* Shadows */
    --shadow-sm:
        0 4px 14px rgba(7, 26, 43, 0.06);

    --shadow-md:
        0 10px 30px rgba(7, 26, 43, 0.09);

    --shadow-lg:
        0 20px 50px rgba(7, 26, 43, 0.12);


    /* Layout */
    --container-width: 1400px;

    --section-padding: 96px;


    /* Transition */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;

    -webkit-text-size-adjust: 100%;
}


body {
    margin: 0;

    font-family:
        "Outfit",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.6;

    color: var(--color-text);

    background: var(--color-white);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    overflow-x: hidden;
}


img,
svg,
video {
    display: block;

    max-width: 100%;
}


img {
    height: auto;
}


button,
input,
textarea,
select {
    font: inherit;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


a {
    color: inherit;
}


button {
    cursor: pointer;
}


/* =========================================================
   HEADINGS
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;

    font-family: "Outfit", sans-serif;

    color: var(--color-heading);

    font-weight: 700;

    line-height: 1.15;

    letter-spacing: -0.02em;
}


h1 {
    font-size: clamp(42px, 5vw, 76px);
}


h2 {
    font-size: clamp(32px, 3.5vw, 52px);
}


h3 {
    font-size: clamp(22px, 2vw, 30px);
}


h4 {
    font-size: 20px;
}


/* =========================================================
   PARAGRAPHS
   ========================================================= */

p {
    margin: 0 0 1rem;
}


.lead {
    max-width: 720px;

    margin-right: auto;
    margin-left: auto;

    color: var(--color-muted);

    font-size: clamp(17px, 1.5vw, 20px);

    line-height: 1.7;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
    text-decoration: none;
}


a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(8, 104, 201, 0.25);

    outline-offset: 3px;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(
        calc(100% - 48px),
        var(--container-width)
    );

    margin-right: auto;
    margin-left: auto;
}


/* =========================================================
   SECTION
   ========================================================= */

.section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}


.section-light {
    background: var(--color-warm-white);
}


.section-dark {
    color: var(--color-white);

    background: var(--color-navy);
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {
    max-width: 820px;

    margin-right: auto;
    margin-bottom: 52px;
    margin-left: auto;
}


.section-heading h2 {
    margin-bottom: 16px;
}


.section-heading p {
    max-width: 680px;

    margin-right: auto;
    margin-left: auto;

    color: var(--color-muted);

    font-size: 17px;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 14px;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


/* =========================================================
   BADGE
   ========================================================= */

.badge {
    display: inline-flex;
    align-items: center;

    min-height: 32px;

    padding: 6px 12px;

    color: var(--color-primary);

    background: rgba(8, 104, 201, 0.08);

    border: 1px solid rgba(8, 104, 201, 0.14);

    border-radius: 999px;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 12px 22px;

    border: 1px solid transparent;

    border-radius: var(--radius-md);

    font-family: "Outfit", sans-serif;

    font-size: 15px;
    font-weight: 600;

    line-height: 1.2;

    text-align: center;

    cursor: pointer;

    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}


.btn:hover {
    transform: translateY(-2px);
}


.btn-primary {
    color: #ffffff;

    background: var(--color-primary);

    box-shadow:
        0 8px 20px rgba(8, 104, 201, 0.20);
}


.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--color-primary-dark);

    box-shadow:
        0 12px 26px rgba(8, 104, 201, 0.25);
}


.btn-secondary {
    color: var(--color-navy);

    background: #ffffff;

    border-color: var(--color-border);
}


.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: var(--color-primary);

    color: var(--color-primary);
}


/* =========================================================
   HERO ACTIONS
   ========================================================= */

.hero-actions {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 28px;
}


/* =========================================================
   TEXT LINK
   ========================================================= */

.text-link {
    display: inline-flex;
    align-items: center;

    color: var(--color-primary);

    font-size: 15px;
    font-weight: 600;

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}


.text-link:hover {
    color: var(--color-primary-dark);

    transform: translateX(3px);
}


/* =========================================================
   GRID
   ========================================================= */

.grid {
    display: grid;

    gap: 24px;
}


.grid-2 {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}


.grid-3 {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}


.grid-4 {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


/* =========================================================
   FLEX
   ========================================================= */

.flex {
    display: flex;
}


.items-center {
    align-items: center;
}


.justify-between {
    justify-content: space-between;
}


.justify-center {
    justify-content: center;
}


.flex-wrap {
    flex-wrap: wrap;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
    min-width: 0;

    padding: 30px;

    background: var(--color-white);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal);
}


.card:hover {
    transform: translateY(-4px);

    border-color: rgba(8, 104, 201, 0.20);

    box-shadow: var(--shadow-md);
}


.card h3 {
    margin-bottom: 12px;
}


.card p {
    color: var(--color-muted);
}


/* =========================================================
   FORMS
   ========================================================= */

.form-group {
    margin-bottom: 20px;
}


.form-label {
    display: block;

    margin-bottom: 8px;

    color: var(--color-heading);

    font-size: 14px;
    font-weight: 600;
}


.form-control {
    display: block;

    width: 100%;

    min-height: 48px;

    padding: 12px 14px;

    color: var(--color-text);

    background: #ffffff;

    border: 1px solid var(--color-border);

    border-radius: var(--radius-md);

    outline: none;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}


.form-control::placeholder {
    color: #94a3b8;
}


.form-control:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 4px rgba(8, 104, 201, 0.10);
}


textarea.form-control {
    min-height: 130px;

    resize: vertical;
}


/* =========================================================
   IMAGES
   ========================================================= */

.image-cover {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.image-contain {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   TEXT ALIGNMENT
   ========================================================= */

.text-center {
    text-align: center;
}


.text-left {
    text-align: left;
}


.text-right {
    text-align: right;
}


/* =========================================================
   SPACING HELPERS
   ========================================================= */

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}


.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.sr-only,
.visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {
    color: #ffffff;

    background: var(--color-primary);
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}