/* Punkeye Pictures - Dynamic, colourful production company site */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --color-bg: #f8f6f4;
  --color-surface: #f0ede8;
  --color-surface-alt: #e8e4de;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-accent-coral: #c45c3e;
  --color-accent-gold: #b8860b;
  --color-accent-teal: #2d7a7a;
  --color-accent-magenta: #9a4d6e;
  --color-accent-blue: #4a7c9e;
  --color-logo-bg: #f5f2eb;
  --color-logo-text: #1a1a1a;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Skip link - visible on focus for keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0.5rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent-teal);
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-accent-coral);
  outline-offset: 2px;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated gradient background - warm, subtle */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(196, 92, 62, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(45, 122, 122, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(184, 134, 11, 0.06) 0%, transparent 60%),
    var(--color-bg);
}

.bg-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--color-bg) 100%);
  opacity: 0.5;
  pointer-events: none;
}

/* Navigation - light header bar for logo integration */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-logo-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.4s var(--ease-out-expo);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s, opacity 0.3s;
}

.logo:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.logo:focus-visible {
  outline: 3px solid var(--color-accent-coral);
  outline-offset: 3px;
}

/* Logo image - natural display (black on cream) */
.logo-img {
  display: block;
  height: 4.5rem;
  width: auto;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.3s;
}

.logo:hover .logo-img {
  opacity: 0.85;
}

/* Footer logo - same natural display on light theme */
.logo-img--footer {
  height: 3.5rem;
  margin: 0 auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--color-logo-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s;
  opacity: 0.85;
}

nav a:hover,
nav a.active {
  color: var(--color-logo-text);
  opacity: 1;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-coral);
  transition: width 0.3s var(--ease-out-expo);
}

nav a:hover::after,
nav a.active::after,
nav a:focus-visible::after {
  width: 100%;
}

nav a:focus-visible {
  color: var(--color-logo-text);
  opacity: 1;
  outline: 2px solid var(--color-accent-teal);
  outline-offset: 4px;
}

.nav-cta {
  background: linear-gradient(135deg, var(--color-accent-coral), var(--color-accent-magenta));
  color: white !important;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  opacity: 1;
}

.nav-cta:hover {
  box-shadow: 0 4px 12px rgba(196, 92, 62, 0.4);
}

.nav-cta::after {
  display: none;
}

/* Main content wrapper */
main {
  padding-top: 6rem;
  min-height: 100vh;
}

/* Page hero / section */
.page-hero {
  padding: 6rem 2rem 4rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) forwards;
}

.page-hero .subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.15s forwards;
}

/* Hero with background image - family by reflecting pond, autumn garden */
.page-hero--with-bg {
  position: relative;
  isolation: isolate;
}

.page-hero--with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('/assets/photos/section-garden-family-autumn.png');
  background-size: cover;
  /* Subjects (and phone) sit on the left of the frame; anchor left-ish so cover doesn’t crop them */
  background-position: 18% center;
  background-repeat: no-repeat;
}

.page-hero--with-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(248, 246, 244, 0.4) 0%, rgba(248, 246, 244, 0.85) 100%);
}

/* Section images - full width within section, rounded corners */
.section-image {
  margin: 2.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
}

.section-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Reusable sections — vertical rhythm ~64px between section blocks (2rem + 2rem) */
.section {
  padding: 2rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.section p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* Colour accents for headings */
.text-coral { color: var(--color-accent-coral); }
.text-gold { color: var(--color-accent-gold); }
.text-teal { color: var(--color-accent-teal); }
.text-magenta { color: var(--color-accent-magenta); }

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* 2026 badge */
.badge-2026 {
  display: inline-block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-coral) 100%);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(184, 134, 11, 0.25); }
  50% { box-shadow: 0 0 40px rgba(196, 92, 62, 0.35); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}

.card {
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 92, 62, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* CTA button - 44px min touch target */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  min-height: 44px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent-coral);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-coral), var(--color-accent-magenta));
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(196, 92, 62, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent-teal);
  border: 2px solid var(--color-accent-teal);
}

.btn-outline:hover {
  background: rgba(45, 122, 122, 0.12);
}

/* Booking — Google Calendar / Meet schedule embed (matches card / accent palette) */
.page-hero--booking {
  max-width: 960px;
}

.page-hero--booking h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
}

.page-hero--booking .booking-eyebrow {
  color: var(--color-accent-magenta);
  font-weight: 800;
}

.page-hero--booking .booking-headline-num {
  color: var(--color-accent-teal);
  font-weight: 800;
}

.page-hero--booking .booking-headline-name {
  color: var(--color-accent-coral);
}

.booking-schedule-section {
  max-width: 1000px;
  margin: 0 auto;
}

