/* ============================================================
   Logo Widget
   ============================================================ */
.ds-logo-wrap {
    display: flex;
    width: 100%;
}

.ds-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity .3s var(--ds-ease);
}

.ds-logo:hover { opacity: .88; }

.ds-logo__mark {
    /* Fallback values; Elementor overrides via --ds-mark-size / --ds-mark-padding */
    --ds-mark-size: 54px;
    --ds-mark-padding: 8px;

    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-sizing: border-box;

    width: var(--ds-mark-size);
    height: var(--ds-mark-size);

    overflow: hidden;
    background-color: #24221D;
    border: 1px solid #C6A34C;
    border-radius: 50%;

    transition: box-shadow .3s var(--ds-ease);
}

.ds-logo__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    box-sizing: border-box;

    /* Padding is capped so it can never exceed 40% of the mark size,
       preventing the content area from collapsing on small marks. */
    padding: min(var(--ds-mark-padding), calc(var(--ds-mark-size) * 0.4));
}

.ds-logo__fallback {
    font-family: 'Cormorant Garamond', Georgia, serif;
    /* Scales with the mark and never overflows the padded content area. */
    font-size: max(10px, calc(var(--ds-mark-size) * 0.42));
    font-weight: 600;
    line-height: 1;
    color: #C6A34C;
    user-select: none;
}

.ds-logo__mark--mobile { display: none; }

.ds-logo__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
    text-align: start;
    min-width: 0;
}

.ds-logo__name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 4px;
}

.ds-logo__prefix,
.ds-logo__suffix {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.2px;
    color: #24221D;
}

.ds-logo__highlight {
    font-size: 15px;
    font-weight: 800;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: -.2px;
    color: #A98634;
}

.ds-logo__subtitle {
    display: block;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    color: #7C7668;
}

/* Mobile */
@media (max-width: 767px) {
    .ds-logo--has-mobile .ds-logo__mark--desktop { display: none; }
    .ds-logo--has-mobile .ds-logo__mark--mobile  { display: grid; }
    .ds-logo--hide-text-mobile .ds-logo__text    { display: none; }
}
/* ============================================================
   Menu Widget - Base & Desktop Dropdown
   ============================================================ */
.ds-nav-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    --ds-indent-step: 16px;
}

.ds-nav__desktop { align-items: center; }

.ds-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ds-nav__list > li { position: relative; }

.ds-nav__list > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    border-radius: 8px;
    padding: 10px 13px;
    transition: color .25s var(--ds-ease), background-color .25s var(--ds-ease);
    /* Link is fully clickable */
    pointer-events: auto;
}

.ds-nav__list > li.menu-item-has-children > a::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-bottom: 3px;
    opacity: .7;
    order: 2;
}

/* --- Dropdown (Standard Mode) --- */
.ds-nav__list .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    margin: 6px 0 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border: 1px solid #EBE3D3;
    border-radius: 14px;
    box-shadow: 0 28px 60px -34px rgba(36,34,29,.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s var(--ds-ease), transform .25s var(--ds-ease), visibility .25s;
    z-index: 100;
}

.ds-nav__list > li:hover > .sub-menu,
.ds-nav__list > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ds-nav__list .sub-menu .sub-menu {
    top: 0;
    right: 100%;
    margin: 0 6px 0 0;
}

.ds-nav__list .sub-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #4B4639;
    text-decoration: none;
    transition: background-color .2s, color .2s;
    white-space: nowrap;
}

.ds-nav__list .sub-menu > li.menu-item-has-children > a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(135deg);
    margin-bottom: 0;
    opacity: .7;
    order: 2;
    margin-inline-start: auto;
}

/* ============================================================
   Mega Menu Mode (Overrides)
   ============================================================ */
.ds-nav--mega {
    --mega-width: 650px;
    --mega-cols: 2;
    --mega-gap: 32px;
}

