/*
Theme Name: Blue-Green
Author: River Web Services
Version: 5.0
Text Domain: bluegreen-heroonly
*/

:root{
  --blue:#0b5ed7;
  --green:#198754;
  --bg:#f6fbff;
  --text:#102a43;
  --border:#d9e6f2;
  --logo-max-height: 44px;
  --hero-subtitle-size: 16px;
  --card-radius: 16px;
  --card-shadow: 0 6px 20px rgba(0,0,0,.05);

  --footer-max-width: 1400px;
  --side-padding: 16px;

  --sticky-shadow: 0 8px 22px rgba(0,0,0,.10);

  --fixed-header-offset: 0px;
  --fixed-header-height: 118px;
}

*{ box-sizing:border-box; }
html, body{ width:100%; overflow-x:hidden; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

/* Prevent content hiding behind fixed header */
body.has-fixed-header{
  padding-top: calc(var(--fixed-header-height) + var(--fixed-header-offset));
}

/* Admin bar offset (prevents CLS when logged in) */
body.admin-bar{
  --fixed-header-offset: 32px;
}
@media (max-width: 782px){
  body.admin-bar{ --fixed-header-offset: 46px; }
}

/* Slightly smaller assumed header height on mobile (prevents initial jump/CLS) */
@media (max-width: 900px){
  :root{ --fixed-header-height: 92px; }
}


/* Accessibility helpers */
.screen-reader-text{
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}
.screen-reader-text:focus,
.skip-link:focus{
  clip: auto !important;
  clip-path: none !important;
  height: auto !important;
  width: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  position: absolute !important;
  padding: 10px 12px !important;
  z-index: 100000;
  background: #fff;
  color: #000;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  left: 12px;
  top: calc(var(--fixed-header-offset) + 12px);
  text-decoration: none;
}


a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

img, svg, video, canvas{ max-width:100%; height:auto; }
figure{ max-width:100%; margin-left:0; margin-right:0; }
.wp-block-image img,
.wp-block-media-text__media img,
.wp-block-gallery img,
.entry-content img,
.entry-content video,
.entry-content iframe,
.elementor img,
.elementor video,
.elementor iframe{
  max-width:100%;
  height:auto;
}
iframe{ max-width:100%; }

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.footer-container{
  width: 100%;
  max-width: var(--footer-max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

/* FIXED menu wrapper (theme header) */
.site-top{
  position: fixed;
  top: var(--fixed-header-offset);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: var(--sticky-shadow);
}

/* FIXED support for Elementor Theme Builder header */
.elementor-location-header{
  position: fixed;
  top: var(--fixed-header-offset);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: var(--sticky-shadow);
}

/* Header */
.site-header{
  background: linear-gradient(90deg, var(--blue) 0%, var(--green) 100%);
  color:#fff;
  padding: 14px 16px;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.site-brand{
  display:flex;
  align-items:center;
  min-width: 0;
}
.custom-logo-link{
  display:inline-flex;
  align-items:center;
}
.custom-logo-link img{
  max-height: var(--logo-max-height);
  width:auto;
  display:block;
}

/* Header right side (social + mobile menu button) */
.header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 12px;
}
.header-social{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}
.header-social a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color:#fff;
  transition: transform .12s ease, background .12s ease;
}
.header-social a:hover{
  background: rgba(255,255,255,.22);
  transform: translateY(-1px);
  text-decoration:none;
}
.header-social svg{
  width: 18px;
  height: 18px;
  display:block;
}

/* Mobile menu toggle */
.nav-toggle{
  display:none;
  align-items:center;
  gap:8px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.14);
  color:#fff;
  padding: 8px 10px;
  border-radius: 12px;
  cursor:pointer;
  line-height:1;
}
.nav-toggle:focus{
  outline: 2px solid rgba(255,255,255,.6);
  outline-offset: 2px;
}
.nav-toggle .bars{
  width: 18px;
  height: 12px;
  position: relative;
  display:inline-block;
}
.nav-toggle .bars span{
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background:#fff;
  border-radius: 99px;
}
.nav-toggle .bars span:nth-child(1){ top:0; }
.nav-toggle .bars span:nth-child(2){ top:5px; opacity:.9; }
.nav-toggle .bars span:nth-child(3){ top:10px; opacity:.85; }

/* Nav */
.nav{
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav .menu{
  list-style:none;
  margin:0;
  padding: 10px 0;
  display:flex;
  flex-wrap:wrap;
  gap: 14px;
}
.nav .menu a{
  display:inline-block;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav .menu a:hover{
  background: rgba(11,94,215,.08);
  text-decoration:none;
}

/* Desktop navigation styling: darker background with white text */
@media (min-width: 901px){
  .nav{
    background: #2b2f36;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .nav .menu a{
    color: #fff;
  }
  .nav .menu a:hover{
    background: rgba(255,255,255,.14);
    text-decoration: none;
  }
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  background:#fff;
}
.footer-widgets{
  padding: 26px 0 10px;
}
.footer-widgets-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.footer-widget-area{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}
.footer-widget-title{
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .8;
}

.site-footer .footer-widget-area ul,
.site-footer .footer-widget-area ol{
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  display: block !important;
}
.site-footer .footer-widget-area li{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}
.site-footer .footer-widget-area li + li{ margin-top: 8px !important; }
.site-footer .footer-widget-area .widget{ margin: 0 !important; }
.site-footer .footer-widget-area .widget + .widget{ margin-top: 14px !important; }
.site-footer .footer-widget-area a{ text-decoration:none; }
.site-footer .footer-widget-area a:hover{ text-decoration:underline; }


.footer-bottom{
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: #2b2f36;
  color: #fff;
  font-size: 13px;
}
.footer-bottom a{ color:#fff; }
.footer-bottom a:hover{ opacity:.9; }

/* Back to top */
.back-to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.20);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.back-to-top svg{ width: 18px; height: 18px; display:block; }
.back-to-top.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:focus{
  outline: 2px solid rgba(11,94,215,.45);
  outline-offset: 3px;
}

/* Hero */
.hero-full{
  width: 100%;
  min-height: 72vh;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(1200px 500px at 0% 0%, rgba(11,94,215,.30), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(25,135,84,.30), transparent 55%),
    linear-gradient(90deg, rgba(11,94,215,.20), rgba(25,135,84,.20));
}
.hero-full.hero-inner{ min-height: 36vh; }
.hero-full.has-image{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Hero background image element (improves LCP + allows fetchpriority) */
.hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(11,94,215,.35), rgba(25,135,84,.35));
}
.hero-content{
  position:relative;
  z-index:2;
  width:100%;
  padding: 26px 0;
  color:#fff;
  text-align:left;
}
.hero-full.hero-inner .hero-content{ padding: 18px 0; }
.hero-content h1{
  margin:0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: .2px;
  text-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.hero-full.hero-inner .hero-content h1{ font-size: clamp(26px, 3.2vw, 44px); }
.hero-content .hero-subtitle{
  margin: 14px 0 0;
  max-width: 70ch;
  font-size: var(--hero-subtitle-size);
  opacity: .95;
  text-shadow: 0 10px 30px rgba(0,0,0,.2);
}

/* Content */
.content-full{
  width: 100%;
  padding: 22px var(--side-padding) 34px;
}
.content-full .entry-content{
  max-width: 1300px;
  margin: 0 auto;
}
/* Gutenberg wide/full alignment helpers */
.entry-content .alignwide{
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}
.entry-content .alignfull{
  margin-left: calc(-1 * var(--side-padding));
  margin-right: calc(-1 * var(--side-padding));
  width: calc(100% + (2 * var(--side-padding)));
  max-width: none;
}

.content-full .content-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 18px;
  box-shadow: var(--card-shadow);
}

.entry-title{ margin:0 0 10px; }
.entry-meta{
  font-size:13px;
  opacity:.75;
  margin-bottom:14px;
}
.entry-divider{
  border:none;
  border-top:1px solid var(--border);
  margin:18px 0;
}

/* Responsive */
@media (max-width: 900px){
  .hero-full{ min-height: 60vh; }
  .hero-full.hero-inner{ min-height: 30vh; }

  .nav-toggle{ display:inline-flex; }

  /* Mobile header layout: icons above hamburger */
  .header-actions{
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
  .header-social{
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  /* keep icons visible on mobile but smaller */
  .header-social a{
    width: 32px;
    height: 32px;
  }
  .header-social svg{ width:16px; height:16px; }

  .nav .menu{
    display:none;
    flex-direction:column;
    gap: 6px;
    padding: 12px 0 14px;
  }
  .nav.is-open .menu{ display:flex; }
  .nav .menu a{ padding: 10px 12px; }

  .footer-widgets-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px){
  .footer-widgets-grid{ grid-template-columns: 1fr; }

  /* smaller social icons on phones */
  .header-actions{ gap: 10px; }
  .header-social{ gap: 8px; flex-wrap: nowrap; }
  .header-social a{ width: 30px; height: 30px; }
  .header-social svg{ width: 15px; height: 15px; }
}

@media (max-width: 380px){
  /* extra-small devices */
  .header-social a{ width: 28px; height: 28px; }
  .header-social svg{ width: 14px; height: 14px; }
  .header-social{ flex-wrap: nowrap; }
  .header-actions{ gap: 8px; }
}
