/* Home & Design Portfolio - Custom Module Styles */

/* Hide default Divi header and footer - we use our custom modules */
#main-header,
#top-header,
#main-footer,
.et_slide_in_menu_container {
    display: none !important;
}

/* Remove extra space above content */
#page-container,
#et-main-area,
#main-content,
.et_pb_section:first-child,
.et_builder_inner_content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.hd-portfolio-theme,
body.hd-portfolio-theme #page-container,
body.hd-portfolio-theme #et-main-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Override Divi's header height placeholder */
body.hd-portfolio-theme.et_header_style_left #page-container,
body.hd-portfolio-theme.et_header_style_centered #page-container {
    padding-top: 0 !important;
}

/* Ensure our header shows at top */
.hd_portfolio_header {
    position: relative;
    z-index: 9999;
}

/* Main header elements should stack properly */
.hd-top-bar,
.hd-header,
.hd-nav,
.hd-search-filter-section {
    position: relative;
    z-index: 1;
}

/* Remove Divi default section padding on header section */
.et_pb_fullwidth_code .hd_portfolio_header,
.et_pb_section.et_pb_fullwidth_section:first-child {
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure fullwidth code allows search section to show */
.et_pb_fullwidth_code,
.et_pb_code_inner {
    overflow: visible !important;
}

:root {
    --hd-primary-dark: #1a1a1a;
    --hd-primary-gray: #666;
    --hd-light-gray: #f9f9f9;
    --hd-border-color: #e5e5e5;
    --hd-accent-purple: #29233b;
    --hd-accent-burgundy: #8b4953;
    --hd-white: #ffffff;
}

/* Global Font Styles - Georgia for body text, system fonts for UI */
body,
body.et_pb_pagebuilder_layout,
#et-main-area,
.et_pb_text,
.et_pb_text p,
.et_pb_module,
.et_pb_section,
.et_pb_row,
.et_pb_column {
    font-family: 'Georgia', 'Times New Roman', serif !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.et_pb_module_header,
body h1, body h2, body h3, body h4, body h5, body h6,
.et_pb_text h1, .et_pb_text h2, .et_pb_text h3,
.et_pb_text_inner h1, .et_pb_text_inner h2, .et_pb_text_inner h3 {
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

/* Designer card names - Georgia */
.hd-designer-name,
.hd-designer-card h3,
.hd-designer-card .hd-designer-name {
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

/* UI elements use Proxima Nova */
.hd-nav a,
.hd-search-input,
.hd-search-btn,
.hd-filter-header,
.hd-filter-option label,
.hd-sort-container label,
.hd-sort-select,
.hd-filter-select,
.hd-alpha-btn,
.hd-alpha-label,
.hd-designer-credentials,
.hd-designer-category,
.hd-back-link a,
.hd-footer-section a,
.hd-footer-section h3,
.hd-footer-bottom,
.hd-footer-bottom p,
.hd-designer-contact p,
.hd-clear-filters,
.hd-sticky-filter-btn,
.hd-tagline,
.hd-top-bar a,
.et_pb_button {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Optimize image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ========================================
   HEADER: H&D logo (left) | Portfolio (center) | social (right)
   ======================================== */
.hd-header {
    background: var(--hd-white);
    border-bottom: 1px solid var(--hd-border-color);
}

.hd-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.hd-header-left,
.hd-header-right {
    flex: 0 0 auto;
    min-width: 140px;
    padding-bottom: 4px;
}

.hd-header-left {
    text-align: left;
}

.hd-header-right {
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.hd-header-center {
    flex: 1;
    text-align: center;
}

.hd-brand-logo img {
    height: 28px;
}

.hd-logo-portfolio {
    height: auto;
    width: 240px;
    max-width: 100%;
}

/* Mobile-only logo row (below nav on non-designer pages) - hidden on desktop */
.hd-mobile-logo-row {
    display: none;
}

/* Back-link logo (for designer pages on mobile) - hidden on desktop */
.hd-back-link-logo {
    display: none;
}

.hd-social-links {
    display: flex;
    gap: 8px;
}

.hd-social-links a {
    width: 28px;
    height: 28px;
    background: var(--hd-accent-purple);
    color: var(--hd-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.hd-social-links a:hover {
    transform: translateY(-2px);
}

/* ========================================
   NAVIGATION
   ======================================== */
.hd-nav {
    background: var(--hd-accent-purple);
    padding: 0;
    position: relative;
    z-index: 100;
}

.hd-nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.hd-nav a {
    color: var(--hd-white);
    text-decoration: none;
    padding: 14px 24px;
    display: block;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.hd-nav a:hover {
    background: rgba(255,255,255,0.05);
}

/* ========================================
   SEARCH & FILTER SECTION (below nav)
   ======================================== */
.hd-search-filter-section {
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    padding: 25px 20px 10px;
    border-bottom: 1px solid #e5e5e5;
}

.hd-search-filter-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Search Row */
.hd-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.hd-search-row .hd-search-input {
    flex: 1;
    max-width: 400px;
    padding: 12px 18px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-radius: 4px;
    background: #fff;
    color: #333;
}

.hd-search-row .hd-search-input:focus {
    outline: none;
    border-color: #29233b;
    box-shadow: 0 0 0 3px rgba(41, 35, 59, 0.1);
}

.hd-search-row .hd-search-btn {
    padding: 12px 30px;
    background: #29233b;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 400;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.hd-search-row .hd-search-btn:hover {
    background: #1e1a2d;
}

/* Filter Row */
.hd-filter-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Filter Select Dropdowns */
.hd-filter-select {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333;
}

/* Filter Group (Accordion) */
.hd-filter-group {
    position: relative;
    min-width: 140px;
    max-width: 190px;
}

.hd-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Proxima Nova', sans-serif;
    text-transform: none;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    user-select: none;
}

.hd-filter-header:hover {
    border-color: #29233b;
}

.hd-filter-group.open .hd-filter-header {
    border-color: #29233b;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.hd-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.hd-filter-group.open .hd-arrow {
    transform: rotate(180deg);
}

/* Filter Dropdown - Uses inline styles for display, CSS for other properties */
.hd-filter-group .hd-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #29233b;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hd-filter-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 16px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: #333 !important;
    transition: background 0.2s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #fff !important;
}

.hd-filter-item:hover {
    background: #f5f5f5 !important;
}

.hd-filter-item span {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #333 !important;
    font-size: 14px !important;
}

.hd-filter-checkbox,
.hd-filter-radio {
    width: 16px !important;
    height: 16px !important;
    accent-color: #29233b !important;
    cursor: pointer !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-appearance: checkbox !important;
    appearance: auto !important;
}

.hd-filter-radio {
    -webkit-appearance: radio !important;
    appearance: auto !important;
}

/* Clear Button */
.hd-clear-btn {
    padding: 12px 20px;
    background: rgba(41, 35, 59, 0.1);
    color: var(--hd-accent-purple);
    border: 1px solid rgba(41, 35, 59, 0.2);
    cursor: pointer;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hd-clear-btn:hover {
    background: #29233b;
    color: #fff;
    border-color: #29233b;
}

/* Alpha Filter Row */
.hd-alpha-row {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hd-alpha-label {
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    color: #666;
    margin-right: 10px;
}

.hd-alpha-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.hd-alpha-btn:hover {
    background: #29233b;
    color: #fff;
    border-color: #29233b;
}

.hd-alpha-btn.active {
    background: #29233b;
    color: #fff;
    border-color: #29233b;
}

.hd-alpha-all {
    width: auto;
    padding: 0 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hd-search-filter-section {
        padding: 20px 15px 10px;
    }

    .hd-search-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100%;
    }

    .hd-search-row .hd-search-input {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        padding: 10px 12px !important;
    }

    .hd-search-row .hd-search-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 10px 25px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .hd-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hd-filter-group {
        width: 100%;
        max-width: none !important;
        min-width: 0 !important;
    }

    .hd-filter-group .hd-filter-header {
        justify-content: center !important;
        text-align: center;
        text-transform: none !important;
    }

    .hd-filter-group .hd-filter-header span:first-child {
        flex: 1;
        text-align: center;
    }

    .hd-filter-group .hd-filter-dropdown {
        width: 100% !important;
    }

    .hd-filter-select {
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box;
        text-align: center;
        text-align-last: center;
    }

    .hd-clear-btn-wrapper {
        width: 100% !important;
    }

    .hd-clear-btn {
        width: 100%;
        text-align: center;
    }

    .hd-alpha-row {
        justify-content: flex-start;
    }

    .hd-alpha-label {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* ========================================
   STICKY HEADER
   ======================================== */
.hd-sticky-header {
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    background: var(--hd-accent-purple);
    z-index: 99999;
    transition: top 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hd-sticky-header.visible {
    top: 0;
}

.hd-sticky-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hd-sticky-logo {
    display: flex;
    align-items: center;
    padding: 12px 0;
}

.hd-sticky-logo img {
    height: 28px;
    width: auto;
}

.hd-sticky-nav-links {
    display: flex;
    align-items: center;
}

.hd-sticky-nav-links a {
    color: var(--hd-white);
    text-decoration: none;
    padding: 16px 20px;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hd-sticky-nav-links a:hover {
    background: rgba(255,255,255,0.05);
}

/* Sticky Mobile Nav - hidden by default, shown on mobile when hamburger clicked */
.hd-sticky-mobile-nav {
    display: none !important;
    flex-direction: column;
    width: 100%;
    background: var(--hd-accent-purple);
}

.hd-sticky-mobile-nav.active {
    display: flex !important;
}

.hd-sticky-mobile-nav a {
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.hd-sticky-mobile-nav a:hover {
    background: rgba(255,255,255,0.05);
}

/* Hamburger Menu */
.hd-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 37px;
    height: 37px;
    cursor: pointer;
    background: var(--hd-accent-purple);
    border: none;
    border-radius: 4px;
    padding: 0;
}

.hd-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--hd-white);
    margin: 3px 0;
    transition: all 0.3s ease;
}

.hd-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hd-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hd-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.hd-mobile-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--hd-accent-purple);
}

.hd-mobile-nav.active {
    display: flex;
}

.hd-mobile-nav a {
    color: var(--hd-white);
    text-decoration: none;
    text-align: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: 'Proxima Nova', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   SEARCH SECTION
   ======================================== */
/* ========================================
   HEADER SEARCH ICON & DROPDOWN
   ======================================== */

/* Search toggle button (magnifier icon) */
.hd-header-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--hd-primary-gray);
    padding: 0;
    transition: color 0.3s ease;
}

.hd-header-search-toggle:hover {
    color: var(--hd-accent-purple);
}

/* Main header search icon: hidden on desktop, shown on mobile */
.hd-main-search-toggle {
    display: none;
}

/* Nav bar search icon: positioned at right end of nav */
.hd-header-search-toggle.hd-nav-search-toggle {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.8);
    width: 37px;
    height: 37px;
}

.hd-nav-search-toggle:hover {
    color: #fff;
}

.hd-nav-search-toggle.active {
    color: #fff;
}

/* Nav search dropdown */
.hd-nav-search-dropdown {
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* In sticky header, icon is white */
.hd-sticky-search-toggle {
    color: rgba(255,255,255,0.8);
}

.hd-sticky-search-toggle:hover {
    color: #fff;
}

/* Icon swap: show magnifier by default, X when active */
.hd-header-search-toggle {
    position: relative;
}

.hd-header-search-toggle .hd-icon-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.hd-header-search-toggle.active .hd-icon-search {
    opacity: 0;
}

.hd-header-search-toggle.active .hd-icon-close {
    opacity: 1;
    pointer-events: auto;
}

/* X icon on nav bar should be white */
.hd-nav-search-toggle.active .hd-icon-close {
    color: #fff;
}

/* Active state for toggle */
.hd-header-search-toggle.active {
    color: var(--hd-accent-purple);
}

.hd-sticky-search-toggle.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

/* Search dropdown panel */
.hd-header-search-dropdown {
    background: #fff;
    border-bottom: 1px solid var(--hd-border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hd-header-search-dropdown:not([hidden]) {
    display: block;
}

/* Sticky header dropdown position */
.hd-sticky-header .hd-header-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99998;
}

.hd-header-search-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: flex-end;
}

.hd-header-search-inner .hd-search-wrapper {
    width: 100%;
    max-width: 400px;
}

.hd-header-search-inner .hd-search-input {
    width: 100%;
    padding: 10px 16px;
    font-size: 15px;
    font-family: 'Proxima Nova', sans-serif;
    border: 1px solid var(--hd-border-color);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.hd-header-search-inner .hd-search-input:focus {
    border-color: var(--hd-accent-purple);
}

/* ========================================
   STICKY FILTER BAR (in grid - inline becomes sticky)
   ======================================== */

.hd-filter-placeholder {
    display: none;
}

.hd-sticky-filter-bar {
    position: relative;
    z-index: 9998;
    transition: box-shadow 0.3s ease;
}

.hd-sticky-filter-bar.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* When sticky header is visible, JS sets top dynamically via --hd-sticky-h */
body.sticky-header-visible .hd-sticky-filter-bar.is-sticky {
    top: var(--hd-sticky-h, 52px);
}

/* ========================================
   ADMIN BAR ADJUSTMENTS
   WordPress admin bar: 32px desktop, 46px mobile
   ======================================== */
body.admin-bar .hd-sticky-header.visible {
    top: 32px;
}

body.admin-bar .hd-sticky-filter-bar.is-sticky {
    top: 32px;
}

body.admin-bar.sticky-header-visible .hd-sticky-filter-bar.is-sticky {
    top: calc(var(--hd-sticky-h, 52px) + 32px);
}

/* Mobile admin bar is not sticky, so sticky header starts from top */
@media (max-width: 782px) {
    body.admin-bar .hd-sticky-header.visible {
        top: 0;
    }

    body.admin-bar .hd-sticky-filter-bar.is-sticky {
        top: 0;
    }

    body.admin-bar.sticky-header-visible .hd-sticky-filter-bar.is-sticky {
        top: var(--hd-sticky-h, 52px);
    }
}

/* Placeholder takes up space when filter bar is sticky */
.hd-filter-placeholder.active {
    display: block;
}

.hd-search-section {
    background: var(--hd-white);
    padding: 25px 20px;
    border-bottom: 1px solid var(--hd-border-color);
}

/* Remove gap between header and search section */
/* Use multiple selectors for broad compatibility */
.et_pb_section.et_pb_section_1,
.et_pb_section + .et_pb_section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.et_pb_section_1 > .et_pb_row,
.et_pb_section_1 .et_pb_row_0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure fullwidth header section has no bottom margin */
.et_pb_fullwidth_section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove gap after nav */
.hd_portfolio_header {
    margin-bottom: 0 !important;
}

.hd-nav {
    margin-bottom: 0 !important;
}

/* Column containing designer grid - no padding */
.et_pb_column:has(.hd_designer_grid),
.et_pb_section_1 .et_pb_column {
    padding: 0 !important;
}

.hd-search-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hd-search-row {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 20px;
}

.hd-search-input {
    flex: 1;
    min-width: 220px;
    padding: 14px 18px;
    border: 1px solid var(--hd-border-color);
    font-size: 14px;
    font-family: 'Proxima Nova', sans-serif;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hd-search-input:focus {
    outline: none;
    border-color: var(--hd-accent-purple);
    box-shadow: 0 0 0 3px rgba(41, 35, 59, 0.1);
}

.hd-search-btn {
    padding: 14px 40px;
    background: var(--hd-accent-purple);
    color: var(--hd-white);
    border: 1px solid var(--hd-accent-purple);
    cursor: pointer;
    font-size: 14px;
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hd-search-btn:hover {
    background: #1e1a2d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 35, 59, 0.3);
}

/* ========================================
   FILTER ACCORDION
   ======================================== */
.hd-filter-section {
    max-width: 1200px;
    margin: 0 auto;
}

.hd-filter-accordion {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
}

.hd-filter-group {
    flex: 1;
    min-width: 180px;
    max-width: 240px;
    background: var(--hd-white);
    border: 1px solid var(--hd-border-color);
    border-radius: 4px;
    overflow: hidden;
}

/* Clear Filters button inline with filter dropdowns */
.hd-filter-group.hd-clear-group {
    background: none;
    border: none;
    min-width: auto;
    max-width: none;
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    overflow: visible;
}

.hd-filter-header {
    padding: 10px 14px;
    background: var(--hd-light-gray);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.hd-filter-header:hover {
    background: #f0f0f0;
}

.hd-filter-header .arrow {
    transition: transform 0.3s ease;
}

.hd-filter-group.open .hd-filter-header .arrow {
    transform: rotate(180deg);
}

.hd-filter-options {
    display: none;
    padding: 10px 14px;
    max-height: 300px;
    overflow-y: auto;
}

.hd-filter-group.open .hd-filter-options {
    display: block;
}

.hd-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
}

.hd-filter-option input[type="checkbox"],
.hd-filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--hd-accent-purple);
    cursor: pointer;
}

.hd-filter-option label {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.hd-clear-filters {
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    background: rgba(41, 35, 59, 0.08);
    border: 1px solid rgba(41, 35, 59, 0.2);
    color: var(--hd-accent-purple);
    font-family: 'Proxima Nova', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.hd-clear-filters:hover {
    background: var(--hd-accent-purple);
    border-color: var(--hd-accent-purple);
    color: var(--hd-white);
}

/* Filter Actions row (Clear Filters + Show Results) */
.hd-filter-actions {
    display: flex;
    align-items: stretch;
    width: 100%;
}

/* Show Results button - hidden on desktop, shown on mobile */
.hd-show-results {
    display: none;
}

/* Mobile filter toggle button - hidden on desktop */
.hd-mobile-filter-toggle {
    display: none;
}

/* Alpha Filter */
.hd-alpha-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 15px;
}

.hd-alpha-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hd-border-color);
    background: var(--hd-white);
    font-family: 'Proxima Nova', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.hd-alpha-btn:hover:not(.disabled),
.hd-alpha-btn.active {
    background: var(--hd-accent-purple);
    color: var(--hd-white);
    border-color: var(--hd-accent-purple);
}

.hd-alpha-btn.disabled {
    color: #ccc;
    border-color: #e8e8e8;
    background: #fafafa;
    cursor: default;
    pointer-events: none;
}

/* ========================================
   CATEGORY TABS (Quick Filter)
   ======================================== */
.hd-category-tabs {
    text-align: center;
    padding: 40px 20px;
    background: var(--hd-white);
    border-top: 1px solid var(--hd-border-color);
    border-bottom: 1px solid var(--hd-border-color);
}

.hd-tabs {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hd-tab {
    padding: 12px 32px;
    border: 1.5px solid var(--hd-primary-dark);
    background: var(--hd-white);
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--hd-primary-dark);
    display: inline-block;
    border-radius: 2px;
}

.hd-tab:hover {
    background: var(--hd-accent-purple);
    color: var(--hd-white);
    border-color: var(--hd-accent-purple);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 35, 59, 0.3);
}

.hd-tab.active {
    background: var(--hd-accent-purple);
    color: var(--hd-white);
    border-color: var(--hd-accent-purple);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hd-hero {
    position: relative;
    z-index: 1;
    height: 400px;
    overflow: hidden;
    background: var(--hd-primary-dark);
}

.hd-hero-slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.hd-hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hd-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hd-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    padding: 60px 40px;
    color: var(--hd-white);
}

.hd-hero-text {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 1.9;
    font-weight: 300;
    text-align: center;
}

/* ========================================
   REGION HEADING
   ======================================== */
.hd-region-heading {
    text-align: center;
    padding: 25px 30px 15px;
    max-width: 950px;
    margin: 0 auto;
}

.hd-region-heading h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 24px;
    color: var(--hd-primary-dark);
    letter-spacing: -0.5px;
}

.hd-region-heading p {
    font-size: 17px;
    color: var(--hd-primary-gray);
    line-height: 1.9;
    font-weight: 300;
}

/* ========================================
   DESIGNER GRID
   ======================================== */
.hd-designer-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 30px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
}

.hd-designer-card {
    background: var(--hd-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    color: var(--hd-primary-dark);
}

.hd-designer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.hd-designer-image {
    width: 100%;
    height: 260px;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.hd-designer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.hd-designer-card:hover .hd-designer-image img {
    transform: scale(1.03);
}

/* Category Badge on Image */
.hd-category-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.85);
    color: var(--hd-white);
    padding: 8px 14px;
    font-size: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 2px;
}

.hd-designer-info {
    padding: 15px 18px;
    text-align: center;
}

/* CATEGORY: Company Name line above designer name */
.hd-designer-category-company {
    font-size: 13px;
    color: var(--hd-primary-gray);
    font-family: 'Proxima Nova', sans-serif;
    margin-bottom: 4px;
    line-height: 1.4;
}

.hd-card-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.hd-designer-name {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--hd-primary-dark);
    font-weight: 300;
}

.hd-designer-credentials {
    font-size: 12px;
    color: var(--hd-primary-gray);
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.hd-designer-category {
    font-size: 12px;
    color: var(--hd-primary-gray);
    font-family: 'Proxima Nova', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* ========================================
   SINGLE DESIGNER PAGE
   ======================================== */
.hd-single-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 60px;
}

.hd-single-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 4px;
}

.hd-designer-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--hd-border-color);
}

.hd-designer-title h1 {
    font-size: 36px;
    font-weight: 300;
    color: var(--hd-primary-dark);
    margin: 0;
}

.hd-designer-title .category {
    font-size: 12px;
    color: var(--hd-primary-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Proxima Nova', sans-serif;
    margin-bottom: 8px;
}

.hd-designer-title .hd-company-name {
    font-size: 18px;
    color: var(--hd-primary-gray);
    margin: 10px 0 0;
    font-weight: 400;
}

/* Primary designer name(s) — below company h1 */
.hd-primary-designer {
    font-size: 20px;
    color: var(--hd-primary-dark);
    margin: 8px 0 0;
    font-weight: 400;
}

/* Secondary designer name(s) */
.hd-secondary-designer {
    font-size: 16px;
    color: var(--hd-primary-gray);
    margin: 4px 0 0;
    font-weight: 400;
}

/* Profile divider (between header and content, visible on mobile) */
.hd-profile-divider {
    display: none;
    border: none;
    border-top: 1px solid var(--hd-border-color);
    margin: 0;
}

/* Sidebar social links */
.hd-sidebar-social {
    border-top: 1px solid var(--hd-border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.hd-sidebar-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.hd-sidebar-social-icons a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #29233b;
    color: white;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.hd-sidebar-social-icons a:hover {
    background: #3d3454;
    transform: translateY(-2px);
}

.hd-sidebar-social-icons svg {
    width: 16px;
    height: 16px;
}

/* Sidebar share links */
.hd-sidebar-share {
    border-top: 1px solid var(--hd-border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.hd-sidebar-share-icons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.hd-sidebar-share-icons a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #555;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.hd-sidebar-share-icons a:hover {
    background: var(--hd-primary-dark);
    color: white;
    transform: translateY(-2px);
}

.hd-sidebar-share-icons svg {
    width: 16px;
    height: 16px;
}

/* Legacy: Social links below bio (kept for backwards compat) */
.hd-bio-social {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--hd-border-color);
}

.hd-bio-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hd-accent-purple);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hd-bio-social a:hover {
    background: #3d3454;
    transform: translateY(-2px);
}

.hd-bio-social svg {
    width: 18px;
    height: 18px;
}

/* Content Section */
.hd-content-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 60px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 60px;
    align-items: start;
    border-bottom: 1px solid var(--hd-border-color);
}

.hd-designer-bio {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.hd-designer-bio p {
    margin-bottom: 16px;
}

.hd-designer-sidebar {
    text-align: left;
}

.hd-designer-logo {
    margin-bottom: 15px;
}

.hd-designer-logo img {
    max-width: 180px;
    height: auto;
}

.hd-designer-contact {
    margin-bottom: 22px;
}

.hd-designer-contact p {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 14px;
    color: #444;
    margin: 3px 0;
}

.hd-designer-contact a {
    color: #444;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hd-designer-contact a:hover {
    color: var(--hd-accent-purple);
}

.hd-designer-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.hd-designer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--hd-border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hd-primary-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.hd-designer-social a:hover {
    background: var(--hd-accent-purple);
    border-color: var(--hd-accent-purple);
    color: var(--hd-white);
}

/* Principal Section */
.hd-designer-principal {
    border-top: 1px solid var(--hd-border-color);
    padding-top: 15px;
    margin-top: 15px;
}

@media (min-width: 981px) {
    .hd-designer-principal {
        width: 60%;
        margin: 15px auto 0;
    }
}

.hd-designer-principal .label {
    font-size: 11px;
    color: var(--hd-primary-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 5px;
}

.hd-designer-principal .name {
    font-size: 16px;
    color: var(--hd-primary-dark);
    font-weight: 500;
}

/* Sidebar Sections (Company, Location, Specialties, Affiliations, Awards) */
.hd-sidebar-section {
    margin-bottom: 22px;
}

.hd-sidebar-label {
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 2px;
    font-weight: 600;
}

.hd-sidebar-value {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

/* View Gallery Link */
/* Designer Actions (QR, Print, View Gallery) */
.hd-designer-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
}

.hd-qr-code {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.hd-qr-code svg,
.hd-qr-code img {
    width: 100%;
    height: 100%;
    display: block;
}

.hd-actions-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.hd-print-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: var(--hd-primary-gray);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border: 1px solid var(--hd-border-color);
    border-radius: 4px;
}

.hd-print-link:hover {
    color: var(--hd-accent-purple);
    border-color: var(--hd-accent-purple);
}

.hd-gallery-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: var(--hd-primary-gray);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border: 1px solid var(--hd-border-color);
    border-radius: 4px;
}

.hd-gallery-link:hover {
    color: var(--hd-accent-purple);
    border-color: var(--hd-accent-purple);
}

.hd-gallery-link .arrow {
    font-size: 16px;
}

/* Legacy support */
.hd-view-gallery {
    text-align: right;
}

.hd-view-gallery a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--hd-primary-gray);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.hd-view-gallery a:hover {
    color: var(--hd-accent-purple);
}

.hd-view-gallery .arrow {
    font-size: 24px;
    margin-top: 5px;
}

/* ========================================
   GALLERY LAYOUTS
   ======================================== */

/* --- Shared Base --- */
.hd-gallery-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 30px 80px;
}

.hd-gallery-container {
    position: relative;
}

.hd-gallery-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    margin-bottom: 10px;
}

.hd-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hd-gallery-item:hover img {
    transform: scale(1.05);
}

/* --- 1. Masonry (wide tiles) --- */
.hd-gallery-masonry .hd-masonry-sizer,
.hd-gallery-masonry .hd-gallery-item { width: calc(25% - 8px); }
.hd-gallery-masonry .hd-gallery-item.hd-gallery-wide { width: calc(50% - 5px); }
.hd-gallery-masonry .hd-masonry-gutter { width: 10px; }

.hd-gallery-masonry[data-columns="2"] .hd-masonry-sizer,
.hd-gallery-masonry[data-columns="2"] .hd-gallery-item { width: calc(50% - 5px); }
.hd-gallery-masonry[data-columns="2"] .hd-gallery-item.hd-gallery-wide { width: 100%; }
.hd-gallery-masonry[data-columns="3"] .hd-masonry-sizer,
.hd-gallery-masonry[data-columns="3"] .hd-gallery-item { width: calc(33.333% - 7px); }
.hd-gallery-masonry[data-columns="3"] .hd-gallery-item.hd-gallery-wide { width: calc(66.666% - 5px); }
.hd-gallery-masonry[data-columns="5"] .hd-masonry-sizer,
.hd-gallery-masonry[data-columns="5"] .hd-gallery-item { width: calc(20% - 8px); }
.hd-gallery-masonry[data-columns="5"] .hd-gallery-item.hd-gallery-wide { width: calc(40% - 5px); }

/* --- 2. Masonry Uniform (no wide tiles) --- */
.hd-gallery-masonry_uniform .hd-masonry-sizer,
.hd-gallery-masonry_uniform .hd-gallery-item { width: calc(25% - 8px); }
.hd-gallery-masonry_uniform .hd-masonry-gutter { width: 10px; }

.hd-gallery-masonry_uniform[data-columns="2"] .hd-masonry-sizer,
.hd-gallery-masonry_uniform[data-columns="2"] .hd-gallery-item { width: calc(50% - 5px); }
.hd-gallery-masonry_uniform[data-columns="3"] .hd-masonry-sizer,
.hd-gallery-masonry_uniform[data-columns="3"] .hd-gallery-item { width: calc(33.333% - 7px); }
.hd-gallery-masonry_uniform[data-columns="5"] .hd-masonry-sizer,
.hd-gallery-masonry_uniform[data-columns="5"] .hd-gallery-item { width: calc(20% - 8px); }

/* --- 3. Grid Square (1:1) --- */
.hd-gallery-grid_square {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr);
}
.hd-gallery-grid_square[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.hd-gallery-grid_square[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.hd-gallery-grid_square[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }

.hd-gallery-grid_square .hd-gallery-item { aspect-ratio: 1 / 1; margin-bottom: 0; }
.hd-gallery-grid_square .hd-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* --- 4. Grid Landscape (4:3) --- */
.hd-gallery-grid_landscape {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr);
}
.hd-gallery-grid_landscape[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.hd-gallery-grid_landscape[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.hd-gallery-grid_landscape[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }

.hd-gallery-grid_landscape .hd-gallery-item { aspect-ratio: 4 / 3; margin-bottom: 0; }
.hd-gallery-grid_landscape .hd-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* --- 5. Grid Portrait (3:4) --- */
.hd-gallery-grid_portrait {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr);
}
.hd-gallery-grid_portrait[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.hd-gallery-grid_portrait[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.hd-gallery-grid_portrait[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }

.hd-gallery-grid_portrait .hd-gallery-item { aspect-ratio: 3 / 4; margin-bottom: 0; }
.hd-gallery-grid_portrait .hd-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* --- 6. Mosaic (large + small pattern) --- */
.hd-gallery-mosaic {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
}
.hd-gallery-mosaic[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.hd-gallery-mosaic[data-columns="3"] { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; }
.hd-gallery-mosaic[data-columns="5"] { grid-template-columns: repeat(5, 1fr); grid-auto-rows: 180px; }

.hd-gallery-mosaic .hd-gallery-item { margin-bottom: 0; }
.hd-gallery-mosaic .hd-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.hd-gallery-mosaic .hd-mosaic-large { grid-column: span 2; grid-row: span 2; }

/* --- 7. Justified (full-width rows) --- */
.hd-gallery-justified {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.hd-gallery-justified .hd-gallery-item { margin-bottom: 0; flex-shrink: 0; }
.hd-gallery-justified .hd-gallery-item img { display: block; }

/* --- 8. Carousel (slideshow) --- */
.hd-gallery-carousel {
    position: relative;
    overflow: hidden;
    max-height: 600px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hd-gallery-carousel .hd-gallery-item {
    display: none;
    margin-bottom: 0;
    width: 100%;
    text-align: center;
}
.hd-gallery-carousel .hd-gallery-item.active { display: flex; align-items: center; justify-content: center; }
.hd-gallery-carousel .hd-gallery-item img {
    max-width: 100%;
    max-height: 580px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}
.hd-gallery-carousel .hd-gallery-item:hover img { transform: none; }

.hd-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px 0;
}
.hd-carousel-prev,
.hd-carousel-next {
    width: 40px;
    height: 40px;
    border: 1px solid var(--hd-border-color);
    background: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}
.hd-carousel-prev:hover,
.hd-carousel-next:hover { background: var(--hd-accent-purple); color: #fff; border-color: var(--hd-accent-purple); }
.hd-carousel-counter { font-size: 14px; color: var(--hd-primary-gray); font-family: 'Proxima Nova', sans-serif; }

.hd-carousel-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
}
.hd-carousel-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    overflow: hidden;
}
.hd-carousel-thumb.active { opacity: 1; outline: 2px solid var(--hd-accent-purple); outline-offset: 2px; }
.hd-carousel-thumb:hover { opacity: 0.8; }
.hd-carousel-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */
.hd-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hd-lightbox.active {
    display: flex;
}

.hd-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--hd-white);
    font-size: 30px;
    cursor: pointer;
}

.hd-lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.hd-lightbox-caption-wrap {
    text-align: center;
    margin-top: 20px;
    max-width: 600px;
}

.hd-lightbox-caption {
    color: var(--hd-white);
    font-family: 'Proxima Nova', sans-serif;
    font-size: 14px;
    margin: 0;
}

.hd-lightbox-photographer {
    color: rgba(255,255,255,0.7);
    font-family: 'Proxima Nova', sans-serif;
    font-size: 12px;
    font-style: italic;
    margin: 6px 0 0;
}

.hd-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--hd-white);
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hd-lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.hd-lightbox-prev {
    left: 20px;
}

.hd-lightbox-next {
    right: 20px;
}

/* ========================================
   FOOTER
   ======================================== */
.hd-footer {
    background: var(--hd-accent-purple);
    color: var(--hd-white);
    padding: 50px 30px 30px;
}

.hd-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 30px;
}

.hd-footer-section h3 {
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 500;
    font-family: 'Proxima Nova', sans-serif;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
}

.hd-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hd-footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 8px 0;
    transition: all 0.3s ease;
    font-family: 'Proxima Nova', sans-serif;
}