.ds-nav--mega .ds-nav__list > li:hover > .sub-menu,
.ds-nav--mega .ds-nav__list > li:focus-within > .sub-menu {
    display: grid !important;
    grid-template-columns: repeat(var(--mega-cols, 2), 1fr) !important;
    width: var(--mega-width, 650px) !important;
    column-gap: var(--mega-gap, 32px) !important;
    row-gap: 8px !important;
    padding: 24px !important;
    right: 50% !important;
    transform: translate(50%, 0) !important;
    border-radius: 20px !important;
}

/* Handle Nested Structures inside Mega Menu */
.ds-nav--mega .ds-nav__list > li > .sub-menu > li {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    white-space: normal !important;
}

/* First-level sub-items act as column headers */
.ds-nav--mega .ds-nav__list > li > .sub-menu > li > a {
    font-weight: 800 !important;
    font-size: 14px !important;
    color: #24221D !important;
    border-bottom: 1px solid #EBE3D3 !important;
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
    pointer-events: auto !important; /* Ensure clickable */
}

.ds-nav--mega .ds-nav__list > li > .sub-menu > li > a:hover {
    color: #C6A34C !important;
}

/* Hide the arrow on column headers */
.ds-nav--mega .ds-nav__list > li > .sub-menu > li > a::before {
    display: none !important;
}

/* Nested submenus visible and stacked */
.ds-nav--mega .ds-nav__list > li > .sub-menu > li > .sub-menu {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
}

.ds-nav--mega .ds-nav__list > li > .sub-menu > li > .sub-menu > li > a {
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #5D5747 !important;
    border-radius: 6px !important;
}

.ds-nav--mega .ds-nav__list > li > .sub-menu > li > .sub-menu > li > a:hover {
    background-color: #F8F3E9 !important;
    color: #A98634 !important;
}

/* Full width last item (CTA) */
.ds-nav--mega .ds-nav__list > li > .sub-menu > li.is-full-width {
    grid-column: 1 / -1 !important;
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid #EBE3D3 !important;
}

.ds-nav--mega .ds-nav__list > li > .sub-menu > li.is-full-width > a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 16px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    border-radius: 8px !important;
    pointer-events: auto !important;
    color: #A98634 !important;
    border-bottom: none !important; /* Remove header line */
}

/* ============================================================
   Toggle Button & Mobile Drawer
   ============================================================ */
.ds-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    background: #fff;
    border: 1px solid #EBE3D3;
    border-radius: 14px;
    color: #24221D;
    cursor: pointer;
    transition: border-color .25s, background-color .25s;
}
.ds-nav-toggle:hover { border-color: #C6A34C; }

.ds-nav-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ds-nav-toggle__icon--close { display: none; }

.ds-nav-wrap.is-open .ds-nav-toggle__icon--open  { display: none; }
.ds-nav-wrap.is-open .ds-nav-toggle__icon--close { display: inline-flex; }

/* --- Mobile Drawer --- */
.ds-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    --ds-indent-step: 16px;
}

.ds-mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(36,34,29,.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .3s var(--ds-ease);
}

.ds-mobile-menu__drawer {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    max-width: 100vw;
    background: #fff;
    box-shadow: -20px 0 60px -30px rgba(36,34,29,.5);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px 20px;
    transform: translateX(100%);
    transition: transform .4s var(--ds-ease);
    pointer-events: auto;
}

.ds-nav-wrap.is-open .ds-mobile-menu { pointer-events: auto; }
.ds-nav-wrap.is-open .ds-mobile-menu__backdrop { opacity: 1; }
.ds-nav-wrap.is-open .ds-mobile-menu__drawer { transform: translateX(0); }

.ds-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #EBE3D3;
}

.ds-mobile-menu__title {
    font-size: 15px;
    font-weight: 800;
    color: #24221D;
}

.ds-mobile-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #EBE3D3;
    background: #F8F3E9;
    border-radius: 10px;
    color: #24221D;
    cursor: pointer;
}
.ds-mobile-menu__close--floating {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
}

