/* ==========================================
   1. SAFE TOP GAP & MAIN TITLE HIDE
   ========================================== */
body.home .site-content,
body.home .site-inner,
body.home .content-area,
body.home #primary,
body.home .site-main,
body.page-about .site-content,
body.page-about .site-inner,
body.page-about .content-area,
body.page-about #primary,
body.page-about .site-main,
body.page-id-7716 .site-content,
body.page-id-7716 .site-inner,
body.page-id-7716 .content-area,
body.page-id-7716 #primary,
body.page-id-7716 .site-main,
body.page-id-7818 .site-content,
body.page-id-7818 .site-inner,
body.page-id-7818 .content-area,
body.page-id-7818 #primary,
body.page-id-7818 .site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.home.page .entry-header:first-of-type,
body.home.page .page-header:first-of-type,
body.page-about.page .entry-header:first-of-type,
body.page-about.page .page-header:first-of-type,
body.page-id-7716 .entry-header:first-of-type,
body.page-id-7716 .page-header:first-of-type,
body.page-id-7818 .entry-header:first-of-type,
body.page-id-7818 .page-header:first-of-type {
  height: 0 !important;
  min-height: 0 !important;
  display: none !important;
}

body.home .edit-link,
body.home .post-edit-link,
body.home a.post-edit-link,
body.page-about .edit-link,
body.page-about .post-edit-link,
body.page-about a.post-edit-link,
body.page-id-7716 .edit-link,
body.page-id-7716 .post-edit-link,
body.page-id-7716 a.post-edit-link,
body.page-id-7818 .edit-link,
body.page-id-7818 .post-edit-link,
body.page-id-7818 a.post-edit-link {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.home .rk,
body.home .entry-content,
body.home .entry-content > *:first-child,
body.page-about .rk,
body.page-about .entry-content,
body.page-about .entry-content > *:first-child,
body.page-id-7716 .rk,
body.page-id-7716 .entry-content,
body.page-id-7716 .entry-content > *:first-child,
body.page-id-7818 .rk,
body.page-id-7818 .entry-content,
body.page-id-7818 .entry-content > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ==========================================
   2. HEADER LOGO & TAGLINE POLISH (VIGNETTE & NO BOX)
   ========================================== */
.site-header {
  position: relative !important;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(15, 29, 48, 0.52) 0%,
    rgba(15, 29, 48, 0.18) 65%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.site-branding,
.main-navigation {
  position: relative !important;
  z-index: 2 !important;
}

.site-branding {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.site-header .custom-logo-link,
.site-branding a {
  background: transparent !important;
  padding: 0 !important;
  display: inline-block !important;
}

.site-header .custom-logo,
.site-branding img,
.site-header .custom-logo-link img {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  filter: brightness(1.35) contrast(1.2)
          drop-shadow(0 0 10px rgba(255, 255, 255, 0.45))
          drop-shadow(0 2px 6px rgba(0, 0, 0, 0.95)) !important;
}

.site-description,
.site-branding .site-description {
  font-size: clamp(1.15rem, 2.1vw, 1.55rem) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: #ffffff !important;
  margin-top: 10px !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.95) !important;
  opacity: 1 !important;
}

/* ==========================================
   3. BULLETPROOF MOBILE RESPONSIVE RESET
   ========================================== */
@media (max-width: 768px) {
  /* Prevent horizontal overflow on mobile */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header {
    padding: 24px 16px 20px 16px !important;
  }
  
  .site-header .custom-logo,
  .site-branding img,
  .site-header .custom-logo-link img {
    max-height: 38px !important;
    width: auto !important;
  }
  
  .site-description,
  .site-branding .site-description {
    font-size: 0.85rem !important;
    margin-top: 6px !important;
  }

  /* Force single-column stacking across all custom sections */
  .rk {
    width: 100% !important;
    overflow: hidden !important;
  }

  .rk .wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  /* Reset Hero Section for mobile */
  .rk .hero {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    padding: 30px 16px !important;
  }

  .rk .hero h1 {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }

  .rk .hero p {
    font-size: 0.95rem !important;
  }

  .rk .herophoto img {
    width: 100% !important;
    height: auto !important;
  }

  /* Reset Awards & Portfolio Grids to single column */
  .awards-grid,
  .mosaic,
  .rk section div[style*="display: grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .rk section {
    padding: 40px 0 !important;
  }
}

/* ==========================================
   4. PROFESSIONAL FOOTER POLISH (CLEAN GRID)
   ========================================== */
.site-footer {
  background-color: #10243a !important;
  background-image: none !important;
  color: #fbf9f5 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 50px 16px 20px 16px !important;
}

.site-footer .widget-area,
.site-footer .footer-widgets,
.site-footer .wrap,
.site-footer .site-info {
  background-color: transparent !important;
}

.site-footer .widget-area {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 32px !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  float: none !important;
}

.site-footer section,
.site-footer .widget {
  margin-bottom: 0 !important;
  background: transparent !important;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .widget-title,
.site-footer .widget_nav_menu h2 {
  color: #fbf9f5 !important;
  font-family: Fraunces, Georgia, serif !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin-bottom: 16px !important;
  border: none !important;
}

.site-footer p,
.site-footer li,
.site-footer span,
.site-footer label {
  color: #cbd5e1 !important;
}

.site-footer a, 
.site-footer .widget a,
.site-footer .widget_nav_menu a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.site-footer a:hover,
.site-footer .widget a:hover {
  color: #ffffff !important;
}

.site-footer .widget_nav_menu ul,
.site-footer .widget ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-footer .widget_nav_menu ul li,
.site-footer .widget li {
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 10px 0 !important;
  background: transparent !important;
}

.site-footer img {
  border-radius: 8px !important;
  max-width: 170px !important;
  height: auto !important;
  display: block !important;
  margin: 0 0 12px 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.site-info {
  max-width: 1100px !important;
  margin: 30px auto 0 auto !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-align: center !important;
}

.site-info, 
.site-info a {
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
}