/**
 * ==========================================================================
 * Daedalus Design — Global Component Stylesheet
 * ==========================================================================
 *
 * This file contains ALL component-level styles for the Daedalus Design
 * WordPress block theme. It consumes CSS custom properties defined in
 * the theme's style.css root block.
 *
 * Architecture:
 *   - Mobile-first (375px base)
 *   - Breakpoints: 480px / 768px / 1024px / 1200px
 *   - BEM-inspired naming with dd- prefix
 *   - No utility-framework dependencies
 *
 * Table of Contents:
 *   1.  Base / Reset Helpers
 *   2.  Layout Containers
 *   3.  Header & Navigation
 *   4.  Hero Sections
 *   5.  Section Layout
 *   6.  Buttons
 *   7.  Cards (Base)
 *   8.  Service Cards
 *   9.  Pricing Table
 *  10.  Testimonial Cards
 *  11.  Blog Cards
 *  12.  Portfolio Cards
 *  13.  Stats Counter
 *  14.  CTA Banners
 *  15.  Ecosystem Page Components
 *  16.  Contact Form
 *  17.  Footer
 *  18.  Scroll Animations
 *  19.  FAQ Accordion
 *  20.  Back to Top
 *  21.  WooCommerce Overrides
 *  22.  Glassmorphism Utilities
 *  23.  Responsive Utilities
 *
 * @package Daedalus_Design
 * @since   1.0.0
 */


/* ==========================================================================
   1. BASE / RESET HELPERS
   ========================================================================== */

:root {
    /* --- Brand Colors --- */
    --dd-navy:        #0D1B2A;
    --dd-navy-rgb:    13, 27, 42;
    --dd-charcoal:    #1a1f2e;
    --dd-gold:        #D4AF37;
    --dd-gold-rgb:    212, 175, 55;
    --dd-gold-light:  #e8d5a3;
    --dd-gold-dark:   #a8873a;
    --dd-white:       #ffffff;
    --dd-offwhite:    #f5f5f0;

    /* --- Neutral Grays --- */
    --dd-gray-100:    #f8f9fa;
    --dd-gray-200:    #e9ecef;
    --dd-gray-300:    #dee2e6;
    --dd-gray-600:    #6c757d;
    --dd-gray-800:    #343a40;

    /* --- Semantic Colors --- */
    --dd-success:     #28a745;
    --dd-danger:      #dc3545;

    /* --- Typography --- */
    --dd-font-display:  'Playfair Display', serif;
    --dd-font-body:     'Inter', sans-serif;
    --dd-font-mono:     'JetBrains Mono', monospace;

    /* --- Layout --- */
    --dd-content-width:   1200px;
    --dd-wide-width:      1400px;

    /* --- Border Radius --- */
    --dd-radius-card:    12px;
    --dd-radius-button:  8px;
    --dd-radius-input:   6px;
    --dd-radius-avatar:  50%;
    --dd-radius-pill:    100px;

    /* --- Shadows --- */
    --dd-shadow-card:       0 4px 20px rgba(0, 0, 0, 0.08);
    --dd-shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.12);
    --dd-shadow-gold-glow:  0 0 30px rgba(212, 175, 55, 0.3);

    /* --- Transitions --- */
    --dd-transition-fast:   0.2s ease;
    --dd-transition-base:   0.3s ease;
    --dd-transition-slow:   0.5s ease;

    /* --- Z-Index Scale --- */
    --dd-z-dropdown:  100;
    --dd-z-sticky:    200;
    --dd-z-overlay:   300;
    --dd-z-modal:     400;
    --dd-z-toast:     500;
}

/**
 * Smooth scrolling for in-page anchor links.
 * Respects user motion preferences.
 */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/**
 * Ensure consistent box-sizing across all elements.
 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/**
 * Base body typography — matches the theme's design tokens.
 */
