/* =========================================
   ROYAL LUXURY CONTACT SECTION
   ========================================= */

:root {
    --r-navy: #0B1120;
    --r-navy-light: #1e293b;
    --r-gold: #D4AF37;
    --r-gold-dim: #8a7020;
    --r-white: #f8fafc;
    --r-text-mute: #94a3b8;
    --r-glass: rgba(30, 41, 59, 0.75);
}

.royal-contact-section {
    position: relative;
    background-color: var(--r-navy);
    padding: 100px 0;
    overflow: hidden;
    font-family: 'Segoe UI', serif;
    min-height: 100vh;
}

.royal-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 25%), radial-gradient(circle at 85% 30%, rgba(74, 144, 226, 0.05) 0%, transparent 25%);
    pointer-events: none;
}

/* --- HEADINGS --- */
.royal-heading-wrapper {
    text-align: center;
    margin-bottom: 60px; /* Reduced slightly for better fit */
    position: relative;
    z-index: 2;
}

.royal-section-heading {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 3.5rem;
    color: var(--r-white);
    margin: 0;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 50%, var(--r-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.royal-subheading {
    color: var(--r-text-mute);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 15px;
}

/* Divider Diamond */
.royal-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    opacity: 0.6;
}

.divider-line {
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--r-gold));
}

    .divider-line:last-child {
        background: linear-gradient(90deg, var(--r-gold), transparent);
    }

.divider-diamond {
    color: var(--r-gold);
    font-size: 1.2rem;
}

/* --- GRID LAYOUT (UPDATED FOR 4-IN-LINE) --- */
.royal-grid {
    display: grid;
    /* Force 4 columns for the locations */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
    justify-content: center;
    width: 100%;
}

/* --- THE CARD --- */
.royal-card {
    position: relative;
    background: var(--r-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 2px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    overflow: hidden;
    height: 100%; /* Ensure equal height */
}

    .royal-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 12px;
        padding: 1px;
        background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(212,175,55,0.3) 50%, rgba(255,255,255,0.1));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

    .royal-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 30px 60px -12px rgba(0,0,0,0.7), 0 0 20px rgba(212, 175, 55, 0.1);
    }

        .royal-card:hover::before {
            background: linear-gradient(135deg, var(--r-gold), transparent, var(--r-gold));
            opacity: 0.8;
        }

.royal-card-content {
    background: linear-gradient(180deg, rgba(20, 25, 35, 0.9) 0%, rgba(11, 17, 32, 0.95) 100%);
    border-radius: 11px;
    padding: 30px 15px; /* Slightly tighter padding for 4-col layout */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Icons */
.royal-icon-box {
    width: 50px; /* Slightly smaller for 4-col */
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.royal-icon-letter {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--r-gold);
    font-weight: 700;
}

/* Location Title */
.royal-location {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem; /* Adjusted for 4-col */
    color: var(--r-white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

    .royal-location::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 2px;
        background: var(--r-gold);
    }

/* Details */
.royal-details {
    width: 100%;
}

.rd-item {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rd-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--r-gold-dim);
    font-weight: 600;
}

.rd-value {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.4;
    word-break: break-word; /* Prevents overflow in 4-col */
}

.highlight-gold {
    color: var(--r-white);
    font-weight: 700;
    font-size: 1rem;
}

.rd-role {
    font-size: 0.75rem;
    color: var(--r-text-mute);
    font-style: italic;
}

/* --- CROWN JEWEL (Global Card) --- */
.royal-card.crown-card {
    border: 1px solid var(--r-gold);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1), rgba(11, 17, 32, 0.9));
}

.crown-icon {
    color: var(--r-gold);
    margin-bottom: 20px;
}

    .crown-icon svg {
        width: 40px;
        height: 40px;
        filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
    }

/* Full Width Card Styles */
.royal-card.full-width-card {
    grid-column: 1 / -1; /* Spans all 4 columns */
    margin-top: 30px;
    height: auto; /* Allow auto height for the big card */
}

.royal-details-full {
    width: 100%;
    text-align: left;
}

