/* Franko Productions — dark modern theme, CBI-style sidebar layout */

:root {
  --bg: #02060d;
  --bg-soft: #091a2e;
  --panel: #061020;
  --panel-2: #091628;
  --line: rgba(150, 220, 235, 0.1);
  --text: #e8f4f6;
  --muted: #8fa8bd;
  --accent: #2ad4cf;
  --accent-strong: #55e2dd;
  --accent-ink: #04202a;
  --accent-2: #e8ff2a;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Topbar / nav ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 36px;
  background: rgba(2, 6, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text);
}
.brand-logo { max-height: 48px; max-width: 200px; object-fit: contain; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0.5px;
}
.brand-accent { color: var(--accent-2); }

.brand-tagline {
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav { display: flex; flex-direction: row; gap: 6px; }

.nav a {
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.active {
  color: var(--accent);
  background: var(--panel);
  border-color: var(--line);
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: var(--muted);
}
.sidebar-foot a { color: var(--muted); }
.sidebar-foot a:hover { color: var(--accent); }

/* ---------- Shell ---------- */

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
}
.menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 85;
}

/* ---------- Main ---------- */

.main { flex: 1; }

.page-head { padding: 56px 48px 0; max-width: 1280px; margin: 0 auto; }

.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 52px);
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}
.page-sub { color: var(--muted); max-width: 640px; margin: 0; }

.page-title-accent { color: var(--accent-2); }

.section { padding: 48px 48px 24px; max-width: 1280px; margin: 0 auto; }

.section-head { margin-bottom: 28px; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}
.section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 10px;
}
body[data-page="services"] .section-title::after { background: var(--accent-2); }
.section-sub { color: var(--muted); margin: 0; max-width: 560px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 48px 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(640px 420px at 78% 18%, rgba(42, 212, 207, 0.2), transparent 65%),
    radial-gradient(520px 480px at 12% 88%, rgba(42, 212, 207, 0.1), transparent 60%),
    radial-gradient(420px 360px at 92% 85%, rgba(232, 255, 42, 0.08), transparent 60%);
}

.hero-texture {
  position: absolute;
  inset: 0;
  background: url("/assets/images/site/texture.jpg") center / cover no-repeat;
  opacity: 0.42;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.5));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.5));
}

.hero-content { position: relative; max-width: 1280px; margin: 0 auto; }

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin: 0 0 16px;
}

.hero-intro { color: var(--muted); max-width: 560px; margin: 0 0 30px; font-size: 17px; }

.hero-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.hero-testimonials .testimonial {
  background: rgba(4, 10, 19, 0.55);
  backdrop-filter: blur(6px);
  padding: 22px 24px;
  border-color: rgba(42, 212, 207, 0.3);
  box-shadow: 0 0 28px rgba(42, 212, 207, 0.26), 0 14px 34px rgba(0, 0, 0, 0.4);
}
.hero-testimonials .testimonial blockquote { font-size: 14.5px; }

/* ---------- Masonry ---------- */

.masonry {
  columns: 3;
  column-gap: 18px;
}

.masonry-item {
  break-inside: avoid;
  margin: 0 0 18px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.masonry-item:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 212, 207, 0.45);
  box-shadow: 0 0 22px rgba(42, 212, 207, 0.22), 0 12px 32px rgba(42, 212, 207, 0.12);
}
.masonry-item img {
  width: 100%;
  transition: transform 0.35s ease;
}
.masonry-item:hover img { transform: scale(1.03); }

/* ---------- Testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.testimonial {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial blockquote {
  margin: 0;
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.65;
}
.testimonial figcaption { display: flex; align-items: baseline; gap: 10px; }
.t-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-2);
  font-size: 15px;
}
.t-role { color: var(--muted); font-size: 13px; }

/* ---------- Services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.service-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  background: var(--panel-2);
}
.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-thumb img.thumb-top { object-position: top; }
.service-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
}
.service-thumb-placeholder span {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 255, 42, 0.45);
  box-shadow: 0 0 22px rgba(232, 255, 42, 0.14);
}
.service-card:hover .service-icon {
  color: var(--accent-2);
  border-color: rgba(232, 255, 42, 0.3);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 10px;
}
.service-card p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* ---------- Contact ---------- */

.contact-section { padding-bottom: 72px; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.contact-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
  box-shadow: 0 0 22px rgba(232, 255, 42, 0.14);
}

.contact-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  word-break: break-word;
}

/* ---------- Bio ---------- */

.bio-section { padding-top: 24px; }

.bio-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

.bio-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow), 0 0 30px rgba(232, 255, 42, 0.1);
}
.bio-photo img { width: 100%; }

.prose {
  max-width: 720px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
  color: #c9d8e4;
  font-size: 15.5px;
}
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

.bio-lead {
  font-size: 19px !important;
  line-height: 1.55 !important;
  color: var(--text) !important;
  border-left: 3px solid var(--accent-2);
  padding-left: 18px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.footer-tagline { color: var(--muted); font-size: 12px; }
.footer-links { display: flex; align-items: center; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 13.5px; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--muted); font-size: 12px; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(2, 5, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-figure { margin: 0; max-width: min(92vw, 1400px); max-height: 86vh; }
.lightbox-figure img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.lightbox-caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 13.5px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav:hover { border-color: var(--accent); color: var(--accent); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .masonry { columns: 2; }
}

@media (max-width: 900px) {
  .menu-btn { display: flex; }
  .nav-wrap {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(84vw, 320px);
    background: var(--bg-soft);
    border-right: 1px solid var(--line);
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 28px 24px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  body.nav-open .nav-wrap { transform: none; box-shadow: var(--shadow); }
  body.nav-open .backdrop { display: block; }
  .nav { flex-direction: column; gap: 4px; }
  .topbar { padding: 12px 18px; gap: 14px; }
  body.nav-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 72px 24px 60px; }
  .section, .page-head { padding-left: 24px; padding-right: 24px; }
  .footer-inner { padding: 24px; }
  .prose { padding: 26px 24px; }
  .bio-layout { grid-template-columns: 1fr; }
  .bio-photo { max-width: 380px; }
}

@media (max-width: 640px) {
  .masonry { columns: 1; }
}
