/* VisRes Theme - Global Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', Georgia, sans-serif;
  background: #fff;
  color: #222;
}

/* ===== HEADER / NAV ===== */
.site-header {
  background: #0d1535;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 4px;
  transition: color 0.2s;
}

.site-nav a:hover { color: #fff; }

.site-nav a.nav-separator {
  color: rgba(255,255,255,0.3);
  padding: 0;
  pointer-events: none;
}

.nav-btn {
  background: #2a5fd4 !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border-radius: 6px !important;
  margin-left: 8px;
  font-size: 16px !important;
}

.nav-btn:hover { background: #1e4db8 !important; }

/* ===== HERO SECTION RESPONSIVE ===== */
.hero-section {
  background: linear-gradient(135deg,#0d1b3e 0%,#1a2a5e 50%,#0d1b3e 100%);
  display: flex;
  align-items: stretch;
  min-height: 420px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hero-text {
  flex: 1;
  padding: 70px 50px 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  max-width: 460px;
}

.hero-text h1 {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 22px 0;
  font-family: 'Open Sans', sans-serif;
}

.hero-text p {
  font-size: 18px;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
}

.hero-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #111;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 28px 20px;
  font-size: 13px;
}

.site-footer a { color: #f5a623; text-decoration: none; }

/* ===== PAGE CONTENT ===== */
.page-content { width: 100%; }

/* ===== GHOST REQUIRED CLASSES ===== */
.kg-width-wide {
  margin-left: calc(25% - 25vw);
  margin-right: calc(25% - 25vw);
  width: auto;
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: auto;
}

.kg-image { max-width: 100%; }
.kg-image-card { margin: 0; }
.kg-image-card img { max-width: 100%; height: auto; display: block; }
.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; }
.kg-gallery-image img { display: block; margin: 0; width: 100%; height: 100%; object-fit: cover; }
.kg-bookmark-card { width: 100%; }
.kg-bookmark-container { display: flex; text-decoration: none; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; }
.kg-bookmark-content { display: flex; flex-direction: column; padding: 20px; }
.kg-bookmark-title { font-weight: 600; }
.kg-bookmark-description { margin-top: 4px; opacity: 0.7; }
.kg-bookmark-thumbnail { width: 180px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-video-card video { width: 100%; }
.kg-callout-card { display: flex; padding: 20px; border-radius: 4px; background: #f0f4ff; margin: 20px 0; }
.kg-callout-emoji { margin-right: 12px; font-size: 24px; }
.kg-toggle-card { border: 1px solid #e0e0e0; border-radius: 4px; padding: 16px; margin: 16px 0; }
.kg-toggle-heading { display: flex; justify-content: space-between; cursor: pointer; font-weight: 600; }
.kg-toggle-content { margin-top: 12px; }
.kg-button-card { display: flex; justify-content: center; margin: 20px 0; }
.kg-btn { display: inline-block; padding: 14px 32px; border-radius: 6px; background: #2a5fd4; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

  /* Header */
  .site-header {
    padding: 0 16px;
    height: auto;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 10px;
  }

  .site-logo img { height: 34px; }

  .site-nav {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-nav a {
    font-size: 13px;
    padding: 5px 10px;
  }

  .site-nav a.nav-separator { display: none; }

  .nav-btn {
    font-size: 13px !important;
    padding: 8px 14px !important;
  }

  /* Hero - stack on mobile */
  .hero-section {
    flex-direction: column;
    min-height: auto;
  }

  .hero-text {
    max-width: 100%;
    padding: 40px 16px 32px;
    text-align: center;
    align-items: center;
    width: 100%;
  }

  .hero-text h1 {
    font-size: 22px;
    line-height: 1.3;
    text-align: center;
    width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-text p {
    font-size: 15px;
    text-align: center;
    width: 100%;
    white-space: normal;
    word-break: break-word;
  }

  .hero-image {
    width: 100%;
    height: 340px;
    flex: none;
  }

  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
  }

  /* All sections - reduce padding on mobile */
  div[style*="padding:60px 80px"],
  div[style*="padding:60px 70px"],
  div[style*="padding:60px 60px"],
  div[style*="padding:60px 50px"],
  div[style*="padding:60px 40px"],
  div[style*="padding:55px 60px"],
  div[style*="padding:50px 60px"],
  div[style*="padding:70px 50px"],
  div[style*="padding:80px 50px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  /* Why it works - stack on mobile */
  div[style*="display:flex;align-items:center;gap:50px"],
  div[style*="display:flex;align-items:center;gap:40px"],
  div[style*="display:flex;align-items:center;gap:30px"] {
    flex-direction: column !important;
    gap: 24px !important;
  }

  /* Resume card images full width on mobile */
  div[style*="display:flex;align-items:center;gap:50px"] img,
  div[style*="display:flex;align-items:center;gap:30px"] img {
    width: 100% !important;
    height: auto !important;
  }

  /* Examples grid - single column on mobile */
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Why I Made VisRes - image columns stack */
  div[style*="display:flex;gap:28px;align-items:flex-start"] {
    flex-direction: column !important;
  }

  div[style*="display:flex;gap:28px;align-items:flex-start"] img {
    width: 100% !important;
    height: auto !important;
  }

  /* How it Works checklist box */
  div[style*="display:flex;align-items:center;gap:30px;max-width:820px"] {
    flex-direction: column !important;
  }

  div[style*="display:flex;align-items:center;gap:30px;max-width:820px"] img {
    width: 100% !important;
    height: auto !important;
  }

  /* Pricing $97 smaller on mobile */
  div[style*="font-size:72px"] {
    font-size: 56px !important;
  }

  /* Big text headings smaller on mobile */
  h1, h2, h3 { word-break: break-word; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 20px; line-height: 1.3; white-space: normal; word-break: break-word; }
  .hero-text p { font-size: 14px; white-space: normal; }
  .site-nav a { font-size: 12px; padding: 4px 8px; }
}

/* ===== EXAMPLES MOBILE BREAKER ===== */
.mobile-breaker {
  display: none;
}
@media (max-width: 768px) {
  .mobile-breaker {
    display: block;
    text-align: center;
    padding: 28px 20px;
    margin: 4px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a3a6e 100%);
    border-radius: 8px;
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-style: italic;
    line-height: 1.4;
  }
}
