/*
Theme Name: Studio Float
Description: A light, clean photography theme with a parallax floating photo background, recent sessions, portfolio, student portfolio, booking, reviews and contact.
Version: 1.8.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: studio-float
*/

:root {
  --bg: #f6f9fc;
  --ink: #22303c;
  --muted: #5f6f7d;
  --accent: #5b8db8;
  --accent-dark: #3f6d96;
  --line: #d9e5ef;
  --card: rgba(255, 255, 255, 0.82);
  --radius: 14px;
  --max: 1120px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  position: relative;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.sf-wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

.screen-reader-text {
  position: absolute !important; clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* Floating background photos (fixed layer, moved by scroll) */
.sf-bg {
  position: fixed; inset: 0; overflow: hidden;
  z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .8s ease;
}
.sf-bg.is-ready { opacity: 1; }
.sf-float-wrap {
  position: absolute; top: 0; width: clamp(160px, 18vw, 260px);
  will-change: transform;
}
.sf-float {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  border-radius: 10px; opacity: .85;
  box-shadow: 0 22px 50px rgba(30, 60, 90, .22);
}
.sf-float-1 { left: 3%; }
.sf-float-2 { right: 4%; }
.sf-float-3 { left: 11%; }
.sf-float-4 { right: 12%; }
.sf-float-5 { left: 1%; }
.sf-float-6 { right: 2%; }
@media (max-width: 700px) {
  .sf-float-wrap { width: 84px; }
  .sf-float { opacity: .55; }
}

/* Header */
.sf-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 249, 252, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.sf-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.sf-brand { font-family: var(--serif); font-size: 1.7rem; text-decoration: none; color: var(--ink); }
.sf-brand img { max-height: 54px; width: auto; }
.sf-menu { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; align-items: center; }
.sf-menu a { text-decoration: none; color: var(--ink); font-size: 1.1rem; letter-spacing: .02em; }
.sf-menu a:hover, .sf-menu .current-menu-item a { color: var(--accent-dark); }
.sf-nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font: inherit; cursor: pointer; }

@media (max-width: 820px) {
  .sf-nav-toggle { display: block; }
  .sf-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 20px; }
  .sf-nav.is-open { display: block; }
  .sf-menu { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Buttons */
.sf-btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 15px 32px; border-radius: 999px; border: 0;
  text-decoration: none; font: inherit; font-size: 1.1rem; cursor: pointer;
  transition: background .2s, transform .2s;
}
.sf-btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.sf-btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.sf-btn-ghost:hover { background: var(--ink); color: #fff; }
.sf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Sections */
.sf-hero { padding: clamp(70px, 14vw, 150px) 0 clamp(50px, 9vw, 100px); text-align: center; }
.sf-hero p { max-width: 620px; margin-inline: auto; color: var(--muted); font-size: 1.35rem; }
.sf-hero .sf-actions { justify-content: center; }
.sf-section { padding: clamp(40px, 7vw, 80px) 0; }
.sf-section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sf-section-head h2 { margin: 0; }
.sf-panel {
  background: var(--card); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.sf-page-title { padding: 60px 0 10px; text-align: center; }

/* Session grid */
.sf-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sf-card { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.sf-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30, 60, 90, .12); color: var(--ink); }
.sf-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sf-card-body { padding: 14px 18px 18px; }
.sf-card-body h3 { margin: 0 0 2px; font-size: 1.15rem; }
.sf-card-meta { color: var(--muted); font-size: 1rem; }
.sf-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.sf-filter a { text-decoration: none; padding: 9px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 1.05rem; }
.sf-filter a.is-active, .sf-filter a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Reviews */
.sf-reviews { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sf-review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.sf-stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 8px; }
.sf-review-name { font-weight: 600; font-size: 1.05rem; margin: 0; }

/* Forms */
.sf-form { display: grid; gap: 16px; max-width: 640px; margin-inline: auto; }
.sf-form label { display: block; font-size: 1.05rem; margin-bottom: 4px; color: var(--muted); }
.sf-form input, .sf-form select, .sf-form textarea {
  width: 100%; padding: 12px 14px; font: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.sf-form input:focus, .sf-form select:focus, .sf-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sf-form .sf-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .sf-form .sf-row { grid-template-columns: 1fr; } }
.sf-hp { position: absolute; left: -9999px; }
.sf-notice { max-width: 640px; margin: 0 auto 24px; padding: 14px 18px; border-radius: 10px; text-align: center; }
.sf-notice.ok { background: #eef6ee; border: 1px solid #c8e0c8; }
.sf-notice.err { background: #fbeeee; border: 1px solid #ecc6c6; }

/* Content */
.entry-content { max-width: 760px; margin-inline: auto; }
.entry-content.wide { max-width: var(--max); }
.entry-content img { border-radius: 8px; }
.wp-block-gallery { gap: 14px; }

/* Socials and footer */
.sf-socials { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center; }
.sf-socials a { text-decoration: none; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.sf-footer { border-top: 1px solid var(--line); background: rgba(246, 249, 252, .92); padding: 44px 0; text-align: center; color: var(--muted); font-size: 1.05rem; margin-top: 60px; }
.sf-footer p { margin: 14px 0 0; }

.sf-pagination { text-align: center; margin-top: 34px; }
.sf-pagination .page-numbers { padding: 6px 12px; text-decoration: none; }
.sf-pagination .current { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sf-card, .sf-btn { transition: none; }
}

/* Intro and experience tiles */
.sf-intro { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; align-items: center; }
.sf-intro img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sf-intro .sf-eyebrow, .sf-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .95rem; color: var(--accent-dark); margin: 0 0 6px; }
@media (max-width: 760px) { .sf-intro { grid-template-columns: 1fr; } }
.sf-tiles { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.sf-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #cfe0ee, #9dbcd6); text-decoration: none; }
.sf-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sf-tile:hover img { transform: scale(1.04); }
.sf-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 18px; color: #fff; font-family: var(--serif); font-size: 1.4rem; background: linear-gradient(transparent, rgba(20, 45, 70, .7)); }
.sf-insta { text-align: center; }

/* Dropdown submenus */
.sf-menu li { position: relative; }
.sf-menu .sub-menu { list-style: none; margin: 0; padding: 8px 0; display: none; position: absolute; top: 100%; left: -12px; min-width: 170px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.sf-menu .sub-menu a { display: block; padding: 6px 16px; }
.sf-menu li:hover > .sub-menu, .sf-menu li:focus-within > .sub-menu { display: block; }
@media (max-width: 820px) {
  .sf-menu .sub-menu { display: block; position: static; border: 0; padding: 4px 0 0 14px; min-width: 0; background: none; }
}


/* Polish */
html { background: linear-gradient(180deg, #e8f1f9 0%, #f8fbfe 35%, #eaf2f9 70%, #f8fbfe 100%); background-attachment: scroll; }
.sf-header { background: rgba(255, 255, 255, .9); box-shadow: 0 2px 18px rgba(30, 60, 90, .06); border-bottom: 0; }
.sf-hero { padding: clamp(90px, 16vw, 190px) 0 clamp(70px, 11vw, 130px); }
.sf-hero h1 { letter-spacing: -.01em; }
.sf-hero .sf-eyebrow { font-size: 1rem; margin-bottom: 14px; }
.sf-hero h1::after { content: ""; display: block; width: 64px; height: 3px; background: var(--accent); border-radius: 2px; margin: 22px auto 0; }
.sf-section-head h2::after { content: ""; display: block; width: 46px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: 10px; }
.sf-panel { border: 0; box-shadow: 0 14px 40px rgba(30, 60, 90, .10); }
.sf-card, .sf-review { border: 0; box-shadow: 0 8px 26px rgba(30, 60, 90, .09); }
.sf-btn { box-shadow: 0 6px 16px rgba(63, 109, 150, .28); }
.sf-btn-ghost { box-shadow: none; }
.sf-footer { background: #23465f; color: #cfe0ee; border-top: 0; }
.sf-footer a { color: #fff; border-color: rgba(255, 255, 255, .3); }

/* Deals */
.sf-deal-big { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #2f5d85, #5b8db8); color: #fff; box-shadow: 0 18px 46px rgba(30, 60, 90, .28); }
.sf-deal-big .sf-deal-img { min-height: 280px; background: #8fb4d4; }
.sf-deal-big .sf-deal-img img { width: 100%; height: 100%; object-fit: cover; }
.sf-deal-body { padding: clamp(24px, 4vw, 44px); }
.sf-deal-badge { display: inline-block; background: #fff; color: var(--accent-dark); border-radius: 999px; padding: 5px 16px; font-size: .95rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sf-deal-body h2 { color: #fff; margin: 14px 0 6px; }
.sf-deal-price { font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1; margin: 4px 0 14px; }
.sf-deal-body .sf-deal-text p { color: #eaf3fa; }
.sf-deal-end { font-size: 1.05rem; color: #dcebf7; margin: 8px 0 18px; }
.sf-deal-body .sf-btn { background: #fff; color: var(--accent-dark); box-shadow: none; }
.sf-deal-body .sf-btn:hover { background: var(--ink); color: #fff; }
.sf-deal-small { margin-top: 20px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sf-deal-mini { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; text-decoration: none; color: var(--ink); }
.sf-deal-mini strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; display: block; }
.sf-deal-mini .sf-deal-mini-price { font-family: var(--serif); font-size: 1.6rem; color: var(--accent-dark); white-space: nowrap; }
@media (max-width: 760px) { .sf-deal-big { grid-template-columns: 1fr; } .sf-deal-big .sf-deal-img { min-height: 220px; } }

/* Mobile pass */
html, body { overflow-x: hidden; }
@media (max-width: 700px) {
  body { font-size: 17px; line-height: 1.65; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }
  .sf-wrap { width: calc(100% - 32px); }
  .sf-header-inner { padding-block: 10px; }
  .sf-brand { font-size: 1.25rem; }
  .sf-menu a { font-size: 1.05rem; }
  .sf-hero { padding: 56px 0 44px; }
  .sf-hero p { font-size: 1.1rem; }
  .sf-hero h1::after { margin-top: 16px; }
  .sf-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .sf-actions .sf-btn { display: block; }
  .sf-btn { font-size: 1rem; padding: 13px 22px; }
  .sf-section { padding: 28px 0; }
  .sf-page-title { padding: 34px 0 6px; }
  .sf-panel { padding: 20px 18px; }
  .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sf-tile span { font-size: 1.1rem; padding: 28px 12px 12px; }
  .sf-card-body { padding: 10px 12px 14px; }
  .sf-card-body h3 { font-size: 1.05rem; }
  .sf-card-meta { font-size: .9rem; }
  .sf-reviews { grid-template-columns: 1fr; }
  .sf-deal-body { padding: 22px 18px; }
  .sf-deal-big .sf-deal-img { min-height: 190px; }
  .sf-deal-price { font-size: 2.3rem; }
  .sf-deal-small { grid-template-columns: 1fr; }
  .sf-intro { gap: 20px; }
  .sf-intro img { aspect-ratio: 1; }
  .sf-filter { gap: 8px; }
  .sf-filter a { padding: 7px 16px; font-size: .95rem; }
  .sf-section-head { margin-bottom: 18px; }
  .sf-footer { padding: 32px 0; font-size: 1rem; }
  .sf-float-1, .sf-float-3, .sf-float-5 { left: -16px; }
  .sf-float-2, .sf-float-4, .sf-float-6 { right: -16px; }
}

/* Rotating reviews */
.sf-rev-slides { display: grid; }
.sf-rev-slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.sf-rev-slide.is-active { opacity: 1; visibility: visible; }
.sf-rev-slide blockquote { margin: 0 0 10px; font-family: var(--serif); font-size: 1.25em; line-height: 1.5; }
.sf-rev-slide .sf-review-name { font-weight: 600; }
.sf-rev-dots { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.sf-rev-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.sf-rev-dots button.is-active { background: var(--accent); }

/* Session page layout */
.sf-session-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.sf-session-aside { position: sticky; top: 100px; display: grid; gap: 20px; }
@media (max-width: 900px) {
  .sf-session-layout { grid-template-columns: 1fr; }
  .sf-session-aside { position: static; }
}

/* Big quote marks on reviews */
.sf-rev-slide blockquote::before { content: "\201C"; display: block; font-family: var(--serif); font-size: 6rem; line-height: .7; height: 3.2rem; color: var(--accent); opacity: .55; }
.sf-small-reviews .sf-rev-slide blockquote { font-size: 1.45em; max-width: 820px; margin-inline: auto; }
.sf-small-reviews .sf-rev-slide blockquote::before { font-size: 8rem; height: 4.4rem; }
.sf-version { font-size: .8rem; opacity: .7; }

/* Gentle bounce on desktop, on top of the scroll glide */
@keyframes sf-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-22px) rotate(2deg); }
}
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  .sf-float { animation: sf-bounce 8s ease-in-out infinite; }
  .sf-float-2 .sf-float { animation-duration: 9s;  animation-delay: -2s; }
  .sf-float-3 .sf-float { animation-duration: 7s;  animation-delay: -4s; }
  .sf-float-4 .sf-float { animation-duration: 10s; animation-delay: -1s; }
  .sf-float-5 .sf-float { animation-duration: 8.5s; animation-delay: -5s; }
  .sf-float-6 .sf-float { animation-duration: 9.5s; animation-delay: -3s; }
}

/* List page tweaks and spam check */
.sf-session-layout .sf-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (min-width: 901px) { .sf-top-book { display: none; } }
.cf-turnstile { min-height: 65px; }

/* Scattered prints look for floating photos */
.sf-float { box-sizing: border-box; border: 9px solid #fff; border-bottom-width: 32px; border-radius: 3px; opacity: 1; box-shadow: 0 18px 40px rgba(30, 60, 90, .26); }
@media (max-width: 700px) {
  .sf-float { border-width: 5px; border-bottom-width: 16px; opacity: .85; }
  .sf-tile { aspect-ratio: 1 / 1; }
}

/* Slim photo strip under the header */
.sf-strip { overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 0; }
.sf-strip-track { display: flex; width: max-content; animation: sf-strip var(--dur, 60s) linear infinite; }
.sf-strip:hover .sf-strip-track { animation-play-state: paused; }
.sf-strip-set { display: flex; flex: none; }
.sf-strip a { display: block; flex: none; height: 92px; margin-right: 6px; }
.sf-strip img { height: 100%; width: auto; display: block; border-radius: 4px; }
@keyframes sf-strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 700px) { .sf-strip a { height: 62px; } .sf-strip { padding: 4px 0; } }
@media (prefers-reduced-motion: reduce) { .sf-strip { overflow-x: auto; } .sf-strip-track { animation: none; } }

/* Reviews and booking band on list and session pages */
.sf-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 18px 28px; margin-bottom: 28px; }
.sf-band-rev { flex: 1; min-width: 0; }
.sf-band .sf-btn { flex: none; }
.sf-band .sf-rev-slide { text-align: left; }
.sf-band .sf-rev-slide blockquote { margin: 2px 0; font-size: 1.1em; line-height: 1.45; }
.sf-band .sf-rev-slide blockquote::before { display: none; }
.sf-band .sf-stars { margin-bottom: 2px; }
.sf-band .sf-rev-dots { justify-content: flex-start; margin-top: 8px; }
@media (max-width: 700px) {
  .sf-band { flex-direction: column; align-items: stretch; text-align: center; gap: 16px; padding: 18px; }
  .sf-band .sf-rev-slide { text-align: center; }
  .sf-band .sf-rev-dots { justify-content: center; }
}
.sf-top-book { display: none; }

/* Photo breaks: open bands of floating prints between sections, phones only */
.sf-break { position: relative; height: clamp(190px, 56vw, 250px); margin: 10px 0; pointer-events: none; z-index: 2; }
.sf-bprint { position: absolute; width: 30%; max-width: 210px; will-change: transform; }
.sf-bprint img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; box-sizing: border-box; border: 6px solid #fff; border-bottom-width: 22px; border-radius: 3px; box-shadow: 0 14px 30px rgba(30, 60, 90, .26); }
.sf-bp1 { left: 4%; top: 14%; }
.sf-bp2 { left: 35%; top: 34%; }
.sf-bp3 { right: 4%; top: 6%; }
@media (min-width: 701px) { .sf-break { display: none; } }
@media (max-width: 700px) { .sf-bg { display: none; } }
