/* ============================================
   CONTACT SECTION — Enchanted Garden Stationery
   ============================================ */

.contact-content {
    position: relative;
    overflow: hidden;
}

/* --- Floral Crown above title --- */
.contact-floral-crown {
    text-align: center;
    margin-bottom: -0.5rem;
    position: relative;
    z-index: 2;
}

.contact-crown-svg {
    width: 200px;
    height: 55px;
}

.crown-bloom,
.crown-leaf {
    opacity: 0;
    animation: crown-bloom-unfurl 0.8s ease-out forwards;
}

.crown-bloom--1, .crown-leaf--1 { animation-delay: 0.15s; }
.crown-bloom--2, .crown-leaf--2 { animation-delay: 0.3s; }
.crown-bloom--3, .crown-leaf--3 { animation-delay: 0.45s; }
.crown-bloom--4, .crown-leaf--4 { animation-delay: 0.6s; }
.crown-bloom--5 { animation-delay: 0.2s; }
.crown-bloom--6 { animation-delay: 0.35s; }
.crown-bloom--7 { animation-delay: 0.5s; }
.crown-bloom--8 { animation-delay: 0.65s; }
.crown-bloom--center { animation-delay: 0.75s; }

.crown-stem {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: crown-stem-draw 1.2s ease-out forwards;
}

.crown-stem--r { animation-delay: 0.1s; }

@keyframes crown-bloom-unfurl {
    0% { opacity: 0; transform: scale(0.2); }
    60% { opacity: 0.7; transform: scale(1.15); }
    100% { opacity: var(--crown-target, 0.55); transform: scale(1); }
}

@keyframes crown-stem-draw {
    0% { stroke-dashoffset: 120; }
    100% { stroke-dashoffset: 0; }
}

/* --- Heading --- */
.contact-heading {
    font-family: var(--font-script);
    font-size: 2.9rem;
    color: #3B2F2A;
    text-align: center;
    margin: 0 0 0.5rem;
    font-weight: 400;
    line-height: 1.2;
    text-shadow: 0 1px 8px rgba(255, 250, 244, 0.9);
    position: relative;
    z-index: 2;
}

/* --- Ornamental vine divider --- */
.contact-divider {
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.contact-divider-svg {
    width: 180px;
    height: 20px;
}

/* --- Subheading --- */
.contact-subheading {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 300;
    color: rgba(59, 47, 42, 0.55);
    text-align: center;
    margin: 0 0 1.5rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 8px rgba(255, 250, 244, 0.9);
    position: relative;
    z-index: 2;
}

/* --- Contact Calling Cards --- */
.contact-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    position: relative;
    z-index: 3;
}

.contact-card {
    position: relative;
    text-align: center;
    padding: 1.5rem 1.8rem 1.2rem;
    background: rgba(255, 248, 244, 0.7);
    -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, black 45%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, black 45%, transparent 100%);
    min-width: 180px;
    max-width: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: contact-card-float-in 0.8s ease-out both;
}

.contact-card--bride { animation-delay: 0.2s; }
.contact-card--groom { animation-delay: 0.4s; }

@keyframes contact-card-float-in {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Hover wash bloom */
.contact-card-hover-wash {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 196, 188, 0.15) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.contact-card:hover .contact-card-hover-wash {
    opacity: 1;
    transform: scale(1.2);
}

/* Portrait icon */
.contact-portrait {
    margin-bottom: 0.5rem;
}

.contact-portrait-svg {
    width: 48px;
    height: 48px;
    transition: transform 0.4s ease;
}

.contact-card:hover .contact-portrait-svg {
    animation: portrait-bob 0.4s ease;
}

@keyframes portrait-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Card name */
.contact-card-name {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: #3B2F2A;
    margin-bottom: 0.15rem;
    font-weight: 400;
    text-shadow: 0 1px 8px rgba(255, 250, 244, 0.9);
    position: relative;
    z-index: 1;
}

/* Card role label */
.contact-card-role {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-gold, #D4AF37);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 400;
    margin-bottom: 0.6rem;
    text-shadow: 0 1px 8px rgba(255, 250, 244, 0.9);
    position: relative;
    z-index: 1;
}

/* Card phone */
.contact-card-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #3B2F2A;
    text-shadow: 0 1px 8px rgba(255, 250, 244, 0.9);
    position: relative;
    z-index: 1;
}

.contact-phone-icon {
    width: 14px;
    height: 14px;
    color: rgba(59, 47, 42, 0.45);
    flex-shrink: 0;
}

.contact-card-phone a {
    color: #3B2F2A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card-phone a:hover {
    color: var(--color-gold);
}

/* --- Decorative Wax Seal between cards --- */
.contact-wax-seal {
    align-self: center;
    flex-shrink: 0;
    z-index: 3;
}

.contact-seal-svg {
    width: 36px;
    height: 36px;
    animation: seal-slow-spin 20s linear infinite;
}