body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dd-charcoal);
    background-color: var(--dd-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/**
 * Prevent body scroll when mobile nav is open.
 */
body.dd-nav-open {
    overflow: hidden;
}

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

a {
    color: var(--dd-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dd-gold-dark);
}


/* ==========================================================================
   2. LAYOUT CONTAINERS
   ========================================================================== */

/**
 * Standard content container — centers content with responsive padding.
 */
.dd-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .dd-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .dd-container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/**
 * Wide container for full-bleed sections.
 */
.dd-container--wide {
    max-width: 1400px;
}

/**
 * Generic flexbox & grid helpers.
 */
.dd-flex {
    display: flex;
}

.dd-grid {
    display: grid;
}


/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */

/**
 * Fixed header with navy background.
 * Transitions to a frosted-glass effect on scroll via JS-applied
 * .dd-header--scrolled class.
 */
.dd-header {
    position: relative;
    width: 100%;
    z-index: 1000;
    background-color: var(--dd-navy);
    transition: background-color 0.3s ease,
                box-shadow 0.3s ease,
                backdrop-filter 0.3s ease;
}

body.admin-bar .dd-header {
    top: 32px;
}

body.admin-bar .dd-nav,
body.admin-bar .wp-block-navigation__responsive-container.is-menu-open {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .dd-header {
        top: 46px;
    }
    body.admin-bar .dd-nav,
    body.admin-bar .wp-block-navigation__responsive-container.is-menu-open {
        top: 46px !important;
    }
}

.dd-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap !important;
    padding: 0.875rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dd-header__actions {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .dd-header__inner {
        padding: 1rem 2rem;
    }
}

@media (min-width: 1024px) {
    .dd-header__inner {
        padding: 1rem 3rem;
    }
}

/**
 * Scrolled state — frosted glass with subtle shadow.
 */
.dd-header--scrolled {
    background-color: rgba(13, 27, 62, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* ----- Logo ----- */

.dd-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1001;
}

.dd-header__logo img {
    max-height: 40px;
    width: auto;
}

@media (min-width: 768px) {
    .dd-header__logo img {
        max-height: 45px;
    }
}

.dd-header__logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dd-gold);
    letter-spacing: 0.02em;
}

/* ----- Navigation ----- */

.dd-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background-color: var(--dd-navy);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
}

/**
 * When open, the drawer slides in from the right.
 */
.dd-nav--open {
    display: flex;
    transform: translateX(0);
}

/**
 * Dark overlay behind mobile nav drawer.
 */
.dd-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dd-nav-overlay--visible {
    display: block;
    opacity: 1;
}

@media (min-width: 1024px) {
    /**
     * Desktop: inline horizontal nav, no drawer behaviour.
     */
    .dd-nav {
        display: flex;
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background-color: transparent;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        padding: 0;
        transform: none;
        overflow-y: visible;
        flex: 1 1 auto;
        justify-content: center;
    }

    .dd-nav-overlay {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .dd-nav {
        gap: 2rem;
    }
}

/* ----- Nav Items ----- */

.dd-nav__item {
    color: var(--dd-white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 0;
    position: relative;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 1024px) {
    .dd-nav__item {
        font-size: 0.85rem;
        padding: 0.5rem 0;
        border-bottom: none;
    }
}

/**
 * Gold underline animation on hover — expands from center.
 */
.dd-nav__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--dd-gold);
    transition: width 0.3s ease, left 0.3s ease;
}

.dd-nav__item:hover,
.dd-nav__item--active {
    color: var(--dd-gold);
}

.dd-nav__item:hover::after,
.dd-nav__item--active::after {
    width: 100%;
    left: 0;
}

/* ----- Hamburger Menu ----- */

.dd-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.dd-hamburger__line {
    width: 100%;
    height: 2px;
    background-color: var(--dd-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/**
 * Animate hamburger into an X when nav is open.
 */
.dd-hamburger--active .dd-hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.dd-hamburger--active .dd-hamburger__line:nth-child(2) {
    opacity: 0;
}

.dd-hamburger--active .dd-hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
    .dd-hamburger {
        display: none;
    }
}

/* ----- CTA Button in Nav ----- */

.dd-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dd-gold);
    color: var(--dd-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    margin-top: 1.5rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .dd-nav__cta {
        margin-top: 0;
        margin-left: 1rem;
    }
}

.dd-nav__cta:hover {
    transform: scale(1.05);
    background-color: var(--dd-gold-dark);
    color: var(--dd-white);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}


/* ==========================================================================
   4. HERO SECTIONS
   ========================================================================== */

/**
 * Full-viewport hero with navy background.
 * The particle canvas sits behind content at z-index 1.
 */
.dd-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dd-navy);
    overflow: hidden;
    padding: 6rem 1.5rem 4rem;
}

