/* =========================================================
   HUMANWISH — Modern Premium Design System v3.0
   ========================================================= */

/* --- CSS Variables --- */
:root {
    --hw-green:        #1a6b3a;
    --hw-green-light:  #2d9156;
    --hw-green-pale:   #e8f5ec;
    --hw-gold:         #f5a623;
    --hw-gold-light:   #ffc658;
    --hw-navy:         #0b2545;
    --hw-navy-light:   #1a3a5c;

    --bg-body:   #f4f7f4;
    --bg-white:  #ffffff;
    --bg-gray:   #f0f4f0;
    --border:    rgba(0,0,0,0.07);

    --text-dark:   #0f1f0f;
    --text-mid:    #374937;
    --text-muted:  #6b7f6b;
    --text-light:  #a0b0a0;

    --font-head: 'Outfit', 'Quicksand', sans-serif;
    --font-body: 'Inter', 'Quicksand', sans-serif;

    --r-sm:   6px;
    --r-md:   14px;
    --r-lg:   22px;
    --r-xl:   32px;
    --r-pill: 999px;

    --shadow-xs:    0 1px 3px rgba(0,0,0,.05);
    --shadow-sm:    0 2px 8px rgba(0,0,0,.07);
    --shadow-md:    0 6px 20px rgba(0,0,0,.09);
    --shadow-lg:    0 12px 40px rgba(0,0,0,.12);
    --shadow-green: 0 8px 28px rgba(26,107,58,.22);

    --t-fast: 0.18s ease;
    --t-mid:  0.3s ease;
    --t-slow: 0.5s ease;
}

/* =========================================================
   GLOBAL RESETS
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6,.font-heading {
    font-family: var(--font-head) !important;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -.02em;
}

a {
    color: var(--hw-green);
    text-decoration: none;
    transition: color var(--t-fast);
}
a:hover { color: var(--hw-green-light); }

/* =========================================================
   HEADER — PREMIUM SINGLE-ROW DESIGN
   Logo LEFT  |  Nav + Buttons RIGHT  |  Mobile Responsive
   ========================================================= */

/* Outer wrapper */
.hw-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: linear-gradient(135deg, #0b2545 0%, #1a6b3a 100%);
    box-shadow: 0 4px 30px rgba(0,0,0,.25);
    transition: box-shadow var(--t-mid), background var(--t-mid);
}
.hw-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(8px);
    pointer-events: none;
}
.hw-header.scrolled {
    background: rgba(11,37,69,.97);
    box-shadow: 0 6px 40px rgba(0,0,0,.35);
}

/* Inner flex row */
.hw-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
    padding: 10px 0;
    position: relative;
    z-index: 1;
}

/* ---- LOGO ---- */
.hw-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.hw-logo img {
    height: 64px;
    width: auto;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 0;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,.45)) brightness(1.08);
    transition: transform var(--t-mid), filter var(--t-mid);
}
.hw-logo img:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 4px 16px rgba(245,166,35,.5)) brightness(1.12);
}
.hw-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.hw-logo-text strong {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.3px;
}
.hw-logo-text span {
    font-size: 11px;
    font-weight: 500;
    color: var(--hw-gold);
    letter-spacing: .8px;
    text-transform: uppercase;
}

/* ---- DESKTOP NAV ---- */
.hw-desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
}

/* Nav list */
.hw-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

/* Nav items */
.hw-nav > li { position: relative; }

.hw-nav > li > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    color: rgba(255,255,255,.9) !important;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-head);
    white-space: nowrap;
    border-radius: var(--r-sm);
    transition: all var(--t-fast);
    text-decoration: none;
    cursor: pointer;
    letter-spacing: .2px;
}

.hw-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: var(--hw-gold);
    border-radius: 2px;
    transition: transform var(--t-fast);
}

.hw-nav > li > a:hover,
.hw-nav > li:hover > a {
    color: #fff !important;
    background: rgba(255,255,255,.12);
}
.hw-nav > li > a:hover::after,
.hw-nav > li:hover > a::after {
    transform: translateX(-50%) scaleX(1);
}

.hw-nav > li > a i.fa-angle-down {
    font-size: 11px;
    transition: transform var(--t-fast);
    opacity: .75;
}
.hw-nav > li:hover > a i.fa-angle-down {
    transform: rotate(180deg);
    opacity: 1;
}

