/* ============================================
   CONTACT US PAGE
   ============================================ */

:root {
    --ct-navy: #0a1f44;
    --ct-navy-2: #12305f;
    --ct-gold: #d4af37;
    --ct-gold-text: #9a7a1c;
    --ct-ink: #1f2a3d;
    --ct-muted: #5a6577;
    --ct-line: rgba(10, 31, 68, 0.1);
    --ct-cream: #f8f5ee;
    --ct-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── SHARED ─── */
.ct-section {
    padding: 96px 0;
}

.ct-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--ct-gold-text);
    margin-bottom: 14px;
}

.ct-tag::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--ct-gold);
}

/* ─── HERO ─── */
.ct-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse 60% 80% at 100% 30%, rgba(212, 175, 55, 0.10) 0%, transparent 70%),
        linear-gradient(180deg, #fbf8f2 0%, #f5efe3 100%);
    color: var(--ct-ink);
    padding: 72px 0 88px;
}

/* faint eight-point star lattice, fading out towards the text */
.ct-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23d4af37' stroke-opacity='0.09' stroke-width='1'%3E%3Crect x='19' y='19' width='22' height='22'/%3E%3Crect x='19' y='19' width='22' height='22' transform='rotate(45 30 30)'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
    -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
    mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
}

.ct-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ct-gold), rgba(212, 175, 55, 0.2));
}

.ct-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
}

.ct-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--ct-muted);
    margin-bottom: 34px;
}

.ct-breadcrumb a {
    color: var(--ct-muted);
}

.ct-breadcrumb a:hover {
    color: var(--ct-gold);
}

.ct-breadcrumb [aria-current] {
    color: var(--ct-navy);
    font-weight: 600;
}

.ct-hero-eyebrow {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ct-gold-text);
    margin-bottom: 14px;
}

.ct-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5.2vw, 4.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1px;
    color: var(--ct-navy);
    margin-bottom: 22px;
}

.ct-hero-subtitle {
    max-width: 48ch;
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--ct-muted);
    margin-bottom: 36px;
}

.ct-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background-color 0.3s var(--ct-ease), color 0.3s var(--ct-ease), border-color 0.3s var(--ct-ease), transform 0.3s var(--ct-ease);
}

.ct-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s var(--ct-ease);
}

.ct-btn--gold {
    background: var(--ct-gold);
    color: var(--ct-navy);
}

.ct-btn--gold:hover {
    background: #e2c152;
    color: var(--ct-navy);
    transform: translateY(-2px);
}

.ct-btn--ghost {
    border: 1px solid rgba(10, 31, 68, 0.3);
    color: var(--ct-navy);
}

.ct-btn--ghost:hover {
    border-color: var(--ct-navy);
    background: var(--ct-navy);
    color: #fff;
}

.ct-btn--ghost:hover svg {
    transform: translateX(4px);
}

/* Arched photo frame — echoes the mihrab/arch of Islamic architecture */
.ct-hero-visual {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 600px;
    padding: 0 0 40px 28px;
}

.ct-arch {
    position: relative;
    margin: 0;
    /* frame matches the photo's own 1448x1086 shape, so the whole image shows */
    aspect-ratio: 1448 / 1086;
    overflow: hidden;
    border-radius: 14px;
    background: #e9e2d3;
    box-shadow: 0 0 0 6px #fff, 0 30px 60px -30px rgba(10, 31, 68, 0.45), 0 2px 10px 6px rgba(10, 31, 68, 0.06);
}

.ct-arch img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.ct-arch-outline {
    position: absolute;
    top: -18px;
    right: -18px;
    bottom: 58px;
    left: 46px;
    border: 1px solid rgba(212, 175, 55, 0.7);
    border-radius: 18px;
    pointer-events: none;
}

.ct-visit-card {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 300px;
    padding: 18px 22px;
    border-radius: 8px;
    background: #fff;
    color: var(--ct-ink);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    border: 1px solid var(--ct-line);
    box-shadow: 0 20px 40px -22px rgba(10, 31, 68, 0.4);
}

