/* === ETC static site — shared custom styles === */

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a2e;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Poppins', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

/* container utility */
.container-etc {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media (min-width: 1024px) {
    .container-etc { padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* section label pill */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #ff5a00;
}
.section-label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background-color: #ff5a00;
}
.section-label.section-label--on-dark { color: #ff5a00; }

/* Scroll-reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero / banner animations */
@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fade-in-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Underline accent on hero word */
.hero-underline {
    position: relative;
    display: inline-block;
}
.hero-underline > span {
    position: relative;
    z-index: 10;
}
.hero-underline::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 8px;
    background-color: rgba(255, 90, 0, 0.85);
    border-radius: 2px;
    z-index: 0;
}
@media (min-width: 1024px) {
    .hero-underline::after { height: 12px; }
}

/* Navbar — hover dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 16rem;
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.18), 0 6px 16px -6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 90, 150, 0.1);
    padding: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
    z-index: 60;
}
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 0.625rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: rgba(26, 26, 46, 0.85);
    text-decoration: none;
    transition: background-color 150ms, color 150ms;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
    background-color: #ff5a00;
    color: #ffffff;
    outline: none;
}
.nav-dropdown-menu a[aria-current="page"] {
    color: #ff5a00;
    font-weight: 600;
    background-color: rgba(255, 90, 0, 0.06);
}
.nav-dropdown-menu a[aria-current="page"]:hover {
    background-color: #ff5a00;
    color: #ffffff;
}
.nav-dropdown-trigger svg.chev {
    transition: transform 200ms ease;
}
.nav-dropdown.is-open .nav-dropdown-trigger svg.chev {
    transform: rotate(180deg);
}

/* Mobile sheet */
.mobile-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 240ms ease, visibility 240ms;
    z-index: 70;
}
.mobile-sheet-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}
.mobile-sheet {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 420px);
    background: #ffffff;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 80;
    overflow-y: auto;
}
.mobile-sheet.is-open { transform: translateX(0); }

/* Accordion */
.accordion-item + .accordion-item { border-top: 1px solid rgba(0, 0, 0, 0.06); }
.accordion-trigger {
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background-color 180ms;
}
@media (min-width: 640px) {
    .accordion-trigger { padding: 1.25rem 1.75rem; }
}
.accordion-trigger:hover { background-color: rgba(0, 90, 150, 0.03); }
.accordion-trigger .accordion-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1.0625rem;
    transition: color 180ms;
}
@media (min-width: 640px) {
    .accordion-trigger .accordion-title { font-size: 1.1875rem; }
}
.accordion-trigger:hover .accordion-title { color: #005a96; }
.accordion-trigger svg.chev {
    transition: transform 220ms ease;
    color: rgba(26, 26, 46, 0.5);
    flex-shrink: 0;
}
.accordion-item.is-open .accordion-trigger svg.chev { transform: rotate(180deg); }
.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.accordion-panel-inner {
    padding: 0.25rem 1.5rem 1.5rem;
}
@media (min-width: 640px) {
    .accordion-panel-inner { padding: 0.25rem 1.75rem 1.5rem; }
}

/* Buttons / cards micro-interactions */
.btn-lift { transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.btn-lift:hover { transform: translateY(-2px); }

/* Form fields */
.input-base {
    height: 3rem;
    width: 100%;
    border-radius: 0.375rem;
    background: #ffffff;
    border: 1px solid #cccccc;
    padding: 0 0.875rem;
    font-size: 0.95rem;
    color: #1a1a2e;
    transition: border-color 150ms, box-shadow 150ms;
}
.input-base::placeholder { color: rgba(26, 26, 46, 0.4); }
.input-base:focus {
    outline: none;
    border-color: #005a96;
    box-shadow: 0 0 0 3px rgba(0, 90, 150, 0.15);
}
.input-base.has-error {
    border-color: #dc2626;
}
.input-base.has-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}
textarea.input-base {
    height: auto;
    padding: 0.75rem 0.875rem;
    resize: vertical;
}

/* Map pin (Leaflet div icon) */
.etc-map-pin {
    background: transparent !important;
    border: 0 !important;
}

/* Hide elements until JS attaches (avoids flash) */
[data-pre-hidden] { visibility: hidden; }
[data-pre-hidden].is-ready { visibility: visible; }

/* Smooth-scroll offset for sticky nav */
:where(h1, h2, h3, section)[id] { scroll-margin-top: 7rem; }

/* drop-shadow util used in hero headlines */
.hero-text-shadow { text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15); }

/* Leaflet popup tweaks */
.leaflet-popup-content { margin: 12px 14px; font-family: 'Inter', sans-serif; }
.leaflet-container a.leaflet-popup-close-button { color: #1a1a2e; }
