/**
 * DEL Conference 2026 - Main Stylesheet
 * Faithful replica of delconference.org/2026/
 *
 * Design tokens from reference:
 * - Font: Arial, Helvetica, sans-serif
 * - Primary red: #ed1c24
 * - Text: #272626
 * - Background: #ffffff
 * - Dark bg: #121212
 * - Light gray bg: #f4f5f7
 * - Header bottom: #dee2e6
 * - Link hover: #ed1c27
 * - Container max: 1170px
 */

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #272626;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #272626;
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #ed1c27;
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #272626;
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
    margin-bottom: 1em;
}

sup {
    font-size: 0.7em;
    vertical-align: super;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.del-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.del-container-narrow {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* ==========================================================================
   HEADER - Single row: logo left, nav right
   Reference: delconference.org/2026/ header
   ========================================================================== */

#del-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ed1c24;
}

.del-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1170px;
    margin: 0 auto;
    padding: 10px 15px;
    min-height: 70px;
}

.del-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.del-logo img {
    width: 120px;
    height: auto;
    margin: 8px 0;
}

.del-logo-text {
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 2px;
    text-decoration: none;
    border: 3px solid #ffffff;
    padding: 4px 10px;
    line-height: 1;
}

.del-logo-text:hover {
    color: #ffffff;
}

/* Nav area - right side */
.del-nav-area {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Search icon */
.del-search-toggle {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.del-search-toggle:hover {
    background-color: rgba(0, 0, 0, 0.15);
}

/* Search overlay */
.del-search-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    padding: 15px;
}

.del-search-overlay.active {
    display: block;
}

.del-search-form-wrap {
    display: flex;
    align-items: center;
    max-width: 1170px;
    margin: 0 auto;
    gap: 10px;
}

.del-search-form-wrap form {
    display: flex;
    flex: 1;
    gap: 8px;
}

.del-search-form-wrap input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    outline: none;
}

.del-search-form-wrap input[type="search"]:focus {
    border-color: #ed1c24;
}

.del-search-form-wrap button[type="submit"] {
    padding: 10px 20px;
    background-color: #32373c;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

.del-search-form-wrap button[type="submit"]:hover {
    background-color: #1a1d20;
}

.del-search-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #272626;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.del-search-close:hover {
    color: #ed1c24;
}

/* ==========================================================================
   NAVIGATION - DESKTOP
   ========================================================================== */

.del-nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.del-menu-item {
    position: relative;
}

.del-menu-item > a {
    display: block;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.del-menu-item > a:hover,
.del-menu-item > a:focus,
.del-menu-item.current-menu-item > a,
.del-menu-item.current-menu-parent > a {
    color: #ffffff;
}

.del-menu-arrow {
    display: inline-flex;
    align-items: center;
    width: 8px;
    height: 8px;
    margin-left: 4px;
}

.del-menu-arrow svg {
    width: 8px;
    height: 8px;
}

/* Dropdown submenu */
.del-sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ed1c24;
    min-width: 280px;
    z-index: 1001;
}

@media screen and (min-width: 961px) {
    .del-menu-item:hover > .del-sub-menu {
        display: block;
    }
}

.del-sub-menu .del-menu-item > a {
    color: #ffffff;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
}

.del-sub-menu .del-menu-item > a:hover {
    color: #000000;
}

/* ==========================================================================
   MOBILE NAVIGATION - Hamburger button (visible on mobile only)
   ========================================================================== */

.del-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #ffffff;
}

.del-hamburger {
    display: block;
    width: 26px;
    height: 2px;
    background: #ffffff;
    position: relative;
    transition: background 0.3s ease;
}

.del-hamburger::before,
.del-hamburger::after {
    content: '';
    display: block;
    width: 26px;
    height: 2px;
    background: #ffffff;
    position: absolute;
    transition: transform 0.3s ease;
}

.del-hamburger::before { top: -7px; }
.del-hamburger::after { top: 7px; }

/* ==========================================================================
   MOBILE MENU PANEL - White overlay matching DEL reference
   ========================================================================== */

.del-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 2000;
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
}

.del-mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.del-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1999;
}

.del-mobile-overlay.active {
    display: block;
}

/* Close button - X in top right */
.del-mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px 10px;
}

.del-mobile-close {
    background: none;
    border: 2px solid #272626;
    color: #272626;
    font-size: 24px;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.del-mobile-close:hover {
    border-color: #ed1c24;
    color: #ed1c24;
}

/* Mobile nav list */
.del-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 10px 0 30px;
}