@media (min-width: 768px) {
    .dd-hero {
        padding: 8rem 2rem 6rem;
    }
}

/**
 * Gradient overlay at bottom for smooth visual transition
 * into the next section.
 */
.dd-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, var(--dd-navy), transparent);
    z-index: 2;
    pointer-events: none;
}

.dd-hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.dd-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dd-gold);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(212, 175, 55, 0.25);
}

@media (min-width: 480px) {
    .dd-hero__title {
        font-size: 2.75rem;
    }
}

@media (min-width: 768px) {
    .dd-hero__title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .dd-hero__title {
        font-size: 3.5rem;
    }
}

.dd-hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--dd-white);
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .dd-hero__subtitle {
        font-size: 1.25rem;
    }
}

/**
 * CTA button group — stacks vertically on mobile, inline on desktop.
 */
.dd-hero__cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 480px) {
    .dd-hero__cta-group {
        flex-direction: row;
        justify-content: center;
    }
}

/**
 * Particle canvas — absolutely positioned behind hero content.
 */
.dd-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}


/* ==========================================================================
   5. SECTION LAYOUT
   ========================================================================== */

.dd-section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .dd-section {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .dd-section {
        padding: 6rem 0;
    }
}

/* ----- Section Variants ----- */

.dd-section--navy {
    background-color: var(--dd-navy);
    color: var(--dd-white);
}

.dd-section--offwhite {
    background-color: var(--dd-offwhite);
}

.dd-section--gold-accent {
    border-top: 3px solid var(--dd-gold);
}

/* ----- Section Header ----- */

.dd-section__header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .dd-section__header {
        margin-bottom: 4rem;
    }
}

/**
 * Section title with a gold underline pseudo-element.
 */
.dd-section__title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dd-navy);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

@media (min-width: 768px) {
    .dd-section__title {
        font-size: 2.5rem;
    }
}

.dd-section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--dd-gold);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/**
 * When inside a navy section, the title should be white/gold.
 */
.dd-section--navy .dd-section__title {
    color: var(--dd-white);
}

.dd-section__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: var(--dd-gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.dd-section--navy .dd-section__subtitle {
    color: var(--dd-gray-300);
}


/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

/**
 * Base button — shared by all variants.
 */
.dd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 1 !important;
    visibility: visible !important;
}

.wp-element-button.dd-btn {
    text-decoration: none !important;
}

.wp-element-button.dd-btn:focus,
.wp-element-button.dd-btn:active,
.dd-btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5) !important;
}

/* ----- Primary: Gold Gradient ----- */

.dd-btn--primary,
.wp-element-button.dd-btn--primary,
.dd-btn--primary .wp-element-button {
    background: var(--dd-gold) !important;
    color: var(--dd-navy) !important;
}

.dd-btn--primary:hover,
.wp-element-button.dd-btn--primary:hover,
.dd-btn--primary:hover .wp-element-button {
    transform: translateY(-2px);
    background: var(--dd-gold-dark) !important;
    color: var(--dd-navy) !important;
}

/* ----- Secondary: Navy ----- */

.dd-btn--secondary,
.wp-element-button.dd-btn--secondary,
.dd-btn--secondary .wp-element-button {
    background: var(--dd-navy) !important;
    color: var(--dd-white) !important;
}

.dd-btn--secondary:hover,
.wp-element-button.dd-btn--secondary:hover,
.dd-btn--secondary:hover .wp-element-button {
    transform: translateY(-2px);
    background: var(--dd-charcoal) !important;
    color: var(--dd-white) !important;
}

/* ----- Outline: Gold border ----- */

.dd-btn--outline,
.wp-element-button.dd-btn--outline,
.dd-btn--outline .wp-element-button {
    background-color: transparent !important;
    color: var(--dd-gold) !important;
    border: 2px solid var(--dd-gold) !important;
}

.dd-btn--outline:hover,
.wp-element-button.dd-btn--outline:hover,
.dd-btn--outline:hover .wp-element-button {
    background: var(--dd-gold) !important;
    color: var(--dd-navy) !important;
}

/* ----- Sizes ----- */

.dd-btn--large {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
}

.dd-btn--small {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
}

/**
 * Arrow icon inside buttons — animates right on hover.
 */
.dd-btn .dd-btn__icon {
    transition: transform 0.3s ease;
    display: inline-flex;
}

