/* =============================================================================
   Fuzora Ray Obiektyw — style.css
   Design style: gradient_modern (modern gradients, smooth transitions, contemporary feel)
   Brand: Dark cinematic base (#1B1F2A) with gold accent (#D4A017) and light surface (#F3F4F7)
   Layout: Mobile-first, flexbox-only (no grid/columns)
   ============================================================================= */

/* 1) RESET & NORMALIZE */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0 0 16px 20px; padding: 0; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid #D4A017; outline-offset: 2px; }

/* 2) THEME TOKENS */
:root {
  --color-primary: #1B1F2A; /* dark cinematic */
  --color-primary-2: #252B3A; /* slightly lighter companion */
  --color-secondary: #D4A017; /* gold accent */
  --color-surface: #FFFFFF; /* white surface */
  --color-muted: #F3F4F7; /* light muted */
  --color-text: #1B1F2A; /* dark text */
  --color-text-inverse: #FFFFFF; /* light text */
  --shadow-1: 0 6px 20px rgba(27,31,42,0.18);
  --shadow-soft: 0 3px 12px rgba(27,31,42,0.12);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;
  --transition-fast: 180ms ease;
  --transition-slow: 360ms ease;
}

/* 3) BASE TYPOGRAPHY */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* brand body font */
  color: var(--color-text);
  background-color: var(--color-muted); /* fallback solid */
  background-image: linear-gradient(180deg, #F6F7FA 0%, #F3F4F7 100%);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .display {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; /* brand display font */
  letter-spacing: 0.3px;
}

h1 { font-size: 36px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 28px; line-height: 1.3; margin: 0 0 12px; }
h3 { font-size: 20px; line-height: 1.35; margin: 0 0 8px; }
p { margin: 0 0 14px; }
small { font-size: 12px; opacity: 0.9; }

/* Links */
a { color: var(--color-secondary); transition: color var(--transition-fast), opacity var(--transition-fast); }
a:hover { color: #b78a13; }
a.underline { text-decoration: underline; }

/* 4) GLOBAL LAYOUT HELPERS (Flexbox-only) */
.container {
  display: flex;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-16);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  align-items: flex-start;
  width: 100%;
}

/* Mandatory spacing and alignment patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Apply spacing to native section too */
main section { margin-bottom: var(--space-60); }

/* 5) HEADER & NAVIGATION */
header {
  background-color: var(--color-primary); /* fallback */
  background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-2) 100%);
  color: var(--color-text-inverse);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
header .container { align-items: center; }
header .content-wrapper { flex-direction: column; gap: var(--space-12); padding: var(--space-16) 0; align-items: center; }

.logo { display: inline-flex; align-items: center; gap: var(--space-12); }
.logo img { height: 40px; width: auto; }

.brand-tagline { color: rgba(255,255,255,0.85); font-size: 14px; }

/* Main nav (desktop) */
.main-nav { display: none; }
.main-nav a {
  color: rgba(255,255,255,0.95);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.main-nav a[aria-current="page"] { background: rgba(255,255,255,0.12); }
.main-nav a:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }

/* CTA buttons near nav */
.cta-buttons { display: flex; flex-wrap: wrap; gap: var(--space-12); }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  color: var(--color-text-inverse);
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; right: 0; top: 0; height: 100vh; width: 86vw;
  display: flex; flex-direction: column; gap: var(--space-20);
  background-color: var(--color-primary);
  background-image: linear-gradient(160deg, var(--color-primary) 0%, #101420 100%);
  color: var(--color-text-inverse);
  padding: var(--space-20);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  z-index: 1000;
  box-shadow: -12px 0 24px rgba(0,0,0,0.35);
}
.mobile-menu.active { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12);
  color: #fff; border-radius: 10px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

.mobile-nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a {
  color: #fff; padding: 12px 10px; border-radius: 10px; background: rgba(255,255,255,0.06);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.mobile-nav a:hover { background: rgba(255,255,255,0.14); transform: translateX(4px); }
.mobile-nav a[aria-current="page"] { background: rgba(255,255,255,0.18); }

/* 6) HERO */
.hero {
  background-color: var(--color-primary); /* fallback solid */
  background-image: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-2) 100%);
  color: var(--color-text-inverse);
  padding: var(--space-40) 0;
}
.hero .content-wrapper { align-items: flex-start; }
.hero h1 { font-size: 38px; }
.subheadline { color: rgba(255,255,255,0.9); font-size: 16px; margin-top: -4px; }

/* Text blocks */
.text-section { display: flex; flex-direction: column; gap: 8px; }
.search-prompt { color: rgba(255,255,255,0.92); }

/* Badge */
.badge {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: bold; color: var(--color-text);
  background: var(--color-muted);
  box-shadow: var(--shadow-soft);
}

/* CTA group */
.cta-group { display: flex; flex-wrap: wrap; gap: var(--space-12); }

