/*
  HUNDRDPRF – multipage, fixed header with search, shrink logo, darken bg on scroll
*/

:root {
  --bg: #050509;
  --bg-alt: #050714;
  --card: #111219;
  --border: #1e2028;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --accent-soft-strong: rgba(249, 115, 22, 0.3);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --heading: #f9fafb;
  --link: #f97316;
  --link-hover: #fed7aa;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;
}

/* Global reset */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, #020210 0, #02010a 60%, #000000 100%);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Darken overlay */

.scroll-darken {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  z-index: 20; /* under header, above content */
  transition: background 0.25s ease-out;
}

/* Background layers */

.site {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 10% 0%, rgba(248, 250, 252, 0.03), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.15), transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(56, 189, 248, 0.12), transparent 55%);
  opacity: 0.9;
  animation: bgShift 22s ease-in-out infinite alternate;
}

.site-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* Layout shells */

.site-main {
  flex: 1;
  padding-top: 120px; /* extra space so content isn't under header */
}

.container {
  width: 100%;
  max-width: 1180px;
  padding: 0 1.25rem;
  margin: 0 auto;
}

/* Header – fixed / pinned */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  backdrop-filter: blur(18px);
  background: radial-gradient(circle at top, rgba(3, 7, 18, 0.98), rgba(3, 7, 18, 0.92));
  z-index: 100;
  transition: padding 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  transition: padding 0.2s ease-out;
}

/* Brand */

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  max-width: 230px;
  height: auto;
  display: block;
  transition: max-width 0.2s ease-out, transform 0.2s ease-out;
}

/* When scrolled, shrink logo & tighten header */

.header-scrolled .header-inner {
  padding: 0.45rem 0;
}

.header-scrolled .brand-logo-img {
  max-width: 160px;
  transform: translateY(0);
}

/* Header right controls (nav + search) */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Nav */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-bottom: 0.25rem;
}

.main-nav a:hover {
  color: var(--heading);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(to right, #f97316, #fb923c, #fed7aa);
  transition: width 0.16s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

/* active nav item */
.main-nav a.nav-active {
  color: var(--heading);
}

.main-nav a.nav-active::after {
  width: 100%;
}

/* Search in header */

.header-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  min-width: 1.8rem;
}

.header-search-input {
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(2, 6, 23, 0.98);
  color: var(--text);
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  width: 0;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: right center;
  transition:
    width 0.22s ease-out,
    opacity 0.18s ease-out,
    transform 0.22s ease-out;
}

.header-search-input::placeholder {
  color: #6b7280;
}

.header-search-toggle {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 0.25rem;
  margin-left: 0.25rem;
}

.header-search-toggle span {
  display: inline-block;
  transform: translateY(1px);
}

/* When search is open, expand input from right to left and shrink header/logo */

.site-header.search-open .header-inner {
  padding: 0.45rem 0;
}

.site-header.search-open .brand-logo-img {
  max-width: 160px;
}

.site-header.search-open .header-search-input {
  width: 180px;
  opacity: 1;
  transform: scaleX(1);
  margin-right: 0.1rem;
}

.site-header.search-open .header-search-toggle {
  color: var(--heading);
}

/* Hero */

.hero {
  padding: 3rem 0 1.7rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.8);
  position: relative;
  overflow: hidden;
}

/* Logo watermark in hero */







.hero-logo-watermark {
  position: absolute;
  top: 0px;
  left: 80px;
  width: 880px;
  opacity: 0.08; /* increased visibility */
  filter: blur(3px) drop-shadow(0 0 45px rgba(255,255,255,0.10));
  pointer-events: none;
  z-index: 0;
}







.hero-logo-watermark img {
  width: 100%;
  height: auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: stretch;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-tag {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: var(--muted);
}

.hero-tag--accent {
  border-color: rgba(249, 115, 22, 0.9);
  background: var(--accent-soft);
  color: #fed7aa;
}

.hero-title {
  margin: 1.1rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  letter-spacing: -0.02em;
  color: var(--heading);
}

.hero-excerpt {
  max-width: 34rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-byline {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-byline strong {
  color: var(--heading);
}

/* Hero media */

.hero-media {
  border-radius: 1.3rem;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at top left, #020617, #020617 60%, #000000);
  border: 1px solid rgba(30, 64, 175, 0.9);
  box-shadow:
    0 40px 90px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.hero-media.hero-media-glow::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.14), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.8;
  pointer-events: none;
  animation: cardGlow 18s ease-in-out infinite alternate;
}

.hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  font-size: 0.8rem;
}

/* Sections */

.section {
  padding: 2.6rem 0 1rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.section-title {
  margin: 0.3rem 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--heading);
}

.section-sub {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 26rem;
}

/* section footer link */

.section-footer-link {
  margin-top: 1.1rem;
}

.section-footer-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: #fed7aa;
}

.section-footer-link a span {
  font-size: 1rem;
  transform: translateY(1px);
}