.dd-btn:hover .dd-btn__icon {
    transform: translateX(4px);
}


/* ==========================================================================
   7. CARDS (BASE)
   ========================================================================== */

.dd-card {
    background-color: var(--dd-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dd-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.dd-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
}

.dd-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dd-card__body {
    padding: 1.5rem;
}

.dd-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dd-navy);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.dd-card__text {
    color: var(--dd-gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.dd-card__footer {
    border-top: 1px solid var(--dd-gray-200);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/**
 * Generic card grid — responsive columns.
 */
.dd-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .dd-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dd-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ==========================================================================
   8. SERVICE CARDS
   ========================================================================== */

.dd-card--service {
    border-top: 3px solid var(--dd-gold);
    text-align: center;
    padding: 2rem 1.5rem;
}

.dd-card--service .dd-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--dd-navy);
    color: var(--dd-gold);
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.dd-card--service .dd-card__title {
    font-size: 1.125rem;
}

/**
 * Feature list inside service cards — each item has a gold checkmark.
 */
.dd-card--service .dd-card__features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    text-align: left;
}

.dd-card--service .dd-card__features li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.75rem;
    color: var(--dd-gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
}

.dd-card--service .dd-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.4rem;
    color: var(--dd-gold);
    font-weight: 700;
    font-size: 1rem;
}


/* ==========================================================================
   9. PRICING TABLE
   ========================================================================== */

.dd-pricing__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .dd-pricing__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dd-pricing__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/**
 * For 4- or 5-tier pricing, expand at wide viewport.
 */
@media (min-width: 1200px) {
    .dd-pricing__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ----- Individual Pricing Card ----- */

.dd-pricing-card {
    background-color: var(--dd-white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--dd-gray-200);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dd-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

/**
 * Featured tier — scaled up, gold border, glow effect.
 */
.dd-pricing-card--featured {
    border: 2px solid var(--dd-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 2;
}

@media (min-width: 1024px) {
    .dd-pricing-card--featured {
        transform: scale(1.05);
    }

    .dd-pricing-card--featured:hover {
        transform: scale(1.05) translateY(-4px);
    }
}

/**
 * "MOST POPULAR" badge on featured tier.
 * Badge HTML is handled in the pattern directly.
 */

.dd-pricing__tier-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dd-gold);
    margin-bottom: 0.75rem;
}

.dd-pricing__price {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--dd-navy);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.dd-pricing__price .period {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--dd-gray-600);
    margin-top: 0.25rem;
}

.dd-pricing__description {
    font-size: 0.9rem;
    color: var(--dd-gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/**
 * Feature list with checkmark icons.
 */
.dd-pricing__features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
    flex-grow: 1;
}

.dd-pricing__features li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
    border-bottom: 1px solid var(--dd-gray-100);
    font-size: 0.9rem;
    color: var(--dd-charcoal);
    line-height: 1.5;
}

.dd-pricing__features li:last-child {
    border-bottom: none;
}

.dd-pricing__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: var(--dd-gold);
    font-weight: 700;
}

/**
 * CTA at bottom of pricing card — fills width, pushed to bottom
 * by flex-grow on the feature list.
 */
.dd-pricing__cta {
    margin-top: auto;
    width: 100%;
}

/**
 * Toggle switch for monthly/annual pricing.
 */
.dd-pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    color: var(--dd-gray-600);
}

.dd-pricing-toggle__switch {
    position: relative;
    width: 56px;
    height: 30px;
    background-color: var(--dd-gray-300);
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dd-pricing-toggle__switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: var(--dd-white);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.dd-pricing-toggle__switch--active {
    background-color: var(--dd-gold);
}

.dd-pricing-toggle__switch--active::after {
    transform: translateX(26px);
}

.dd-pricing-toggle__label--active {
    color: var(--dd-navy);
    font-weight: 600;
}


/* ==========================================================================
   10. TESTIMONIAL CARDS
   ========================================================================== */

.dd-card--testimonial {
    background-color: var(--dd-navy);
    color: var(--dd-white);
    padding: 2.5rem;
    position: relative;
    border-radius: 12px;
}

/**
 * Large gold quote icon — decorative only.
 */
.dd-card--testimonial::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--dd-gold);
    opacity: 0.3;
    line-height: 1;
    pointer-events: none;
}