.hd-footer-section a:hover {
    color: var(--hd-white);
    padding-left: 8px;
}

.hd-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-family: 'Proxima Nova', sans-serif;
}

/* ========================================
   BACK LINK
   ======================================== */
.hd-back-link {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
}

.hd-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hd-primary-gray);
    text-decoration: none;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 14px;
    transition: color 0.3s ease;
}

.hd-back-link a:hover {
    color: var(--hd-accent-purple);
}

.hd-back-link a:before {
    content: '<';
}

/* ========================================
   ARCHIVE TEMPLATE
   ======================================== */
.hd-portfolio-archive {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hd-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.hd-archive-header h1 {
    font-size: 36px;
    color: var(--hd-primary-dark);
    margin-bottom: 15px;
}

.hd-archive-header p {
    color: var(--hd-primary-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.hd-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--hd-primary-gray);
}

/* ========================================
   PREDICTIVE SEARCH DROPDOWN
   ======================================== */
.hd-search-wrapper {
    position: relative;
    width: 380px;
}

.hd-search-wrapper .hd-search-input {
    width: 100%;
}

.hd-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--hd-white);
    border: 1px solid var(--hd-border-color);
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 10000;
    max-height: 360px;
    overflow-y: auto;
}

.hd-suggestion-item {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--hd-primary-dark);
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.hd-suggestion-item:last-child {
    border-bottom: none;
}