/* ---- DROPDOWN ---- */
.hw-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: var(--r-md);
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    border: 1px solid rgba(26,107,58,.1);
    list-style: none;
    padding: 8px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.97);
    transition: all var(--t-fast);
    z-index: 300;
}
.hw-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(26,107,58,.1);
    border-top: 1px solid rgba(26,107,58,.1);
    transform: rotate(45deg);
}
.hw-nav > li:hover > .hw-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.hw-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--r-sm);
    color: var(--text-mid) !important;
    font-size: 13.5px;
    font-weight: 500;
    font-family: var(--font-body);
    transition: all var(--t-fast);
    text-decoration: none;
}
.hw-dropdown li a:hover {
    background: var(--hw-green-pale);
    color: var(--hw-green) !important;
    padding-left: 20px;
}
.hw-dropdown li a i {
    color: var(--hw-green);
    font-size: 13px;
    width: 16px;
    flex-shrink: 0;
}
.hw-dropdown li + li { border-top: 1px solid #f5f5f5; }

/* ---- AUTH BUTTONS ---- */
.hw-nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    padding-left: 14px;
    border-left: 1px solid rgba(255,255,255,.2);
}

.btn-hw-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,.55);
    border-radius: var(--r-pill);
    padding: 9px 22px;
    font-weight: 600;
    font-family: var(--font-head);
    font-size: 13px;
    transition: all var(--t-fast);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: .3px;
}
.btn-hw-outline:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.9);
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-hw-solid {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--hw-gold) 0%, var(--hw-gold-light) 100%);
    color: var(--hw-navy) !important;
    border: none;
    border-radius: var(--r-pill);
    padding: 10px 22px;
    font-weight: 700;
    font-family: var(--font-head);
    font-size: 13px;
    transition: all var(--t-fast);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: .3px;
    box-shadow: 0 4px 16px rgba(245,166,35,.4), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-hw-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245,166,35,.55);
    color: var(--hw-navy) !important;
}

/* ---- BURGER ---- */
.hw-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,255,255,.25);
    border-radius: var(--r-sm);
    padding: 0;
    z-index: 1100;
    flex-shrink: 0;
    transition: background var(--t-fast);
}
.hw-burger:hover { background: rgba(255,255,255,.2); }
.hw-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--t-mid);
    transform-origin: center;
}
.hw-burger.open { background: rgba(245,166,35,.2); border-color: var(--hw-gold); }
.hw-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hw-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hw-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   MOBILE PANEL
   ========================================================= */
.hw-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11,37,69,.6);
    z-index: 1999;
    backdrop-filter: blur(6px);
}
.hw-mobile-panel {
    position: fixed;
    top: 0; right: 0;
    width: 300px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    box-shadow: -8px 0 50px rgba(0,0,0,.2);
    transform: translateX(100%);
    transition: transform var(--t-mid);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.hw-mobile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, #0b2545, #1a6b3a);
    flex-shrink: 0;
}
.hw-mobile-panel-head img {
    height: 52px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)) brightness(1.1);
}
.hw-mobile-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all var(--t-fast);
}
.hw-mobile-close:hover { background: rgba(255,255,255,.3); }

.hw-mobile-nav { padding: 12px; flex: 1; }
.hw-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.hw-mobile-nav > ul > li > a,
.hw-mob-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 13px 16px;
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 14.5px;
    font-family: var(--font-head);
    border-bottom: 1px solid #f2f2f2;
    border-radius: var(--r-sm);
    transition: all var(--t-fast);
    text-decoration: none;
    cursor: pointer;
    justify-content: space-between;
}
/* Icon + text tightly grouped */
.hw-mobile-nav > ul > li > a .hw-mob-label,
.hw-mob-toggle > .hw-mob-label {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hw-mobile-nav > ul > li > a .hw-mob-label i,
.hw-mob-toggle .hw-mob-label i { color: var(--hw-green); font-size: 15px; width: 18px; text-align: center; }
.hw-mobile-nav > ul > li > a:hover,
.hw-mob-toggle:hover { background: var(--hw-green-pale); color: var(--hw-green) !important; }
.hw-mob-arrow { transition: transform var(--t-fast); font-size: 12px; color: var(--text-muted); }
.hw-mob-sub {
    list-style: none; padding: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
    margin: 0 0 0 16px;
    border-left: 2px solid var(--hw-green-pale);
    padding-left: 8px;
}
.hw-mob-sub li a {
    display: block;
    padding: 10px 14px;
    color: var(--text-mid) !important;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: all var(--t-fast);
    text-decoration: none;
}
.hw-mob-sub li a:hover { background: var(--hw-green-pale); color: var(--hw-green) !important; }

.hw-mobile-auth {
    padding: 16px 20px;
    display: flex; flex-direction: column; gap: 10px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.btn-hw-solid-green {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, var(--hw-green), var(--hw-green-light));
    color: #fff !important;
    border: none; border-radius: var(--r-pill);
    padding: 12px 24px; font-weight: 700;
    font-family: var(--font-head); font-size: 13.5px;
    transition: all var(--t-mid); text-decoration: none; width: 100%;
    box-shadow: 0 4px 14px rgba(26,107,58,.3);
}
.btn-hw-solid-green:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,107,58,.4); color: #fff !important; }