.dd-testimonial__text {
    font-style: italic;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .dd-testimonial__text {
        font-size: 1.1rem;
    }
}

.dd-testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dd-testimonial__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--dd-gold);
}

.dd-testimonial__name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--dd-gold);
    font-size: 0.95rem;
}

.dd-testimonial__role {
    font-size: 0.85rem;
    color: var(--dd-gray-300);
    margin-top: 0.15rem;
}


/* ==========================================================================
   11. BLOG CARDS
   ========================================================================== */

.dd-card--blog .dd-card__body {
    padding: 1.5rem;
}

/**
 * Meta row: date, reading time, etc.
 */
.dd-blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--dd-gray-600);
}

/**
 * Category badge — gold pill.
 */
.dd-blog-meta__category {
    display: inline-block;
    background-color: var(--dd-gold);
    color: var(--dd-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/**
 * Reading time with clock icon.
 */
.dd-blog-meta__read-time::before {
    content: '🕐 ';
    font-size: 0.8rem;
}

/**
 * Blog card title — gold transition on hover.
 */
.dd-card--blog .dd-card__title {
    transition: color 0.3s ease;
}

.dd-card--blog:hover .dd-card__title {
    color: var(--dd-gold);
}

/**
 * Blog grid layout.
 */
.dd-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .dd-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dd-blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ==========================================================================
   12. PORTFOLIO CARDS
   ========================================================================== */

.dd-card--portfolio {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.dd-card--portfolio .dd-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.dd-card--portfolio .dd-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.dd-card--portfolio:hover .dd-card__image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/**
 * Hover overlay — slides up from bottom.
 */
.dd-card--portfolio .dd-portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 27, 62, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dd-card--portfolio:hover .dd-portfolio-overlay {
    transform: translateY(0);
}

.dd-portfolio-overlay__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dd-white);
    margin-bottom: 0.25rem;
}

.dd-portfolio-overlay__category {
    font-size: 0.85rem;
    color: var(--dd-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* ==========================================================================
   13. STATS COUNTER
   ========================================================================== */

.dd-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .dd-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }
}

.dd-stats__item {
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

/**
 * Vertical gold divider between stat items (desktop only).
 */
@media (min-width: 768px) {
    .dd-stats__item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 15%;
        right: 0;
        width: 1px;
        height: 70%;
        background-color: var(--dd-gold);
        opacity: 0.3;
    }
}

/**
 * Horizontal divider on mobile.
 */
@media (max-width: 767px) {
    .dd-stats__item {
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .dd-stats__item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

.dd-stats__number {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dd-gold);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .dd-stats__number {
        font-size: 3rem;
    }
}

.dd-stats__label {
    color: var(--dd-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .dd-stats__label {
        font-size: 0.85rem;
    }
}


/* ==========================================================================
   14. CTA BANNERS
   ========================================================================== */

.dd-cta-banner {
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .dd-cta-banner {
        padding: 5rem 2rem;
    }
}

/**
 * Gold gradient variant — primary CTA style.
 */
.dd-cta-banner--gold {
    background: linear-gradient(135deg, var(--dd-gold) 0%, var(--dd-gold-dark) 100%);
    color: var(--dd-navy);
}

/**
 * Subtle diagonal pattern overlay for texture.
 */
.dd-cta-banner--gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.03) 20px,
        rgba(255, 255, 255, 0.03) 40px
    );
    pointer-events: none;
}

/**
 * Navy variant — for CTA sections on lighter pages.
 */
.dd-cta-banner--navy {
    background-color: var(--dd-navy);
    color: var(--dd-white);
}

.dd-cta-banner--navy .dd-cta-banner__title {
    color: var(--dd-gold);
}

.dd-cta-banner__title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .dd-cta-banner__title {
        font-size: 2.5rem;
    }
}

.dd-cta-banner__text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.dd-cta-banner__actions {
    position: relative;
    z-index: 1;
}


/* ==========================================================================
   15. ECOSYSTEM PAGE COMPONENTS
   ========================================================================== */

/**
 * Donut chart — SVG container, centered on page.
 */
.dd-donut-chart {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    position: relative;
}

@media (min-width: 768px) {
    .dd-donut-chart {
        width: 250px;
        height: 250px;
    }
}

.dd-donut-chart svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.dd-donut-chart circle {
    fill: none;
    stroke-width: 30;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/**
 * Legend for donut chart.
 */
.dd-donut-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.dd-donut-legend__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--dd-gray-600);
}

