/* ============================================================
   CineFare — Global Stylesheet
   Theme: Cinematic Luxury Dark
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:wght@300;400;500;600&family=Bebas+Neue&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --clr-bg:         #080808;
  --clr-surface:    #0e0e0e;
  --clr-surface2:   #141414;
  --clr-border:     #1e1e1e;
  --clr-red:        #ff3300;
  --clr-red-dim:    #cc2900;
  --clr-gold:       #c8a96e;
  --clr-gold-light: #e8c98a;
  --clr-white:      #f5f0e8;
  --clr-muted:      #7a7060;
  --clr-text:       #d0c8b8;

  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'DM Sans', sans-serif;
  --font-impact:    'Bebas Neue', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-red:   0 0 40px rgba(255,51,0,0.3), 0 0 80px rgba(255,51,0,0.12);
  --glow-gold:  0 0 40px rgba(200,169,110,0.25);

  --max-w: 1200px;
  --header-h: 80px;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-red); border-radius: 2px; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--clr-white);
  line-height: 1.15;
  font-weight: 400;
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 9rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.92;
  color: var(--clr-white);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-red);
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 300;
  color: var(--clr-white);
  line-height: 1.1;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--clr-muted);
  font-weight: 300;
  max-width: 580px;
  line-height: 1.75;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}

.section { padding: clamp(4rem, 8vw, 9rem) 0; }

/* ── Decorative Lines ───────────────────────────────────── */
.rule {
  width: 48px; height: 1px;
  background: var(--clr-red);
  display: inline-block;
}

.rule-gold {
  width: 48px; height: 1px;
  background: var(--clr-gold);
  display: inline-block;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--clr-red);
  color: #fff;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: var(--transition);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover { box-shadow: var(--glow-red); transform: translateY(-2px); }

.btn-outline {
  border: 1px solid rgba(200,169,110,0.4);
  color: var(--clr-gold);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--clr-gold);
  background: rgba(200,169,110,0.06);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--clr-white);
  border: 1px solid rgba(245,240,232,0.15);
  background: transparent;
}
.btn-ghost:hover {
  border-color: rgba(245,240,232,0.4);
  background: rgba(245,240,232,0.04);
  transform: translateY(-2px);
}

/* ── HEADER ─────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

#site-header.scrolled {
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--clr-border);
}

#site-header .header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-logo img {
  height: 28px;
  width: auto;
  /* Logo is dark SVG — apply filter to show on dark bg */
  /* filter: brightness(0) invert(1); */
  transition: opacity var(--transition);
}
.header-logo:hover img { opacity: 0.75; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.header-nav a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--clr-white);
  background: rgba(255,255,255,0.04);
}
.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 1px;
  background: var(--clr-red);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--clr-white);
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  padding: 2rem;
}
.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--clr-white);
  letter-spacing: 0.02em;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.mobile-nav a:hover { color: var(--clr-red); border-bottom-color: var(--clr-red); }
.mobile-nav .mobile-cta { margin-top: 1.5rem; }

/* ── FOOTER ─────────────────────────────────────────────── */
#site-footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.2rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--clr-muted);
  line-height: 1.8;
  max-width: 300px;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-muted);
  transition: var(--transition);
}
.footer-social a:hover {
  border-color: var(--clr-red);
  color: var(--clr-red);
  background: rgba(255,51,0,0.06);
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-white);
  font-weight: 500;
  margin-bottom: 1.4rem;
}

.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--clr-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--clr-gold); }

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--clr-muted);
}

.footer-bottom a { color: var(--clr-gold); }

/* ── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  padding-top: calc(var(--header-h) + 3rem);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 60% 40%, rgba(255,51,0,0.07) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, var(--clr-bg) 100%);
  pointer-events: none;
}

.page-hero-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-red);
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.page-hero-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--clr-red);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--clr-white);
  margin-bottom: 1.5rem;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--clr-muted);
  max-width: 560px;
  line-height: 1.8;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: rgba(255,51,0,0.3);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(255,51,0,0.06);
}

.card-body { padding: 1.8rem; }

.card-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-red);
  margin-bottom: 1.2rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.75;
}

/* ── Stat Block ─────────────────────────────────────────── */
.stat-block {
  padding: 2rem 0;
  border-top: 1px solid var(--clr-border);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 300;
  color: var(--clr-white);
  line-height: 1;
}
.stat-num span { color: var(--clr-red); }

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-top: 0.3rem;
}

/* ── Noise Overlay ──────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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");
  opacity: 0.018;
  pointer-events: none;
  z-index: 9999;
}

/* ── Horizontal Rule ────────────────────────────────────── */
.divider {
  border: none;
  height: 1px;
  background: var(--clr-border);
  margin: 0;
}

/* ── Tag Pills ──────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  border: 1px solid;
}

.tag-red { color: var(--clr-red); border-color: rgba(255,51,0,0.3); background: rgba(255,51,0,0.06); }
.tag-gold { color: var(--clr-gold); border-color: rgba(200,169,110,0.3); background: rgba(200,169,110,0.06); }

/* ── Highlight Quote ────────────────────────────────────── */
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--clr-white);
  line-height: 1.4;
  padding-left: 2rem;
  border-left: 2px solid var(--clr-red);
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.animate-up { animation: fadeUp 0.7s ease both; }
.animate-up-delay { animation: fadeUp 0.7s 0.2s ease both; }
.animate-up-delay2 { animation: fadeUp 0.7s 0.4s ease both; }
.animate-up-delay3 { animation: fadeUp 0.7s 0.6s ease both; }
.animate-in { animation: fadeIn 0.6s ease both; }

/* ── Intersection Observer reveal ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Grid Helpers ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Flex Helpers ───────────────────────────────────────── */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.5rem; }
.gap-lg { gap: 3rem; }

/* ── Form Elements ──────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-muted);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.85rem 1.1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--clr-red);
  box-shadow: 0 0 0 3px rgba(255,51,0,0.08);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-group select option { background: var(--clr-surface2); }

/* ── Background patterns ────────────────────────────────── */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-dots {
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Page Wrapper ───────────────────────────────────────── */
.page-wrapper {
  padding-top: var(--header-h);
}

/* ── Aspect Ratio Boxes ─────────────────────────────────── */
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-4-3  { aspect-ratio: 4/3; }
.ratio-1-1  { aspect-ratio: 1/1; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .header-nav, .header-cta .btn { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-hero { min-height: 45vh; }
}

@media (max-width: 480px) {
  .btn { padding: 0.75rem 1.6rem; font-size: 0.72rem; }
  .pullquote { padding-left: 1.2rem; font-size: 1.2rem; }
}