/* Google’s scheduler needs a real width; narrow iframes show only the header card */
.booking-schedule-panel {
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

/* Don’t translate this panel: transforms on ancestors break some iframe/embed layouts */
.booking-schedule-panel.reveal {
  opacity: 0;
  transform: none;
  transition: opacity 0.55s var(--ease-out-expo);
}

.booking-schedule-panel.reveal.visible {
  opacity: 1;
  transform: none;
}

.booking-schedule-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-accent-coral),
    var(--color-accent-magenta),
    var(--color-accent-teal),
    var(--color-accent-gold)
  );
}

.booking-schedule-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 620px;
}

.booking-schedule-iframe {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 720px;
  min-height: 620px;
  border: 0;
  display: block;
}

.booking-fallback {
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
  color: var(--color-text-muted);
  text-align: center;
}

.booking-fallback a {
  color: var(--color-accent-teal);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(45, 122, 122, 0.4);
  text-underline-offset: 3px;
}

.booking-fallback a:hover {
  color: var(--color-accent-coral);
  text-decoration-color: rgba(196, 92, 62, 0.45);
}

.booking-footer-note {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: center;
}

.booking-footer-note a {
  color: var(--color-accent-teal);
  font-weight: 600;
}

.booking-footer-note a:hover {
  color: var(--color-accent-coral);
}

@media (max-width: 480px) {
  .booking-schedule-iframe {
    height: 680px;
    min-height: 600px;
  }

  .booking-schedule-wrap {
    min-height: 640px;
  }

  .booking-schedule-panel {
    padding: 1rem 1rem 1.25rem;
  }
}

/* Footer */
.site-footer {
  padding: 3rem 2rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.site-footer p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.accessibility-statement {
  font-size: 0.8rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.85;
}

/* Gallery - blurred participant work placeholders */
.gallery-blur {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-blur__item {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  filter: blur(12px);
  -webkit-filter: blur(12px);
}

.gallery-blur__item--1 { background: linear-gradient(135deg, #c45c3e 0%, #9a4d6e 100%); }
.gallery-blur__item--2 { background: linear-gradient(135deg, #2d7a7a 0%, #4a7c9e 100%); }
.gallery-blur__item--3 { background: linear-gradient(135deg, #b8860b 0%, #c45c3e 100%); }
.gallery-blur__item--4 { background: linear-gradient(135deg, #9a4d6e 0%, #2d7a7a 100%); }
.gallery-blur__item--5 { background: linear-gradient(135deg, #4a7c9e 0%, #b8860b 100%); }
.gallery-blur__item--6 { background: linear-gradient(135deg, #2d7a7a 0%, #9a4d6e 100%); }

.gallery-blur--compact {
  grid-template-columns: repeat(3, 1fr);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.founder-bio {
  font-size: 1rem;
  color: var(--color-accent-teal);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.site-footer .logo {
  display: inline-block;
  margin-bottom: 1rem;
}

/* Mobile menu - 44px min touch target */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-logo-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

.menu-toggle:focus-visible {
  outline: 3px solid var(--color-accent-coral);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  nav ul.open { display: flex; }
  nav ul.open a {
    color: var(--color-logo-text);
    opacity: 1;
  }
  .page-hero { padding: 4rem 1.5rem 2.5rem; }
  .section { padding: 2rem 1.5rem; }
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Program list - what we do */
.program-list {
  list-style: none;
  margin-top: 1rem;
}

.program-list li {
  color: var(--color-text-muted);
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.program-list li:last-child {
  border-bottom: none;
}

.program-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent-coral);
  font-weight: 700;
}

.program-list strong {
  color: var(--color-text);
}

/* Workhorse list - scannable bullets */
.workhorse-list {
  list-style: none;
  margin-top: 1.5rem;
}

.workhorse-list li {
  color: var(--color-text-muted);
  padding: 1rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.workhorse-list li:last-child {
  border-bottom: none;
}

.workhorse-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent-teal);
  font-weight: 700;
}

.workhorse-list strong {
  color: var(--color-text);
}

/* CTA list - contact page */
.cta-list {
  list-style: none;
  margin-top: 1rem;
}

.cta-list li {
  color: var(--color-text-muted);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.cta-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent-teal);
  font-weight: 600;
}

/* Inline links */
a[href^="mailto:"] {
  color: var(--color-accent-teal);
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}

a[href^="mailto:"]:hover {
  color: var(--color-accent-gold);
  text-decoration: underline;
}

a[href^="mailto:"]:focus-visible {
  outline: 2px solid var(--color-accent-teal);
  outline-offset: 2px;
}

/* Reduced motion - disable or simplify animations */
@media (prefers-reduced-motion: reduce) {
  .page-hero h1,
  .page-hero .subtitle {
    animation: none;
    opacity: 1;
  }

  .badge-2026 {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  .logo:hover {
    transform: none;
  }
}