.hd-suggestion-item:hover {
    background: #f5f3f8;
}

.hd-suggest-company {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--hd-primary-dark);
}

.hd-suggest-name {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.hd-suggestion-item strong {
    color: var(--hd-accent-purple);
    font-weight: 700;
}

.hd-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.hd-pagination a,
.hd-pagination span {
    padding: 10px 15px;
    border: 1px solid var(--hd-border-color);
    text-decoration: none;
    color: var(--hd-primary-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
}

.hd-pagination span.current {
    background: var(--hd-accent-purple);
    color: var(--hd-white);
    border-color: var(--hd-accent-purple);
}

.hd-pagination a:hover {
    background: var(--hd-light-gray);
}

.hd-load-more {
    padding: 14px 40px;
    background: var(--hd-accent-purple);
    color: var(--hd-white);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hd-load-more:hover {
    background: #1e1a2d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 35, 59, 0.3);
}

.hd-load-more:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

/* Card Placeholder */
.hd-card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--hd-accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hd-white);
    font-size: 48px;
    font-weight: bold;
}

/* ========================================
   LOADING STATES
   ======================================== */
.hd-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.hd-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--hd-border-color);
    border-top-color: var(--hd-accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 980px) {
    .hd-search-filter-section {
        padding-bottom: 10px;
    }

    .hd-designer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 20px 20px;
    }

    .hd-region-heading h1 {
        font-size: 40px;
    }

    .hd-region-heading {
        padding: 5px 20px;
    }

    .hd-content-section {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 20px;
    }

    .hd-designer-sidebar {
        order: -1;
    }

    .hd-profile-divider {
        display: block;
        margin: 20px;
    }

    /* Gallery: masonry tablet */
    .hd-gallery-masonry .hd-masonry-sizer,
    .hd-gallery-masonry .hd-gallery-item,
    .hd-gallery-masonry_uniform .hd-masonry-sizer,
    .hd-gallery-masonry_uniform .hd-gallery-item { width: calc(50% - 5px) !important; }
    .hd-gallery-masonry .hd-gallery-item.hd-gallery-wide { width: 100% !important; }

    /* Gallery: CSS grid tablet */
    .hd-gallery-grid_square,
    .hd-gallery-grid_landscape,
    .hd-gallery-grid_portrait,
    .hd-gallery-mosaic { grid-template-columns: repeat(2, 1fr) !important; }
    .hd-gallery-mosaic .hd-mosaic-large { grid-column: span 1; grid-row: span 1; }

    .hd-footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hd-footer-section a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hd-footer-section a:after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 1.5px solid rgba(255,255,255,0.7);
        border-bottom: 1.5px solid rgba(255,255,255,0.7);
        transform: rotate(-45deg);
        flex-shrink: 0;
    }

    .hd-footer-section a:hover {
        padding-left: 0;
    }

    .hd-footer-section a:hover:after {
        border-color: var(--hd-white);
    }

    .hd-pagination {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    /* Mobile header layout: H&D logo (left) | hamburger (right) */
    .hd-header-content {
        padding: 8px 15px;
    }

    .hd-header-left {
        min-width: auto;
    }

    .hd-header-left .hd-brand-logo img {
        height: 28px;
    }

    .hd-header-right {
        display: none;
    }

    /* Hide Portfolio logo from header row on mobile */
    .hd-header-center {
        display: none;
    }

    /* Show Portfolio logo as centered row below nav (non-designer pages) */
    .hd-mobile-logo-row {
        display: flex;
        justify-content: center;
        padding: 12px 15px;
        background: #fff;
        border-bottom: 1px solid var(--hd-border-color);
    }

    .hd-mobile-portfolio-logo {
        height: auto;
        width: 180px;
    }

    /* On designer pages: hide the below-nav logo row */
    body.single-designer .hd-mobile-logo-row {
        display: none;
    }

    /* On designer pages: show logo in back-link row */
    body.single-designer .hd-back-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    body.single-designer .hd-back-link-logo {
        display: block;
        width: 130px;
        height: auto;
    }

    /* Show search icon on mobile header */
    .hd-main-search-toggle {
        display: flex;
        flex-shrink: 0;
    }

    /* Hide nav search icon on mobile (nav is hidden) */
    .hd-nav-search-toggle {
        display: none;
    }

    .hd-header-search-inner {
        padding: 12px 15px;
    }

    .hd-header-search-inner .hd-search-wrapper {
        max-width: none;
    }

    .hd-hamburger {
        display: flex;
        flex-shrink: 0;
    }

    .hd-nav {
        display: none;
    }

    .hd-nav-content {
        display: none;
    }

    .hd-nav-content.active {
        display: flex;
        flex-direction: column;
    }

    .hd-sticky-nav-links {
        display: none;
    }

    .hd-sticky-hamburger {
        display: flex;
        background: transparent;
    }

    .hd-sticky-mobile-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--hd-accent-purple);
    }

    .hd-sticky-mobile-nav.active {
        display: flex;
    }

    .hd-sticky-mobile-nav a {
        color: var(--hd-white);
        text-decoration: none;
        text-align: center;
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        font-size: 14px;
        font-weight: 500;
    }

    .hd-sticky-mobile-nav a:hover {
        background: rgba(255,255,255,0.05);
    }

    .hd-designer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px 20px;
    }

    .hd-designer-image {
        height: 220px;
    }

    .hd-region-heading h1 {
        font-size: 36px;
    }

    .hd-region-heading {
        padding: 10px 10px 5px;
    }

    .hd-region-heading h1 {
        margin-bottom: 15px;
    }

    .hd-region-heading p {
        margin-bottom: -15px;
    }

    .hd-hero {
        height: 280px;
    }

    .hd-search-container {
        flex-direction: column;
    }

    /* Mobile: search input + Filters button inline, hide desktop SEARCH button */
    .hd-search-row {
        flex-direction: row !important;
        gap: 8px !important;
        align-items: stretch !important;
    }

    .hd-search-wrapper {
        flex: 1 !important;
        width: auto !important;
        max-width: none !important;
    }

    .hd-search-row .hd-search-input,
    .hd-search-wrapper .hd-search-input {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    .hd-search-row .hd-search-btn {
        display: none !important;
    }

    /* Mobile filter toggle button - inline with search */
    .hd-mobile-filter-toggle {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 0 14px;
        flex-shrink: 0;
        background: var(--hd-accent-purple);
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-family: 'Proxima Nova', sans-serif;
        font-size: 13px;
        font-weight: 500;
        transition: background 0.3s ease;
        white-space: nowrap;
    }

    .hd-mobile-filter-toggle.active {
        background: #1e1a2d;
    }

    .hd-mobile-filter-toggle svg {
        stroke: #fff;
    }

    /* Hide filter section by default on mobile, show when toggled */
    .hd-filter-section {
        display: none;
    }

    .hd-filter-section.mobile-open {
        display: block;
    }

    /* Hide alpha filter on mobile */
    .hd-alpha-filter {
        display: none !important;
    }

    .hd-load-more {
        width: auto;
        padding: 15px 25px;
        font-size: 13px;
    }

    .hd-filter-accordion {
        flex-direction: column;
    }

    .hd-filter-accordion .hd-filter-group {
        width: 100%;
        max-width: none !important;
        min-width: 0 !important;
    }

    /* Filter actions row: Clear Filters + Show Results side by side */
    .hd-filter-group.hd-clear-group {
        width: 100%;
        max-width: none !important;
    }

    .hd-filter-actions {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .hd-clear-filters {
        flex: 1;
        justify-content: center;
        height: 44px;
        font-size: 13px;
    }

    .hd-show-results {
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: center;
        height: 44px;
        padding: 0 20px;
        background: var(--hd-accent-purple);
        color: #fff;
        border: 1px solid var(--hd-accent-purple);
        border-radius: 4px;
        font-family: 'Proxima Nova', sans-serif;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
        transition: background 0.3s ease;
    }

    .hd-show-results:hover {
        background: #1e1a2d;
    }

    .hd-single-hero {
        padding: 0 15px;
    }

    .hd-single-hero img {
        height: 250px;
    }

    .hd-designer-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px;
    }

    .hd-designer-title h1 {
        font-size: 28px;
    }

    /* Gallery: masonry mobile */
    .hd-gallery-masonry .hd-masonry-sizer,
    .hd-gallery-masonry .hd-gallery-item,
    .hd-gallery-masonry_uniform .hd-masonry-sizer,
    .hd-gallery-masonry_uniform .hd-gallery-item { width: 100% !important; }

    /* Gallery: CSS grid mobile */
    .hd-gallery-grid_square,
    .hd-gallery-grid_landscape,
    .hd-gallery-grid_portrait,
    .hd-gallery-mosaic { grid-template-columns: 1fr !important; }
    .hd-gallery-mosaic .hd-mosaic-large { grid-column: span 1; grid-row: span 1; }

    /* Carousel mobile */
    .hd-gallery-carousel { max-height: 300px; }
    .hd-gallery-carousel .hd-gallery-item img { max-height: 280px; }
    .hd-carousel-thumb { width: 50px; height: 50px; }

    .hd-footer {
        padding: 40px 20px 20px;
    }

    .hd-footer-content {
        grid-template-columns: 1fr;
    }

    .hd-footer-section h3 {
        margin-bottom: 6px;
    }

    .hd-footer-section a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hd-footer-section a:after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 1.5px solid rgba(255,255,255,0.7);
        border-bottom: 1.5px solid rgba(255,255,255,0.7);
        transform: rotate(-45deg);
        flex-shrink: 0;
    }

    .hd-footer-section a:hover {
        padding-left: 0;
    }

    .hd-footer-section a:hover:after {
        border-color: var(--hd-white);
    }

    .hd-pagination {
        margin-bottom: 25px;
    }
}

