/* =========================================
   ADORIFAE CREATIVES — SHARED STYLES v2
   Fonts: VisiaPro (main) + Autography (accent)
   ========================================= */

/* ---- VisiaPro @font-face ---- */
@font-face {
  font-family: 'VisiaPro';
  src: url('../fonts/VisiaPro-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VisiaPro';
  src: url('../fonts/VisiaPro-ExtraLightItalic.ttf') format('truetype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'VisiaPro';
  src: url('../fonts/VisiaPro-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VisiaPro';
  src: url('../fonts/VisiaPro-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'VisiaPro';
  src: url('../fonts/VisiaPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VisiaPro';
  src: url('../fonts/VisiaPro-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'VisiaPro';
  src: url('../fonts/VisiaPro-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VisiaPro';
  src: url('../fonts/VisiaPro-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'VisiaPro';
  src: url('../fonts/VisiaPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VisiaPro';
  src: url('../fonts/VisiaPro-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'VisiaPro';
  src: url('../fonts/VisiaPro-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VisiaPro';
  src: url('../fonts/VisiaPro-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'VisiaPro';
  src: url('../fonts/VisiaPro-Heavy.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VisiaPro';
  src: url('../fonts/VisiaPro-HeavyItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ---- Autography @font-face ---- */
@font-face {
  font-family: 'Autography';
  src: url('../fonts/Autography.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- CSS Variables ---- */
:root {
  --pink:    #DD4685;
  --blue:    #6A44FA;
  --purple:  #B647B2;
  --violet:  #241545;
  --orange:  #EAA832;
  --black:   #000000;
  --bg:      #07030f;
  --bg2:     #0e0720;
  --white:   #ffffff;
  --muted:   rgba(255,255,255,0.6);
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.07);

  /* BRAND FONTS */
  --font-display:  'VisiaPro', sans-serif;
  --font-body:     'VisiaPro', sans-serif;
  --font-accent:   'Autography', cursive;

  --nav-h: 80px;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- Background Canvas ---- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ---- Grain Overlay ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 5%;
  background: rgba(7, 3, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo image */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.85; }

.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
  /* If your logo has a light background, use: filter: brightness(0) invert(1); */
}

/* Fallback text logo (shown if image fails to load) */
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.nav-links a.active { color: var(--pink); }

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem !important;
  background: linear-gradient(135deg, var(--pink), var(--blue)) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  box-shadow: 0 0 20px rgba(221,70,133,0.35);
  transition: opacity 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px) !important;
  background: linear-gradient(135deg, var(--pink), var(--blue)) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 1100;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7,3,15,0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--muted);
  transition: color 0.2s;
  letter-spacing: -0.02em;
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--white); }
.nav-mobile .nav-cta { font-size: 1rem !important; padding: 0.8rem 2.5rem !important; margin-top: 1rem; }

/* ---- FOOTER ---- */
footer {
  position: relative;
  z-index: 10;
  padding: 5rem 5% 3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(to bottom, transparent, rgba(7,3,15,0.9));
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.footer-logo img {
  height: 38px;
  width: auto;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 280px;
  font-weight: 300;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}

.footer-email {
  font-size: 0.9rem;
  color: var(--pink) !important;
  transition: opacity 0.2s;
}
.footer-email:hover { opacity: 0.8; }

/* ---- SHARED COMPONENTS ---- */

/* Pill tag */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  background: rgba(221,70,133,0.12);
  border: 1px solid rgba(221,70,133,0.25);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Gradient text */
.grad-text {
  background: linear-gradient(135deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-text-2 {
  background: linear-gradient(135deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Autography accent — use for decorative/script touches */
.accent-script {
  font-family: var(--font-accent);
  font-size: 1.4em;
  font-weight: 400;
}

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--blue));
  color: var(--white);
  box-shadow: 0 4px 24px rgba(221,70,133,0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(221,70,133,0.55);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

/* Arrow icon */
.arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.btn:hover .arrow-icon { transform: translate(3px, -2px); }

/* Page wrapper */
.page-wrap {
  position: relative;
  z-index: 10;
  padding-top: var(--nav-h);
}

/* Section spacing */
.section {
  padding: 7rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}
.section-full { padding: 7rem 5%; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Cursor glow */
.cursor-glow {
  position: fixed;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221,70,133,0.08), transparent 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.05);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .section { padding: 5rem 6%; }
  .section-full { padding: 5rem 6%; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  :root { --nav-h: 70px; }
}

/* =========================================
   SHARED — PAGE HERO FAIRY COMPONENT
   Used on Services, Work, and Contact pages
   ========================================= */

/* Converts any .xxx-hero into a 2-col layout with fairy on right */
.page-hero-2col {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
}

.page-hero-2col-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.page-hero-text { display: flex; flex-direction: column; }

/* ---- Single Fairy Visual ---- */
.hero-fairy-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-fairy-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 480px;
  margin: 0 auto;
}

/* Ambient glow behind the fairy */
.hero-fairy-stage::before {
  content: '';
  position: absolute;
  width: 75%;
  height: 75%;
  top: 12%;
  left: 12%;
  border-radius: 50%;
  filter: blur(50px);
  animation: fairyGlowPulse 5s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

/* Each page tints the glow differently via modifier classes */
.hero-fairy-stage.glow-blue::before  { background: radial-gradient(circle, rgba(106,68,250,0.28), rgba(182,71,178,0.18) 60%, transparent 80%); }
.hero-fairy-stage.glow-orange::before { background: radial-gradient(circle, rgba(234,168,50,0.28), rgba(221,70,133,0.15) 60%, transparent 80%); }
.hero-fairy-stage.glow-pink::before  { background: radial-gradient(circle, rgba(221,70,133,0.28), rgba(106,68,250,0.15) 60%, transparent 80%); }

@keyframes fairyGlowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.1); }
}

/* The single fairy image */
.hero-fairy-solo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  max-width: 300px;
  z-index: 2;
  mix-blend-mode: screen;
  animation: fairySoloFloat 6.5s ease-in-out infinite;
  filter: drop-shadow(0 0 28px rgba(221,70,133,0.4));
}

/* Variant shadow colours per page */
.hero-fairy-stage.glow-blue   .hero-fairy-solo { filter: drop-shadow(0 0 28px rgba(106,68,250,0.45)); }
.hero-fairy-stage.glow-orange .hero-fairy-solo { filter: drop-shadow(0 0 28px rgba(234,168,50,0.45)); }
.hero-fairy-stage.glow-pink   .hero-fairy-solo { filter: drop-shadow(0 0 28px rgba(221,70,133,0.45)); }

@keyframes fairySoloFloat {
  0%   { transform: translateX(-50%) translateY(0px)   rotate(-1deg); }
  25%  { transform: translateX(-50%) translateY(-18px) rotate(1.5deg); }
  50%  { transform: translateX(-50%) translateY(-10px) rotate(-0.5deg); }
  75%  { transform: translateX(-50%) translateY(-22px) rotate(2deg); }
  100% { transform: translateX(-50%) translateY(0px)   rotate(-1deg); }
}

/* Small decorative sparkle dots */
.fairy-sparkle {
  position: absolute;
  border-radius: 50%;
  animation: sparklePop 3s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}
.fairy-sparkle.s1 { width: 8px;  height: 8px;  top: 12%; right: 16%; background: var(--pink);   animation-delay: 0s;    opacity: 0.7; }
.fairy-sparkle.s2 { width: 5px;  height: 5px;  top: 28%; left: 12%;  background: var(--blue);   animation-delay: 1s;    opacity: 0.6; }
.fairy-sparkle.s3 { width: 6px;  height: 6px;  top: 55%; right: 8%;  background: var(--orange); animation-delay: 1.8s;  opacity: 0.5; }
.fairy-sparkle.s4 { width: 4px;  height: 4px;  top: 70%; left: 20%;  background: var(--purple); animation-delay: 0.6s;  opacity: 0.6; }

@keyframes sparklePop {
  0%, 100% { transform: scale(1);    opacity: 0.7; }
  50%       { transform: scale(1.8); opacity: 0.2; }
}

/* 4-pointed star sparkle (CSS only, no image needed) */
.fairy-star {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  animation: starSpin 4s linear infinite;
}
.fairy-star::before,
.fairy-star::after {
  content: '';
  position: absolute;
  background: var(--purple);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.fairy-star::before { width: 12px; height: 3px; }
.fairy-star::after  { width: 3px;  height: 12px; }
.fairy-star.st1 { width: 12px; height: 12px; top: 8%;  right: 28%; animation-delay: 0s;   opacity: 0.6; }
.fairy-star.st2 { width: 10px; height: 10px; top: 38%; left: 6%;   animation-delay: 1.5s; opacity: 0.5; }

@keyframes starSpin {
  0%   { transform: rotate(0deg)   scale(1); }
  50%  { transform: rotate(180deg) scale(1.3); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ---- RESPONSIVE — Page Hero 2-col ---- */
@media (max-width: 1024px) {
  .page-hero-2col { min-height: 70vh; }
  .page-hero-2col-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .page-hero-text { align-items: center; }
  .page-hero-text .pill { align-self: center; }
  .page-hero-text h1,
  .page-hero-text p  { max-width: 100%; }
  .hero-fairy-wrap { order: -1; }
  .hero-fairy-stage { max-width: 300px; height: 340px; }
  .hero-fairy-solo  { width: 68%; }
}

@media (max-width: 768px) {
  .page-hero-2col { padding: 5rem 6% 4rem; min-height: unset; }
  .hero-fairy-stage { max-width: 240px; height: 280px; }
  .hero-fairy-solo  { width: 72%; }
  .fairy-star, .fairy-sparkle { display: none; }
}

@media (max-width: 480px) {
  .hero-fairy-stage { max-width: 200px; height: 230px; }
  .page-hero-2col-inner { gap: 1.5rem; }
}