/* R13 Studio public website - "Mount board" (docs/R13_STUDIO_PUBLIC_WEBSITE_IMPLEMENTATION_PLAN.md Section 12).
   Loaded only by studio-site pages and the Studio Admin preview. */

.ss-theme-day { --bg: #F5F6F3; --surface: #FFFFFF; --text: #22262B; --muted: #59616B; --rule: #D8DBD6; --ink: var(--accent); }
.ss-theme-night { --bg: #17191C; --surface: #202327; --text: #ECEDEA; --muted: #A5ABB2; --rule: #33373C; --ink: var(--accent-light); }

.ss-accent-marigold { --accent: #9A6212; --accent-light: #E3AE5F; }
.ss-accent-kumkum { --accent: #A3212E; --accent-light: #F0939B; }
.ss-accent-peacock { --accent: #0E6870; --accent-light: #6CC6CD; }
.ss-accent-indigo { --accent: #34449A; --accent-light: #A3B0F2; }
.ss-accent-leaf { --accent: #2F6A3A; --accent-light: #8CCB9A; }
.ss-accent-plum { --accent: #6B2E5F; --accent-light: #D69BC8; }

.ss-body {
    --display: "Marcellus", Georgia, "Times New Roman", serif;
    --sans: "Mukta Malar", "Segoe UI", Roboto, Arial, sans-serif;
    --gutter: 20px;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.ss-body *, .ss-body *::before, .ss-body *::after { box-sizing: border-box; }
.ss-body img { display: block; max-width: 100%; }
:where(.ss-body) a { color: var(--ink); text-underline-offset: 3px; }
.ss-body a:focus-visible, .ss-body button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.ss-skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 50; }
.ss-skip:focus { left: 8px; }

.ss-preview-bar {
    position: relative; z-index: 40;
    background: #22262B; color: #FFFFFF;
    text-align: center; font-size: 14px; padding: 8px var(--gutter);
}

/* Header - full-width sticky bar: brand left, menu centre, Book now right */
.ss-header {
    position: sticky; top: 0; z-index: 35; width: 100%;
    background: var(--bg); background: color-mix(in srgb, var(--bg) 90%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--rule);
}
.ss-header-in {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px clamp(16px, 3vw, 40px);
}
.ss-brand { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; color: var(--text); text-decoration: none; }
.ss-logo { width: auto; height: 40px; max-width: 120px; object-fit: contain; }
.ss-brand-name { font-family: var(--display); font-size: 21px; line-height: 1.2; overflow-wrap: anywhere; }
.ss-nav { display: flex; justify-content: center; gap: 34px; }
.ss-nav a { position: relative; color: var(--muted); text-decoration: none; font-size: 16px; padding: 10px 0; }
.ss-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
    background: var(--ink); transform: scaleX(0); transition: transform 180ms ease;
}
.ss-nav a:hover { color: var(--text); }
.ss-nav a:hover::after { transform: scaleX(1); }
.ss-btn.ss-book { flex: none; min-height: 42px; padding: 0 20px; border-radius: 999px; }
.ss-body .ss-section[id] { scroll-margin-top: 76px; }

/* Cover - the single load motion */
.ss-cover { margin: 0; height: 70vh; min-height: 320px; max-height: 780px; overflow: hidden; background: var(--rule); }
.ss-cover img { width: 100%; height: 100%; object-fit: cover; animation: ss-settle 600ms ease-out both; }
@keyframes ss-settle { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

/* Intro */
.ss-intro {
    max-width: 1240px; margin: 0 auto; padding: 36px var(--gutter) 40px;
    display: grid; gap: 22px; border-bottom: 1px solid var(--rule);
}
.ss-intro-plain { padding-top: 64px; }
.ss-name {
    margin: 0; font-family: var(--display); font-weight: 400;
    font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.05; letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}
.ss-tagline { margin: 0 0 18px; font-size: 21px; line-height: 1.45; color: var(--muted); max-width: 34ch; }
.ss-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.ss-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 0 22px; border: 1px solid var(--text); border-radius: 2px;
    color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px;
    background: transparent; transition: background-color 150ms ease, color 150ms ease;
}
.ss-btn:hover { background: var(--text); color: var(--bg); }
.ss-btn-solid { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.ss-btn-solid:hover { background: var(--text); border-color: var(--text); }

/* Sections */
.ss-section { max-width: 1240px; margin: 0 auto; padding: 56px var(--gutter); }
.ss-section + .ss-section { border-top: 1px solid var(--rule); }
.ss-h2 { margin: 0 0 28px; font-family: var(--display); font-weight: 400; font-size: 33px; line-height: 1.15; }

/* Portfolio mosaic - aspect-driven spans */
.ss-mosaic {
    display: grid; grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 42vw; grid-auto-flow: dense; gap: 8px;
}
.ss-tile { display: block; overflow: hidden; background: var(--rule); }
.ss-tile img { width: 100%; height: 100%; object-fit: cover; }
.ss-tile.is-cover, .ss-tile.is-wide { grid-column: span 2; }
.ss-tile.is-cover { grid-row: span 2; }
.ss-tile.is-tall { grid-row: span 2; }

/* About */
.ss-about-text { max-width: none; }
.ss-about-text p { margin: 0 0 1em; }
.ss-facts { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px 0; }
.ss-facts dt { font-size: 14px; color: var(--muted); margin-top: 12px; }
.ss-facts dt:first-child { margin-top: 0; }
.ss-facts dd { margin: 0; overflow-wrap: anywhere; }

/* Packages - plan cards; the price sits in an accent panel framed by viewfinder corner marks */
.ss-prints {
    list-style: none; margin: 0; padding: 0; display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.ss-prints.is-single { max-width: 440px; }
.ss-print {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
    box-shadow: 0 24px 44px -34px rgba(34, 38, 43, 0.6);
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.ss-print:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -32px rgba(34, 38, 43, 0.7); }
.ss-print-head {
    position: relative; padding: 30px 30px 28px; color: #FFFFFF;
    background: var(--accent); background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #000000));
}
.ss-print-head::before {
    content: ""; position: absolute; inset: 12px; pointer-events: none; opacity: 0.6;
    background:
        linear-gradient(#FFFFFF, #FFFFFF) left top / 18px 2px, linear-gradient(#FFFFFF, #FFFFFF) left top / 2px 18px,
        linear-gradient(#FFFFFF, #FFFFFF) right top / 18px 2px, linear-gradient(#FFFFFF, #FFFFFF) right top / 2px 18px,
        linear-gradient(#FFFFFF, #FFFFFF) left bottom / 18px 2px, linear-gradient(#FFFFFF, #FFFFFF) left bottom / 2px 18px,
        linear-gradient(#FFFFFF, #FFFFFF) right bottom / 18px 2px, linear-gradient(#FFFFFF, #FFFFFF) right bottom / 2px 18px;
    background-repeat: no-repeat;
}
.ss-print-name { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ss-print-price {
    margin: 8px 0 0; font-family: var(--display); font-size: clamp(2.3rem, 5.6vw, 2.9rem); line-height: 1.05;
    font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.ss-print-text { margin: 22px 30px 0; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.ss-print-features { list-style: none; margin: 22px 30px 0; padding: 0; display: grid; gap: 11px; font-size: 16px; }
.ss-print-features li { position: relative; padding-left: 32px; line-height: 1.45; overflow-wrap: anywhere; }
.ss-print-features li::before {
    content: ""; position: absolute; left: 0; top: 0.1em; width: 21px; height: 21px; border-radius: 50%;
    background: var(--rule); background: color-mix(in srgb, var(--ink) 16%, transparent);
}
.ss-print-features li::after {
    content: ""; position: absolute; left: 8px; top: 0.3em; width: 5px; height: 10px;
    border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ss-print-ask {
    margin: auto 30px 30px; display: flex; align-items: center; justify-content: center; min-height: 48px;
    border: 1px solid var(--ink); border-radius: 999px; color: var(--ink);
    font-weight: 600; text-decoration: none; transition: background-color 150ms ease, color 150ms ease;
}
.ss-print > :nth-last-child(2):not(.ss-print-head) { margin-bottom: 28px; }
.ss-print-head + .ss-print-ask { margin-top: 28px; }
.ss-print-ask:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

/* Contact */
.ss-contact-grid { display: grid; gap: 28px; }
.ss-panel-title { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.25; }

/* Talk to us - solid accent panel with full-width action rows */
.ss-talk { background: var(--accent); color: #FFFFFF; padding: 30px 24px 22px; align-self: start; }
.ss-talk-title { margin: 0; font-family: var(--display); font-size: clamp(1.75rem, 4vw, 2.35rem); line-height: 1.15; }
.ss-talk-note { margin: 8px 0 22px; color: rgba(255, 255, 255, 0.88); }
.ss-talk-list { display: grid; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.ss-talk-row {
    display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 16px;
    min-height: 72px; padding: 12px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF; text-decoration: none; transition: background-color 150ms ease;
}
.ss-talk-row:hover { background: rgba(255, 255, 255, 0.1); }
.ss-talk-icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: #FFFFFF; fill: var(--accent); }
.ss-talk-label { display: grid; font-size: 18px; font-weight: 600; line-height: 1.3; }
.ss-talk-detail { font-size: 15px; font-weight: 400; color: rgba(255, 255, 255, 0.88); overflow-wrap: anywhere; }
.ss-talk-links { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.ss-talk-links a { display: inline-flex; align-items: center; min-height: 44px; color: #FFFFFF; }
.ss-body .ss-talk a:focus-visible { outline-color: #FFFFFF; outline-offset: -3px; }

/* Enquiry form (Phase 4) */
.ss-theme-day { --danger: #A3212E; }
.ss-theme-night { --danger: #F0939B; }
.ss-enquiry { margin-top: 28px; padding: 26px; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent); display: grid; gap: 14px; scroll-margin-top: 80px; }
.ss-enquiry-note { margin: 0; color: var(--muted); font-size: 15px; }
.ss-enquiry-done { margin: 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--bg); font-size: 18px; }
.ss-form-error { margin: 0; padding: 12px 16px; border-left: 3px solid var(--danger); background: var(--bg); color: var(--danger); font-weight: 600; font-size: 15px; }
.ss-form-fields { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 16px; }
.ss-form-fields:disabled { opacity: 0.6; }
.ss-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ss-field { display: grid; gap: 6px; }
.ss-field label { font-size: 15px; font-weight: 600; }
.ss-optional { font-weight: 400; color: var(--muted); }
.ss-field input, .ss-field select, .ss-field textarea {
    width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 2px;
    background: var(--bg); color: var(--text); font: inherit; font-size: 16px; color-scheme: light dark;
}
.ss-field textarea { resize: vertical; min-height: 110px; }
.ss-field input:focus-visible, .ss-field select:focus-visible, .ss-field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.ss-field [aria-invalid="true"] { border-color: var(--danger); }
.ss-field-error { color: var(--danger); font-size: 14px; }
.ss-field-wide { display: grid; gap: 10px; justify-items: start; }
.ss-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ss-body .ss-form-fields button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Standalone pages */
.ss-page .ss-section { padding-top: 40px; }
.ss-policy-meta { margin: -18px 0 26px; color: var(--muted); }
.ss-policy-text { max-width: 70ch; }
.ss-policy-text p { margin: 0 0 1em; }

/* Footer */
.ss-footer {
    max-width: 1240px; margin: 0 auto; padding: 32px var(--gutter) 104px;
    border-top: 1px solid var(--rule); font-size: 15px;
}
.ss-footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 14px; }
.ss-footer-links a { color: var(--muted); display: inline-flex; min-height: 44px; align-items: center; }
.ss-footer-meta { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.ss-footer-meta a { color: var(--muted); }

/* Mobile action bar */
.ss-mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: var(--surface); border-top: 1px solid var(--rule);
    padding-bottom: env(safe-area-inset-bottom);
}
.ss-mbar a {
    display: flex; align-items: center; justify-content: center; min-height: 56px;
    color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px;
}
.ss-mbar a + a { border-left: 1px solid var(--rule); }
.ss-mbar .ss-mbar-main { background: var(--accent); color: #FFFFFF; border-left-color: var(--accent); }

/* Floating actions - WhatsApp (left) and back to top (right) */
.ss-fab {
    position: fixed; z-index: 35; bottom: calc(20px + env(safe-area-inset-bottom));
    width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; text-decoration: none;
    box-shadow: 0 12px 26px -10px rgba(34, 38, 43, 0.55);
}
.ss-fab svg { width: 28px; height: 28px; }
.ss-fab-wa { left: 20px; background: #1DAA61; }
.ss-fab-wa svg { fill: #FFFFFF; }
.ss-fab-top {
    right: 20px; background: var(--surface); border: 1px solid var(--rule);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}
.ss-fab-top svg { fill: var(--text); width: 24px; height: 24px; }
.ss-fab-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ss-body .ss-fab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Neutral 404 */
.ss-missing { max-width: 640px; margin: 0 auto; padding: 18vh var(--gutter) 64px; }
.ss-missing p { color: var(--muted); }

/* Lightbox (user-triggered motion) */
.ss-lb {
    position: fixed; inset: 0; z-index: 60;
    display: grid; grid-template-columns: 56px 1fr 56px; align-items: center;
    background: rgba(12, 13, 14, 0.95); opacity: 0; transition: opacity 180ms ease;
}
.ss-lb.is-open { opacity: 1; }
.ss-lb-figure { margin: 0; grid-column: 2; display: grid; place-items: center; min-height: 0; }
.ss-lb-figure img { max-width: 100%; max-height: 88vh; width: auto; height: auto; transform: scale(0.98); transition: transform 180ms ease; }
.ss-lb.is-open .ss-lb-figure img { transform: none; }
.ss-lb button {
    width: 48px; height: 48px; border: 0; border-radius: 2px; cursor: pointer;
    background: transparent; color: #FFFFFF; font: 400 30px/1 var(--sans);
}
.ss-lb button:hover { background: rgba(255, 255, 255, 0.1); }
.ss-lb button:focus-visible { outline-color: #FFFFFF; }
.ss-lb-prev { grid-column: 1; justify-self: center; }
.ss-lb-next { grid-column: 3; justify-self: center; }
.ss-lb-close { position: absolute; top: 10px; right: 10px; }
.ss-lb-count { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #C9CDD2; font-size: 14px; }
.ss-lock { overflow: hidden; }

@media (min-width: 720px) {
    .ss-header-in { display: grid; grid-template-columns: 1fr auto 1fr; }
    .ss-btn.ss-book { justify-self: end; }
    .ss-mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 10px; }
    .ss-tile.is-wide { grid-column: span 2; }
    .ss-section { padding-top: 72px; padding-bottom: 72px; }
    .ss-h2 { font-size: 41px; }
}
@media (max-width: 719px) {
    .ss-body { --gutter: 16px; }
    .ss-nav { display: none; }
    .ss-brand-name { font-size: 18px; }
    .ss-logo { height: 34px; }
    .ss-btn.ss-book { min-height: 40px; padding: 0 16px; font-size: 15px; }
    .ss-cover { height: 58vh; }
    .ss-fab { width: 50px; height: 50px; }
    .ss-fab-wa { left: 14px; }
    .ss-fab-top { right: 14px; }
    .ss-lb { grid-template-columns: 44px 1fr 44px; }
}
@media (max-width: 859px) {
    .ss-fab { bottom: calc(70px + env(safe-area-inset-bottom)); }
    .ss-footer { padding-bottom: 150px; }
}
@media (min-width: 860px) {
    .ss-intro { grid-template-columns: 1.4fr 1fr; align-items: end; padding-top: 48px; }
    .ss-contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
    .ss-talk { padding: 40px 36px 28px; }
    .ss-enquiry { margin-top: 48px; padding: 34px; }
    .ss-form-fields { grid-template-columns: 1fr 1fr; column-gap: 24px; }
    .ss-field-wide { grid-column: 1 / -1; }
    .ss-mbar { display: none; }
    .ss-footer { padding-bottom: 96px; }
}
@media (min-width: 1100px) {
    .ss-mosaic { grid-auto-rows: 250px; }
}
@media (prefers-reduced-motion: reduce) {
    .ss-cover img { animation: none; }
    .ss-lb, .ss-lb-figure img, .ss-btn, .ss-talk-row, .ss-fab-top, .ss-nav a::after, .ss-print, .ss-print-ask { transition: none; }
    .ss-print:hover { transform: none; }
}
@media print {
    .ss-mbar, .ss-nav, .ss-preview-bar, .ss-fab, .ss-book { display: none; }
    .ss-header { position: static; }
}
