/* =====================================================================================================================
   THE STARTER DESIGN: the look every Tenshi template starts from.
   Colours come from four variables written by layout.html.j2 from the template (and the site's own Theme choices):
     --p primary   --a accent   --s page background   --i text
   The body has one of three shapes: .style-clean (light, rounded), .style-bold (square, strong), .style-elegant (serif, calm).
   ===================================================================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--font-body, system-ui, "Segoe UI", sans-serif); color: var(--i); background: var(--s); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--p); }
h1, h2, h3 { font-family: var(--font-head, inherit); line-height: 1.12; margin: 0 0 .5em; color: var(--i); }
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border: 2px solid var(--p); border-radius: 10px;
  background: var(--p); color: #fff; font: 700 1rem/1.2 var(--font-body, inherit); text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--p) 70%, transparent); }
.btn-line { background: transparent; color: var(--p); }
.btn-light { background: #fff; color: var(--p); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* Header and menu */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--s) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--i) 10%, transparent); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { font: 800 1.25rem/1 var(--font-head, inherit); color: var(--i); text-decoration: none; }
.brand img { height: 44px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu a { padding: 8px 12px; border-radius: 8px; color: var(--i); text-decoration: none; font-weight: 600; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--p); background: color-mix(in srgb, var(--p) 9%, transparent); }
.menu .menu-call { background: var(--p); color: #fff; margin-left: 8px; }
.menu .menu-call:hover { color: #fff; background: color-mix(in srgb, var(--p) 85%, #000); }
.menu-btn { display: none; margin-left: auto; padding: 8px 14px; font: inherit; font-weight: 700; background: none; border: 1px solid currentColor; border-radius: 8px; color: var(--i); }

/* Sections */
.band { padding: clamp(56px, 9vw, 110px) 0; }
.band:nth-of-type(even) { background: color-mix(in srgb, var(--i) 3%, var(--s)); }
.intro { max-width: 46em; font-size: 1.1rem; margin-bottom: 2em; }
.center { text-align: center; }
.center .intro, .center .prose { margin-inline: auto; }
.empty-note { padding: 20px; border: 2px dashed color-mix(in srgb, var(--i) 25%, transparent); border-radius: 10px; color: color-mix(in srgb, var(--i) 65%, transparent); }
.caption, figcaption { font-size: .9rem; color: color-mix(in srgb, var(--i) 70%, transparent); margin-top: .7em; }

/* Hero */
.hero { padding: clamp(60px, 11vw, 140px) 0; color: #fff; background:
  radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--a) 45%, transparent), transparent 45%),
  linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 65%, #000)); }