@keyframes seal-slow-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Botanical Vine Frames --- */
.contact-vine-frames {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.contact-vine {
    position: absolute;
    bottom: 0;
    width: 100px;
    height: 180px;
}

.contact-vine--left { left: 5%; }
.contact-vine--right { right: 5%; }

.vine-path {
    stroke-dasharray: 250;
    stroke-dashoffset: 250;
    animation: vine-grow 1.5s ease-out 0.3s forwards;
}

.vine-path--r { animation-delay: 0.5s; }

.vine-bloom,
.vine-leaf {
    opacity: 0;
    animation: vine-element-appear 0.6s ease-out forwards;
}

.vine-bloom--1, .vine-leaf--1 { animation-delay: 0.8s; }
.vine-bloom--2, .vine-leaf--2 { animation-delay: 1.0s; }
.vine-bloom--3, .vine-leaf--3 { animation-delay: 1.2s; }
.vine-bloom--4 { animation-delay: 0.7s; }
.vine-bloom--5, .vine-leaf--4 { animation-delay: 0.9s; }
.vine-bloom--6, .vine-leaf--5 { animation-delay: 1.1s; }
.vine-bloom--7, .vine-leaf--6 { animation-delay: 1.3s; }
.vine-bloom--8 { animation-delay: 0.85s; }

@keyframes vine-grow {
    0% { stroke-dashoffset: 250; }
    100% { stroke-dashoffset: 0; }
}

@keyframes vine-element-appear {
    0% { opacity: 0; transform: scale(0.3); }
    100% { opacity: var(--vine-target, 0.45); transform: scale(1); }
}

/* --- Butterflies --- */
.contact-butterflies {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.contact-butterfly {
    position: absolute;
    display: block;
}

.contact-butterfly .butterfly-svg {
    width: 20px;
    height: 16px;
}

.contact-butterfly--1 {
    top: 20%;
    left: 10%;
    animation: butterfly-drift-1 12s ease-in-out infinite;
}

.contact-butterfly--2 {
    top: 35%;
    right: 8%;
    animation: butterfly-drift-2 15s ease-in-out 3s infinite;
}

.contact-butterfly--3 {
    bottom: 30%;
    left: 25%;
    animation: butterfly-drift-3 18s ease-in-out 7s infinite;
}

.contact-butterfly .butterfly-wing--l {
    animation: butterfly-flap 0.8s ease-in-out infinite;
    transform-origin: right center;
}

.contact-butterfly .butterfly-wing--r {
    animation: butterfly-flap 0.8s ease-in-out 0.1s infinite;
    transform-origin: left center;
}

@keyframes butterfly-drift-1 {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(40px, -25px) rotate(5deg); }
    50%  { transform: translate(80px, -10px) rotate(-3deg); }
    75%  { transform: translate(30px, 15px) rotate(4deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes butterfly-drift-2 {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(-35px, -20px) rotate(-5deg); }
    50%  { transform: translate(-70px, 5px) rotate(3deg); }
    75%  { transform: translate(-25px, 20px) rotate(-4deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes butterfly-drift-3 {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(50px, -15px) rotate(6deg); }
    50%  { transform: translate(20px, -30px) rotate(-2deg); }
    75%  { transform: translate(-20px, -10px) rotate(3deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes butterfly-flap {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(0.3); }
}

/* --- Falling Petals --- */
.contact-petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.contact-petal {
    position: absolute;
    top: -5%;
    width: 8px;
    height: 8px;
    border-radius: 50% 0 50% 0;
    opacity: 0;
}

.contact-petal--1 { left: 15%; background: rgba(232, 196, 188, 0.5); animation: contact-petal-fall 7s ease-in-out 0s infinite; }
.contact-petal--2 { left: 30%; background: rgba(255, 255, 255, 0.45); animation: contact-petal-fall 8s ease-in-out 1.5s infinite; width: 6px; height: 6px; }
.contact-petal--3 { left: 50%; background: rgba(232, 196, 188, 0.45); animation: contact-petal-fall 9s ease-in-out 3s infinite; }
.contact-petal--4 { left: 70%; background: rgba(255, 255, 255, 0.4); animation: contact-petal-fall 7.5s ease-in-out 4.5s infinite; width: 7px; height: 7px; }
.contact-petal--5 { left: 85%; background: rgba(232, 196, 188, 0.5); animation: contact-petal-fall 8.5s ease-in-out 2s infinite; }
.contact-petal--6 { left: 40%; background: rgba(212, 204, 232, 0.4); animation: contact-petal-fall 10s ease-in-out 5s infinite; width: 6px; height: 6px; }
.contact-petal--7 { left: 60%; background: rgba(232, 196, 188, 0.4); animation: contact-petal-fall 7s ease-in-out 6s infinite; width: 9px; height: 9px; }
.contact-petal--8 { left: 22%; background: rgba(255, 255, 255, 0.4); animation: contact-petal-fall 9.5s ease-in-out 3.5s infinite; }

@keyframes contact-petal-fall {
    0% { opacity: 0; transform: translateY(0) rotate(0deg); }
    10% { opacity: 0.6; }
    90% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(105vh) rotate(360deg); }
}

/* --- Fireflies near tree edges --- */
.contact-fireflies {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.contact-firefly {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 240, 200, 0.8) 0%, rgba(212, 175, 55, 0.3) 40%, transparent 70%);
    opacity: 0;
}

.contact-firefly--1  { width: 4px; height: 4px; top: 15%; left: 8%;  animation: contact-ff-glow 3.5s ease-in-out 0.3s infinite; }
.contact-firefly--2  { width: 3px; height: 3px; top: 25%; right: 6%; animation: contact-ff-meander 4.0s ease-in-out 1.0s infinite; }
.contact-firefly--3  { width: 4px; height: 4px; top: 40%; left: 5%;  animation: contact-ff-glow 3.2s ease-in-out 2.0s infinite; }
.contact-firefly--4  { width: 3px; height: 3px; top: 55%; right: 8%; animation: contact-ff-meander 3.8s ease-in-out 0.7s infinite; }
.contact-firefly--5  { width: 5px; height: 5px; top: 65%; left: 10%; animation: contact-ff-glow 4.2s ease-in-out 3.0s infinite; }
.contact-firefly--6  { width: 3px; height: 3px; top: 75%; right: 10%;animation: contact-ff-meander 3.5s ease-in-out 1.5s infinite; }
.contact-firefly--7  { width: 4px; height: 4px; top: 30%; left: 12%; animation: contact-ff-glow 3.8s ease-in-out 2.5s infinite; }
.contact-firefly--8  { width: 3px; height: 3px; top: 50%; right: 12%;animation: contact-ff-meander 4.5s ease-in-out 0.5s infinite; }
.contact-firefly--9  { width: 4px; height: 4px; top: 80%; left: 7%;  animation: contact-ff-glow 3.0s ease-in-out 1.8s infinite; }
.contact-firefly--10 { width: 3px; height: 3px; top: 45%; right: 5%; animation: contact-ff-meander 4.0s ease-in-out 3.5s infinite; }

@keyframes contact-ff-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.6; }
}

@keyframes contact-ff-meander {
    0%, 100% { opacity: 0; transform: translate(0, 0); }
    25% { opacity: 0.45; transform: translate(3px, -4px); }
    50% { opacity: 0.65; transform: translate(-2px, -7px); }
    75% { opacity: 0.35; transform: translate(4px, -3px); }
}

/* --- Fairy Lights in Tree Branches --- */
.contact-fairy-lights {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.contact-fairy-light {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 240, 200, 0.7);
    box-shadow: 0 0 4px rgba(255, 230, 180, 0.4), 0 0 8px rgba(212, 175, 55, 0.15);
    opacity: 0;
}

.contact-fairy-light--1  { top: 8%;  left: 6%;  animation: fairy-twinkle 2.0s ease-in-out 0.2s infinite; }
.contact-fairy-light--2  { top: 5%;  left: 12%; animation: fairy-twinkle 2.5s ease-in-out 0.8s infinite; }
.contact-fairy-light--3  { top: 12%; left: 9%;  animation: fairy-twinkle 1.8s ease-in-out 1.5s infinite; }
.contact-fairy-light--4  { top: 6%;  right: 8%; animation: fairy-twinkle 2.2s ease-in-out 0.5s infinite; }
.contact-fairy-light--5  { top: 10%; right: 14%;animation: fairy-twinkle 2.8s ease-in-out 1.2s infinite; }
.contact-fairy-light--6  { top: 15%; right: 6%; animation: fairy-twinkle 1.6s ease-in-out 2.0s infinite; }
.contact-fairy-light--7  { top: 18%; left: 4%;  animation: fairy-twinkle 2.4s ease-in-out 0.3s infinite; }
.contact-fairy-light--8  { top: 3%;  left: 20%; animation: fairy-twinkle 3.0s ease-in-out 1.8s infinite; }
.contact-fairy-light--9  { top: 14%; right: 18%;animation: fairy-twinkle 2.1s ease-in-out 0.9s infinite; }
.contact-fairy-light--10 { top: 20%; left: 16%; animation: fairy-twinkle 1.9s ease-in-out 2.5s infinite; }
.contact-fairy-light--11 { top: 7%;  right: 22%;animation: fairy-twinkle 2.6s ease-in-out 0.6s infinite; }
.contact-fairy-light--12 { top: 22%; right: 10%;animation: fairy-twinkle 2.3s ease-in-out 1.0s infinite; }
.contact-fairy-light--13 { top: 11%; left: 25%; animation: fairy-twinkle 1.7s ease-in-out 1.6s infinite; }
.contact-fairy-light--14 { top: 16%; right: 25%;animation: fairy-twinkle 2.7s ease-in-out 0.4s infinite; }
.contact-fairy-light--15 { top: 4%;  left: 30%; animation: fairy-twinkle 2.0s ease-in-out 2.2s infinite; }

