/* Studio websites (app/site-renderer.php). Themed by :root variables:
   --primary --accent --dark --light --font-heading --font-body */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	--bg: #ffffff;
	--bg-alt: #f5f5f4;
	--fg: #1c1917;
	--muted: #57534e;
	--line: rgba(0,0,0,0.1);
	--card: #ffffff;
	background: var(--bg);
	color: var(--fg);
	-webkit-font-smoothing: antialiased;
}
body.mode-dark {
	--bg: #0b0b0b;
	--bg-alt: #151515;
	--fg: #f5f5f4;
	--muted: #a8a29e;
	--line: rgba(255,255,255,0.12);
	--card: #181818;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

.s-inner { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.s-inner.s-wide { max-width: 1280px; }
.s-inner.s-narrow { max-width: 760px; }

/* Header */
.s-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	color: #fff;
	transition: background-color .25s, box-shadow .25s, backdrop-filter .25s;
}
.s-header.s-solid { background: rgba(10,10,10,0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.s-header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.s-logo img { height: 54px; width: auto; }
.s-logo span { font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: #fff; }
.s-logo { text-decoration: none; }
.s-nav { display: flex; align-items: center; gap: 28px; }
.s-nav a { color: rgba(255,255,255,.88); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.s-nav a:hover { color: #fff; }
.s-nav .s-header-cta { margin: 0; }
.s-nav .s-header-cta .s-btn { padding: 10px 18px; font-size: 13px; color: #fff; text-align: center; }
.s-menu-toggle, .s-menu-button { display: none; }
.s-langs { display: flex; gap: 2px; padding: 2px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }
.s-nav .s-langs a { padding: 4px 9px; border-radius: 999px; font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.75); }
.s-nav .s-langs a.s-lang-on { background: #fff; color: #111; }

/* Buttons */
.s-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.s-buttons-center { justify-content: center; }
.s-buttons.s-buttons-right { justify-content: flex-end; }
.s-head-center + .s-buttons, .s-buttons.s-buttons-center { justify-content: center; }
.s-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 15px 28px; border-radius: 999px;
	font-weight: 700; font-size: 15px; letter-spacing: .03em; text-decoration: none;
	border: 2px solid transparent; transition: transform .15s, background-color .15s, color .15s, border-color .15s;
}
.s-btn:hover { transform: translateY(-1px); }
.s-btn-primary { background: var(--primary); color: #fff; }
.s-btn-primary:hover { background: var(--accent); }
.s-btn-outline { border-color: currentColor; color: inherit; }
.s-hero .s-btn-outline, .tone-dark .s-btn-outline, .tone-image .s-btn-outline, .s-cta .s-btn-outline { color: #fff; }
.s-btn-outline:hover { background: rgba(255,255,255,.12); }
.s-btn-light { background: #fff; color: #111; }
.s-btn-ghost { color: var(--primary); padding-left: 0; padding-right: 0; }

/* Hero */
.s-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #111; }
.s-hero-medium { min-height: 70vh; }
.s-hero-short { min-height: 50vh; }
.s-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,var(--shade,.55)) 55%, rgba(0,0,0,.85) 100%); }
.s-hero-left .s-hero-shade { background: linear-gradient(90deg, rgba(0,0,0,calc(var(--shade,.55) + .25)) 0%, rgba(0,0,0,var(--shade,.55)) 45%, rgba(0,0,0,.15) 100%), linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 60%, rgba(0,0,0,.6) 100%); }
.s-hero-body { position: relative; padding-top: 140px; padding-bottom: 96px; }
.s-hero-center .s-hero-body { text-align: center; }
.s-hero-center .s-buttons { justify-content: center; }
.s-hero-title { font-size: clamp(40px, 6.4vw, 84px); font-weight: 800; max-width: 15ch; text-wrap: balance; }
.s-hero-center .s-hero-title { margin: 0 auto; }
.s-hero-sub { font-size: clamp(18px, 2vw, 22px); max-width: 560px; margin: 22px 0 0; color: rgba(255,255,255,.88); }
.s-hero-center .s-hero-sub { margin-left: auto; margin-right: auto; }
.s-hero-right .s-hero-body { text-align: right; }
.s-hero-right .s-buttons { justify-content: flex-end; }
.s-hero-right .s-hero-title, .s-hero-right .s-hero-sub { margin-left: auto; }
.s-hero-right .s-eyebrow { flex-direction: row-reverse; }
.s-hero-right .s-hero-shade { background: linear-gradient(270deg, rgba(0,0,0,calc(var(--shade,.55) + .25)) 0%, rgba(0,0,0,var(--shade,.55)) 45%, rgba(0,0,0,.15) 100%), linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 60%, rgba(0,0,0,.6) 100%); }
.s-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.s-hero .s-eyebrow { color: #fff; display: inline-flex; align-items: center; gap: 10px; }
.s-hero .s-eyebrow::before { content: ''; width: 28px; height: 3px; background: var(--primary); border-radius: 2px; }

/* Sections */
.s-block { padding: 96px 0; position: relative; }
.s-block.pad-tight { padding: 56px 0; }
.s-block.pad-loose { padding: 140px 0; }
.s-block.pad-none { padding: 0; }
.tone-alt { background: var(--bg-alt); }
.tone-dark { background: #0b0b0b; color: #f5f5f4; --muted: #a8a29e; --card: #181818; --line: rgba(255,255,255,.12); }
.tone-brand { background: var(--primary); color: #fff; --muted: rgba(255,255,255,.85); }
.tone-brand .s-eyebrow { color: rgba(255,255,255,.8); }
.tone-brand .s-btn-primary { background: #111; }
.tone-image { background-size: cover; background-position: center; color: #fff; --muted: rgba(255,255,255,.85); }
.s-head { margin-bottom: 48px; }
.s-head-center { text-align: center; }
.s-head-center .s-subtitle { margin-left: auto; margin-right: auto; }
.s-head-right { text-align: right; }
.s-head-right .s-subtitle { margin-left: auto; }
.s-title { font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; text-wrap: balance; }
.s-subtitle { font-size: 19px; color: var(--muted); max-width: 640px; margin: 16px 0 0; }
.s-text { font-size: 18px; color: var(--muted); }
.s-text-large { font-size: 22px; color: inherit; }
.s-text-small { font-size: 15px; }
.s-text p { margin: 0 0 1em; }

/* Cards */
.s-cards { display: grid; gap: 24px; }
.s-cols-1 { grid-template-columns: 1fr; }
.s-cols-2 { grid-template-columns: repeat(2, 1fr); }
.s-cols-3 { grid-template-columns: repeat(3, 1fr); }
.s-cols-4 { grid-template-columns: repeat(4, 1fr); }
.s-card {
	display: flex; flex-direction: column; background: var(--card); border-radius: 18px; overflow: hidden;
	border: 1px solid var(--line); color: inherit; text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}
a.s-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.s-card-img { aspect-ratio: 4 / 5; overflow: hidden; background: #222; }
.s-cols-3 .s-card-img, .s-cols-2 .s-card-img { aspect-ratio: 4 / 3; }
.s-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.s-card:hover .s-card-img img { transform: scale(1.04); }
.s-card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.s-card h3 { font-size: 22px; font-weight: 700; }
.s-card p { margin: 0; color: var(--muted); font-size: 16px; }
.s-card-tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.s-card-meta { font-size: 14px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.s-card-link { font-weight: 700; font-size: 15px; color: var(--primary); margin-top: auto; padding-top: 6px; }
/* A card link drawn as a button sits at the bottom of the card */
.s-card-body > .s-card-btn { margin-top: auto; align-self: flex-start; }
/* Overlay cards: title over the photo */
.s-cards-overlay .s-card { position: relative; border: none; min-height: 420px; justify-content: flex-end; }
.s-cards-overlay .s-card-img { position: absolute; inset: 0; aspect-ratio: auto; }
.s-cards-overlay .s-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.85) 100%); }
.s-cards-overlay .s-card-body { position: relative; color: #fff; flex: 0; }
.s-cards-overlay .s-card p { color: rgba(255,255,255,.85); }
.s-cards-overlay .s-card-tag { color: #fff; opacity: .85; }

/* Features */
.s-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.s-feature h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.s-feature p { margin: 0; color: var(--muted); font-size: 16px; }
.s-feature-icon { font-size: 30px; line-height: 1; margin-bottom: 14px; }

/* Gallery */
.s-gallery { columns: 3 280px; column-gap: 16px; }
.s-gallery figure { margin: 0 0 16px; break-inside: avoid; border-radius: 14px; overflow: hidden; }
.s-gallery img { width: 100%; height: auto; }

/* Gallery photos open the lightbox */
.s-zoom { display: block; cursor: zoom-in; overflow: hidden; }
.s-zoom img { transition: transform .4s, opacity .2s; }
.s-zoom:hover img { transform: scale(1.03); opacity: .92; }
.s-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; padding: 56px 72px; }
.s-lightbox[hidden] { display: none; }
.s-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); user-select: none; }
.s-lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: none; border-radius: 50%; width: 52px; height: 52px; font-size: 34px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color .15s; }
.s-lightbox button:hover { background: rgba(255,255,255,.22); }
.s-lb-close { top: 16px; right: 16px; font-size: 30px; }
.s-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.s-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.s-lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 14px; letter-spacing: .08em; }
@media (max-width: 760px) {
	.s-lightbox { padding: 64px 10px; }
	.s-lb-prev, .s-lb-next { top: auto; bottom: 10px; transform: none; width: 46px; height: 46px; }
	.s-lb-prev { left: 12px; }
	.s-lb-next { right: 12px; }
}

/* Image / quote / columns */
.s-image { margin: 0; }
.s-image img { width: 100%; height: auto; }
.s-image.s-rounded img { border-radius: 18px; }
.s-image figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.s-quote { margin: 0; text-align: center; }
.s-quote p { font-family: var(--font-heading); font-size: clamp(24px, 3vw, 34px); font-weight: 600; margin: 0; }
.s-quote cite { display: block; margin-top: 16px; color: var(--muted); font-style: normal; }
.s-columns { display: grid; grid-template-columns: var(--split, 50%) 1fr; gap: 56px; align-items: center; }
.s-col > * + * { margin-top: 24px; }
.s-col .s-head { margin-bottom: 0; }
.s-divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* Embeds keep their own look; give them room */
.s-embed { width: 100%; }

/* CTA band */
.s-cta { padding: 110px 0; background: var(--primary); color: #fff; background-size: cover; background-position: center; text-align: center; }
.s-cta .s-title { font-size: clamp(32px, 4.6vw, 58px); }
.s-cta .s-subtitle { color: rgba(255,255,255,.88); }
.s-cta .s-eyebrow { color: rgba(255,255,255,.85); }
.s-cta .s-head { margin-bottom: 0; }
.s-cta .s-buttons { justify-content: center; }

/* FAQ / testimonials */
.s-faq { max-width: 780px; margin: 0 auto; }
.s-faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.s-faq-item summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.s-faq-item summary::after { content: '+'; color: var(--primary); font-size: 24px; line-height: 1; }
.s-faq-item[open] summary::after { content: '–'; }
.s-faq-item div { color: var(--muted); margin-top: 12px; }
.s-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.s-quote-card { margin: 0; padding: 32px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.s-quote-card p { margin: 0 0 16px; font-size: 18px; }
.s-quote-card cite { font-style: normal; font-weight: 700; color: var(--primary); }

/* Contact */
.s-contact { display: grid; grid-template-columns: 1fr; gap: 40px; }
.s-contact.s-contact-map { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
.s-contact-row { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.s-contact-row:first-child { padding-top: 0; }
.s-contact-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.s-contact-row a { color: inherit; text-decoration: none; font-weight: 600; }
.s-contact-row a:hover { color: var(--primary); }
.s-hours { border-collapse: collapse; width: 100%; font-size: 16px; }
.s-hours th { text-align: left; font-weight: 600; padding: 3px 16px 3px 0; white-space: nowrap; }
.s-hours td { color: var(--muted); padding: 3px 0; }
.s-map { border-radius: 18px; overflow: hidden; min-height: 380px; background: var(--bg-alt); }
.s-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.s-social { display: flex; gap: 10px; }
.s-social a { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; transition: transform .15s; }
.s-social a:hover { transform: translateY(-2px); }
.s-contact-social { margin-top: 24px; }

/* Footer */
.s-footer { background: #070707; color: rgba(255,255,255,.7); padding: 48px 0 28px; font-size: 14px; }
.s-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.s-footer-brand { display: flex; align-items: center; gap: 16px; }
.s-footer-brand img { height: 44px; width: auto; }
.s-powered { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; }
.s-powered a { color: rgba(255,255,255,.55); text-decoration: none; font-size: 13px; }
.s-powered a:hover { color: #fff; }
.s-preview-bar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 100; background: #f59e0b; color: #111; font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }

/* Tablet */
@media (max-width: 960px) {
	.s-cols-3, .s-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.s-columns, .s-contact.s-contact-map { grid-template-columns: 1fr; gap: 36px; }
	.s-nav { gap: 20px; }
}

/* Phone */
@media (max-width: 760px) {
	body { font-size: 16px; }
	.s-inner { padding: 0 20px; }
	.s-block { padding: 72px 0; }
	.s-header-row { height: 64px; }
	.s-logo img { height: 44px; }
	.s-menu-button { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
	.s-menu-button span, .s-menu-button span::before, .s-menu-button span::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: transform .2s; }
	.s-menu-button span::before, .s-menu-button span::after { content: ''; position: absolute; left: 0; }
	.s-menu-button span::before { top: -7px; }
	.s-menu-button span::after { top: 7px; }
	.s-menu-toggle:checked + .s-menu-button span { background: transparent; }
	.s-menu-toggle:checked + .s-menu-button span::before { transform: translateY(7px) rotate(45deg); }
	.s-menu-toggle:checked + .s-menu-button span::after { transform: translateY(-7px) rotate(-45deg); }
	.s-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(10,10,10,.97); padding: 8px 20px 24px; }
	.s-menu-toggle:checked ~ .s-nav { display: flex; }
	.s-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; }
	.s-nav .s-header-cta { margin-top: 16px; }
	.s-nav .s-header-cta .s-btn { width: 100%; padding: 14px; border: none; }
	.s-langs { align-self: center; margin-top: 18px; }
	.s-nav .s-langs a { padding: 6px 14px; border-bottom: none; font-size: 12px; }
	.s-header:has(.s-menu-toggle:checked) { background: rgba(10,10,10,.97); }
	.s-hero-body { padding-top: 110px; padding-bottom: 64px; }
	.s-cols-2, .s-cols-3, .s-cols-4 { grid-template-columns: 1fr; }
	.s-cards-overlay .s-card { min-height: 380px; }
	.s-contact-row { grid-template-columns: 1fr; gap: 6px; }
	.s-buttons .s-btn { flex: 1 1 auto; }
	.s-gallery { columns: 2 140px; column-gap: 10px; }
	.s-gallery figure { margin-bottom: 10px; border-radius: 10px; }
	.s-footer-row { flex-direction: column; text-align: center; }
	.s-footer-brand { flex-direction: column; }
}