/* Desktop: sticky header layout */
@media (min-width: 981px) {
    .hd-sticky-hamburger {
        display: none;
    }

    .hd-sticky-nav-links {
        display: flex;
    }

    .hd-sticky-header-content {
        position: relative;
    }
}

/* ============================================
   Region Heading Section
   ============================================ */
.region-heading {
    text-align: center;
    padding: 25px 30px 0;
    max-width: 950px;
    margin: 0 auto;
}

.region-heading h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 48px;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.region-heading p {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.9;
    color: #666;
    margin: 0;
}

@media (max-width: 767px) {
    .region-heading {
        padding: 10px 10px 5px;
    }

    .region-heading h1 {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .region-heading p {
        margin-bottom: -15px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    /* Hide non-essential elements */
    .hd-top-bar,
    .hd-header,
    .hd-nav,
    .hd-sticky-header,
    .hd-sticky-filter-wrapper,
    .hd-sticky-filter-bar,
    .hd-footer,
    .hd-back-link,
    .hd-print-link,
    .hd-gallery-link,
    .hd-actions-column,
    .hd-lightbox,
    #wpadminbar,
    .admin-bar-placeholder {
        display: none !important;
    }

    /* Reset page styles */
    body,
    html {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Designer profile print layout */
    .hd-designer-profile-wrapper {
        padding: 0 20px !important;
    }

    /* Hide hero image in print */
    .hd-single-hero {
        display: none !important;
    }

    /* Header: Name on left, QR on right */
    .hd-designer-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        padding: 20px 0 !important;
        border-bottom: 1px solid #ddd;
        page-break-after: avoid;
    }

    .hd-designer-title {
        flex: 1;
    }

    .hd-designer-title .category {
        font-size: 12px !important;
        margin-bottom: 5px !important;
    }

    .hd-designer-title h1 {
        font-size: 28px !important;
        margin: 0 0 5px 0 !important;
    }

    .hd-designer-title .hd-company-name {
        font-size: 14px !important;
        margin: 0 !important;
    }

    /* QR code positioned to the right of name */
    .hd-designer-actions {
        flex-shrink: 0;
        margin-left: 20px;
    }

    .hd-qr-code {
        width: 80px !important;
        height: 80px !important;
    }

    /* Content section - stack vertically */
    .hd-content-section {
        display: block !important;
        padding: 20px 0 !important;
    }

    /* Bio section first */
    .hd-designer-bio {
        margin-bottom: 25px;
        page-break-inside: avoid;
    }

    .hd-designer-bio p {
        font-size: 12px !important;
        line-height: 1.6 !important;
        margin-bottom: 10px !important;
    }

    .hd-bio-social {
        display: none !important;
    }

    /* Sidebar section after bio */
    .hd-designer-sidebar {
        display: block !important;
        width: 100% !important;
        border-top: 1px solid #ddd;
        padding-top: 20px;
        page-break-inside: avoid;
    }

    .hd-designer-logo {
        max-width: 150px !important;
        margin-bottom: 15px !important;
    }

    .hd-designer-logo img {
        max-height: 60px !important;
        width: auto !important;
    }

    .hd-sidebar-section {
        margin-bottom: 12px !important;
    }

    .hd-sidebar-label {
        font-size: 10px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        margin-bottom: 2px !important;
    }

    .hd-sidebar-value {
        font-size: 12px !important;
    }

    .hd-designer-contact {
        margin-bottom: 15px !important;
    }

    .hd-designer-contact p {
        font-size: 11px !important;
        margin-bottom: 3px !important;
    }

    /* Gallery print layout - last */
    .hd-gallery-section {
        padding: 20px 0 !important;
        page-break-before: always;
    }

    .hd-gallery-section h2 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }

    .hd-gallery-mosaic {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .hd-gallery-item,
    .hd-gallery-item.large {
        height: auto !important;
    }

    .hd-gallery-item img,
    .hd-gallery-item.large img {
        height: 150px !important;
        object-fit: cover;
    }

    .hd-gallery-caption {
        font-size: 9px !important;
        padding: 4px !important;
    }

    /* Ensure links show URL */
    .hd-designer-contact a::after {
        content: " (" attr(href) ")";
        font-size: 10px;
        color: #666;
    }

    .hd-designer-contact a[href^="tel:"]::after,
    .hd-designer-contact a[href^="mailto:"]::after {
        content: "";
    }

    /* Page breaks */
    h1, h2, h3 {
        page-break-after: avoid;
    }

    img {
        page-break-inside: avoid;
    }
}

/* ==========================================
   CONTAINED PAGE TEMPLATE
   ========================================== */

/* Non-fullwidth sections get a max-width container */
.hd-contained-page .et_pb_section:not(.et_pb_fullwidth_section) {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Fullwidth sections (header/footer) stay full-width */
.hd-contained-page .et_pb_fullwidth_section {
    max-width: none;
}

@media (max-width: 767px) {
    .hd-contained-page .et_pb_section:not(.et_pb_fullwidth_section) {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}