.dd-donut-legend__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dd-donut-legend__dot--gold {
    background-color: var(--dd-gold);
}

.dd-donut-legend__dot--navy {
    background-color: var(--dd-navy);
}

.dd-donut-legend__dot--light {
    background-color: var(--dd-gold-light);
}

/**
 * Workflow diagram — sequential step visualization.
 */
.dd-workflow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .dd-workflow-diagram {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }
}

.dd-workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    min-width: 160px;
    max-width: 220px;
}

.dd-workflow-step__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--dd-navy);
    color: var(--dd-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.dd-workflow-step__title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dd-navy);
    margin-bottom: 0.5rem;
}

.dd-workflow-step__text {
    font-size: 0.85rem;
    color: var(--dd-gray-600);
    line-height: 1.6;
}

/**
 * Connecting line/arrow between steps.
 */
.dd-workflow-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--dd-gold), var(--dd-gold-light));
    position: relative;
}

@media (min-width: 768px) {
    .dd-workflow-connector {
        width: 60px;
        height: 2px;
        background: linear-gradient(to right, var(--dd-gold), var(--dd-gold-light));
    }

    .dd-workflow-connector::after {
        content: '→';
        position: absolute;
        right: -8px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--dd-gold);
        font-size: 1rem;
    }
}

/**
 * Platform icons grid — social/output channels.
 */
.dd-platform-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .dd-platform-icons {
        grid-template-columns: repeat(5, 1fr);
        max-width: 600px;
    }
}

.dd-platform-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    background-color: var(--dd-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.dd-platform-icon:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dd-platform-icon img,
.dd-platform-icon svg {
    width: 36px;
    height: 36px;
}

.dd-platform-icon__label {
    font-size: 0.75rem;
    color: var(--dd-gray-600);
    text-align: center;
}

/**
 * Pulse animation for platform icons on scroll reveal.
 */
.dd-platform-icon--pulse {
    animation: ddPlatformPulse 0.6s ease forwards;
}

@keyframes ddPlatformPulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/**
 * Feature grid — 2×3 cards with icons.
 */
.dd-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 480px) {
    .dd-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dd-feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dd-feature-card {
    padding: 1.5rem;
    background-color: var(--dd-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.dd-feature-card:hover {
    transform: translateY(-4px);
}

.dd-feature-card__icon {
    font-size: 1.75rem;
    color: var(--dd-gold);
    margin-bottom: 1rem;
}

.dd-feature-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dd-navy);
    margin-bottom: 0.5rem;
}

.dd-feature-card__text {
    font-size: 0.9rem;
    color: var(--dd-gray-600);
    line-height: 1.7;
}


/* ==========================================================================
   16. CONTACT FORM
   ========================================================================== */

.dd-form {
    max-width: 600px;
    margin: 0 auto;
}

.dd-form__group {
    margin-bottom: 1.5rem;
}

.dd-form__label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dd-navy);
    margin-bottom: 0.5rem;
}

.dd-form__input,
.dd-form__textarea,
.dd-form__select {
    width: 100%;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--dd-charcoal);
    background-color: var(--dd-white);
    border: 1px solid var(--dd-gray-300);
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
}