.ds-mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.ds-mobile-menu__list > li + li { border-top: 1px solid #EBE3D3; }
.ds-mobile-menu__list li { position: relative; }

/* The Mobile Link */
.ds-mobile-menu__list li > a {
    display: flex;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #3F3B31;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color .2s, color .2s;
}

.ds-mobile-menu__list > li > a {
    padding-inline-start: 14px;
    padding-inline-end: 52px; /* Space for the toggle button */
}

.ds-mobile-menu__list > li > .sub-menu > li > a {
    padding-inline-start: calc(14px + var(--ds-indent-step));
    padding-inline-end: 52px;
    font-size: 13px;
    font-weight: 500;
}

.ds-mobile-menu__list > li > .sub-menu > li > .sub-menu > li > a {
    padding-inline-start: calc(14px + var(--ds-indent-step) * 2);
    padding-inline-end: 52px;
    font-size: 12.5px;
    font-weight: 500;
}

.ds-mobile-menu__list li > a:hover,
.ds-mobile-menu__list li.current-menu-item > a {
    background: #F8F3E9;
    color: #A98634;
}

/* New Subtoggle Button (Separated from link) */
.ds-mobile-menu__subtoggle {
    position: absolute;
    top: 6px; /* Centered vertically relative to link */
    inset-inline-end: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #EBE3D3;
    background: #fff;
    border-radius: 8px;
    color: #7C7668;
    cursor: pointer;
    z-index: 2;
    transition: transform .3s var(--ds-ease), color .2s, border-color .2s, background-color .2s;
}
.ds-mobile-menu__subtoggle:hover { color: #A98634; border-color: #C6A34C; }

.ds-mobile-menu__list > li.is-submenu-open > .ds-mobile-menu__subtoggle {
    transform: rotate(180deg);
}

.ds-mobile-menu__list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s var(--ds-ease);
}

.ds-mobile-menu__list .sub-menu > li + li {
    border-top: 1px dashed rgba(235,227,211,.7);
}

/* Hide legacy arrow on mobile items (subtoggle handles it now) */
.ds-mobile-menu__list > li.menu-item-has-children > a::before { display: none; }
/* ============================================================
   Contact Widget
   ============================================================ */
.ds-contact-wrap {
    display: flex;
    width: 100%;
}

.ds-contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity .3s var(--ds-ease);
}

.ds-contact:hover {
    opacity: .85;
}

.ds-contact__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #F3EDE0;
    color: #24221D;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: background-color .3s, border-color .3s;
}

.ds-contact__icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.ds-contact__text {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #24221D;
    white-space: nowrap;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .ds-contact--hide-text-mobile .ds-contact__text {
        display: none;
    }
}

/* ============================================================
   Hero Widget (3-Column Layout)
   ============================================================ */
.ds-hero {
    position: relative;
    overflow: hidden;
}

.ds-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr; /* Form | Image | Text */
    align-items: center;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Text Column */
.ds-hero__col--text {
    max-width: 480px;
}

.ds-hero__eyebrow-wrap {
    margin-bottom: 20px;
}

.ds-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #EBE3D3;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #A98634;
    box-shadow: 0 4px 12px rgba(36,34,29,.04);
}
.ds-hero__eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C6A34C;
}

.ds-hero__title {
    font-size: clamp(32px, 3.5vw, 48px);
    line-height: 1.4;
    font-weight: 900;
    margin-bottom: 20px;
    color: #24221D;
}

.ds-hero__title .ds-accent {
    color: #A98634;
    position: relative;
    display: inline-block;
}
.ds-hero__title .ds-accent::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 0; right: 0;
    height: 10px;
    background: rgba(198,163,76,.2);
    z-index: -1;
    border-radius: 4px;
}

.ds-hero__lead {
    font-size: 14px;
    line-height: 2.2;
    color: #5D5747;
    margin-bottom: 24px;
}

.ds-hero__features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ds-hero__features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #4B4639;
}