.hero h1, .hero .lead, .hero .kicker { color: #fff; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.hero-centered .hero-in, .hero-background .hero-in { grid-template-columns: 1fr; text-align: center; }
.hero-centered .actions, .hero-background .actions { justify-content: center; }
.hero-centered .lead, .hero-background .lead { margin-inline: auto; }
.hero-background { background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.55)), var(--hero-img, none) center / cover, var(--p); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34em; opacity: .95; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 800; }
.hero .btn { background: #fff; color: var(--p); border-color: #fff; }
.hero .btn-line { background: transparent; color: #fff; }
.hero-pic img { border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }

/* Cards (services, team, contact) */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.cards-2 { --cols: 2; } .cards-3 { --cols: 3; } .cards-4 { --cols: 4; }
.card { padding: 26px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 14px 30px -24px rgba(0,0,0,.35); border-top: 4px solid var(--a); }
.card-pic { margin: -26px -26px 18px; width: calc(100% + 52px); max-width: none; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px 14px 0 0; }
.price { font-weight: 800; color: var(--p); }
.person { text-align: center; }
.person img, .person-initial { width: 150px; height: 150px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; }
.person-initial { display: grid; place-items: center; font: 800 3rem/1 var(--font-head, inherit); color: #fff; background: var(--p); }
.role { color: var(--p); font-weight: 700; }

/* Testimonials */
.quotes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote { margin: 0; padding: 28px; background: #fff; border-radius: 14px; border-left: 5px solid var(--p); }
.quote footer { font-weight: 700; }
.stars { color: #f2a900; letter-spacing: .1em; margin: 0 0 .4em; }

/* Call to action */
.cta { padding: clamp(48px, 7vw, 80px) 0; background: var(--p); color: #fff; }
.cta h2, .cta p { color: #fff; }
.cta-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }

/* Galleries: masonry (columns), grid (equal squares), carousel (sideways scroll) */
.gallery-masonry { columns: 3 260px; column-gap: 14px; }
.gallery-masonry .gallery-item { display: block; margin-bottom: 14px; break-inside: avoid; }
.gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.gallery-carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.gallery-carousel .gallery-item { flex: 0 0 min(80%, 520px); scroll-snap-align: start; }
.gallery-item { position: relative; overflow: hidden; border-radius: 12px; }
.gallery-item img { transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 10px; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); }

/* Portfolio and before/after */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { padding: 8px 16px; font: inherit; font-weight: 700; border: 1px solid color-mix(in srgb, var(--i) 20%, transparent); border-radius: 99px; background: #fff; color: var(--i); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--p); border-color: var(--p); color: #fff; }
.portfolio { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.portfolio-masonry { display: block; columns: 3 300px; column-gap: 24px; }
.portfolio-masonry .work { break-inside: avoid; margin-bottom: 24px; }
.work { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 30px -24px rgba(0,0,0,.35); }
.work[hidden] { display: none; }
.work-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-text { padding: 18px 20px 20px; }
.work-cat { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--p); }
.ba { position: relative; overflow: hidden; border-radius: 12px; user-select: none; }
.ba > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img { width: 100%; height: 100%; object-fit: cover; }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); pointer-events: none; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-tag { position: absolute; top: 10px; padding: 3px 10px; font-size: .75rem; font-weight: 800; color: #fff; background: rgba(0,0,0,.55); border-radius: 99px; pointer-events: none; }
.ba-tag-b { left: 10px; } .ba-tag-a { right: 10px; }

/* Lightbox (site.js) */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 4vh 4vw; background: rgba(10,10,12,.92); }
.lightbox img { max-height: 84vh; width: auto; border-radius: 6px; }
.lightbox p { color: #fff; text-align: center; margin-top: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 18px; top: 50%; } .lb-next { right: 18px; top: 50%; }

/* Forms */
.lead { display: grid; gap: 14px; }
.lead label { display: grid; gap: 6px; font-weight: 700; }
.lead input, .lead textarea, .lead select { font: inherit; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--i) 25%, transparent); border-radius: 10px; background: #fff; color: var(--i); }
.lead .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-note:empty { display: none; }

/* Image, video, text, spacer */
.prose { font-size: 1.08rem; }
.image-block figure { margin-inline: auto; }
.image-block .full { width: 100%; }
.image-block .narrow { width: min(680px, 100% - 40px); }
.image-block img { border-radius: 14px; width: 100%; }
.embed { position: relative; aspect-ratio: 16 / 9; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
video { width: 100%; border-radius: 12px; }
.spacer-small { height: 24px; } .spacer-medium { height: 60px; } .spacer-large { height: 120px; }

/* Footer */
.bottom { padding: 50px 0 24px; background: var(--i); color: color-mix(in srgb, #fff 80%, transparent); }
.bottom a { color: #fff; }
.bottom-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.bottom-name { font: 800 1.2rem/1.2 var(--font-head, inherit); color: #fff; display: block; margin-bottom: 6px; }
.social { display: flex; flex-wrap: wrap; gap: 14px; align-content: start; }
.made { margin-top: 30px; font-size: .8rem; opacity: .7; }

/* The three shapes */
.style-bold h1, .style-bold h2 { text-transform: uppercase; }
.style-bold .btn, .style-bold .card, .style-bold .quote, .style-bold .work, .style-bold .gallery-item, .style-bold .hero-pic img, .style-bold .menu a { border-radius: 0; }
.style-bold .top { background: var(--i); }
.style-bold .brand, .style-bold .menu a { color: #fff; }
.style-bold .menu-btn { color: #fff; }
.style-elegant h1, .style-elegant h2, .style-elegant h3, .style-elegant .brand { font-family: var(--font-head, Georgia, "Times New Roman", serif); font-weight: 400; }
.style-elegant .hero-in { text-align: center; grid-template-columns: 1fr; }
.style-elegant .hero .actions { justify-content: center; }
.style-elegant .hero .lead { margin-inline: auto; }
.style-elegant .btn { border-radius: 0; background: transparent; color: var(--p); }
.style-elegant .hero .btn, .style-elegant .cta .btn { color: #fff; border-color: #fff; background: transparent; }
.style-elegant .card { border-top-width: 1px; box-shadow: none; border: 1px solid color-mix(in srgb, var(--i) 12%, transparent); }

/* Phones */
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: stretch; padding: 10px 20px 20px; background: var(--s); border-bottom: 1px solid color-mix(in srgb, var(--i) 12%, transparent); }
  .style-bold .menu { background: var(--i); }
  .menu.open { display: flex; }
  .hero-in, .cards { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