.full-width-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.contact-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.contact-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.rd-badges-full {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

    .rd-badges-full .r-badge {
        background: rgba(212, 175, 55, 0.1);
        border: 1px solid rgba(212, 175, 55, 0.3);
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.8rem;
        text-transform: uppercase;
        color: var(--r-gold);
        letter-spacing: 1px;
        transition: all 0.3s ease;
    }

        .rd-badges-full .r-badge:hover {
            background: rgba(212, 175, 55, 0.2);
            transform: translateY(-2px);
        }

/* Enhanced full-width card specific styles */
.royal-card.full-width-card .royal-card-content {
    padding: 50px 40px;
}

.royal-card.full-width-card .royal-location {
    font-size: 2rem;
    margin-bottom: 40px;
}

    .royal-card.full-width-card .royal-location::after {
        width: 60px;
        height: 3px;
    }

.royal-card.full-width-card .crown-icon svg {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

/* =========================================
   EMAIL COPY COMPONENT (ROYAL EDITION)
   ========================================= */
.email-copy-container {
    width: 100%;
    margin: 10px 0;
}

.email-display-box {
    display: flex;
    align-items: center;
    /* Dark glass background */
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

    .email-display-box:hover {
        border-color: rgba(212, 175, 55, 0.6);
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.1), inset 0 0 20px rgba(0,0,0,0.5);
    }

.email-text {
    flex: 1;
    color: #e2e8f0; /* Silver-white for readability */
    font-family: 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-right: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- PRESTIGIOUS BUTTON --- */
.copy-email-button {
    /* Gradient Gold Background */
    background: linear-gradient(135deg, #D4AF37 0%, #b8860b 100%);
    color: #0B1120; /* Navy text */
    border: 1px solid #FDE068; /* Bright gold highlight border */
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    outline: none;
}

    .copy-email-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
        /* Make it shine brighter */
        background: linear-gradient(135deg, #FDE068 0%, #D4AF37 100%);
    }

    .copy-email-button:active {
        transform: translateY(0);
    }

/* The Feather Icon Styling */
.prestige-icon {
    font-size: 1rem;
    filter: drop-shadow(0 1px 1px rgba(255,255,255,0.4));
}

/* --- TOOLTIP (No Triangle) --- */
.email-copy-tooltip {
    position: absolute;
    /* Floating above center */
    top: -50px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    /* Royal Look */
    background: #0B1120; /* Deep Navy */
    color: #D4AF37; /* Gold Text */
    border: 1px solid #D4AF37;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

    /* Activate state */
    .email-copy-tooltip.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

/* --- TOOLTIP --- */
.email-copy-tooltip {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0B1120;
    color: #D4AF37;
    border: 1px solid #D4AF37;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Ensure tooltip doesn't wrap weirdly */
    white-space: nowrap;
}

    .email-copy-tooltip.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

/* --- FOOTER --- */
.royal-footer {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 2;
    opacity: 0.7;
}

.royal-motto {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--r-gold);
}

/* Main Container */
.main-container {
    width: 100%;
    max-width: 1400px; /* Increased max-width to fit 4 cols comfortably */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Responsive Design */
/* Tablet Landscape / Small Desktop: Switch to 2x2 if 4 is too tight */
@media (max-width: 1200px) {
    .royal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .royal-section-heading {
        font-size: 2.5rem;
    }

    .royal-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
        padding: 0 20px;
    }

    .contact-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .royal-card.full-width-card .royal-card-content {
        padding: 40px 25px;
    }

    .royal-card.full-width-card .royal-location {
        font-size: 1.6rem;
    }

    .rd-badges-full {
        gap: 10px;
    }

        .rd-badges-full .r-badge {
            padding: 6px 12px;
            font-size: 0.7rem;
        }

    .email-display-box {
        flex-direction: column; /* Stack email and button on very small screens */
        gap: 12px;
        text-align: center;
        padding: 12px;
    }

    .email-text {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .copy-email-button {
        width: 100%;
        justify-content: center;
    }

    .email-copy-tooltip {
        font-size: 0.75rem;
        padding: 8px 14px;
        top: -50px;
    }
}

@media (max-width: 480px) {
    .contact-columns {
        grid-template-columns: 1fr;
    }

    .rd-badges-full {
        flex-direction: column;
        align-items: center;
    }

        .rd-badges-full .r-badge {
            width: 200px;
            text-align: center;
        }

    .royal-contact-section {
        padding: 60px 0;
    }
}
