/* ========================================================================== */
/* Lenko Studio — Mobile-first, accessible, high-contrast styles              */
/* Professional divisions for easy reading and maintenance                     */
/* ========================================================================== */

/* 1) Design Tokens ---------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #c7c7c7;
  --accent: #ff4d8f; /* Orana Pink tone */
  --cta-bg: rgba(0, 0, 0, 0.5);
  --cta-bg-hover: rgba(255, 255, 255, 0.12);
  --focus: #ffffff;
}

/* 2) Base / Reset ----------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-size: 16px;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button { font: inherit; color: inherit; }

/* 3) Accessibility: Skip Link & Focus -------------------------------------- */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--focus); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* 4) Header / Navigation ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 12px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.site-nav { display: flex; align-items: center; gap: 12px; }
.brand { font-weight: 700; letter-spacing: 0.03em; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 12px; overflow-x: auto;
}
.nav-list a { padding: 6px 8px; border-radius: 6px; white-space: nowrap; }
.nav-list a:hover { background: rgba(0,0,0,0.06); text-decoration: none; }
.orana-link { color: var(--accent); font-weight: 600; }

.sound-toggle {
  justify-self: end;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.sound-toggle:hover { background: rgba(255,255,255,0.14); }

/* 5) Hero (video, scrim, content) ------------------------------------------ */
.hero { position: relative; min-height: 100svh; display: grid; }
.video-wrap { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
#bgVideo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 900ms ease; }
.scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.65)); pointer-events: none; z-index: 1; }

/* Grid overlay (texture) sits above video, below content */
.grid-overlay { position: absolute; inset: 0; z-index: 10; background: url('media/texture.png') repeat; opacity: 0.35; pointer-events: none; }

.hero-content {
  position: relative; z-index: auto;
  display: grid; place-items: center; padding: 24px; gap: 24px;
}

/* 5.1) Hero Title ----------------------------------------------------------- */
.intro-title { /* title must be above everything */
  position: relative; z-index: 210;
  font-size: 3rem; font-weight: 200; letter-spacing: 0.08em; text-align: center; cursor: pointer;
  color: #ffffff;
  text-shadow: 0 0 0px rgba(255,255,255,0.85), 0 0 20px rgba(255,255,255,0.55);
  transition: transform 300ms ease, opacity 300ms ease, text-shadow 300ms ease;
}
.intro-title:hover { transform: scale(1.06); text-shadow: 0 0 16px rgba(255,255,255,0.95), 0 0 30px rgba(255,255,255,0.7); }
@media (hover: none) {
  .intro-title { animation: pulse 4s infinite ease-in-out; }
  @keyframes pulse { 0%,100%{ transform: scale(1) } 50%{ transform: scale(1.04) } }
}

/* Title: opacity flash on first click (dip then return) */
.title-opacity-flash { animation: titleOpacityFlash 1s ease; }
@keyframes titleOpacityFlash { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* 6) Hero CTAs -------------------------------------------------------------- */
.hero-ctas {
  display: grid; gap: 0;
  /* Full-bleed like original buttons */
  width: 100vw;
  position: relative; left: 50%; transform: translate(-50%, 0);
  /* Layer above the grid texture, below the black overlay */
  z-index: 20;
  padding-inline: 0;
  /* Position slightly higher on the screen */
  margin-top: -8vh;
  opacity: 1;
}
.cta { display: block; text-align: center; padding: 18px 16px; border-radius: 12px; font-size: 1.0625rem; }
/* Hero CTA overrides to mimic original style */
.hero-ctas .cta {
  background: transparent; border: none; color: rgba(255,255,255,0.9);
  display: flex; justify-content: center; align-items: center;
  width: 100%; min-height: 76px; /* taller buttons */
  letter-spacing: 0.3rem; font-size: clamp(1.25rem, 6vw, 2rem); font-weight: 300;
  border-radius: 0; /* remove roundness */
  /* Stronger default glow for visibility */
  text-shadow: 0 0 6px rgba(255,255,255,0.55), 0 0 12px rgba(255,255,255,0.35), 0 0 18px rgba(0,0,0,0.6);
  transform: scale(1);
  transition: color 1s ease, opacity 1s ease, transform 1s ease, text-shadow 1s ease, background-color 1s ease;
}
.hero-ctas .cta:hover {
  color: #ffffff;
  opacity: 1;
  transform: scale(1.05);
  /* More visible background on hover */
  background: rgba(0, 0, 0, 0.55);
  /* Stronger white glow around the text */
  text-shadow: 0 0 12px rgba(255,255,255,0.95), 0 0 24px rgba(255,255,255,0.75), 0 0 36px rgba(255,255,255,0.5);
  text-decoration: none;
}
.hero-ctas .cta.primary { color: rgba(255,255,255,0.9); }