.ds-hero__features svg {
    width: 18px;
    height: 18px;
    color: #C6A34C;
    flex-shrink: 0;
}

.ds-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.ds-hero__note {
    font-size: 11.5px;
    color: #7C7668;
}

/* Image Column */
.ds-hero__col--image {
    display: flex;
    justify-content: center;
    position: relative;
}

.ds-hero__img-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.ds-hero__img-box {
    width: 100%;
    height: 520px;
    border-radius: 200px 200px 24px 24px;
    overflow: hidden;
    border: 8px solid #fff;
}

.ds-hero__img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Badges */
.ds-hero__badge {
    position: absolute;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(235,227,211, 0.9);
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 15px 30px rgba(36,34,29,0.08);
    z-index: 3;
}

.ds-hero__badge--top {
    top: 40px;
    right: -20px;
}

.ds-hero__badge--bottom {
    bottom: 40px;
    left: -20px;
}

.ds-hero__badge-num {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #24221D;
    color: #C6A34C;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.ds-hero__badge-text {
    font-size: 11.5px;
    font-weight: 700;
    color: #24221D;
    line-height: 1.4;
    max-width: 80px;
}

/* Form Column */
.ds-hero__col--form {
    width: 100%;
    max-width: 380px;
    justify-self: start;
}

.ds-hero__form-box {
    background: #ffffff;
    padding: 30px 24px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(36,34,29,0.08);
    border: 1px solid rgba(235,227,211, 0.8);
    position: relative;
    overflow: hidden;
}

.ds-hero__form-box::before {
    content: "";
    position: absolute;
    top: 0; left: 24px; right: 24px; height: 3px;
    background: linear-gradient(90deg, #24221D, #C6A34C, #24221D);
}

.ds-hero__form-head {
    text-align: center;
    margin-bottom: 20px;
}

.ds-hero__form-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #24221D;
}
.ds-hero__form-title span {
    color: #A98634;
}

.ds-hero__form-desc {
    font-size: 11.5px;
    color: #7C7668;
    line-height: 1.8;
}

/* --- Gravity Forms Overrides (to match custom design) --- */
.ds-hero__form-box .gform_wrapper { margin: 0 !important; padding: 0 !important; }
.ds-hero__form-box .gform_title { display: none !important; }
.ds-hero__form-box .gform_body { margin-bottom: 0 !important; }
.ds-hero__form-box .gform_fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.ds-hero__form-box .gfield {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.ds-hero__form-box .gform_button  {
    background-color: #d3b46c !important;
    color: #000 !important;
}
.ds-hero__form-box .gfield_label { display: none !important; }

/* Field Wrappers for Icons */
.ds-hero__form-box .ginput_container {
    position: relative !important;
}
/* Base Inputs */
.ds-hero__form-box input:not([type="submit"]),
.ds-hero__form-box select,
.ds-hero__form-box textarea {
    background: #F8F3E9 !important;
    border: 1px solid #EBE3D3 !important;
    border-radius: 12px !important;
    height: 48px !important;
    padding: 0 16px 0 40px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    color: #24221D !important;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s !important;
    width: 100% !important;
    box-shadow: none !important;
}

.ds-hero__form-box input:focus,
.ds-hero__form-box select:focus,
.ds-hero__form-box textarea:focus {
    background: #fff !important;
    border-color: #C6A34C !important;
    box-shadow: 0 0 0 4px rgba(198,163,76,0.13) !important;
    outline: none !important;
}

/* Select Dropdown Arrow */
.ds-hero__form-box select {
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A79A78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
}

/* Custom Icons inside inputs */
.ds-hero__form-box .gfield {
    position: relative !important;
}
.ds-hero__form-box .gfield::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 2;
    pointer-events: none;
}

/* Name field */
.ds-hero__form-box .gfield--type-text::before,
.ds-hero__form-box .gfield--type-name::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2324221D'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z' /%3E%3C/svg%3E");
}

/* Phone field */
.ds-hero__form-box .gfield--type-phone::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2324221D'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z' /%3E%3C/svg%3E");
}

