:root {
  --bg: #0b0b0b;
  --panel: #111111;
  --text: #f5f5f5;
  --muted: #bdbdbd;
  --accent: #e50914;
  --accent-2: #ff3b3b;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;           /* enable sticky footer on short pages */
  display: flex;
  flex-direction: column;
  padding-top: 86px;            /* offset for fixed header */
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(11, 11, 11, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1a1a1a;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--text);
  font-size: 20px;
}
.brand-flex { display: inline-flex; align-items: center; gap: 12px; }
.logo { width: 52px; height: 52px; object-fit: contain; }
.accent { color: var(--accent); }
.nav { display: flex; gap: 24px; }
.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 40px;
  min-width: 110px;
  padding: 0 12px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.nav a:hover { color: var(--text); background: #151515; }
.nav a.active { color: var(--accent); background: rgba(229,9,20,0.08); }
/* CTA link in header */
.nav .cta-link {
  color: #fff;
  background: var(--accent);
  border: 1px solid #2a2a2a;
}
.nav .cta-link:hover { background: var(--accent-2); }
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid #232323;
  border-radius: 10px;
  padding: 10px 12px;
  background: #141414;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

/* Language switcher */
.lang-dropdown { position: relative; margin-left: 0; display: inline-flex; align-items: center; }
.lang-toggle {
  border: 1px solid #2a2a2a;
  background: #141414;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 110px;
  padding: 0 12px;            /* match nav link padding */
  border-radius: 12px;        /* match nav link radius */
  cursor: pointer;
  font-size: 14px;
}
.lang-toggle .flag-icon { width: 22px; height: 16px; display: block; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #121212; border: 1px solid #2a2a2a; border-radius: 10px;
  min-width: 140px; box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  display: none;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 12px; background: transparent; border: none; color: #fff; cursor: pointer;
}
.lang-menu button:hover { background: #1a1a1a; }
.lang-option.active { color: var(--accent); }

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: radial-gradient(1200px 500px at 100% -50%, rgba(229,9,20,0.15), transparent),
              linear-gradient(to bottom, rgba(255,255,255,0.02), transparent 200px);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.05;
  margin: 0 0 16px;
}
.lead {
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 18px);
}
.readmore-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
}
.cta { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 22px; /* ~20% larger */
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 1.2rem; /* ~20% larger text */
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary { border: 1px solid #2a2a2a; color: var(--text); }
.btn-secondary:hover { border-color: #3a3a3a; background: #141414; }

.card {
  background: var(--panel);
  border: 1px solid #1d1d1d;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Subtle accent for swapped hero content card */
.founder-card {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}
.hero-card .card h3 { margin-top: 0; }

/* Sections */
.section { padding: 56px 0; }
.section h2 { font-size: 28px; margin: 0 0 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature-card { display: grid; gap: 18px; }
.benefits {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 14px;
}
.benefits li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(229,9,20,0.15);
}
.highlight { background: linear-gradient(180deg, rgba(229,9,20,0.08), transparent 200px); }
.contact p { color: var(--muted); }

/* About page hero tweaks */
.about-hero .hero-inner { grid-template-columns: 1fr 1fr; }
.hero-side { display: grid; gap: 24px; align-content: start; }

/* About: initial Read More behavior (global) */
.about-hero .lead .mobile-hide { display: none; }
.about-hero .lead.show-all .mobile-hide { display: inline; }
.about-hero .readmore-toggle { display: inline-block; }

/* Contact form */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 8px; }
.form-field label { color: var(--muted); font-weight: 600; font-size: 13px; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #1f1f1f;
  background: #0f0f0f;
  color: var(--text);
}

/* Fix for datetime-local input calendar visibility */
.form-field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  background-color: white;
  border-radius: 4px;
  padding: 2px;
  cursor: pointer;
}

.form-field input[type="datetime-local"]::-webkit-inner-spin-button {
  background-color: white;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #8b8b8b; }
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: rgba(229,9,20,0.45); box-shadow: 0 0 0 4px rgba(229,9,20,0.12); }
.form-actions { display: flex; align-items: center; gap: 14px; }
.muted { color: var(--muted); }

/* Media grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.media-grid img {
  width: 100%; height: 220px; object-fit: cover; border-radius: 12px; border: 1px solid #1d1d1d;
}

/* Reviews */
.reviews-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.review-card {
  border: 1px solid #1d1d1d;
  border-radius: 12px;
  padding: 14px;
  background: #0f0f0f;
}
.review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review-name { font-weight: 600; }
.stars-read { color: #e50914; letter-spacing: 2px; }

/* Star input */
.stars { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.stars input { display: none; }
.stars label {
  font-size: 22px;
  color: #555;
  cursor: pointer;
}
.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label { color: #e50914; }

/* Slider */
.review-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid #1d1d1d;
  border-radius: 12px;
}
.review-track {
  display: flex;
  gap: 12px;
  padding: 12px;
  transition: transform 0.6s ease;
}
.review-slide { min-width: 280px; flex: 0 0 280px; }
.review-slide .review-card { height: 100%; }

@media (max-width: 720px) {
  .review-slide { min-width: 240px; flex: 0 0 240px; }
}

/* Admin gate */
.admin-gate {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.hidden { display: none !important; }

/* Toast / Popup */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid #1a1a1a;
  padding: 32px 0 26px;
  margin-top: auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 160px);
}
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: start;
}
.footer-col { padding-top: 6px; }
.footer-list a { text-decoration: none; }
.footer-list a {
  text-decoration: none;
  display: block;           /* full-width tap target */
  padding: 12px 0;          /* vertical space for touch */
  line-height: 1.4;         /* readability */
  font-size: 16px;          /* legible text size */
  min-height: 44px;         /* recommended tap target */
}
.footer-list a:hover { text-decoration: underline; }
.footer-brand p { margin: 8px 0 0; color: var(--muted); }
.footer-brand .brand-flex { gap: 10px; }
.footer-col h4 { margin: 0 0 10px; font-size: 16px; letter-spacing: 0.3px; color: #ddd; }
.social-links { display: flex; gap: 10px; margin-top: 12px; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1px solid #2a2a2a; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.social-btn i { font-size: 18px; }
.social-btn.fb { background: #1877F2; color: #fff; }
.social-btn.fb:hover { background: #166fe5; }
.footer-col h4 { margin: 0 0 10px; font-size: 16px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-list li { color: var(--muted); }
.footer-bottom { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #1a1a1a; text-align: center; }
.footer-bottom small { color: var(--muted); display: block; }
.footer-bottom a { display: inline-block; padding: 10px 0; }

/* Slightly tighter grouping for legal links */
.footer-legal .footer-list { gap: 4px; }
.footer-legal .footer-list a { padding: 8px 0; min-height: 40px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  /* About page specific: reduce spacing and avoid vertical centering */
  .about-hero { padding: 64px 0 40px; }
  .about-hero .hero-inner { gap: 20px; align-items: start; }
  .about-hero h1 { font-size: clamp(28px, 7vw, 38px); }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; gap: 14px; position: absolute; right: 4%; top: 62px; background: var(--panel); padding: 14px; border-radius: 14px; border: 1px solid #1f1f1f; box-shadow: 0 14px 34px rgba(0,0,0,0.45); }
  .nav.open a { height: 40px; min-width: 100%; padding: 0 12px; }
  .nav-toggle { display: inline-block; }
  .media-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  /* About page specific: scale image and tighten card padding */
  #ceo-intro img { max-width: 280px; }
  .about-hero .card { padding: 14px; }
  /* Clamp long About text on phones and show toggle */
  .about-hero .lead.is-clamped {
    display: -webkit-box;
    /* Standard property for broader compatibility */
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Generic image responsiveness */
img { max-width: 100%; height: auto; }