/* =========================================================================
   Valley Films — Colors & Type
   Boutique West London film production company.
   Primary brand blue: #095EDF
   ========================================================================= */

/* ---------- Fonts ----------
   Valley Films is set in Acumin Pro — a versatile, neo-grotesque sans by
   Robert Slimbach (Adobe). We ship four cuts: Regular, Italic, Bold, and
   Bold Italic. JetBrains Mono is loaded from Google Fonts for any code or
   metadata in admin contexts.
*/
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");

@font-face {
  font-family: "Acumin Pro";
  src: url("fonts/Acumin-RPro.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Acumin Pro";
  src: url("fonts/Acumin-ItPro.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Acumin Pro";
  src: url("fonts/Acumin-BdPro.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Acumin Pro";
  src: url("fonts/Acumin-BdItPro.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* =====================================================================
     COLOR — Brand
     ===================================================================== */
  --vf-blue:           #095EDF;   /* PRIMARY — the Valley blue */
  --vf-blue-600:       #0850BF;   /* hover / pressed on light bg */
  --vf-blue-700:       #063F96;   /* darker variant */
  --vf-blue-800:       #052E6E;   /* deep blue, for gradient blobs */
  --vf-blue-900:       #03204C;   /* near-midnight, gradient stops */
  --vf-blue-500:       #2A78EA;   /* hover lift on dark bg */
  --vf-blue-400:       #5A98F0;   /* tints on dark surfaces */
  --vf-blue-300:       #8FB7F5;
  --vf-blue-200:       #BFD3F8;
  --vf-blue-100:       #E1ECFB;   /* tinted card on light theme */
  --vf-blue-50:        #F1F6FE;   /* tinted background */

  /* Gradient stops — for the "dark blue blob" motif */
  --vf-blob-a:         #052E6E;
  --vf-blob-b:         #095EDF;
  --vf-blob-c:         #03204C;

  /* =====================================================================
     COLOR — Neutrals (warm-cool: very slightly cool, never gray-purple)
     ===================================================================== */
  --vf-ink:            #0A0F1A;   /* near-black, for body text on light */
  --vf-ink-2:          #1A2030;   /* secondary text on light */
  --vf-ink-3:          #4B5468;   /* tertiary / metadata */
  --vf-ink-4:          #8892A6;   /* muted */
  --vf-line:           #E6E8EE;   /* hairlines on light */
  --vf-line-strong:    #CFD3DC;
  --vf-surface:        #FFFFFF;   /* card on light */
  --vf-bg:             #F7F8FA;   /* page bg on light theme */
  --vf-bg-tint:        #EFF1F5;   /* alternate bg band */

  /* Dark theme neutrals */
  --vf-night:          #07080C;   /* deepest — page bg dark */
  --vf-night-2:        #0E1118;   /* card bg dark */
  --vf-night-3:        #161A24;   /* elevated card */
  --vf-night-4:        #1F2533;   /* hover surface */
  --vf-line-dark:      #232A3A;
  --vf-line-dark-2:    #2D3548;

  /* On-dark text */
  --vf-snow:           #FFFFFF;
  --vf-snow-2:         #E5E8EE;
  --vf-snow-3:         #A8B0C0;
  --vf-snow-4:         #6E7689;

  /* =====================================================================
     SEMANTIC — Light theme (admin / text / forms)
     ===================================================================== */
  --bg:                var(--vf-bg);
  --bg-elev:           var(--vf-surface);
  --bg-tint:           var(--vf-bg-tint);
  --fg1:               var(--vf-ink);
  --fg2:               var(--vf-ink-2);
  --fg3:               var(--vf-ink-3);
  --fg4:               var(--vf-ink-4);
  --line:              var(--vf-line);
  --line-strong:       var(--vf-line-strong);
  --accent:            var(--vf-blue);
  --accent-hover:      var(--vf-blue-600);
  --accent-press:      var(--vf-blue-700);
  --accent-soft:       var(--vf-blue-100);
  --accent-soft-2:     var(--vf-blue-50);

  /* =====================================================================
     STATUS
     ===================================================================== */
  --success:           #1F9D55;
  --success-soft:      #E4F4EC;
  --warning:           #C97A0A;
  --warning-soft:      #FBEFD8;
  --danger:            #D7263D;
  --danger-soft:       #FBE3E6;

  /* =====================================================================
     RADII — generous rounding is core to the brand
     ===================================================================== */
  --r-xs:    6px;
  --r-sm:    10px;
  --r-md:    16px;
  --r-lg:    22px;
  --r-xl:    32px;
  --r-2xl:   44px;
  --r-pill:  999px;

  /* =====================================================================
     SHADOWS — soft, layered. Used sparingly for "floating boxes"
     ===================================================================== */
  --shadow-xs:  0 1px 2px rgba(10, 15, 26, 0.04);
  --shadow-sm:  0 2px 6px rgba(10, 15, 26, 0.06), 0 1px 2px rgba(10, 15, 26, 0.04);
  --shadow-md:  0 8px 24px rgba(10, 15, 26, 0.08), 0 2px 6px rgba(10, 15, 26, 0.04);
  --shadow-lg:  0 22px 48px rgba(10, 15, 26, 0.12), 0 6px 14px rgba(10, 15, 26, 0.06);
  --shadow-xl:  0 36px 80px rgba(5, 30, 80, 0.18), 0 10px 24px rgba(10, 15, 26, 0.08);
  /* Brand shadow — blue-tinted glow used on hover for primary CTAs */
  --shadow-brand: 0 16px 36px rgba(9, 94, 223, 0.32), 0 4px 12px rgba(9, 94, 223, 0.20);

  /* On dark surfaces, shadows are nearly invisible — use ring instead */
  --ring-dark:   inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  --ring-dark-2: inset 0 0 0 1px rgba(255, 255, 255, 0.10);

  /* =====================================================================
     SPACING — 4px base
     ===================================================================== */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-8:  32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* =====================================================================
     MOTION
     ===================================================================== */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    140ms;
  --dur-base:    220ms;
  --dur-slow:    420ms;
  --dur-page:    680ms;

  /* =====================================================================
     TYPE — base
     ===================================================================== */
  --font-sans:    "Acumin Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Acumin Pro", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;
  --fw-black:   700;  /* Acumin Pro ships with R + Bd in this set; black collapses to bold */

  /* Type scale — tightened headline tracking, comfortable body */
  --fs-display:  clamp(56px, 8vw, 128px);
  --fs-h1:       clamp(40px, 5vw, 72px);
  --fs-h2:       clamp(30px, 3.4vw, 48px);
  --fs-h3:       28px;
  --fs-h4:       22px;
  --fs-h5:       18px;
  --fs-body-lg:  18px;
  --fs-body:     16px;
  --fs-body-sm:  14px;
  --fs-caption:  12px;
  --fs-overline: 11px;

  --lh-tight:   1.02;
  --lh-snug:    1.15;
  --lh-base:    1.5;
  --lh-loose:   1.65;

  --tr-tight:   -0.03em;
  --tr-snug:    -0.015em;
  --tr-normal:  0;
  --tr-wide:    0.02em;
  --tr-overline: 0.14em;
}

/* =========================================================================
   Dark theme — applied via [data-theme="dark"] or .vf-dark
   Used for Work / Video / Reel surfaces.
   ========================================================================= */
[data-theme="dark"], .vf-dark {
  --bg:           var(--vf-night);
  --bg-elev:      var(--vf-night-2);
  --bg-tint:      var(--vf-night-3);
  --fg1:          var(--vf-snow);
  --fg2:          var(--vf-snow-2);
  --fg3:          var(--vf-snow-3);
  --fg4:          var(--vf-snow-4);
  --line:         var(--vf-line-dark);
  --line-strong:  var(--vf-line-dark-2);
  --accent:       var(--vf-blue-500);
  --accent-hover: var(--vf-blue-400);
  --accent-press: var(--vf-blue);
  --accent-soft:  rgba(9, 94, 223, 0.18);
  --accent-soft-2: rgba(9, 94, 223, 0.10);
  --shadow-xs: none;
  --shadow-sm: 0 1px 0 rgba(255,255,255,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.6);
  --shadow-xl: 0 36px 80px rgba(0,0,0,0.7);
}

/* =========================================================================
   Semantic element styles — opt in by wrapping content in `.vf-prose`
   or applying classes directly. Plain element styling lives in apps.
   ========================================================================= */
.vf-prose {
  color: var(--fg1);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
}

.vf-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  font-weight: var(--fw-bold);
  color: var(--fg1);
  text-wrap: balance;
}

.vf-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  font-weight: var(--fw-bold);
  color: var(--fg1);
  text-wrap: balance;
}

.vf-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-snug);
  font-weight: var(--fw-bold);
  color: var(--fg1);
  text-wrap: balance;
}