/* Select field */
.ds-hero__form-box .gfield--type-select::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2324221D'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z' /%3E%3C/svg%3E");
}

/* Date field */
.ds-hero__form-box .gfield--type-date::before,
.ds-hero__form-box .gfield--type-datepicker::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2324221D'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z' /%3E%3C/svg%3E");
}

/* --- Responsive Layout --- */
@media (max-width: 1200px) {
    .ds-hero__grid {
        grid-template-columns: 1fr 1fr; /* Image + Text | Form on bottom or adjust */
        gap: 40px;
    }
    .ds-hero__col--form {
        grid-column: 1 / -1;
        max-width: 100%;
        justify-self: center;
        margin-top: 20px;
    }
    .ds-hero__form-box {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 860px) {
    .ds-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ds-hero__col--text {
        margin: 0 auto;
    }
    .ds-hero__cta {
        justify-content: center;
    }
    .ds-hero__badge--top { right: -10px; top: 20px; }
    .ds-hero__badge--bottom { left: -10px; bottom: 20px; }
}
/* ============================================================
   Cursor Glow Widget
   ============================================================ */
.ds-cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    will-change: transform;
    transition: opacity 0.4s ease;
    transform: translate(-50%, -50%);
}

/* --- Hero Buttons Base Styles --- */
.ds-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid transparent;
}

.ds-btn:hover {
    transform: translateY(-2px);
}

/* Primary Button */
.ds-btn-primary {
    background-color: #24221D;
    color: #FFFFFF;
    border-radius: 999px;
    padding: 14px 30px;
    box-shadow: 0 14px 28px -14px rgba(36,34,29,0.6);
}
.ds-btn-primary:hover {
    background-color: #2E2B24;
    box-shadow: 0 20px 36px -16px rgba(36,34,29,0.68);
}

/* Secondary Button */
.ds-btn-ghost {
    background-color: transparent;
    color: #24221D;
    border: 1px solid #DCD1B4;
    border-radius: 999px;
    padding: 14px 30px;
}
.ds-btn-ghost:hover {
    background-color: #FFFFFF;
    border-color: #C6A34C;
}
/* ============================================================
   Trust Bar Widget
   ============================================================ */
.ds-trust {
    width: 100%;
    --trust-divider-color: #EBE3D3;
    --trust-divider-height: 50%;
}

.ds-trust__grid {
    display: grid;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    /* grid-template-columns در المنتور تنظیم می‌شود */
}

.ds-trust__item {
    text-align: center;
    padding: 20px 10px;
    position: relative;
}

/* خط جداکننده عمودی (سمت چپ آیتم‌ها) */
.ds-trust__item::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: var(--trust-divider-height);
    background-color: var(--trust-divider-color);
}

.ds-trust__value-wrap {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    line-height: 1;
}

.ds-trust__number {
    font-size: 32px;
    font-weight: 900;
    color: #24221D;
    letter-spacing: -0.5px;
}

.ds-trust__suffix {
    font-size: 24px;
    font-weight: 800;
    color: #A98634;
}

.ds-trust__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #7C7668;
    margin-top: 4px;
}

/* ============================================================
   About Widget
   ============================================================ */
.ds-about {
    width: 100%;
}

.ds-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Image Column --- */
.ds-about__image-col {
    position: relative;
}

.ds-about__img-wrapper {
    position: relative;
    width: 100%;
}

.ds-about__img-wrap {
    width: 100%;
    height: 460px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(36,34,29,0.08);
    background: #F3EDE0;
    position: relative;
    z-index: 1;
}

.ds-about__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Floating Badge */
.ds-about__badge {
    position: absolute;
    bottom: 24px;
    right: -20px;
    background: #24221D;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(36,34,29,0.2);
    z-index: 2;
    border: 1px solid rgba(198,163,76,0.3);
}

.ds-about__badge-num {
    font-size: 28px;
    font-weight: 900;
    color: #C6A34C;
    line-height: 1;
}

