@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400;1,600&family=Cinzel:wght@400;600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---------- CSS Variables (Zayyora Theme) ---------- */
:root {
    --gift-primary:       #062037;
    --gift-primary-dark:  #041425;
    --gift-primary-light: #1A3A55;
    --gift-accent:        #C5A054;
    --gift-accent-light:  #DCC07A;
    --gift-cream:         #FAF7F2;
    --gift-text-dark:     #062037;
    --gift-text-muted:    #6b7d8e;
    --gift-white:         #FFFFFF;

    --gift-radius-card:   18px;
    --gift-radius-btn:    50px;

    --gift-shadow-card:   0 25px 60px rgba(6, 32, 55, 0.25),
                          0 8px 20px rgba(0,0,0,0.08);
    --gift-shadow-hover:  0 35px 80px rgba(6, 32, 55, 0.30),
                          0 12px 30px rgba(0,0,0,0.12);

    --gift-transition:    all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Section Wrapper ---------- */
.gift-section {
    position: relative;
    background: var(--gift-cream);
    padding: 100px 24px;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
}

/* ---------- Background Ornaments ---------- */
.gift-bg-ornament {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.gift-bg-ornament--left {
    top: -250px;
    left: -250px;
    background: radial-gradient(circle, rgba(6,32,55,0.06) 0%, transparent 70%);
}

.gift-bg-ornament--right {
    bottom: -250px;
    right: -250px;
    background: radial-gradient(circle, rgba(197,160,84,0.08) 0%, transparent 70%);
}

/* ---------- Container ---------- */
.gift-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* ============================================
   GIFT CARD VISUAL
   ============================================ */
.gift-card-visual {
    position: relative;
    flex: 0 0 420px;
    max-width: 100%;
}

.gift-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1.58 / 1; /* Standard credit card aspect ratio */
    border-radius: var(--gift-radius-card);
    background:
        radial-gradient(ellipse at 30% 20%, rgba(26, 58, 85, 0.9) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(4, 20, 37, 0.95) 0%, transparent 55%),
        linear-gradient(135deg, #1A3A55 0%, #041425 40%, #062037 70%, #020d18 100%);
    box-shadow: var(--gift-shadow-card);
    overflow: hidden;
    transition: var(--gift-transition);
    cursor: pointer;
}

.gift-card-inner:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: var(--gift-shadow-hover);
}

/* Shimmer effect */
.gift-card-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: shimmer 3.5s infinite linear;
    border-radius: var(--gift-radius-card);
    pointer-events: none;
    z-index: 2;
}

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

/* Card body layout */
.gift-card-body {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 36px;
    text-align: center;
}

/* Logo */
.gift-card-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.gift-card-logo__icon {
    color: var(--gift-accent-light);
    font-size: 14px;
    line-height: 1;
}

.gift-card-logo__name {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--gift-accent-light);
    text-transform: uppercase;
}

/* Script text */
.gift-card-script {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(32px, 5vw, 52px); /* Fluid typography */
    font-weight: 300;
    color: var(--gift-accent-light);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(197, 160, 84, 0.3);
    letter-spacing: 0.02em;
}

/* Tagline */
.gift-card-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: rgba(220, 192, 122, 0.75);
    text-transform: uppercase;
}

/* Decorative circles */
.gift-card-deco {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(197, 160, 84, 0.15);
    pointer-events: none;
    z-index: 1;
}

.gift-card-deco--tl {
    width: 160px;
    height: 160px;
    top: -60px;
    left: -60px;
}

.gift-card-deco--br {
    width: 200px;
    height: 200px;
    bottom: -80px;
    right: -70px;
    border-color: rgba(197, 160, 84, 0.1);
}

/* Floating badge */
.gift-card-badge {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gift-accent), var(--gift-accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--gift-primary-dark);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(197, 160, 84, 0.4);
    animation: badge-float 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-5px) rotate(5deg); }
}