.vf-h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-snug);
  font-weight: var(--fw-semi);
  color: var(--fg1);
}

.vf-h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  font-weight: var(--fw-semi);
  color: var(--fg1);
}

.vf-h5 {
  font-family: var(--font-sans);
  font-size: var(--fs-h5);
  line-height: var(--lh-snug);
  font-weight: var(--fw-semi);
  color: var(--fg1);
}

.vf-body-lg {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-base);
  color: var(--fg2);
}

.vf-body {
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--fg2);
}

.vf-body-sm {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-base);
  color: var(--fg3);
}

.vf-caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-base);
  color: var(--fg3);
}

.vf-overline {
  font-size: var(--fs-overline);
  letter-spacing: var(--tr-overline);
  text-transform: uppercase;
  font-weight: var(--fw-semi);
  color: var(--fg3);
}

.vf-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
}

/* =========================================================================
   Reusable visual primitives
   ========================================================================= */

/* Dark blue gradient blob — drop into a position:relative parent */
.vf-blob {
  position: absolute;
  width: 60vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  pointer-events: none;
  background: radial-gradient(
    circle at 30% 30%,
    var(--vf-blue) 0%,
    var(--vf-blue-800) 40%,
    var(--vf-blue-900) 70%,
    transparent 100%
  );
}

/* Wave divider — used between page sections */
.vf-wave {
  display: block;
  width: 100%;
  height: 64px;
  background: var(--bg-elev);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'><path d='M0 32 C 240 0, 480 64, 720 32 S 1200 0, 1440 32 L 1440 64 L 0 64 Z' fill='black'/></svg>") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'><path d='M0 32 C 240 0, 480 64, 720 32 S 1200 0, 1440 32 L 1440 64 L 0 64 Z' fill='black'/></svg>") center / 100% 100% no-repeat;
}

/* Floating card — the signature "floating box" */
.vf-card {
  background: var(--bg-elev);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--s-6);
  border: 1px solid var(--line);
}

.vf-card-floating {
  background: var(--bg-elev);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--s-8);
  border: 1px solid var(--line);
}

/* Hover lift used across the system */
.vf-lift {
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.vf-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.vf-lift:active {
  transform: translateY(-1px);
  transition-duration: var(--dur-fast);
}

/* Selection */
::selection {
  background: var(--vf-blue);
  color: #fff;
}

/* Focus ring */
.vf-focus,
:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--vf-blue);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