.ds-about__badge-text {
    font-size: 12px;
    font-weight: 500;
    color: #EDE5D3;
    line-height: 1.6;
}

/* --- Text Column --- */
.ds-about__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ds-about__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #A98634;
    margin-bottom: 12px;
}
.ds-about__kicker::before {
    content: "";
    width: 30px;
    height: 2px;
    background: #C6A34C;
    border-radius: 2px;
}

.ds-about__title {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 900;
    line-height: 1.5;
    color: #24221D;
    margin-bottom: 16px;
}

.ds-about__title .ds-accent {
    color: #A98634;
    margin-right: 4px;
}

.ds-about__desc {
    font-size: 14.5px;
    line-height: 2.2;
    color: #5E594D;
    margin-bottom: 24px;
}

/* Features List */
.ds-about__features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.ds-about__feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid #EBE3D3;
    border-radius: 14px;
    padding: 14px 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ds-about__feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(36,34,29,0.04);
}

.ds-about__feature-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #24221D;
    color: #C6A34C;
    display: grid;
    place-items: center;
    margin-top: 2px;
}
.ds-about__feature-icon svg {
    width: 14px;
    height: 14px;
}

.ds-about__feature-text {
    font-size: 13.5px;
    font-weight: 500;
    color: #24221D;
    line-height: 1.7;
}

.ds-about__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Image on Right Mode --- */
.ds-about--image-right .ds-about__image-col {
    order: 2;
}
.ds-about--image-right .ds-about__content {
    order: 1;
}
.ds-about--image-right .ds-about__badge {
    right: auto;
    left: -20px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .ds-about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .ds-about--image-right .ds-about__image-col {
        order: 1;
    }
    .ds-about--image-right .ds-about__content {
        order: 2;
    }
    .ds-about__badge {
        right: 20px;
    }
    .ds-about--image-right .ds-about__badge {
        left: auto;
        right: 20px;
    }
}

@media (max-width: 767px) {
    .ds-about__img-wrap {
        height: 320px;
    }
    .ds-about__badge {
        right: 10px;
        bottom: 10px;
        padding: 12px 16px;
    }
    .ds-about__cta {
        width: 100%;
    }
    .ds-about__cta .ds-btn {
        flex: 1;
    }
}
/* ============================================================
   Global Animations (Reveal)
   ============================================================ */
.ds-anim {
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.ds-anim[data-ds-anim="left"]  { transform: translateX(-40px); }
.ds-anim[data-ds-anim="right"] { transform: translateX(40px); }
.ds-anim[data-ds-anim="up"]    { transform: translateY(30px); }
.ds-anim[data-ds-anim="down"]  { transform: translateY(-30px); }

.ds-anim.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Force visibility in Elementor Editor */
.elementor-editor-active .ds-anim {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
/* ============================================================
   Services Widget
   ============================================================ */
.ds-services {
    width: 100%;
}

/* --- Head --- */
.ds-services__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

.ds-services__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #A98634;
    margin-bottom: 12px;
}
.ds-services__kicker::before {
    content: "";
    width: 30px;
    height: 2px;
    background: #C6A34C;
    border-radius: 2px;
}

.ds-services__title {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 900;
    color: #24221D;
    line-height: 1.4;
}

.ds-services__title .ds-accent {
    color: #A98634;
    margin-right: 4px;
}

.ds-services__head-desc {
    font-size: 14px;
    line-height: 2;
    color: #7C7668;
    max-width: 400px;
    margin: 0;
}

/* --- Grid --- */
.ds-services__grid {
    display: grid;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Card --- */
.ds-services__card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #EBE3D3;
    border-radius: 20px;
    padding: 30px 24px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.4s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Hover line effect */
.ds-services__card::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #C6A34C, transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.ds-services__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(36,34,29,0.08);
    border-color: #DCCFA9;
}
.ds-services__card:hover::after {
    opacity: 1;
}

/* Icon */
.ds-services__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #F3EDE0;
    color: #C6A34C;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    transition: transform 0.4s, background 0.4s;
}
.ds-services__icon i,
.ds-services__icon svg {
    display: block;
}
.ds-services__card:hover .ds-services__icon {
    transform: scale(1.1) rotate(-5deg);
    background: #24221D;
    color: #FFFFFF;
}

