
/* ==================================================
   1. GOOGLE FONTS
================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&display=swap');


/* ==================================================
   2. GLOBAL VARIABLES
================================================== */

:root {
    --duke-gold: #c8922a;
    --duke-gold-hover: #b98624;
    --duke-dark: #161622;
    --duke-header-bg: #1a1a2a;
    --duke-cream: #f4ecd7;
    --duke-text: #c8d0d9;

    --duke-phone-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.69 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.26a2 2 0 0 1 2.11-.45c.91.33 1.85.56 2.81.69A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}


/* ==================================================
   3. HEADER - SCHEDULE A CONVERSATION BUTTON
================================================== */

.ast-header-button-1 .ast-custom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}


/* ==================================================
   4. SHARED PHONE ICON - HEADER & FOOTER
================================================== */

.ast-header-button-1 .ast-custom-button::before,
.site-footer
.footer-widget-area[data-section="sidebar-widgets-footer-widget-1"]
.wp-block-button__link::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: var(--duke-phone-icon) center / contain no-repeat;
    mask: var(--duke-phone-icon) center / contain no-repeat;
}


/* ==================================================
   5. HEADER - DROPDOWN MENU
================================================== */

.ast-desktop .main-header-menu .sub-menu {
    background: var(--duke-header-bg);
    width: 140px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 6px 0;
}

/* Dropdown menu items */

.ast-desktop .main-header-menu .sub-menu .menu-link {
    color: var(--duke-text);
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 16px;
    line-height: 1.5;
    border: none;
}

/* Dropdown hover and keyboard focus */

.ast-desktop .main-header-menu .sub-menu .menu-link:hover,
.ast-desktop .main-header-menu .sub-menu .menu-link:focus-visible {
    color: var(--duke-text);
    background: transparent;
}

/* Active submenu item */

.ast-desktop .main-header-menu .sub-menu .current-menu-item > .menu-link {
    color: var(--duke-text);
}


/* ==================================================
   6. PRIMARY FOOTER - MAIN CONTAINER
================================================== */

.site-primary-footer-wrap {
    background-color: var(--duke-dark);
    padding: 64px 0 24px;
    border: none;
}

/* Remove the default Astra container limitation */

.site-primary-footer-wrap > .ast-builder-grid-row-container-inner {
    width: 100%;
    max-width: none;
}

/* Footer four-column layout */

.site-primary-footer-wrap .ast-builder-grid-row {
    width: calc(100% - 64px);
    max-width: 1248px;
    margin: 0 auto;
    padding: 0;
    grid-template-columns:
        minmax(0, 52fr)
        minmax(0, 19fr)
        minmax(0, 21fr)
        minmax(0, 8fr);
    column-gap: 0;
    align-items: start;
}

/* Reset default widget spacing */

.site-primary-footer-wrap .footer-widget-area {
    margin: 0;
    padding: 0;
    min-width: 0;
    text-align: left;
}

.site-primary-footer-wrap .widget {
    margin-bottom: 0;
}


/* ==================================================
   7. FOOTER - DUKE LOGO
================================================== */

.site-footer
.footer-widget-area[data-section="sidebar-widgets-footer-widget-1"]
.wp-block-image {
    margin: 0 0 20px;
    text-align: left;
}

.site-footer
.footer-widget-area[data-section="sidebar-widgets-footer-widget-1"]
.wp-block-image img {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
}


/* ==================================================
   8. FOOTER - DESCRIPTION TEXT
================================================== */

.site-footer
.footer-widget-area[data-section="sidebar-widgets-footer-widget-1"] p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
    color: var(--duke-cream);
    margin: 0;
    padding: 25px 0 40px;
    text-align: left;
}


/* ==================================================
   9. FOOTER - SCHEDULE A CONVERSATION BUTTON
================================================== */

/* Button container */

.site-footer
.footer-widget-area[data-section="sidebar-widgets-footer-widget-1"]
.wp-block-buttons {
    display: flex;
    justify-content: flex-start !important;
    margin-top: 40px;
    margin-bottom: 0;
}

/* Individual button */

.site-footer
.footer-widget-area[data-section="sidebar-widgets-footer-widget-1"]
.wp-block-button {
    margin: 0;
}

/* Button design */

.site-footer
.footer-widget-area[data-section="sidebar-widgets-footer-widget-1"]
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background-color: var(--duke-gold);
    color: var(--duke-dark);

    font-size: 16px;
    font-weight: 600;
    line-height: 24px;

    padding: 16px;
    border: none;
    border-radius: 2px;

    text-decoration: none;
    text-align: center;

    transition: background-color 0.2s ease;
}

/* Button hover */

.site-footer
.footer-widget-area[data-section="sidebar-widgets-footer-widget-1"]
.wp-block-button__link:hover {
    background-color: var(--duke-gold-hover);
    color: var(--duke-dark);
}


/* ==================================================
   10. FOOTER - NAVIGATION MENU HEADINGS
================================================== */

.site-primary-footer-wrap .widget_nav_menu .widget-title {
    color: var(--duke-gold);
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    margin: 0 0 16px;
    padding: 0;
}