.section-footer-link a:hover {
  color: #ffedd5;
}

/* Grid / cards */

.grid {
  display: grid;
  gap: 1.4rem;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border-radius: 1rem;
  overflow: hidden;
  background: radial-gradient(circle at top left, #0b0b12, #050509 80%);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out,
    border-color 0.16s ease-out;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0 0, var(--accent-soft-strong), transparent 55%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.18s ease-out;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.9);
  border-color: rgba(249, 115, 22, 0.5);
}

.card:hover::before {
  opacity: 0.5;
}

.card-thumb-wrap {
  position: relative;
  overflow: hidden;
  max-height: 220px;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.25s ease-out;
}

.card-thumb--placeholder {
  background: radial-gradient(circle at top left, #020617, #020617 60%, #000000);
  height: 180px;
}

.card-thumb--placeholder-tall {
  background: radial-gradient(circle at top left, #020617, #020617 60%, #000000);
  height: 260px;
}

.card:hover .card-thumb {
  transform: scale(1.03);
}

.card-meta {
  padding: 0.75rem 0.9rem 0.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.card-category {
  color: #fed7aa;
}

.card-body {
  padding: 0 0.9rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0;
}

.card-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Reviews */

.review-list {
  display: grid;
  gap: 1.1rem;
}

.review-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.8);
}

.review-score {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  background: radial-gradient(circle at 30% 0, rgba(249, 115, 22, 0.9), #7c2d12);
  color: #030712;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.95),
    0 14px 30px rgba(15, 23, 42, 0.9);
}

.review-meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.review-title {
  margin: 0.15rem 0;
  font-size: 0.95rem;
  color: var(--heading);
}

/* Newsletter / about */

.newsletter {
  border-radius: 1.2rem;
  padding: 1.5rem 1.4rem;
  background: radial-gradient(circle at top left, #111827, #020617);
  border: 1px solid rgba(55, 65, 81, 0.95);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.2), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.18), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.2rem;
  position: relative;
}

.newsletter-text {
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(2, 6, 23, 0.98);
  color: var(--text);
  font-size: 0.85rem;
}

.newsletter-form input[type="email"]::placeholder {
  color: #6b7280;
}

/* Buttons */

.btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--heading);
  background: rgba(15, 23, 42, 0.96);
  transition: background 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.btn-primary {
  background: radial-gradient(circle at top left, #f97316, #ea580c, #7c2d12);
  color: #030712;
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(249, 115, 22, 0.6);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1.4rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
}

.footer-logo {
  max-width: 160px;
  height: auto;
  display: block;
  opacity: 0.9;
}

/* Links */

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

/* Animations */

@keyframes bgShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-10px, 10px, 0) scale(1.02);
  }
  100% {
    transform: translate3d(10, -10px, 0) scale(1.03);
  }
}

@keyframes cardGlow {
  0% {
    opacity: 0.5;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(8px, -6px, 0);
  }
}

/* Responsive */

@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    max-height: 380px;
  }

  .newsletter {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav {
    display: none; /* simple mobile: hide nav; can improve later */
  }

  .brand-logo-img {
    max-width: 190px;
  }

  .header-right {
    gap: 0.4rem;
  }

  .header-search-input {
    display: none;
  }
}

@media (max-width: 640px) {
  .grid--3,
  .grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-score {
    margin-bottom: 0.5rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Fallback gradient hero background when no image is used */
.hero-media-fallback {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, #020617, #020617 60%, #000000);
}



  50%  { opacity: 0.07; filter: blur(3px) drop-shadow(0 0 35px rgba(255,255,255,0.07)); }
  100% { opacity: 0.04; filter: blur(3px) drop-shadow(0 0 20px rgba(255,255,255,0.04)); }
}

/* --- Mobile Optimizations --- */

@media (max-width: 920px) {
  /* Give main content a bit more top padding since header stacks tighter on mobile */
  .site-main {
    padding-top: 130px;
  }

  /* Mobile hero spacing */
  .hero {
    padding-top: 2.2rem;
  }

  /* Make hero watermark smaller and better positioned on narrow screens */
  .hero-logo-watermark {
    top: 40px;
    left: -20px;
    width: 540px;
    opacity: 0.08;
  }

  /* Mobile nav: keep it visible, slightly smaller, and horizontally scrollable if needed */
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .main-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.9rem;
    padding-bottom: 0.15rem;
  }

  .main-nav a {
    font-size: 0.7rem;
    white-space: nowrap;
  }

  /* Hide search input, keep icon only */
  .header-search-input {
    display: none !important;
  }
}

@media (max-width: 640px) {
  /* Single column grids already defined; just tighten section padding slightly */
  .section {
    padding: 2.1rem 0 0.8rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-excerpt {
    font-size: 0.9rem;
  }

  /* Slightly reduce watermark intensity on very small screens */
  .hero-logo-watermark {
    opacity: 0.08;
    width: 500px;
    left: -40px;
  }
}