/* Title & Desc */
.ds-services__card-title {
    font-size: 16px;
    font-weight: 800;
    color: #24221D;
    margin-bottom: 8px;
}

.ds-services__card-desc {
    font-size: 13px;
    line-height: 1.9;
    color: #7C7668;
    margin-bottom: 24px;
    flex-grow: 1; /* Pushes link to bottom */
}

/* Link */
.ds-services__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #A98634;
    text-decoration: none;
    transition: gap 0.3s;
}
.ds-services__link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
}
.ds-services__link:hover {
    gap: 10px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .ds-services__head {
        flex-direction: column;
        align-items: flex-start;
    }
    .ds-services__head-desc {
        max-width: 100%;
    }
}
@media (max-width: 767px) {
    .ds-services__card {
        padding: 24px 20px;
    }
}
/* ============================================================
   Steps Widget
   ============================================================ */
.ds-steps {
    width: 100%;
    overflow: hidden;
}

.ds-steps__head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.ds-steps__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #E7D6A6; /* Light gold */
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.ds-steps__title {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.4;
    margin-bottom: 12px;
}

.ds-steps__title .ds-accent {
    color: #C6A34C;
    margin-right: 4px;
}

.ds-steps__desc {
    font-size: 14px;
    line-height: 2;
    color: #CFC8B5;
    margin: 0;
}

/* --- Grid --- */
.ds-steps__grid {
    display: grid;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Card --- */
.ds-steps__card {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(198,163,76,0.25);
    border-radius: 18px;
    padding: 24px 20px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.4s, border-color 0.4s;
    overflow: hidden;
}

.ds-steps__card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(198,163,76,0.6);
}

/* Huge outlined number */
.ds-steps__num {
    font-family: 'Vazirmatn', Tahoma, sans-serif; /* Or any number font */
    font-size: 46px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
    color: transparent;
    -webkit-text-stroke: 1px #C6A34C;
    opacity: 0.8;
    transition: opacity 0.4s, transform 0.4s;
}

.ds-steps__card:hover .ds-steps__num {
    opacity: 1;
    transform: scale(1.05);
}

.ds-steps__card-title {
    font-size: 15px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.ds-steps__card-desc {
    font-size: 12.5px;
    line-height: 1.8;
    color: #D8D0B9;
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .ds-steps__head {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .ds-steps__card {
        padding: 20px 16px;
    }
    .ds-steps__num {
        font-size: 38px;
    }
}
/* ============================================================
   Before & After Widget
   ============================================================ */
.ds-ba-section {
    width: 100%;
}

.ds-ba-wrap {
    margin: 0 auto;
    max-width: 900px;
}

/* --- Header --- */
.ds-ba-head {
    text-align: center;
    margin-bottom: 40px;
}
.ds-ba-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #C6A34C;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.ds-ba-kicker::before, .ds-ba-kicker::after {
    content: ""; width: 20px; height: 1px; background: currentColor;
}
.ds-ba-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 900;
    line-height: 1.4;
    color: #24221D;
    margin-bottom: 12px;
}
.ds-ba-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #7C7668;
    margin: 0 auto;
}

/* --- Carousel Layout --- */
.ds-ba-carousel-wrapper {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ds-ease), transform 0.8s var(--ds-ease);

    /* متغیرهای پیش‌فرض (توسط المنتور بازنویسی می‌شوند) */
    --ds-slides: 1;
    --ds-gap: 20px;
}