/* ============================================
   CONTENT SIDE
   ============================================ */
.gift-content {
    flex: 1;
    min-width: 0; /* Prevents flex overflow */
}

.gift-content__eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.22em;
    color: var(--gift-accent);
    text-transform: uppercase;
    margin: 0 0 20px;
    position: relative;
    padding-left: 24px;
}

.gift-content__eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 1px;
    background: var(--gift-accent);
}

.gift-content__heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4.5vw, 46px); /* Fluid typography */
    font-weight: 300;
    line-height: 1.18;
    color: var(--gift-text-dark);
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

.gift-content__heading em {
    font-style: italic;
    color: var(--gift-primary);
    font-weight: 400;
}

.gift-content__sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--gift-text-muted);
    line-height: 1.7;
    margin: 0 0 36px;
    letter-spacing: 0.02em;
}

/* ---------- Buttons ---------- */
.gift-content__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gift-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: var(--gift-radius-btn);
    transition: var(--gift-transition);
    cursor: pointer;
    white-space: nowrap;
}

.gift-btn--primary {
    background: linear-gradient(135deg, var(--gift-primary), var(--gift-primary-dark));
    color: var(--gift-cream) !important;
    padding: 16px 32px;
    box-shadow: 0 8px 30px rgba(6, 32, 55, 0.35);
    border: none;
}

.gift-btn--primary:hover {
    background: linear-gradient(135deg, var(--gift-primary-light), var(--gift-primary));
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(6, 32, 55, 0.45);
    color: var(--gift-cream) !important;
}

.gift-btn__arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.gift-btn--primary:hover .gift-btn__arrow {
    transform: translateX(4px);
}

/* ---------- Trust Badges ---------- */
.gift-trust {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.gift-trust__item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--gift-text-muted);
    letter-spacing: 0.05em;
    padding: 8px 18px;
}

.gift-trust__item:first-child {
    padding-left: 0;
}

.gift-trust__icon {
    color: var(--gift-accent);
    font-size: 10px;
}

.gift-trust__divider {
    width: 1px;
    height: 18px;
    background: rgba(6, 32, 55, 0.15);
}

/* ============================================
   ANIMATIONS — Entry
   ============================================ */
.gift-card-visual,
.gift-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gift-card-visual.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.gift-content.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet & Below */
@media (max-width: 960px) {
    .gift-section {
        padding: 80px 24px;
    }

    .gift-container {
        flex-direction: column;
        gap: 48px;
        text-align: center;
    }

    .gift-card-visual {
        flex: none;
        width: 100%;
        max-width: 420px;
    }

    .gift-content__eyebrow {
        display: inline-block;
    }

    .gift-content__heading {
        font-size: 38px;
    }

    .gift-content__actions {
        justify-content: center;
    }

    .gift-trust {
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .gift-section {
        padding: 60px 16px;
    }

    .gift-container {
        gap: 36px;
    }

    .gift-card-inner {
        /* Slightly adjust aspect ratio for taller small screens if needed, or keep standard */
        aspect-ratio: 1.5 / 1;
    }

    .gift-card-script {
        font-size: 32px;
    }

    .gift-card-logo__name {
        font-size: 10px;
        letter-spacing: 0.15em;
    }

    .gift-content__heading {
        font-size: 30px;
    }

    .gift-content__sub {
        font-size: 14px;
    }

    .gift-btn--primary {
        padding: 14px 24px;
        width: 100%;
        justify-content: center;
    }

    .gift-trust {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .gift-trust__item {
        padding: 4px 0;
    }

    .gift-trust__divider {
        display: none;
    }

    .gift-card-badge {
        width: 44px;
        height: 44px;
        font-size: 9px;
        top: -10px;
        right: -10px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .gift-card-visual,
    .gift-content,
    .gift-card-inner,
    .gift-btn,
    .gift-card-shimmer {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}