/* ============================================================
   JRB Holiday — portal/contact.php
   Page-scoped cinematic contact styling (2026 redesign).
   Every rule is namespaced .ct-* / scoped under .ct-page, so it is
   safe for every other page on the site.

   Palette (matches about-cinema.css + jrb-chrome.css):
     bg #0D0D14 · navy #101824 · surface #171720 / #20202B
     gold #CFA50F · gold text (light theme) #7D6404 · text #F5F3EE · muted #B8B6C1
   Typography: Fraunces (serif headings) + Inter (body). Small radii only.

   CASCADE NOTE (same hazard documented in 404-page.css): foundation.css ships
   global theme rules — [data-theme="dark|light"] p / a / h1..h6 — at specificity
   0,1,1, which outrank bare .ct-* class rules (0,1,0). Every rule below that sets
   colour on a heading, paragraph or link is therefore written as `.ct-page .ct-*`
   (>= 0,2,0) so this page's palette always wins, with its hover/focus states
   matched at the same level.
   ============================================================ */

.ct-page {
    --ct-bg: #0D0D14;
    --ct-surface: #171720;
    --ct-surface-2: #20202B;
    --ct-line: rgba(245, 243, 238, .10);
    --ct-text: #F5F3EE;
    --ct-muted: #B8B6C1;
    --ct-gold: #CFA50F;          /* fills (button backgrounds) */
    --ct-gold-hi: #D4A80F;       /* fill hover */
    --ct-gold-ink: #0D0D14;      /* text on gold fills */
    --ct-gold-text: #CFA50F;     /* gold as text/border/icon (AA on dark) */
    --ct-gold-soft: rgba(207, 165, 15, .14);
    --ct-radius: 14px;
    --ct-font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

    background: var(--ct-bg);
    color: var(--ct-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
@supports (overflow-x: clip) {
    .ct-page { overflow-x: clip; }
}

.ct-page img { display: block; max-width: 100%; }
.ct-page ::selection { background: rgba(207, 165, 15, .32); color: #fff; }
html[data-theme="light"] .ct-page ::selection { color: #20202A; }
.ct-page :focus-visible { outline: 2px solid var(--ct-gold-text); outline-offset: 2px; }

/* Light-theme token swap — everything BELOW the hero becomes light.
   The hero keeps its own dark literals, so it stays cinematic in both themes. */
html[data-theme="light"] .ct-page {
    --ct-bg: #F7F5EF;
    --ct-surface: #FFFFFF;
    --ct-surface-2: #F3F2ED;
    --ct-line: rgba(20, 20, 30, .12);
    --ct-text: #20202A;
    --ct-muted: #626270;
    --ct-gold-text: #7D6404;     /* deeper gold: AA contrast on light bg */
    --ct-gold-soft: rgba(207, 165, 15, .18);
}

/* ---------------- hero (photographic, dark in BOTH themes) ---------------- */

.ct-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54vh;
    isolation: isolate;
    overflow: hidden;
    background: #0B0F18;
}
.ct-hero-bg { position: absolute; inset: 0; z-index: -2; }
.ct-hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.ct-hero-veil {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(6, 9, 16, .55) 0%, rgba(6, 9, 16, .74) 55%, var(--ct-bg) 100%),
        radial-gradient(120% 85% at 18% 28%, rgba(6, 9, 16, .40), transparent 62%);
}

.ct-hero-inner { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem); }

.ct-page .ct-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .30em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--ct-gold-hi);
    margin: 0 0 .9rem;
}

/* Foundation.css repaints h1/p under html[data-theme="light"]; a two-class
   selector outranks it, so the hero text stays light in both themes. */
.ct-hero .ct-hero-title {
    font-family: var(--ct-font-serif);
    font-weight: 500;
    font-size: clamp(2.3rem, 6vw, 4rem);
    line-height: 1.06;
    letter-spacing: -.015em;
    color: #F5F3EE;
    margin: 0;
}
.ct-hero .ct-hero-title .ct-gold { font-style: italic; color: var(--ct-gold-hi); }
.ct-hero .ct-hero-sub {
    color: rgba(245, 243, 238, .86);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    max-width: 46ch;
    margin: 1rem 0 0;
}
.ct-hero-rule {
    width: 68px; height: 3px;
    background: var(--ct-gold);
    border-radius: 2px;
    margin-top: 1.4rem;
}

/* ---------------- layout ---------------- */

.ct-main { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.ct-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

.ct-card {
    background: var(--ct-surface);
    border: 1px solid var(--ct-line);
    border-radius: var(--ct-radius);
    padding: clamp(1.4rem, 3vw, 2.25rem);
}

.ct-page .ct-h2 {
    font-family: var(--ct-font-serif);
    font-weight: 550;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    line-height: 1.15;
    color: var(--ct-text);
    margin: 0 0 .4rem;
}
.ct-h2 i { color: var(--ct-gold-text); }
.ct-page .ct-deck { color: var(--ct-muted); font-size: .95rem; margin: 0 0 1.5rem; }

/* ---------------- form (keeps the exact original name/required contract) ---------------- */

.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.ct-field { margin-bottom: 1.1rem; }
.ct-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ct-muted);
    margin-bottom: .5rem;
}
.ct-req { color: var(--ct-gold-text); }