.ds-ba-carousel-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ds-ba-viewport {
    overflow: hidden;
    border-radius: 20px;
    /* اگر اسلایدها بیشتر از ۱ باشند، حاشیه‌ها فقط دور کل اسلایدر است */
    background-color: transparent;
    display: block !important;
    width: 100% !important;
    padding-bottom: 20px; /* فضا برای سایه پایین کارت‌ها */
}

.ds-ba-track {
    display: flex !important;
    gap: var(--ds-gap);
    transition: transform 0.5s var(--ds-ease);
    width: 100%;
    align-items: stretch;
}

/* --- Individual Card --- */
.ds-ba-card {
    /* محاسبه داینامیک عرض کارت بر اساس تعداد اسلاید و فاصله‌ها */
    min-width: calc((100% - (var(--ds-slides) - 1) * var(--ds-gap)) / var(--ds-slides));
    width: calc((100% - (var(--ds-slides) - 1) * var(--ds-gap)) / var(--ds-slides));
    flex-shrink: 0;

    aspect-ratio: 16 / 10;
    position: relative !important;
    user-select: none;
    cursor: ew-resize;
    overflow: hidden;

    /* استایل قاب عکس */
    border-radius: 16px;
    border: 4px solid #FFFFFF;
    background-color: #F3EDE0;
    box-shadow: 0 10px 30px -10px rgba(36, 34, 29, 0.15);
    outline: 1px solid rgba(198, 163, 76, 0.2);
}

/* Images */
.ds-ba-img {
    position: absolute !important;
    top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important;
    object-fit: cover !important;
    pointer-events: none !important;
    display: block !important;
}
.ds-ba-img--after { z-index: 1; }
.ds-ba-img--before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

/* Slider Handle */
.ds-ba-handle {
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    background-color: #FFFFFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
    transform: translateX(-50%);
    pointer-events: none;
}
.ds-ba-button {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    background-color: #24221D;
    border: 2px solid #C6A34C;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #C6A34C;
    box-shadow: 0 4px 15px rgba(36, 34, 29, 0.4);
    transition: transform 0.3s var(--ds-ease), background-color 0.3s, color 0.3s;
}
.ds-ba-button svg { width: 18px; height: 18px; }
.ds-ba-card:hover .ds-ba-button {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #C6A34C;
    color: #24221D;
}

/* --- Dynamic Tooltip --- */
.ds-ba-tooltip {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translate(-50%, 0);
    background: rgba(36, 34, 29, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    width: max-content;
    max-width: 90%;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.3s, transform 0.3s, background 0.3s, border-color 0.3s;
    opacity: 0;
}
.ds-ba-tooltip.is-active {
    opacity: 1;
    transform: translate(-50%, 5px);
}
.ds-ba-tooltip .tt-title {
    display: block;
    color: #C6A34C;
    font-weight: 800;
    margin-bottom: 2px;
    font-size: 10px;
}
.ds-ba-tooltip.is-after {
    background: rgba(198, 163, 76, 0.95);
    color: #24221D;
    border-color: rgba(255,255,255,0.4);
}
.ds-ba-tooltip.is-after .tt-title {
    color: #24221D;
}

/* --- Navigation Arrows --- */
.ds-ba-nav {
    position: absolute;
    top: 50%;
    left: -25px;
    right: -25px;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}
.ds-ba-arrow {
    width: 46px; height: 46px;
    background: #fff;
    border: 1px solid #F3EDE0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #24221D;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 8px 20px rgba(36,34,29,0.15);
    transition: all 0.3s var(--ds-ease);
}
.ds-ba-arrow:hover {
    background: #C6A34C;
    border-color: #C6A34C;
    color: #fff;
    transform: scale(1.1);
}
.ds-ba-arrow:disabled {
    opacity: 0;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}
.ds-ba-arrow svg { width: 18px; height: 18px; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .ds-ba-nav { left: 10px; right: 10px; }
}
@media (max-width: 768px) {
    .ds-ba-card { aspect-ratio: 4 / 3; }
    .ds-ba-button { width: 40px; height: 40px; }
    .ds-ba-nav { display: none; }
}