/* Compact global header + footer shell for the lean site architecture. */

.etgc-header,
.etgc-footer,
.etgc-mobile-menu,
.etgc-header *,
.etgc-footer *,
.etgc-mobile-menu * {
    box-sizing: border-box;
}

.etgc-header {
    position: sticky;
    top: 0;
    z-index: 5000;
    width: 100%;
    background: linear-gradient(110deg, #232477 0%, #43188b 55%, #5b0794 100%);
    box-shadow: 0 6px 22px rgba(15, 23, 42, .18);
}

.etgc-header__inner {
    width: min(1600px, calc(100% - 30px));
    min-height: 86px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 10px 0;
}

.etgc-brand {
    display: inline-flex;
    flex-direction: column;
    min-width: 230px;
    text-decoration: none;
    line-height: 1;
}

.etgc-brand__name {
    font-weight: 900;
    font-size: 1.45rem;
    line-height: 1.02;
    letter-spacing: .02em;
    background: linear-gradient(135deg, #ff6b35, #ff9b21);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.etgc-brand__tagline {
    margin-top: 7px;
    color: #f7a45b;
    font-size: .66rem;
    letter-spacing: .18em;
    white-space: nowrap;
}

.etgc-nav {
    min-width: 0;
}

.etgc-nav__list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(2px, .35vw, 8px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.etgc-nav__item {
    position: relative;
    flex: 0 0 auto;
}

.etgc-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 8px clamp(7px, .55vw, 12px);
    border-radius: 7px;
    color: rgba(255,255,255,.92);
    text-decoration: none;
    font-size: clamp(.76rem, .72vw, .92rem);
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.etgc-nav__link:hover,
.etgc-nav__link:focus-visible {
    background: rgba(255,255,255,.09);
    color: #fff;
}

.etgc-nav__link.is-active {
    color: #ff8a43;
    background: rgba(255,107,53,.13);
    box-shadow: inset 0 -2px 0 #ff6b35;
}

.etgc-nav__caret {
    font-size: .85em;
    opacity: .7;
}

.etgc-nav__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    display: none;
    padding: 8px;
    border: 1px solid rgba(15,23,42,.1);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15,23,42,.22);
    z-index: 5100;
}

.etgc-nav__dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 12px;
}

.etgc-nav__dropdown a {
    display: block;
    padding: 10px 11px;
    border-radius: 7px;
    color: #23333c;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 650;
}

.etgc-nav__dropdown a:hover,
.etgc-nav__dropdown a:focus-visible {
    background: #f5f7fb;
    color: #c24d1c;
}

.etgc-nav__item--dropdown:hover .etgc-nav__dropdown,
.etgc-nav__item--dropdown:focus-within .etgc-nav__dropdown {
    display: block;
}