.hw-mobile-follow { padding: 0 20px 24px; flex-shrink: 0; }
.hw-mobile-follow h6 {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--text-muted); margin-bottom: 12px;
}
.hw-social-icons { display: flex; gap: 10px; }
.hw-social-icons a {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg-gray);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-mid); font-size: 15px;
    transition: all var(--t-fast); text-decoration: none;
}
.hw-social-icons a:hover { background: var(--hw-green); color: #fff; transform: translateY(-3px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .hw-nav > li > a { padding: 10px 10px; font-size: 13px; }
    .btn-hw-outline, .btn-hw-solid { padding: 8px 16px; font-size: 12.5px; }
}
@media (max-width: 900px) {
    .hw-desktop-nav { display: none !important; }
    .hw-burger { display: flex !important; }
}
@media (max-width: 480px) {
    .hw-logo img { height: 46px; }
    .hw-logo-text strong { font-size: 17px; }
    .hw-header-row { min-height: 64px; }
}

/* =========================================================
   CARDS
   ========================================================= */
.modern-card {
    background: var(--bg-white);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--t-mid);
}
.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-green);
    border-color: rgba(26,107,58,.12);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer.main {
    background: var(--hw-navy) !important;
    color: rgba(255,255,255,.85);
    border-top: none;
}
footer.main .widget-title {
    color: #fff !important;
    font-size: 16px;
    font-family: var(--font-head);
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}
footer.main .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 36px; height: 3px;
    background: var(--hw-gold);
    border-radius: 2px;
}
footer.main .footer-list li { margin-bottom: 8px; }
footer.main .footer-list li a {
    color: rgba(255,255,255,.65) !important;
    font-size: 14px; font-weight: 500;
    transition: all var(--t-fast);
    display: inline-flex; align-items: center; gap: 6px;
}
footer.main .footer-list li a:hover { color: var(--hw-gold) !important; padding-left: 5px; }
footer.main .contact-infor li {
    display: flex; align-items: flex-start; gap: 10px;
    color: rgba(255,255,255,.75); font-size: 13.5px; margin-bottom: 12px;
}
footer.main .widget-about .logo img { filter: brightness(0) invert(1); height: 55px; }
.hw-footer-bottom {
    background: rgba(0,0,0,.25);
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,.5);
    border-top: 1px solid rgba(255,255,255,.08);
}
.hw-footer-bottom a { color: var(--hw-gold); }
.hw-footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.hw-footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7); font-size: 16px;
    transition: all var(--t-fast);
}
.hw-footer-social a:hover {
    background: var(--hw-gold); border-color: var(--hw-gold);
    color: var(--hw-navy); transform: translateY(-3px);
}

/* =========================================================
   SECTIONS / UTILITIES
   ========================================================= */
.section-padding-modern { padding: 70px 0; }
.section-title-modern { text-align: center; margin-bottom: 48px; }
.section-title-modern h2 { font-size: 34px; color: var(--text-dark); }
.section-title-modern .hw-label {
    display: inline-block;
    background: var(--hw-green-pale); color: var(--hw-green);
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 4px 14px;
    border-radius: var(--r-pill); margin-bottom: 10px;
}
.glass-card {
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
}
.modern-input {
    border-radius: var(--r-sm);
    border: 1.5px solid #e2e8f0;
    padding: 12px 18px;
    background: var(--bg-gray);
    transition: all var(--t-fast);
    font-family: var(--font-body);
}
.modern-input:focus {
    border-color: var(--hw-green-light);
    box-shadow: 0 0 0 3px rgba(26,107,58,.12);
    background: #fff; outline: none;
}
.modern-badge {
    background: var(--hw-green-pale); color: var(--hw-green);
    padding: 4px 12px; border-radius: var(--r-pill);
    font-size: 12px; font-weight: 700;
    letter-spacing: .5px; text-transform: uppercase;
}
