/**
 * GenPA Decorative Elements
 * Leaf icons, ornamental dividers, diamond patterns
 */

/* ===================================
   Section Title with Decoration
   =================================== */
.section-title-decorated {
    font-family: var(--gsp-font-heading);
    color: var(--gsp-commonwealth-clay);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.section-title-decorated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--gsp-keystone-gold);
}

/* Centered version */
.section-title-decorated.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* With leaf icon */
.section-title-decorated.with-leaf::after {
    width: 100px;
    background: linear-gradient(
        to right,
        var(--gsp-keystone-gold) 40%,
        transparent 40%,
        transparent 50%,
        var(--gsp-keystone-gold) 50%,
        var(--gsp-keystone-gold) 60%,
        transparent 60%
    );
}

.section-title-decorated.with-leaf::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 45px;
    width: 12px;
    height: 12px;
    background-image: url('../img/leaf-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.section-title-decorated.text-center.with-leaf::before {
    left: 50%;
    transform: translateX(-50%);
}

/* ===================================
   Leaf Icon Utility
   =================================== */
.icon-leaf {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('../img/leaf-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.icon-leaf-gold {
    filter: brightness(0) saturate(100%) invert(66%) sepia(67%) saturate(1046%) hue-rotate(8deg) brightness(95%) contrast(106%);
}

.icon-leaf-evergreen {
    filter: brightness(0) saturate(100%) invert(18%) sepia(78%) saturate(1307%) hue-rotate(113deg) brightness(93%) contrast(103%);
}

/* Before/After content */
.icon-leaf-before::before,
.icon-leaf-after::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('../img/leaf-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.icon-leaf-before::before {
    margin-right: 0.5em;
}

.icon-leaf-after::after {
    margin-left: 0.5em;
}

/* ===================================
   Decorative Divider
   =================================== */
.decorative-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.decorative-divider::before,
.decorative-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to var(--direction, right),
        transparent,
        var(--gsp-keystone-gold),
        var(--gsp-keystone-gold)
    );
}

.decorative-divider::before {
    --direction: right;
    margin-right: 1rem;
}

.decorative-divider::after {
    --direction: left;
    margin-left: 1rem;
}

.decorative-divider .divider-icon {
    width: 24px;
    height: 24px;
    color: var(--gsp-keystone-gold);
}

/* Ornament divider with image */
.decorative-divider.with-ornament::before,
.decorative-divider.with-ornament::after {
    max-width: 200px;
}

.decorative-divider .ornament {
    width: 40px;
    height: 20px;
    background-image: url('../img/ornament-divider.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ===================================
   Diamond Pattern Background
   =================================== */
.bg-diamond-pattern {
    position: relative;
    background-color: var(--gsp-parchment);
}

.bg-diamond-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/diamond-pattern.svg');
    background-repeat: repeat;
    background-size: 60px 60px;
    opacity: 0.15;
    pointer-events: none;
}

.bg-diamond-pattern > * {
    position: relative;
    z-index: 1;
}

/* Darker diamond pattern for overlays */
.bg-diamond-pattern-dark {
    position: relative;
}

.bg-diamond-pattern-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/diamond-pattern.svg');
    background-repeat: repeat;
    background-size: 60px 60px;
    opacity: 0.08;
    pointer-events: none;
}

/* ===================================
   Decorative Border
   =================================== */
.border-decorated {
    position: relative;
    border: 2px solid var(--gsp-evergreen);
}

.border-decorated::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px solid var(--gsp-keystone-gold);
    pointer-events: none;
}

/* ===================================
   Corner Decorations
   =================================== */
.corners-decorated {
    position: relative;
}

.corners-decorated::before,
.corners-decorated::after,
.corners-decorated .corner-bl,
.corners-decorated .corner-br {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--gsp-keystone-gold);
    border-style: solid;
    border-width: 0;
}

.corners-decorated::before {
    top: 0;
    left: 0;
    border-top-width: 3px;
    border-left-width: 3px;
}

.corners-decorated::after {
    top: 0;
    right: 0;
    border-top-width: 3px;
    border-right-width: 3px;
}

.corners-decorated .corner-bl {
    bottom: 0;
    left: 0;
    border-bottom-width: 3px;
    border-left-width: 3px;
}

.corners-decorated .corner-br {
    bottom: 0;
    right: 0;
    border-bottom-width: 3px;
    border-right-width: 3px;
}

/* ===================================
   Quote Block Decoration
   =================================== */
.quote-decorated {
    position: relative;
    padding: 2rem;
    padding-left: 3rem;
    background-color: var(--gsp-parchment);
    border-left: 4px solid var(--gsp-keystone-gold);
    font-family: var(--gsp-font-heading);
    font-style: italic;
    color: var(--gsp-evergreen);
}

.quote-decorated::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 4rem;
    color: var(--gsp-keystone-gold);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ===================================
   List with Leaf Bullets
   =================================== */
.list-leaf-bullets {
    list-style: none;
    padding-left: 0;
}

.list-leaf-bullets li {
    position: relative;
    padding-left: 1.75em;
    margin-bottom: 0.5em;
}

.list-leaf-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25em;
    width: 1em;
    height: 1em;
    background-image: url('../img/leaf-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

/* ===================================
   Accent Line Utilities
   =================================== */
.accent-line-top {
    position: relative;
}

.accent-line-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--gsp-keystone-gold);
}

.accent-line-bottom {
    position: relative;
}

.accent-line-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--gsp-keystone-gold);
}

/* Centered accent lines */
.accent-line-top.text-center::before,
.accent-line-bottom.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===================================
   Card Hover Decoration
   =================================== */
.card-decorated {
    position: relative;
    overflow: hidden;
}

.card-decorated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        to right,
        var(--gsp-evergreen),
        var(--gsp-keystone-gold)
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--gsp-transition-base);
}

.card-decorated:hover::before {
    transform: scaleX(1);
}

/* ===================================
   Section Wave Separator
   =================================== */
.wave-separator {
    position: relative;
    height: 60px;
    overflow: hidden;
}

.wave-separator svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave-separator.wave-top {
    transform: rotate(180deg);
}
