/* ══════════════════════════════════════════════════════════════════
   Richah UK — Split Panel Design System
   Used by: contact, dynamicPage, stickyLeft, portfolioItem, legal
   ══════════════════════════════════════════════════════════════════ */

/* ── SPLIT PAGE SHELL ── */
.split-page {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
}

/* ── FLOATING HOME PILL ── */
.home-float {
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 300;
    text-decoration: none;
    background: rgba(26, 42, 68, 0.72);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    padding: 11px 28px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    animation: sFloatBob 3s ease-in-out infinite;
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.home-float:hover {
    animation: sFloatLift 0.3s ease forwards;
    background: rgba(26, 42, 68, 0.95);
    border-color: rgba(100, 150, 200, 0.55);
    box-shadow: 0 0 0 3px rgba(80, 130, 185, 0.15), 0 12px 32px rgba(26, 42, 68, 0.45);
    color: #fff;
    opacity: 1;
}
@keyframes sFloatBob {
    0%,100% { transform: translateY(0px); }
    50%      { transform: translateY(-8px); }
}
@keyframes sFloatLift {
    to { transform: translateY(-2px); }
}

/* ── LEFT PANEL ── */
.left-panel {
    position: relative;
    z-index: 1;
    width: 44%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 64px 40px 48px;
    box-sizing: border-box;
    background: linear-gradient(180deg,
        #57799a 0%, #7c9dbb 22%,
        #a4c0d5 45%, #cfe1ee 68%,
        #f0f5fa 100%);
}
.left-logo-link {
    display: block;
    width: 100%;
    text-decoration: none;
    margin-bottom: 40px;
}
.left-logo-link:hover { opacity: 0.85; transition: opacity 0.2s ease; }
.left-title {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 800;
    color: #253957;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin: 0 0 20px;
    font-family: var(--font-heading);
}
.left-subtitle {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    color: #6e7075;
    font-weight: 400;
    margin: 0 0 24px;
    line-height: 1.65;
    max-width: 380px;
}
.left-intro {
    font-size: 0.97rem;
    color: #253957;
    opacity: 0.72;
    line-height: 1.8;
    margin: 0;
    max-width: 380px;
}

/* ── RIGHT PANEL ── */
.right-panel {
    position: relative;
    z-index: 1;
    width: 56%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 72px 80px 68px;
    box-sizing: border-box;
    overflow: hidden;
    background: linear-gradient(180deg,
        #f0f5fa 0%,
        #cfe1ee 32%,
        #a4c0d5 55%,
        #7c9dbb 78%,
        #57799a 100%);
    border-left: 1px solid rgba(37, 57, 87, 0.10);
}
/* Shimmer sweep on right panel */
.right-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.26), transparent);
    animation: sPanelShimmer 9s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes sPanelShimmer {
    0%   { transform: translateX(-100%) skewX(-12deg); }
    100% { transform: translateX(350%) skewX(-12deg); }
}
.right-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

/* ── RICH TEXT in right panel ── */
.split-rich-text { font-size: 1.02rem; color: #1a2f4a; line-height: 1.8; }
.split-rich-text h2 { font-size: 1.5rem; font-weight: 800; color: #1a2f4a; margin: 0 0 14px; letter-spacing: -0.02em; font-family: var(--font-heading); }
.split-rich-text h3 { font-size: 1.15rem; font-weight: 700; color: #253957; margin: 28px 0 10px; font-family: var(--font-heading); }
.split-rich-text p  { margin: 0 0 18px; }
.split-rich-text ul,
.split-rich-text ol { margin: 0 0 18px 24px; }
.split-rich-text li { margin: 7px 0; }
.split-rich-text a  { color: #253957; text-decoration: underline; }
.split-rich-text strong { font-weight: 700; }

/* ── QUOTE block in right panel ── */
.split-quote {
    margin: 28px 0;
    padding: 0 0 0 24px;
    border-left: 3px solid rgba(37, 57, 87, 0.35);
}
.split-quote p {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a2f4a;
    line-height: 1.6;
    font-style: italic;
    margin: 0 0 8px;
}
.split-quote cite {
    font-size: 0.85rem;
    color: #57799a;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── IMAGE block in right panel ── */
.split-img-block { margin: 28px 0; }
.split-img-block img { width: 100%; border-radius: 12px; box-shadow: 0 4px 24px rgba(37,57,87,0.12); }
.split-img-caption { font-size: 0.82rem; color: #5a7a9a; margin-top: 8px; }

/* ── SECTION DIVIDER ── */
.split-section { margin-bottom: 48px; }
.split-section:last-child { margin-bottom: 0; }

/* ── CONTACT form styles (underline style) ── */
.split-form { display: flex; flex-direction: column; gap: 36px; max-width: 500px; }
.split-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.split-field { display: flex; flex-direction: column; gap: 10px; }
.split-label {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #253957;
}
.split-input,
.split-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 4px 0 12px;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(37, 57, 87, 0.22);
    outline: none;
    border-radius: 0;
    font-size: 1.08rem;
    font-weight: 500;
    color: #1a2f4a;
    font-family: inherit;
    appearance: none;
    caret-color: #3a6fa8;
    transition: border-color 0.22s ease;
}
.split-input:focus, .split-textarea:focus {
    border-bottom-color: rgba(37, 80, 160, 0.5);
}
.split-textarea { resize: none; line-height: 1.75; min-height: 140px; }
.split-submit-row { display: flex; align-items: center; padding-top: 4px; }
.split-submit {
    position: relative; z-index: 1;
    background: none; border: none; padding: 0; cursor: pointer;
    font-family: inherit; font-size: 1.1rem; font-weight: 800;
    letter-spacing: 0.10em; text-transform: uppercase; color: #253957;
    display: inline-flex; align-items: center; gap: 12px;
    transition: letter-spacing 0.25s ease, opacity 0.2s ease;
}
.split-submit:hover:not(:disabled) { letter-spacing: 0.16em; opacity: 0.65; }
.split-submit:disabled { opacity: 0.3; cursor: not-allowed; }
.split-submit .btn-arrow {
    display: inline-block;
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.split-submit:hover:not(:disabled) .btn-arrow { transform: translateX(8px); }
.split-error {
    font-size: 0.9rem; color: #a93226;
    background: rgba(169,50,38,0.07); border: 1px solid rgba(169,50,38,0.2);
    border-radius: 8px; padding: 10px 14px; margin: -12px 0 0;
}
.split-success {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    position: relative; z-index: 1;
}
.split-success-icon { width: 80px; height: 80px; animation: sStarBounce 0.6s cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes sStarBounce {
    from { transform: scale(0) rotate(-15deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
.split-success h2 { font-size: 1.6rem; font-weight: 800; color: #1a2f4a; margin: 0; }
.split-success p  { font-size: 0.97rem; color: #3a5a7a; max-width: 340px; line-height: 1.65; margin: 0; }
.split-success a  {
    font-size: 0.82rem; font-weight: 700; color: #253957; text-decoration: none;
    padding: 9px 22px; border: 1.5px solid rgba(37,57,87,0.25); border-radius: 10px;
    transition: background 0.2s ease; display: inline-block; margin-top: 4px;
}
.split-success a:hover { background: rgba(37,57,87,0.06); opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .split-page { flex-direction: column; }
    .left-panel { width: 100%; min-height: auto; padding: 90px 28px 44px; }
    .left-logo-link { width: 220px; }
    .left-subtitle, .left-intro { max-width: 100%; }
    .right-panel { width: 100%; min-height: auto; padding: 52px 28px 80px; border-left: none; border-top: 1px solid rgba(37,57,87,0.08); }
    .right-content { max-width: 100%; }
    .split-field-row { grid-template-columns: 1fr; gap: 24px; }
    .home-float { top: 16px; left: 16px; padding: 9px 20px; font-size: 0.72rem; }
}

/* ── PAGE CONTENT (dynamicPage.ejs — raw HTML from RiCreate) ── */
.page-content {
    font-size: 1.02rem;
    color: #1a2f4a;
    line-height: 1.8;
}
.page-content h1 { font-size: 2rem; font-weight: 800; color: #1a2f4a; margin: 0 0 20px; letter-spacing: -0.025em; font-family: var(--font-heading); }
.page-content h2 { font-size: 1.5rem; font-weight: 800; color: #1a2f4a; margin: 36px 0 14px; letter-spacing: -0.02em; font-family: var(--font-heading); }
.page-content h3 { font-size: 1.15rem; font-weight: 700; color: #253957; margin: 28px 0 10px; font-family: var(--font-heading); }
.page-content p  { margin: 0 0 18px; }
.page-content p:last-child { margin-bottom: 0; }
.page-content ul,
.page-content ol { margin: 0 0 18px 24px; }
.page-content li { margin: 7px 0; list-style: disc; }
.page-content a  { color: #253957; text-decoration: underline; }
.page-content strong { font-weight: 700; }
.page-content blockquote {
    margin: 28px 0;
    padding: 0 0 0 24px;
    border-left: 3px solid rgba(37, 57, 87, 0.35);
    font-size: 1.1rem;
    font-style: italic;
    color: #1a2f4a;
}