.ct-visit-card small {
    display: block;
    margin-bottom: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ct-gold-text);
}

.ct-visit-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ct-navy);
    color: var(--ct-gold);
}

.ct-visit-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hero entrance */
.ct-hero-copy > *,
.ct-hero-visual {
    animation: ctRise 0.8s var(--ct-ease) both;
}

.ct-hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.ct-hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.ct-hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.ct-hero-copy > :nth-child(5) { animation-delay: 0.24s; }
.ct-hero-visual { animation-delay: 0.2s; }

@keyframes ctRise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

/* ─── GET IN TOUCH ─── */
.ct-touch {
    background: var(--ct-cream);
}

.ct-touch-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
    align-items: start;
}

.ct-touch-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--ct-navy);
    margin-bottom: 16px;
}

.ct-touch-intro {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--ct-muted);
    margin-bottom: 36px;
}

.ct-detail-list {
    list-style: none;
    border-top: 1px solid var(--ct-line);
}

.ct-detail {
    display: flex;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--ct-line);
}

.ct-detail-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.55);
    color: var(--ct-navy);
    transition: background-color 0.3s var(--ct-ease), color 0.3s var(--ct-ease), border-color 0.3s var(--ct-ease);
}

.ct-detail-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s var(--ct-ease);
}

.ct-detail:hover .ct-detail-icon {
    background: var(--ct-navy);
    border-color: var(--ct-navy);
    color: var(--ct-gold);
}

.ct-detail:hover .ct-detail-icon svg {
    transform: scale(1.08);
}

.ct-detail-label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--ct-gold-text);
    margin: 2px 0 6px;
}

.ct-detail-value {
    display: block;
    width: fit-content;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.55;
    color: var(--ct-navy);
    margin: 0;
}

a.ct-detail-value {
    background: linear-gradient(var(--ct-gold), var(--ct-gold)) 0 100% / 0 1px no-repeat;
    transition: background-size 0.35s var(--ct-ease), color 0.3s ease;
}

a.ct-detail-value:hover {
    color: var(--ct-navy);
    background-size: 100% 1px;
}

.ct-detail-link {
    display: inline-flex;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
}

.ct-detail-link span {
    transition: transform 0.3s var(--ct-ease);
}

.ct-detail-link:hover span {
    transform: translateX(4px);
}

/* Form card */
.ct-form-card {
    position: relative;
    padding: 44px 44px 36px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--ct-line);
    box-shadow: 0 30px 60px -40px rgba(10, 31, 68, 0.35);
}

.ct-form-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 44px;
    width: 64px;
    height: 3px;
    background: var(--ct-gold);
}

.ct-form-header {
    margin-bottom: 28px;
}

.ct-form-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ct-navy);
    margin-bottom: 6px;
}

.ct-form-intro {
    font-size: 0.9rem;
    color: var(--ct-muted);
    margin: 0;
}

.ct-req {
    color: #c0392b;
}

.ct-honey {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.ct-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.ct-field label {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ct-ink);
    margin-bottom: 8px;
}

.ct-form input:not([type="hidden"]),
.ct-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 16px;
    border: 1px solid #d5dbe5;
    border-radius: 6px;
    background: #fbfcfd;
    color: var(--ct-ink);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.ct-form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.ct-form input::placeholder,
.ct-form textarea::placeholder {
    color: #a0a9b8;
}

.ct-form input:hover,
.ct-form textarea:hover {
    border-color: #b7c1d1;
}

.ct-form input:focus,
.ct-form textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--ct-navy);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35);
}

/* Validation (classes toggled by contact.js) */
.ct-form input.error,
.ct-form textarea.error {
    border-color: #c0392b;
    background: #fff8f7;
}

.ct-form input.error:focus,
.ct-form textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18);
}

.ct-form input.valid,
.ct-form textarea.valid {
    border-color: #2f9e62;
}

.ct-field-error {
    display: none;
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c0392b;
}