.del-mobile-nav-list > .del-menu-item {
    position: relative;
}

.del-mobile-nav-list > .del-menu-item > a {
    display: block;
    padding: 18px 60px 18px 25px;
    color: #272626;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.del-mobile-nav-list > .del-menu-item > a:hover {
    color: #ed1c24;
}

/* Hide the arrow from walker in mobile menu */
.del-mobile-nav-list .del-menu-arrow {
    display: none;
}

/* Chevron toggle button */
.del-mobile-chevron {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #272626;
    transition: transform 0.3s ease;
}

.del-mobile-chevron svg {
    transition: transform 0.3s ease;
}

.del-menu-item.submenu-open > .del-mobile-chevron svg {
    transform: rotate(180deg);
}

/* Mobile submenu - accordion style with red left border */
.del-mobile-nav-list .del-sub-menu {
    display: none;
    position: static;
    box-shadow: none;
    border-top: none;
    background-color: #ffffff;
    min-width: auto;
    margin: 0 0 0 25px;
    padding: 5px 0;
}

.del-menu-item.submenu-open > .del-sub-menu {
    display: block;
}

.del-mobile-nav-list .del-sub-menu .del-menu-item > a {
    display: block;
    padding: 14px 20px;
    color: #272626;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border-bottom: none;
}

.del-mobile-nav-list .del-sub-menu .del-menu-item > a:hover {
    color: #ed1c24;
    background-color: transparent;
}

/* ==========================================================================
   HOMEPAGE - Two column layout (image left, content right)
   ========================================================================== */

.del-homepage {
    padding: 40px 20px;
    max-width: 100%;
    overflow: hidden;
}

.del-home-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 500px;
    max-width: 100%;
}

.del-home-image {
    position: relative;
}

.del-home-image img {
    width: 100%;
    height: auto;
    display: block;
}

.del-hero-caption {
    padding: 10px 15px;
    font-size: .9em;
    opacity: .75;
    font-style: normal;
    line-height: 1.5;
}

.del-hero-placeholder {
    background: #dee2e6;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    padding: 20px;
}

.del-home-content {
    padding: 30px 40px 30px 30px;
}

.del-home-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.del-home-content p {
    margin-bottom: 2em;
    line-height: 1.7;
    font-size: 16px;
}

/* Translate link - inline with globe icon, below title */
.del-translate-inline {
    margin-bottom: 20px;
    font-size: 14px;
}

.del-translate-inline a {
    color: #272626;
    text-decoration: underline;
}

.del-translate-inline a:hover {
    color: #ed1c27;
}

.del-globe-icon {
    margin-right: 4px;
    font-size: 14px;
}

/* CTA Grid - 2x2 on desktop, matching original */
.del-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 20px;
}

/* ==========================================================================
   BUTTONS / CTAs
   ========================================================================== */

.del-btn {
    display: inline-block;
    padding: 12px 20px;
    background-color: #32373c;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    line-height: 1.4;
    text-align: center;
}

.del-btn:hover,
.del-btn:focus {
    background-color: #1a1d20;
    color: #ffffff;
    text-decoration: none;
}

.del-btn-outline {
    background-color: transparent;
    border: 2px solid #32373c;
    color: #32373c;
}

.del-btn-outline:hover {
    background-color: #32373c;
    color: #ffffff;
}

/* ==========================================================================
   CONTENT SECTIONS - Internal pages
   ========================================================================== */

.del-content {
    padding: 40px 0;
}

.del-content h1 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.del-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    margin-top: 30px;
}

.del-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    margin-top: 25px;
}

.del-content p {
    margin-bottom: 1em;
    line-height: 1.7;
}

.del-content ul,
.del-content ol {
    margin-bottom: 1em;
    padding-left: 20px;
}

.del-content ul {
    list-style: disc;
}

.del-content ol {
    list-style: decimal;
}

.del-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.del-content em {
    font-style: italic;
}

.del-content strong {
    font-weight: 700;
}

.del-content a {
    color: #272626;
    text-decoration: underline;
}

.del-content a:hover {
    color: #ed1c27;
}

/* ==========================================================================
   PAGE TEMPLATES
   ========================================================================== */

.del-page-header {
    padding: 30px 0 10px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 30px;
}

.del-page-header h1 {
    font-size: 36px;
    font-weight: 700;
}