/* 7) BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  box-shadow: var(--shadow-soft);
  font-weight: bold;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #1B1F2A;
  background-color: #D4A017; /* fallback */
  background-image: linear-gradient(90deg, #D4A017 0%, #F0C74E 100%);
}
.btn-primary:hover { background-image: linear-gradient(90deg, #c49614 0%, #E5BB3F 100%); }

.btn-secondary {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
}
.hero .btn-secondary { color: #fff; }

/* Secondary on light sections */
section .btn-secondary { color: var(--color-primary); background: transparent; border: 1px solid var(--color-primary); }
section .btn-secondary:hover { background: var(--color-muted); }

/* 8) GENERIC SECTIONS (light surfaces for readability) */
main section:not(.hero) {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-24) 0;
}
main section:not(.hero) .content-wrapper { padding: 0; }

/* 9) LISTS & TEXT */
li { margin-bottom: 8px; }
.text-section ul { margin-left: 18px; }

/* 10) TESTIMONIALS — ensure strong contrast (dark text on light background) */
.testimonial-card {
  background: var(--color-muted);
  color: var(--color-text);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.testimonial-card p { margin: 0; }
.testimonial-card p + p { opacity: 0.85; }

/* 11) FOOTER */
footer {
  background-color: var(--color-primary);
  background-image: linear-gradient(180deg, #0F1420 0%, var(--color-primary) 100%);
  color: var(--color-text-inverse);
  padding: var(--space-24) 0;
}
footer .content-wrapper { align-items: flex-start; }
footer nav { width: 100%; }
footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
footer nav a { color: rgba(255,255,255,0.92); padding: 6px 8px; border-radius: 8px; }
footer nav a:hover { background: rgba(255,255,255,0.12); }
footer .text-section { color: rgba(255,255,255,0.9); }
footer .text-section img { display: inline-block; vertical-align: middle; margin-right: 8px; }

/* 12) CARDS (generic, optional) */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: var(--space-20);
}

/* 13) MOBILE MENU VISIBILITY RULES */
/* Mobile-first: show burger, hide desktop nav */
.mobile-menu-toggle { display: inline-flex; }
.main-nav { display: none; }

/* 14) COOKIE CONSENT BANNER + MODAL */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: var(--space-12);
  background: #11151F;
  color: #FFFFFF;
  padding: var(--space-16);
  z-index: 1100;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-text { font-size: 14px; opacity: 0.95; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 10px 14px; }
.cookie-actions .btn-accept { background-color: #D4A017; background-image: linear-gradient(90deg,#D4A017,#F0C74E); color: #1B1F2A; }
.cookie-actions .btn-reject { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.cookie-actions .btn-settings { background: transparent; color: #fff; border: 1px dashed rgba(255,255,255,0.4); }

.cookie-modal {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: var(--space-16);
  background: rgba(0,0,0,0.5);
  z-index: 1200;
}
.cookie-modal.show { display: flex; }
.cookie-modal-content {
  display: flex; flex-direction: column; gap: var(--space-16);
  background: #FFFFFF; color: var(--color-text);
  width: 100%; max-width: 620px;
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  box-shadow: var(--shadow-1);
  transform: translateY(14px);
  transition: transform var(--transition-slow);
}
.cookie-modal.show .cookie-modal-content { transform: translateY(0); }
.cookie-categories { display: flex; flex-direction: column; gap: 10px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #E6E8ED; border-radius: 12px; }
.cookie-category .label { font-weight: bold; }
.cookie-category .note { font-size: 12px; opacity: 0.8; }
.toggle { width: 46px; height: 28px; border-radius: 28px; background: #D9DEE8; position: relative; }
.toggle::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; left: 3px; top: 3px; transition: transform var(--transition-fast); box-shadow: var(--shadow-soft); }
.toggle.active { background: #2F9352; }
.toggle.active::after { transform: translateX(18px); }
.cookie-modal .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* 15) RESPONSIVE MEDIA QUERIES */
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }

  header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; }
  .brand-tagline { font-size: 14px; }

  /* Desktop nav visible */
  .main-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
  .mobile-menu-toggle { display: none; }

  .hero { padding: 56px 0; }
  .hero h1 { font-size: 52px; }

  /* Align content blocks in rows where useful */
  .content-grid { justify-content: flex-start; }
  .text-image-section { flex-direction: row; }
  .testimonial-card { flex-direction: row; }
}

@media (min-width: 1024px) {
  .container { max-width: 1200px; }
  .main-nav a { padding: 10px 14px; }
}

/* 16) UTILITIES */
.muted { color: #6B7280; }
.center { text-align: center; }
.spacer-20 { height: 20px; }

/* 17) PAGE-SPECIFIC TWEAKS (matching given HTML classes) */
/* Index and inner pages: ensure clear hierarchy in light sections */
main section .subheadline { color: #4B5563; }

/* Links within light sections */
main section a { text-decoration: underline; }
main section a.btn { text-decoration: none; }

/* Footer newsletter and contact elements */
footer .text-section h3 { margin-top: 6px; color: #fff; }

/* 18) ACCESSIBILITY & MICRO-INTERACTIONS */
.btn:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible, .main-nav a:focus-visible, .mobile-nav a:focus-visible {
  outline: 2px solid #F0C74E; outline-offset: 2px;
}

/* 19) ENSURE NO OVERLAPS — spacing between stacked elements */
.content-wrapper > * + * { margin-top: 0; }

/* 20) COMPLIANCE WITH FLEXBOX-ONLY REQUIREMENT */
/* All layout groups use display:flex above. No grid/columns used. */

/* 21) OPTIONAL HIGHLIGHTS FOR GOLD ACCENTS */
hr.gold { height: 2px; border: 0; background: linear-gradient(90deg, rgba(212,160,23,0) 0%, #D4A017 40%, rgba(212,160,23,0) 100%); }

/* 22) EXTRA: ALIGN NAV LISTS IN FOOTER INTO COLUMNS USING FLEX-WRAP (not grid) */
footer nav ul { justify-content: flex-start; }

/* 23) ENSURE TEXT-IMAGE SECTION MOBILE BEHAVIOUR */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: center; }
}

/* 24) HIGHLIGHT LIST TITLES INSIDE .text-section */
.text-section h3 { color: var(--color-primary); }

/* 25) BADGE IN LIGHT SECTIONS (films page) */
section .badge { background: #FFF7E0; color: #573E00; border: 1px solid #F2D385; }

/* End of file */