.dd-form__input:focus,
.dd-form__textarea:focus,
.dd-form__select:focus {
    outline: none;
    border-color: var(--dd-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.dd-form__input::placeholder,
.dd-form__textarea::placeholder {
    color: var(--dd-gray-600);
    opacity: 0.7;
}

.dd-form__textarea {
    min-height: 150px;
    resize: vertical;
}

/**
 * Error / success states.
 */
.dd-form__input--error {
    border-color: var(--dd-danger);
}

.dd-form__input--success {
    border-color: var(--dd-success);
}

.dd-form__error {
    font-size: 0.8rem;
    color: var(--dd-danger);
    margin-top: 0.35rem;
}

.dd-form__success-message {
    text-align: center;
    padding: 2rem;
    background-color: rgba(40, 167, 69, 0.08);
    border-radius: 12px;
    color: var(--dd-success);
    font-weight: 600;
}


/* ==========================================================================
   17. FOOTER
   ========================================================================== */

.dd-footer {
    background-color: var(--dd-navy);
    color: var(--dd-white);
    border-top: 3px solid var(--dd-gold);
    padding-top: 4rem;
}

.dd-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .dd-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dd-footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dd-footer__col {
    /* Column within footer grid */
}

.dd-footer__heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dd-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.dd-footer__text {
    font-size: 0.9rem;
    color: var(--dd-gray-300);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/**
 * Footer nav links.
 */
.dd-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dd-footer__links li {
    margin-bottom: 0.75rem;
}

.dd-footer__links a {
    color: var(--dd-gray-300);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.dd-footer__links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--dd-gold);
    transition: width 0.3s ease;
}

.dd-footer__links a:hover {
    color: var(--dd-white);
}

.dd-footer__links a:hover::after {
    width: 100%;
}

/**
 * Social media icons row.
 */
.dd-footer__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.dd-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--dd-gray-600);
    color: var(--dd-gray-300);
    font-size: 1rem;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.dd-footer__social-link:hover {
    border-color: var(--dd-gold);
    color: var(--dd-gold);
    transform: translateY(-2px);
}

/**
 * Copyright bar at bottom.
 */
.dd-footer__bottom {
    border-top: 1px solid var(--dd-gray-800);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

.dd-footer__copyright {
    font-size: 0.85rem;
    color: var(--dd-gray-600);
}

.dd-footer__copyright a {
    color: var(--dd-gold);
}

.dd-footer__copyright a:hover {
    color: var(--dd-gold-light);
}


/* ==========================================================================
   18. SCROLL ANIMATIONS
   ========================================================================== */

/**
 * Elements start hidden and off-position. JS adds .dd-animate--visible
 * via IntersectionObserver to trigger the reveal.
 */
.dd-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.dd-animate--visible {
    opacity: 1;
    transform: translateY(0);
}

/**
 * Staggered delays for sequential reveals in a grid.
 */
.dd-animate--delay-1 {
    transition-delay: 0.15s;
}

.dd-animate--delay-2 {
    transition-delay: 0.3s;
}

.dd-animate--delay-3 {
    transition-delay: 0.45s;
}

.dd-animate--delay-4 {
    transition-delay: 0.6s;
}

/**
 * Shimmer animation — e.g. for loading states or gold accents.
 */
.dd-shimmer {
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(212, 175, 55, 0.15) 50%,
        transparent 70%
    );
    background-size: 200% 100%;
    animation: ddShimmer 2.5s infinite linear;
}

@keyframes ddShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/**
 * Fade-in animation (standalone keyframes variant).
 */
.dd-fade-in {
    animation: ddFadeIn 0.6s ease forwards;
}

@keyframes ddFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/**
 * Slide-up animation.
 */
.dd-slide-up {
    animation: ddSlideUp 0.6s ease forwards;
}

@keyframes ddSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/**
 * Respect user motion preferences — disable all animations.
 */
@media (prefers-reduced-motion: reduce) {
    .dd-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .dd-shimmer {
        animation: none;
    }

    .dd-fade-in,
    .dd-slide-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
}


/* ==========================================================================
   19. FAQ ACCORDION
   ========================================================================== */

.dd-faq {
    max-width: 800px;
    margin: 0 auto;
}

.dd-faq__item {
    border-bottom: 1px solid var(--dd-gray-200);
}

.dd-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dd-navy);
    text-align: left;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.dd-faq__question:hover {
    color: var(--dd-gold);
}

/**
 * Chevron icon — rotates 180° when open.
 */
.dd-faq__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-left: 1rem;
    transition: transform 0.3s ease;
    color: var(--dd-gold);
}

.dd-faq__item--open .dd-faq__icon {
    transform: rotate(180deg);
}

/**
 * Answer area — hidden by max-height: 0 and revealed on .dd-faq__item--open.
 */
