/*
Theme Name: Ivan Carrera Studio
Theme URI: https://icarrerastudio.co.uk
Author: Ivan Carrera Studio
Description: A minimal, premium WordPress theme for Ivan Carrera Studio memory films.
Version: 1.0
License: GPL-2.0-or-later
Text Domain: ivan-carrera-studio
*/

:root {
  --bg: #fbfaf7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e8e3da;
  --accent: #b89b72;
  --accent-dark: #806442;
  --soft: #f2eee7;
  --shadow: 0 20px 60px rgba(29, 29, 31, 0.08);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(251, 250, 247, 0.78);
  border-bottom: 1px solid rgba(232, 227, 218, 0.7);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.logo { font-weight: 650; letter-spacing: -0.03em; font-size: 1.05rem; }
.logo span { color: var(--accent-dark); }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: 0.95rem; color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.55); color: var(--text)!important; }
.menu-btn { display: none; border: 0; background: transparent; font-size: 1.7rem; }

.hero { padding: 90px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--accent-dark); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; }
h1, h2, h3 { letter-spacing: -0.055em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(3rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2.2rem, 4.7vw, 4.6rem); }
h3 { font-size: 1.45rem; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--muted); max-width: 680px; margin: 24px 0 0; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; transition: .2s ease; }
.btn.primary { background: var(--text); color: white; border-color: var(--text); }
.btn.secondary { background: white; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(29,29,31,.10); }