.ct-inputwrap { position: relative; display: flex; align-items: center; }
.ct-inputwrap > i {
    position: absolute; left: 1rem;
    color: var(--ct-gold-text); font-size: 1rem;
    pointer-events: none;
}

.ct-input,
.ct-textarea {
    width: 100%;
    min-height: 50px;
    background: var(--ct-surface-2);
    border: 1px solid var(--ct-line);
    border-radius: 10px;
    color: var(--ct-text);
    font-size: .95rem;
    font-family: inherit;
    padding: .8rem 1rem .8rem 2.75rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ct-textarea { padding: .85rem 1rem; min-height: 152px; resize: vertical; }
.ct-input::placeholder,
.ct-textarea::placeholder { color: var(--ct-muted); }
.ct-input:focus,
.ct-textarea:focus {
    outline: none;
    border-color: var(--ct-gold-text);
    box-shadow: 0 0 0 1px var(--ct-gold-text), 0 0 0 4px var(--ct-gold-soft);
    background: var(--ct-surface);
}

.ct-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    width: 100%; min-height: 52px;
    padding: .85rem 1.5rem;
    border: none; border-radius: 999px;
    background: var(--ct-gold); color: var(--ct-gold-ink);
    font-weight: 700; font-size: 1rem;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ct-submit:hover { background: var(--ct-gold-hi); box-shadow: 0 8px 22px rgba(207, 165, 15, .35); transform: translateY(-1px); }
.ct-submit:active { transform: translateY(0); }

/* ---------------- contact information ---------------- */

.ct-info { display: grid; gap: 1.15rem; }
.ct-info-row { display: flex; align-items: flex-start; gap: .9rem; }
.ct-info-ico {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--ct-gold-soft);
    border: 1px solid rgba(207, 165, 15, .28);
    color: var(--ct-gold-text);
    font-size: 1.15rem;
}
.ct-info-k {
    font-size: .72rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--ct-muted);
}
.ct-info-v { color: var(--ct-text); font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; }
.ct-page .ct-info-v a { color: var(--ct-text); text-decoration: none; }
.ct-page .ct-info-v a:hover { color: var(--ct-gold-text); text-decoration: underline; }

/* ---------------- promo panels (WhatsApp + JARO) ---------------- */

.ct-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.ct-promo {
    display: flex; flex-direction: column; gap: .55rem;
    border-radius: var(--ct-radius);
    border: 1px solid var(--ct-line);
    padding: 1.1rem 1.1rem 1.15rem;
}
.ct-promo--wa   { background: linear-gradient(180deg, rgba(37, 211, 102, .12), rgba(37, 211, 102, .03)); border-color: rgba(37, 211, 102, .30); }
.ct-promo--jaro { background: linear-gradient(180deg, rgba(207, 165, 15, .15), rgba(207, 165, 15, .03)); border-color: rgba(207, 165, 15, .32); }
.ct-page .ct-promo-title { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem; color: var(--ct-text); margin: 0; }
.ct-promo p:not(.ct-promo-title) { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--ct-muted); }
.ct-jaro-ico { width: 42px; height: 42px; object-fit: contain; }
.ct-promo-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 44px; margin-top: auto;
    padding: .6rem 1rem;
    border-radius: 999px;
    font-weight: 700; font-size: .9rem;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
/* Scoped with .ct-page, and :hover/:focus-visible grouped: foundation.css's
   [data-theme] a / a:hover / a:focus-visible (0,1,1 / 0,2,1) would otherwise
   repaint these links — on :focus-visible the JARO label became invisible. */
.ct-page .ct-promo-btn--wa        { background: #25D366; color: #0B1B12; }
.ct-page .ct-promo-btn--jaro      { background: var(--ct-gold); color: var(--ct-gold-ink); }
.ct-page .ct-promo-btn--wa:hover,
.ct-page .ct-promo-btn--wa:focus-visible   { background: #1EB85A; color: #0B1B12; }
.ct-page .ct-promo-btn--jaro:hover,
.ct-page .ct-promo-btn--jaro:focus-visible { background: var(--ct-gold-hi); color: var(--ct-gold-ink); }

/* ---------------- themed validation alert (Bootstrap alert-danger reused) ---------------- */

.ct-page .alert {
    border-radius: 10px;
    border: 1px solid rgba(220, 53, 69, .45);
    background: rgba(220, 53, 69, .14);
    color: #F5C2C7;
    font-size: .92rem;
}
html[data-theme="light"] .ct-page .alert { background: rgba(220, 53, 69, .08); color: #842029; }
.ct-page .btn-close { filter: invert(1) grayscale(1) brightness(1.8); }
html[data-theme="light"] .ct-page .btn-close { filter: none; }

/* ---------------- responsive ---------------- */

@media (max-width: 991.98px) {
    .ct-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575.98px) {
    .ct-row    { grid-template-columns: 1fr; }
    .ct-promos { grid-template-columns: 1fr; }
    .ct-hero   { min-height: 46vh; }
    .ct-hero-rule { width: 56px; }
}

/* Never allow the photo hero to push the layout sideways on tiny screens. */
@media (max-width: 360px) {
    .ct-hero .ct-hero-title { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ct-page * { animation: none !important; transition: none !important; }
    .ct-submit:hover, .ct-promo-btn:hover { transform: none; }
}