/* ==========================================================================
   PARTNERS / LOGOS SECTION
   ========================================================================== */

.del-partners {
    padding: 40px 0;
    background-color: #f4f5f7;
}

.del-partners-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    overflow: hidden;
}

.del-partners-left {
    flex-shrink: 0;
}

.del-partners-left img {
    height: 60px;
    width: auto;
}

.del-partners-right {
    display: flex;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
    min-width: 0;
}

.del-partners-right img {
    width: 124.4px;
    max-width: 100%;
    height: auto;
}

.del-partner-placeholder {
    font-size: 12px;
    color: #999;
    padding: 10px;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

#del-footer {
    background-color: #121212;
    color: #ffffff;
    padding: 30px 0 25px;
}

/* Social icons - centered row with colored circles */
#del-footer .del-footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-bottom: 20px;
}

.del-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.del-social-icon:hover {
    opacity: 0.8;
    color: #ffffff;
}

.del-social-icon svg {
    width: 18px;
    height: 18px;
}

/* Brand colors for each social icon */
.del-social-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.del-social-linkedin {
    background-color: #0077b5;
}

.del-social-vimeo {
    background-color: #1ab7ea;
}

.del-social-email {
    background-color: #666666;
}

/* Footer bottom text */
.del-footer-bottom {
    padding-top: 15px;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
}

.del-footer-bottom p {
    margin-bottom: 0;
}

.del-footer-bottom a {
    color: #ffffff;
    text-decoration: underline;
}

.del-footer-bottom a:hover {
    color: #ffffff;
    opacity: .9;
}

.del-footer-links a:hover {
    color: #ffffff;
}

/* ==========================================================================
   REGISTRATION PAGE
   ========================================================================== */

.del-registration {
    padding: 40px 0 60px;
}

.del-registration h1 {
    margin-bottom: 20px;
}

.del-registration .gform_wrapper {
    margin-top: 20px;
}

.del-registration .gform_wrapper input[type="text"],
.del-registration .gform_wrapper input[type="email"],
.del-registration .gform_wrapper select,
.del-registration .gform_wrapper textarea {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    width: 100%;
}

.del-registration .gform_wrapper input[type="text"]:focus,
.del-registration .gform_wrapper input[type="email"]:focus,
.del-registration .gform_wrapper select:focus,
.del-registration .gform_wrapper textarea:focus {
    border-color: #ed1c24;
    outline: none;
    box-shadow: 0 0 0 2px rgba(237, 28, 36, 0.15);
}

.del-registration .gform_wrapper .gform_button {
    background-color: #32373c;
    color: #ffffff;
    border: none;
    padding: 13px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

.del-registration .gform_wrapper .gform_button:hover {
    background-color: #1a1d20;
}

/* Hide the LAC discount product field - it only affects the total calculation */
.gf-lac-discount-hidden {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 960px) {
    /* Show hamburger, hide desktop nav */
    .del-menu-toggle {
        display: block;
    }

    .del-nav-area {
        display: none;
    }

    #del-header {
        position: relative;
    }

    .del-header-inner {
        min-height: 56px;
        padding: 6px 15px;
    }

    /* Homepage: stack columns on tablet */
    .del-home-layout {
        grid-template-columns: 1fr;
    }

    .del-home-content {
        padding: 30px 20px;
    }

    .del-cta-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Content adjustments */
    .del-content h1 {
        font-size: 30px;
    }

    .del-content h2 {
        font-size: 24px;
    }

    .del-partners-layout {
        flex-direction: column;
        gap: 25px;
        padding: 0 20px;
    }

    .del-footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 15px;
    }

    .del-logo-text {
        font-size: 22px;
    }

    .del-home-content {
        padding: 20px 15px;
    }

    .del-home-content h1 {
        font-size: 28px;
    }

    .del-cta-grid {
        grid-template-columns: 1fr;
    }

    .del-content {
        padding: 25px 0;
    }

    .del-content h1 {
        font-size: 26px;
    }

    .del-partners-grid img {
        height: 35px;
    }

    .del-btn {
        font-size: 14px;
        padding: 11px 16px;
    }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   THIRD PARTY FIXES
   ========================================================================== */

.trp-floating-switcher {
    max-width: calc(100vw - 20px) !important;
}

/* WordPress admin bar overflow fix on mobile */
#wpadminbar {
    overflow: hidden !important;
}

/* Prevent iOS rubber-band horizontal bounce */
html {
    overscroll-behavior-x: none;
}