/* 7) Floating CTA ----------------------------------------------------------- */
.floating-cta {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  z-index: 30; padding: 12px 18px; border-radius: 999px; background: #fff; color: #000; border: 1px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.floating-cta:hover { background: #e9e9e9; text-decoration: none; }

/* Full-screen black overlay (fades on click) under title */
.overlay-black { position: fixed; inset: 0; background: #000; z-index: 150; opacity: 1; transition: opacity 4s ease 1s; }
.overlay-black.is-hidden { opacity: 0; pointer-events: none; }

/* 8) Intro Stages (state machine styling) ---------------------------------- */
/* body.stage-0 #bgVideo { filter: grayscale(1); } */
body.stage-0 .hero-ctas { opacity: 1; pointer-events: auto; }
body.stage-0 .intro-title { position: relative; top: 0; left: 0; opacity: 0; animation: titleFade 1.2s ease forwards 0.6s; }
@keyframes titleFade { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

/* body.stage-1 #bgVideo { filter: grayscale(1); } */
body.stage-1 .hero-ctas { opacity: 1; pointer-events: auto; }

body.stage-2 #bgVideo { filter: grayscale(0); }
body.stage-2 .hero-ctas { opacity: 1; transform: translate(-50%, 0); }
/* Tuck the title in final stage to avoid duplication with brand in nav */
body.stage-2 .intro-title { opacity: 1; pointer-events: auto; }

/* 9) Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid rgba(0,0,0,0.12); margin-top: 24px; }
.footer-inner {
  padding: 20px 12px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.site-footer nav a { margin-right: 12px; }
.social a { margin-left: 12px; }

/* 10) Page Content Shells --------------------------------------------------- */
.page { max-width: 960px; margin: 0 auto; padding: 20px 12px 80px; }
.page h1 { font-size: 2rem; font-weight: 600; margin: 10px 0 20px; }
.page section { margin: 24px 0; }
.muted { color: var(--muted); }

/* Work page — original buttons copied -------------------------------------- */
.work-ctas { display: grid; gap: 12px; width: min(720px, 92vw); margin: 24px auto 0; }
.work-ctas .button {
  color:#fff;
  border:none;
  position:relative;
  height:3rem;
  font-size:1.2em;
  cursor:pointer;
  transition:800ms ease all;
  outline:none;
  padding: 1rem;
}
.work-ctas .button:hover {
  background:#fff;
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}
.work-ctas .button:before,.work-ctas .button:after{
  content:'';
  position:absolute;
  height:2px;
  width:0;
  background:#fff;
  transition:400ms ease all;
}
.work-ctas .button:before { top:0; right:0; }
.work-ctas .button:after { bottom:0; left:0; }
.work-ctas .button:hover:before, .work-ctas .button:hover:after{ width:100%; }

/* 11) Forms ----------------------------------------------------------------- */
label { display: block; margin-bottom: 8px; }
input, select, textarea { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: var(--fg); }
input[type="range"] { width: 100%; }
button[type="submit"], .btn { padding: 12px 16px; border-radius: 10px; background: #fff; border: 1px solid #fff; color: #000; cursor: pointer; }
button[type="submit"]:hover, .btn:hover { background: #e9e9e9; }

/* 12) Reduced Motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* 13) Breakpoints: ≥768px --------------------------------------------------- */
@media (min-width: 768px) {
  .intro-title { font-size: 4rem; }
  .hero-ctas { gap: 0; }
}

/* _________________________ Mobile BUTTONS _____________________________________________ */
@media (max-width: 999px) {
  .work-ctas .button {
    color:#fff;
    border:none;
    position:relative;
    height:3rem;
    font-size:1.2em;
    cursor:pointer;
    transition:800ms ease all;
    outline:none;
    padding: 1rem;
  }
  .work-ctas .button:hover {
    background:#fff;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
  }
  .work-ctas .button:before,.work-ctas .button:after{
    content:'';
    position:absolute;
    top:0;
    right:0;
    height:2px;
    width:0;
    transition:400ms ease all;
  }
  .work-ctas .button:after{
    right:inherit;
    top:inherit;
    left:0;
    bottom:0;
  }
  .work-ctas .button:hover:before,.work-ctas .button:hover:after{
    width:100%;
    transition:800ms ease all;
  }
  .work-ctas .button:active{
    color:#fff;
  }

  /* Weddings button (mobile) */
  .work-ctas .weddings-btn {
    background:#D0253C;
  }
  .work-ctas .weddings-btn:hover{
    color:#D0253C;
  }
  .work-ctas .weddings-btn:before,.work-ctas .weddings-btn:after{
    background: #D0253C;
  }
  .work-ctas .weddings-btn:active{
    background:#D0253C;
  }

  /* Portraits button (mobile) */
  .work-ctas .portraits-btn {
    background:#2f2a50;
  }
  .work-ctas .portraits-btn:hover{
    color:#2f2a50;
  }
  .work-ctas .portraits-btn:before,.work-ctas .portraits-btn:after{
    background: #2f2a50;
  }
  .work-ctas .portraits-btn:active{
    background:#2f2a50;
  }

  /* Projects button (mobile) */
  .work-ctas .projects-btn {
    background:#f4572A;
  }
  .work-ctas .projects-btn:hover{
    color:#f4572A;
  }
  .work-ctas .projects-btn:before,.work-ctas .projects-btn:after{
    background: #f4572A;
  }
  .work-ctas .projects-btn:active{
    background:#f4572A;
  }
}

/* _________________________ Desktop BUTTONS _____________________________________________ */
@media (min-width: 1000px) {
  .work-ctas .button {
    color:#fff;
    border:none;
    position:relative;
    height:60px;
    font-size:1.6em;
    padding:0 2em;
    cursor:pointer;
    transition:800ms ease all;
    outline:none;
  }
  .work-ctas .button:hover {
    background:#fff;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
  }
  .work-ctas .button:before,.work-ctas .button:after{
    content:'';
    position:absolute;
    top:0;
    right:0;
    height:2px;
    width:0;
    transition:400ms ease all;
  }
  .work-ctas .button:after{
    right:inherit;
    top:inherit;
    left:0;
    bottom:0;
  }
  .work-ctas .button:hover:before,.work-ctas .button:hover:after{
    width:100%;
    transition:800ms ease all;
  }
  .work-ctas .button:active{
    color:#fff;
  }

  /* Weddings button (desktop) */
  .work-ctas .weddings-btn {
    background:#D0253C;
  }
  .work-ctas .weddings-btn:hover{
    color:#D0253C;
  }
  .work-ctas .weddings-btn:before,.work-ctas .weddings-btn:after{
    background: #D0253C;
  }
  .work-ctas .weddings-btn:active{
    background:#D0253C;
  }

  /* Portraits button (desktop) */
  .work-ctas .portraits-btn {
    background:#2f2a50;
  }
  .work-ctas .portraits-btn:hover{
    color:#2f2a50;
  }
  .work-ctas .portraits-btn:before,.work-ctas .portraits-btn:after{
    background: #2f2a50;
  }
  .work-ctas .portraits-btn:active{
    background:#2f2a50;
  }

  /* Projects button (desktop) */
  .work-ctas .projects-btn {
    background:#f4572A;
  }
  .work-ctas .projects-btn:hover{
    color:#f4572A;
  }
  .work-ctas .projects-btn:before,.work-ctas .projects-btn:after{
    background: #f4572A;
  }
  .work-ctas .projects-btn:active{
    background:#f4572A;
  }
}

/* Work page buttons — visibility boost (equal glow + thicker lines) */
.work-ctas .button:before,
.work-ctas .button:after { height: 3px; }
.work-ctas .weddings-btn:before,
.work-ctas .weddings-btn:after { box-shadow: 0 0 8px #D0253C; }
.work-ctas .portraits-btn:before,
.work-ctas .portraits-btn:after { background: #6c63a8; box-shadow: 0 0 8px #6c63a8; }
.work-ctas .projects-btn:before,
.work-ctas .projects-btn:after { box-shadow: 0 0 8px #f4572A; }