.ct-form .error ~ .ct-field-error {
    display: block;
}

.ct-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    margin-top: 6px;
    border: 0;
    border-radius: 30px;
    background: var(--ct-navy);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s var(--ct-ease), transform 0.3s var(--ct-ease), box-shadow 0.3s var(--ct-ease);
}

.ct-form-btn:hover {
    background: var(--ct-navy-2);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -14px rgba(10, 31, 68, 0.6);
}

.ct-form-btn:focus-visible {
    outline: 3px solid rgba(212, 175, 55, 0.6);
    outline-offset: 3px;
}

.ct-btn-arrow {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--ct-gold);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s var(--ct-ease);
}

.ct-form-btn:hover .ct-btn-arrow {
    transform: translateX(4px);
}

.ct-form-btn:disabled .ct-btn-arrow {
    display: none;
}

.ct-btn-spinner svg {
    animation: ctSpin 0.9s linear infinite;
}

@keyframes ctSpin {
    to { transform: rotate(360deg); }
}

.ct-form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 0.82rem;
    color: var(--ct-muted);
}

.ct-form-note svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ─── MAP ─── */
.ct-map-section {
    background: #ffffff;
    padding: 70px 0 85px;
}

.ct-map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(10,31,68,0.08);
    border: 1px solid rgba(10,31,68,0.06);
}

.ct-map-wrapper iframe {
    display: block;
    width: 100%;
    height: 420px;
}

/* ─── SCROLL ANIMATION ─── */
.ct-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
                transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.ct-fade.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .ct-section { padding: 80px 0; }

    .ct-hero { padding: 56px 0 72px; }
    .ct-hero-grid { gap: 40px; }
    .ct-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .ct-hero-visual { justify-self: center; max-width: 640px; }

    .ct-touch-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* details become a 2-column index above the form */
    .ct-detail-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 32px;
    }
}

@media (max-width: 768px) {
    .ct-section { padding: 64px 0; }

    .ct-hero { padding: 40px 0 56px; }

    .ct-hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .ct-breadcrumb { margin-bottom: 22px; }

    .ct-hero-visual {
        justify-self: center;
        max-width: 640px;
    }

    .ct-map-wrapper iframe { height: 320px; }
    .ct-map-section { padding: 50px 0 65px; }
}

@media (max-width: 560px) {
    .ct-hero-title { font-size: 2.6rem; }
    .ct-hero-subtitle { font-size: 1rem; margin-bottom: 28px; }

    .ct-hero-actions { flex-direction: column; }
    .ct-btn { width: 100%; }

    .ct-hero-visual { padding: 0; }
    .ct-arch { box-shadow: 0 0 0 4px #fff, 0 24px 44px -26px rgba(10, 31, 68, 0.45); }
    .ct-arch-outline { display: none; }
    /* card sits below the photo on phones so it doesn't cover the image */
    .ct-visit-card { position: static; max-width: none; margin-top: 14px; padding: 14px 16px; font-size: 0.85rem; }

    .ct-detail-list { grid-template-columns: 1fr; }
    .ct-detail { padding: 18px 0; }

    .ct-form-card { padding: 32px 20px 26px; }
    .ct-form-card::before { left: 20px; }
    .ct-form-row { grid-template-columns: 1fr; }
    .ct-form-title { font-size: 1.4rem; }

    .ct-map-wrapper iframe { height: 260px; }
    .ct-map-section { padding: 40px 0 50px; }
}

@media (prefers-reduced-motion: reduce) {
    .ct-hero-copy > *,
    .ct-hero-visual { animation: none; }
    .ct-fade { opacity: 1; transform: none; }
}

/* ─── NOTIFICATION TOAST ─── */
.ct-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
}

.ct-notification--visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.ct-notification--success {
    border-left-color: #2ecc71;
}

.ct-notification--error {
    border-left-color: #e74c3c;
}

.ct-notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-notification-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .ct-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        padding: 14px 20px;
    }
}