/* ==================================================
   11. FOOTER - NAVIGATION MENU LINKS
================================================== */

.site-primary-footer-wrap .widget_nav_menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Menu item spacing */

.site-primary-footer-wrap .widget_nav_menu ul li {
    margin: 0 0 8px;
    padding: 0;
    line-height: 24px;
}

.site-primary-footer-wrap .widget_nav_menu ul li:last-child {
    margin-bottom: 0;
}

/* Menu link typography */

.site-primary-footer-wrap .widget_nav_menu ul li a {
    color: var(--duke-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Menu link hover */

.site-primary-footer-wrap .widget_nav_menu ul li a:hover,
.site-primary-footer-wrap .widget_nav_menu ul li a:focus-visible {
    color: var(--duke-gold);
}


/* ==================================================
   12. TABLET RESPONSIVE DESIGN
================================================== */

@media (max-width: 921px) {

    .site-primary-footer-wrap {
        padding: 48px 0 32px;
    }

    .site-primary-footer-wrap .ast-builder-grid-row {
        width: calc(100% - 48px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 24px;
    }

    .site-footer
    .footer-widget-area[data-section="sidebar-widgets-footer-widget-1"] p {
        font-size: 26px;
        line-height: 34px;
    }

}


/* ==================================================
   13. MOBILE RESPONSIVE DESIGN
================================================== */

@media (max-width: 544px) {

    .site-primary-footer-wrap {
        padding: 40px 0 32px;
    }

    .site-primary-footer-wrap .ast-builder-grid-row {
        width: calc(100% - 40px);
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .site-primary-footer-wrap .footer-widget-area {
        text-align: left;
    }

    .site-footer
    .footer-widget-area[data-section="sidebar-widgets-footer-widget-1"] p {
        font-size: 24px;
        line-height: 32px;
    }

    .site-footer
    .footer-widget-area[data-section="sidebar-widgets-footer-widget-1"]
    .wp-block-buttons {
        margin-top: 24px;
    }

    .site-primary-footer-wrap .widget_nav_menu .widget-title {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 12px;
    }

    .ast-header-button-1 .ast-custom-button {
        white-space: normal;
    }

}


/* ==================================================
   14. BELOW FOOTER - COPYRIGHT & LEGAL LINKS
================================================== */

.site-below-footer-wrap {
    background-color: var(--duke-dark);
    border: none;
    padding: 0;
}

/* Bottom footer layout and horizontal divider */
.site-below-footer-wrap .ast-builder-grid-row {
    width: calc(100% - 64px);
    max-width: 1248px;
    margin: 0 auto;
    padding: 48px 0 56px;

    border-top: 1px solid #2b2b35;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 0;
}

/* Copyright text */
.site-below-footer-wrap .ast-footer-copyright,
.site-below-footer-wrap .ast-footer-copyright p {
    color: #777d89;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    margin: 0;
    padding: 0;
    text-align: left;
}

/* Legal links container */
.duke-footer-legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;

    color: #626a73;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
}

/* Privacy Policy & Terms of Service */
.duke-footer-legal a {
    color: #626a73;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Link hover */
.duke-footer-legal a:hover,
.duke-footer-legal a:focus-visible {
    color: var(--duke-gold);
}

/* Tablet */
@media (max-width: 921px) {
    .site-below-footer-wrap .ast-builder-grid-row {
        width: calc(100% - 48px);
        padding: 32px 0;
    }
}

/* Mobile */
@media (max-width: 544px) {
    .site-below-footer-wrap .ast-builder-grid-row {
        width: calc(100% - 40px);
        grid-template-columns: minmax(0, 1fr);
        padding: 24px 0;
        gap: 12px;
    }

    .site-below-footer-wrap .ast-footer-copyright,
    .site-below-footer-wrap .ast-footer-copyright p {
        text-align: center;
    }

    .duke-footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ==========================================
   DUKE HEADER - FULL WIDTH & ALIGNMENT
========================================== */

#masthead .ast-primary-header-bar {
    width: 100%;
    border-bottom: none;
}

/* Override Astra's default container width */
#masthead .ast-primary-header-bar .site-primary-header-wrap {
    width: 100%;
    max-width: 100%;
    padding-left: 4%;
    padding-right: 4%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Header inner grid */
#masthead .ast-primary-header-bar .ast-builder-grid-row {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Tablet */
@media (max-width: 921px) {
    #masthead .ast-primary-header-bar .site-primary-header-wrap {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Mobile */
@media (max-width: 544px) {
    #masthead .ast-primary-header-bar .site-primary-header-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Duke section label */
.duke-section-label .uagb-heading-text {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    color: #C8922A;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

/* Gold gradient line */
.duke-section-label .uagb-heading-text::after {
    content: "";
    display: block;
    width: 110px;
    height: 2px;
    flex-shrink: 1;
    background: linear-gradient(
        90deg,
        #C8922A 0%,
        transparent 100%
    );
}

/* Mobile responsive */
@media (max-width: 544px) {
    .duke-section-label .uagb-heading-text::after {
        width: 60px;
    }
}