.hero-card {
  border-radius: 38px;
  min-height: 570px;
  background: linear-gradient(145deg, #efe7da, #fff 52%, #ded2c3);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  padding: 28px;
}
.photo-stack { position: absolute; inset: 30px; }
.photo {
  position: absolute;
  background: white;
  border-radius: 20px;
  box-shadow: 0 24px 50px rgba(70, 53, 35, .16);
  border: 1px solid rgba(255,255,255,.9);
}
.photo.one { width: 58%; height: 46%; top: 20px; left: 8px; transform: rotate(-7deg); background: linear-gradient(145deg, #d3c5b2, #f9f4ec); }
.photo.two { width: 58%; height: 47%; right: 2px; top: 110px; transform: rotate(6deg); background: linear-gradient(145deg, #cfcfcf, #ffffff); }
.photo.three { width: 64%; height: 38%; bottom: 36px; left: 70px; transform: rotate(-1deg); background: linear-gradient(145deg, #f8efe2, #cab99f); }
.hero-caption { position: absolute; left: 28px; right: 28px; bottom: 28px; background: rgba(255,255,255,.72); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.75); border-radius: 24px; padding: 20px; }
.hero-caption p { margin: 6px 0 0; color: var(--muted); }

.section { padding: 86px 0; }
.section.soft { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 34px; }
.section-head p { color: var(--muted); max-width: 540px; margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 10px 30px rgba(29,29,31,.035); }
.card p { color: var(--muted); margin-bottom: 0; }
.icon { width: 44px; height: 44px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; color: var(--accent-dark); font-weight: 800; margin-bottom: 18px; }
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; background: white; padding: 22px; border-radius: 24px; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); width: 48px; height: 48px; border-radius: 50%; background: var(--text); color: white; display: grid; place-items: center; font-weight: 700; }
.step p { color: var(--muted); margin: 6px 0 0; }

.price { font-size: 2.5rem; letter-spacing: -0.06em; margin: 12px 0; }
.package { display: flex; flex-direction: column; }
.package.featured { border-color: rgba(184,155,114,.5); box-shadow: var(--shadow); }
.package ul { padding-left: 18px; color: var(--muted); }
.package .btn { margin-top: auto; }
.badge { display: inline-flex; width: fit-content; padding: 7px 12px; border-radius: 999px; background: #f6efe4; color: var(--accent-dark); font-size: .82rem; font-weight: 700; }

.quote { font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -0.055em; line-height: 1.08; max-width: 960px; margin: 0 auto; text-align: center; }
.center { text-align: center; }
.muted { color: var(--muted); }
.page-hero { padding: 74px 0 46px; text-align: center; }
.page-hero .lead { margin-left: auto; margin-right: auto; }

.portfolio-item { min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(145deg, #efe7da, #fff); }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; background: white; color: var(--text); font: inherit; }
textarea { min-height: 150px; resize: vertical; }
label { font-size: .9rem; color: var(--muted); }
.faq details { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { color: var(--muted); }

.footer { padding: 44px 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 850px) {
  .menu-btn { display: block; }
  .nav-links { position: fixed; inset: 74px 0 auto 0; background: rgba(251,250,247,.98); border-bottom: 1px solid var(--line); padding: 22px; flex-direction: column; align-items: flex-start; display: none; }
  .nav-links.open { display: flex; }
  .hero-grid, .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .hero { padding-top: 50px; }
  .hero-card { min-height: 450px; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
}

/* Cinematic hero motion cards */
.cinematic-card {
  background:
    radial-gradient(circle at 20% 14%, rgba(255,255,255,.95), transparent 28%),
    radial-gradient(circle at 84% 30%, rgba(184,155,114,.20), transparent 34%),
    linear-gradient(145deg, #f3eee6, #fff 56%, #e7dece);
}
.motion-stack { position: absolute; inset: 30px; }
.motion-frame {
  position: absolute;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 28px 70px rgba(70, 53, 35, .16);
  border: 1px solid rgba(255,255,255,.82);
  isolation: isolate;
}
.motion-frame video,
.motion-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.motion-frame video {
  z-index: 2;
  filter: grayscale(100%) saturate(.75) contrast(.98);
  opacity: .78;
  transform: scale(1.04);
  animation: colourReveal 9s ease-in-out infinite alternate;
}
.motion-fallback {
  z-index: 1;
  display: block;
  filter: grayscale(100%);
  opacity: .9;
  transform: scale(1.04);
  animation: gradientMotion 11s ease-in-out infinite alternate, colourRevealFallback 9s ease-in-out infinite alternate;
}
.motion-fallback.wedding {
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.95), transparent 20%),
    radial-gradient(circle at 72% 42%, rgba(214,192,159,.55), transparent 26%),
    linear-gradient(135deg, #d5c7b1, #ffffff 54%, #bca88c);
}
.motion-fallback.celebration {
  background:
    radial-gradient(circle at 22% 70%, rgba(255,255,255,.9), transparent 22%),
    radial-gradient(circle at 76% 24%, rgba(236,221,195,.65), transparent 25%),
    linear-gradient(135deg, #d6d6d6, #fff 52%, #d2bd9c);
}
.motion-fallback.memories {
  background:
    radial-gradient(circle at 50% 22%, rgba(255,255,255,.95), transparent 20%),
    radial-gradient(circle at 20% 70%, rgba(192,171,139,.48), transparent 28%),
    linear-gradient(135deg, #f6efe4, #ffffff 52%, #c9b391);
}
.motion-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.12)),
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.34), transparent 32%);
  backdrop-filter: blur(.4px);
  pointer-events: none;
}
.frame-one { width: 60%; height: 45%; top: 18px; left: 4px; transform: rotate(-6deg); }
.frame-two { width: 60%; height: 48%; right: 0; top: 110px; transform: rotate(5deg); }
.frame-three { width: 66%; height: 38%; bottom: 42px; left: 62px; transform: rotate(-1deg); }
@keyframes colourReveal {
  0% { filter: grayscale(100%) saturate(.7) contrast(.98); transform: scale(1.04); }
  55% { filter: grayscale(70%) saturate(.85) contrast(1); }
  100% { filter: grayscale(0%) saturate(1.06) contrast(1.02); transform: scale(1.10); }
}
@keyframes colourRevealFallback {
  0% { filter: grayscale(100%) saturate(.6); }
  100% { filter: grayscale(0%) saturate(1.02); }
}
@keyframes gradientMotion {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-frame video,
  .motion-fallback { animation: none; filter: grayscale(18%); }
}