.etgc-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.etgc-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 7px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    font-size: .86rem;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.etgc-action:hover { transform: translateY(-1px); }
.etgc-action--give { color: #fff; background: linear-gradient(135deg, #ff6b35, #ef4e23); box-shadow: 0 7px 18px rgba(239,78,35,.22); }
.etgc-action--login { color: #2c3760; background: #e2bd3c; border-color: rgba(255,255,255,.28); }
.etgc-action--secondary { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }

.etgc-account { position: relative; }
.etgc-account__button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255,255,255,.38);
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #d4af37);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}
.etgc-account__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 210px;
    display: none;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 42px rgba(15,23,42,.22);
    z-index: 5200;
}
.etgc-account__menu.is-open { display: block; }
.etgc-account__summary { padding: 13px 14px; background: #f7f8fb; border-bottom: 1px solid #eceff3; }
.etgc-account__summary strong,
.etgc-account__summary span { display: block; }
.etgc-account__summary strong { color: #172033; font-size: .9rem; }
.etgc-account__summary span { margin-top: 3px; color: #697386; font-size: .76rem; }
.etgc-account__menu a { display: block; padding: 10px 14px; color: #2d3748; text-decoration: none; font-size: .84rem; }
.etgc-account__menu a:hover { background: #f7f8fb; }
.etgc-account__menu .etgc-account__logout { color: #a52b21; border-top: 1px solid #eceff3; font-weight: 750; }

.etgc-menu-toggle {
    display: none;
    width: 42px;
    height: 40px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 7px;
    background: rgba(255,255,255,.06);
    cursor: pointer;
}
.etgc-menu-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; border-radius: 2px; background: #fff; }

.etgc-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: none;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(145deg, #222474, #4c0a84);
    color: #fff;
}
.etgc-mobile-menu.is-open { display: block; }
.etgc-mobile-menu__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.15); }
.etgc-mobile-menu__top strong,
.etgc-mobile-menu__top small { display: block; }
.etgc-mobile-menu__top strong { color: #ff8b42; font-size: 1rem; }
.etgc-mobile-menu__top small { margin-top: 4px; color: #f0b167; font-size: .7rem; letter-spacing: .1em; }
.etgc-mobile-menu__close { width: 40px; height: 40px; border: 0; background: rgba(255,255,255,.08); border-radius: 50%; color: #fff; font-size: 1.6rem; cursor: pointer; }
.etgc-mobile-menu__nav { display: grid; gap: 5px; margin-top: 18px; }
.etgc-mobile-menu__nav > a,
.etgc-mobile-group > summary { display: block; padding: 12px 10px; border-radius: 7px; color: #fff; text-decoration: none; font-weight: 750; cursor: pointer; }
.etgc-mobile-menu__nav > a.is-active,
.etgc-mobile-menu__nav > a:hover,
.etgc-mobile-group > summary:hover { background: rgba(255,255,255,.08); color: #ffad78; }
.etgc-mobile-group { border-bottom: 1px solid rgba(255,255,255,.08); }
.etgc-mobile-group > summary { list-style: none; }
.etgc-mobile-group > summary::-webkit-details-marker { display: none; }
.etgc-mobile-group__links { display: grid; gap: 2px; padding: 0 0 9px 14px; }
.etgc-mobile-group__links a { padding: 9px 10px; border-radius: 6px; color: rgba(255,255,255,.78); text-decoration: none; font-size: .9rem; }
.etgc-mobile-group__links a:hover { background: rgba(255,255,255,.06); color: #fff; }
.etgc-mobile-menu__actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); }

.etgc-footer {
    background: #171c35;
    color: rgba(255,255,255,.78);
    border-top: 3px solid #d4af37;
}
.etgc-footer__inner { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 16px; }
.etgc-footer__grid { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 36px; align-items: start; }
.etgc-footer__brand h2 { margin: 0; color: #ff7b3b; font-size: 1.05rem; letter-spacing: .06em; }
.etgc-footer__tagline { margin: 8px 0 0; color: #fff; font-weight: 700; font-size: .95rem; }
.etgc-footer__intro { max-width: 540px; margin: 8px 0 0; font-size: .85rem; line-height: 1.55; }
.etgc-footer__contact-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 13px; font-size: .82rem; }
.etgc-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.etgc-footer a:hover { color: #ff9a64; }
.etgc-footer__column h3 { margin: 0 0 10px; color: #e6c45a; font-size: .9rem; }
.etgc-footer__links { display: grid; gap: 7px; }
.etgc-footer__links a { font-size: .82rem; line-height: 1.25; }
.etgc-footer__social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.09); }
.etgc-footer__social a { font-size: .78rem; font-weight: 700; }
.etgc-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 15px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.55); font-size: .74rem; }
.etgc-footer__verse { text-align: right; font-style: italic; }

.etgc-back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 4500;
    width: 40px;
    height: 40px;
    display: none;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #2a2d72;
    color: #fff;
    box-shadow: 0 8px 22px rgba(15,23,42,.2);
    cursor: pointer;
}
.etgc-back-to-top.is-visible { display: grid; }

body.etgc-menu-open { overflow: hidden; }

@media (max-width: 1320px) {
    .etgc-nav { display: none; }
    .etgc-menu-toggle { display: block; }
    .etgc-header__inner { grid-template-columns: auto 1fr auto; min-height: 78px; }
    .etgc-header__actions { grid-column: 3; }
}

@media (max-width: 760px) {
    .etgc-header__inner { width: min(100% - 20px, 1600px); min-height: 70px; gap: 10px; }
    .etgc-brand { min-width: 0; }
    .etgc-brand__name { font-size: 1rem; }
    .etgc-brand__tagline { font-size: .5rem; letter-spacing: .1em; }
    .etgc-header__actions > .etgc-action { display: none; }
    .etgc-account__button { width: 36px; height: 36px; }
    .etgc-footer__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
    .etgc-footer__brand { grid-column: 1 / -1; }
    .etgc-footer__bottom { align-items: flex-start; flex-direction: column; gap: 7px; }
    .etgc-footer__verse { text-align: left; }
}

@media (max-width: 520px) {
    .etgc-mobile-menu__actions { grid-template-columns: 1fr; }
    .etgc-footer__inner { width: min(100% - 28px, 1240px); padding-top: 28px; }
    .etgc-footer__grid { grid-template-columns: 1fr; gap: 20px; }
    .etgc-footer__brand { grid-column: auto; }
    .etgc-footer__social { gap: 11px; }
}
