/* ==========================================================================
   Industrial Cooling Solutions - Stylesheet
   Theme: Blue (sosyalevin.com style adapted)
   ========================================================================== */

:root {
    --blue-900: #0a2a55;
    --blue-800: #0d3b7a;
    --blue-700: #114a99;
    --blue-600: #155cc2;
    --blue-500: #1e6fdb;
    --blue-400: #3b86e5;
    --blue-300: #6aa3ee;
    --blue-100: #e6f0fb;
    --blue-50:  #f4f8fd;

    --text:     #1a2233;
    --muted:    #5a6478;
    --border:   #e2e8f0;
    --white:    #ffffff;

    --shadow-sm: 0 2px 6px rgba(10, 42, 85, 0.08);
    --shadow-md: 0 8px 24px rgba(10, 42, 85, 0.12);
    --shadow-lg: 0 18px 40px rgba(10, 42, 85, 0.18);

    --radius:   8px;
    --radius-lg:14px;

    --header-h: 76px;
    --transition: 220ms ease;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--blue-700);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--blue-500);
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--blue-800) 0%, var(--blue-700) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 14px;
    line-height: 1.15;
    flex-shrink: 0;
}

.brand:hover {
    color: var(--white);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue-400), var(--blue-300));
    color: var(--white);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.brand-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.brand-name strong {
    display: block;
    font-weight: 800;
    color: var(--white);
    font-size: 16px;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   Primary Nav
   ========================================================================== */

.primary-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14.5px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item.is-open > .nav-link {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.nav-cta {
    background: var(--blue-500);
    color: var(--white);
}

.nav-cta:hover {
    background: var(--blue-400);
    color: var(--white);
}

/* Caret */
.caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-top: 2px;
    transition: transform var(--transition);
}

.nav-item:hover .caret,
.nav-item.is-open .caret {
    transform: rotate(180deg);
}

/* ==========================================================================
   Dropdowns (single column)
   ========================================================================== */

.dropdown {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 250px;
    background: var(--white);
    color: var(--text);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav-item.has-dropdown:hover > .dropdown,
.nav-item.has-dropdown.is-open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    list-style: none;
}

.dropdown a {
    display: block;
    padding: 10px 14px;
    color: var(--text);
    font-size: 14px;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}

.dropdown a:hover {
    background: var(--blue-50);
    color: var(--blue-700);
}

/* Make first dropdown align under link nicely (CTA / left nav items) */
.nav-item.has-dropdown:first-child .dropdown {
    right: auto;
    left: 0;
}

/* ==========================================================================
   Mega Menu (multi-column with group headings)
   ========================================================================== */

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    color: var(--text);
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-width: 640px;
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav-item.has-mega:hover > .mega-menu,
.nav-item.has-mega.is-open > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Solutions has only 2 cols */
.nav-item.has-mega:nth-child(3) .mega-menu,
.nav-item.has-mega:nth-child(4) .mega-menu {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    min-width: 520px;
}

.mega-col h4 {
    margin: 0 0 12px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--blue-700);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--blue-100);
}

.mega-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-col li + li {
    margin-top: 2px;
}

.mega-col a {
    display: block;
    padding: 8px 10px;
    color: var(--text);
    font-size: 14px;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition), padding var(--transition);
}

.mega-col a:hover {
    background: var(--blue-50);
    color: var(--blue-700);
    padding-left: 14px;
}

/* ==========================================================================
   Mobile Toggle
   ========================================================================== */

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

/* ==========================================================================
   Hero (sample content)
   ========================================================================== */

.page {
    min-height: 60vh;
}

.hero {
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(30, 111, 219, 0.18), transparent 60%),
        radial-gradient(800px 400px at 0% 0%, rgba(17, 74, 153, 0.12), transparent 60%),
        var(--blue-50);
    padding: 96px 24px;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
    margin: 0 0 18px;
    color: var(--blue-900);
    letter-spacing: -0.5px;
}

.hero p {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(21, 92, 194, 0.35);
}

.btn-primary:hover {
    background: var(--blue-500);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(21, 92, 194, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--blue-700);
    border: 2px solid var(--blue-600);
}

.btn-outline:hover {
    background: var(--blue-600);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
    .nav-link {
        padding: 9px 10px;
        font-size: 14px;
    }
    .header-inner {
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--blue-800);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        display: none;
        padding: 12px 0 24px;
        box-shadow: var(--shadow-lg);
    }

    .primary-nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 16px;
    }

    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 14px 12px;
        border-radius: 0;
        font-size: 15px;
    }

    .nav-link:hover,
    .nav-item:hover > .nav-link {
        background: rgba(255, 255, 255, 0.06);
    }

    .nav-cta {
        background: transparent;
    }

    /* Mobile: dropdowns become inline accordions */
    .dropdown,
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: hidden;
        transform: none;
        background: rgba(0, 0, 0, 0.18);
        color: var(--white);
        border: none;
        box-shadow: none;
        border-radius: 0;
        min-width: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        display: block;
        transition: max-height var(--transition), padding var(--transition), visibility var(--transition);
    }

    .nav-item.has-mega .mega-menu {
        grid-template-columns: 1fr !important;
    }

    .nav-item.is-open > .dropdown,
    .nav-item.is-open > .mega-menu {
        visibility: visible;
        max-height: 1200px;
        padding: 8px 0;
    }

    .dropdown a,
    .mega-col a {
        color: rgba(255, 255, 255, 0.88);
        padding: 11px 24px;
        border-radius: 0;
        font-size: 14px;
    }

    .dropdown a:hover,
    .mega-col a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: var(--white);
        padding-left: 28px;
    }

    .mega-col {
        padding: 6px 0;
    }

    .mega-col h4 {
        color: var(--blue-300);
        padding: 10px 24px 6px;
        margin: 0;
        border-bottom: none;
    }

    .nav-item:hover .caret,
    .nav-item.is-open .caret {
        transform: rotate(180deg);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 64px 18px;
    }
    .header-inner {
        padding: 0 16px;
    }
}
