/* ===================================================================
   RemoteFlyBy — static site styles
   Faithful rebuild of the original WordPress "Talon" theme.
   Palette / fonts taken directly from the live site's stylesheet.
   ------------------------------------------------------------------
   Accent (purple) ...... #7261ee
   Dark navy ............ #2d3142   (site title, footer background)
   Slate text ........... #4f5d75   (body, nav)
   Muted slate .......... #515d77   (tagline)
   Body font ............ Open Sans
   Heading font ......... Noto Sans
   =================================================================== */

:root {
  --accent: #7261ee;
  --accent-glow: rgba(114, 97, 238, 0.54);
  --navy: #2d3142;
  --slate: #4f5d75;
  --slate-muted: #515d77;
  --border: #e6e8ee;
  --page-max: 1140px;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate);
  background: #fff;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--navy); line-height: 1.3; }

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

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }

.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--navy); padding: 12px 20px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(45, 49, 66, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.site-branding { display: flex; flex-direction: column; }
.site-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}
.site-title a { color: var(--navy); }
.site-title a:hover { color: var(--accent); }
.site-description {
  margin: 2px 0 0;
  font-size: 16px;
  color: var(--slate-muted);
  font-family: var(--font-body);
}

/* Primary navigation */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-navigation a {
  color: var(--slate);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.main-navigation a:hover,
.main-navigation .current a { color: var(--accent); }

/* Hamburger (mobile only) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.menu-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--navy); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------
   Hero (video header) — home page
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  width: 100%;
  height: clamp(340px, 62vh, 640px);
  overflow: hidden;
  background: var(--navy);
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45,49,66,0.15) 0%, rgba(45,49,66,0.45) 100%);
}
.hero-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #fff;
}
.hero-caption h1 { color: #fff; font-size: clamp(34px, 6vw, 62px); margin: 0 0 10px; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.hero-caption p { color: #fff; font-size: clamp(16px, 2.2vw, 22px); margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.45); }

/* ------------------------------------------------------------------
   Content layout — main + sidebar
   ------------------------------------------------------------------ */
.site-content { padding: 50px 0 60px; }
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}

/* ---- Blog / project feed ---- */
.posts-layout { display: flex; flex-direction: column; gap: 45px; }

.post-item .entry-thumb { overflow: hidden; border-radius: 4px; }
.post-item .entry-thumb img {
  width: 100%;
  transition: transform .5s ease;
}
.post-item .entry-thumb a:hover img { transform: scale(1.03); }

/* Click-to-play YouTube embed (facade — loads the iframe only on click) */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}
.video-embed .video-play {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  cursor: pointer;
  background: none;
}
.video-embed .video-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.video-embed:hover .video-play img { transform: scale(1.03); }
.video-embed .play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.video-embed .play-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
}
.video-embed:hover .play-icon,
.video-embed .video-play:focus-visible .play-icon {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 40px 0 var(--accent-glow);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-item .entry-title {
  font-size: 22px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.post-item .entry-title a { color: var(--navy); }
.post-item .entry-title a:hover { color: var(--accent); }

.entry-meta {
  font-size: 13px;
  color: var(--slate-muted);
}
.entry-meta a { color: var(--slate-muted); }
.entry-meta a:hover { color: var(--accent); }
.entry-meta .sep { margin: 0 6px; opacity: .6; }
.entry-meta .watch-link { color: var(--accent); font-weight: 600; white-space: nowrap; }
.entry-meta .watch-link:hover { color: var(--navy); }

/* ---- Single page/article content (About, Contact) ---- */
.page-header .entry-title { font-size: 36px; margin: 0 0 24px; }
.entry-content p { margin: 0 0 1.4em; }
.entry-content figure { margin: 0 0 1.8em; }
.entry-content figure img { border-radius: 4px; }
.entry-content figcaption {
  font-size: 13px;
  color: var(--slate-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ------------------------------------------------------------------
   Sidebar widgets
   ------------------------------------------------------------------ */
.widget-area { display: flex; flex-direction: column; gap: 40px; }
.widget { margin: 0; }
.widget-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--slate); }
.widget li a:hover { color: var(--accent); }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--navy);
  color: #9aa3b8;
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-info { font-size: 14px; }
.site-footer a { color: #c3c9d8; }
.site-footer a:hover { color: #fff; }
.footer-navigation ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 24px; flex-wrap: wrap;
}
.footer-navigation a {
  font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}

/* ------------------------------------------------------------------
   Buttons (accent) — available for future use
   ------------------------------------------------------------------ */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 9999px;
  font-weight: 600;
  transition: box-shadow .25s ease, transform .1s ease;
}
.button:hover { color: #fff; box-shadow: 0 0 40px 0 var(--accent-glow); }

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; gap: 45px; }

  .menu-toggle { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .main-navigation {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-navigation.is-open { max-height: 320px; }
  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 12px;
  }
  .main-navigation li { width: 100%; }
  .main-navigation a { display: block; padding: 12px 0; width: 100%; border-top: 1px solid var(--border); }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .site-title { font-size: 28px; }
  .site-content { padding: 34px 0 44px; }
}