.dd-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.dd-faq__item--open .dd-faq__answer {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

.dd-faq__answer p {
    color: var(--dd-gray-600);
    line-height: 1.7;
    font-size: 0.95rem;
}


/* ==========================================================================
   20. BACK TO TOP BUTTON
   ========================================================================== */

.dd-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--dd-gold);
    color: var(--dd-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.dd-back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dd-back-to-top:hover {
    background-color: var(--dd-gold-dark);
    transform: translateY(-2px);
}


/* ==========================================================================
   21. WOOCOMMERCE OVERRIDES
   ========================================================================== */

/**
 * WooCommerce buttons — match .dd-btn--primary style.
 */
.woocommerce .button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input[type="submit"],
.woocommerce #respond input#submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--dd-gold);
    border-radius: 8px;
    background-color: var(--dd-gold);
    color: var(--dd-white);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.woocommerce .button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input[type="submit"]:hover,
.woocommerce #respond input#submit:hover {
    background-color: var(--dd-gold-dark);
    border-color: var(--dd-gold-dark);
    color: var(--dd-white);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/**
 * WooCommerce alt / outline buttons.
 */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: var(--dd-navy);
    border-color: var(--dd-navy);
    color: var(--dd-white);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: var(--dd-charcoal);
    border-color: var(--dd-charcoal);
    box-shadow: none;
}

/**
 * Product cards — match .dd-card style.
 */
.woocommerce ul.products li.product {
    background-color: var(--dd-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    margin: 0;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.woocommerce ul.products li.product a img {
    border-radius: 0;
    margin: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dd-navy);
    padding: 1rem 1.5rem 0.25rem;
}

/**
 * Price styling — gold, Playfair Display.
 */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-family: 'Playfair Display', serif;
    color: var(--dd-gold);
    font-size: 1.25rem;
    font-weight: 700;
}

.woocommerce ul.products li.product .price {
    padding: 0 1.5rem 1rem;
}

/**
 * Star ratings — gold color.
 */
.woocommerce .star-rating span::before {
    color: var(--dd-gold);
}

/**
 * Cart & checkout tables.
 */
.woocommerce table.shop_table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--dd-gray-200);
}

.woocommerce table.shop_table thead th {
    background-color: var(--dd-navy);
    color: var(--dd-white);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.woocommerce table.shop_table td {
    font-family: 'Inter', sans-serif;
    border-color: var(--dd-gray-200);
}

/**
 * WooCommerce messages / notices.
 */
.woocommerce .woocommerce-message {
    border-top-color: var(--dd-gold);
}

.woocommerce .woocommerce-message::before {
    color: var(--dd-gold);
}

/**
 * Sale badge.
 */
.woocommerce span.onsale {
    background-color: var(--dd-gold);
    color: var(--dd-white);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    border-radius: 100px;
    min-width: auto;
    min-height: auto;
    padding: 0.35rem 0.75rem;
    line-height: 1.2;
    font-size: 0.75rem;
}



/* ==========================================================================
   21A. FEATURE LIST
   ==========================================================================
   Checkmark-style list used in pricing cards and feature sections.
   ========================================================================== */

.dd-feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.dd-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dd-gray-300);
}

.dd-feature-list li::before {
    content: '✓';
    position: static;
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--dd-gold);
    font-weight: 700;
    font-size: 1rem;
}

.dd-feature-list--gold li {
    color: var(--dd-white);
}


/* ==========================================================================
   21B. IMAGE UTILITIES
   ==========================================================================
   Rounded image container and other image helpers.
   ========================================================================== */

.dd-image--rounded {
    border-radius: 12px;
    overflow: hidden;
}

.dd-image--rounded img {
    border-radius: 12px;
}


/* ==========================================================================
   21C. LINK UTILITIES
   ==========================================================================
   Styled link variants for inline and navigation use.
   ========================================================================== */

.dd-link--gold {
    color: var(--dd-gold);
    font-weight: 600;
    transition: color 0.3s ease;
}

.dd-link--gold:hover {
    color: var(--dd-gold-dark);
}


/* ==========================================================================
   21D. BLOG GRID INNER
   ==========================================================================
   Responsive grid for the blog query loop layout.
   ========================================================================== */

.dd-blog-grid-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .dd-blog-grid-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dd-blog-grid-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ==========================================================================
   22. GLASSMORPHISM UTILITIES
   ========================================================================== */

.dd-glass {
    background: rgba(13, 27, 62, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
}

.dd-glass--light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}


/* ==========================================================================
   23. RESPONSIVE UTILITIES
   ========================================================================== */

/**
 * Visibility helpers for responsive layout control.
 */
@media (max-width: 767px) {
    .dd-hide-mobile {
        display: none !important;
    }

    .dd-text-center-mobile {
        text-align: center !important;
    }
}

@media (min-width: 768px) {
    .dd-hide-desktop {
        display: none !important;
    }
}
