/* =========================================================
   GLOBAL HEADER RESPONSIVE LAYER
   Desktop header stays as-is.
   Tablet compresses.
   Mobile uses Quick Access panel as navigation.
========================================================= */


/* =========================
   LARGE LAPTOP / TABLET LANDSCAPE
   1025px - 1366px
========================= */
@media (max-width: 1366px) {

  .header-inner {
    max-width: 1280px;
    padding: 0 24px;
    column-gap: 20px;
  }

  .main-nav {
    gap: 0px;
  }

  .nav-link {
    min-height: 46px;
    padding: 0 12px;
    font-size: 0.92rem;
    border-radius: 13px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-action,
  .header-cta {
    min-height: 46px;
    padding: 0 16px;
    font-size: 0.92rem;
  }

  .mega-panel {
    width: min(1160px, calc(100vw - 28px));
  }

  .mega-layout-wide {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .mega-group {
    padding: 26px 20px 22px;
  }

  .mega-promo {
    padding: 22px;
  }

  .mega-copy strong {
    font-size: 0.98rem;
  }

  .mega-copy small {
    font-size: 0.86rem;
  }
}


/* =========================
   SMALL LAPTOP / BIG TABLET
   1025px - 1180px
========================= */
@media (max-width: 1180px) and (min-width: 1025px) {

  .header-inner {
    column-gap: 14px;
  }

  .brand-tagline {
    display: none;
  }

  .logo-image {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .brand-webs {
    font-size: 22px;
  }

  .brand-docs {
    font-size: 21px;
  }

  .main-nav {
    gap: 6px;
  }

  .nav-link {
    padding: 0 9px;
    font-size: 0.86rem;
  }

  .nav-arrow {
    margin-left: -3px;
  }

  .header-action-secondary {
    display: none;
  }

  .header-cta {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .panel-toggle {
    width: 38px;
    height: 38px;
  }
}


/* =========================
   TABLET + MOBILE
   1024px and below
   Desktop nav hidden. Quick Access becomes main mobile nav.
========================= */
@media (max-width: 1024px) {

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
  }

  .header-top {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .header-inner {
    min-height: 72px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
  }

  .main-nav {
    display: none !important;
  }

  .mega-panels {
    display: none !important;
  }

  .logo {
    min-width: 0;
    max-width: 100%;
  }

  .logo-image {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .logo-text {
    min-width: 0;
    overflow: hidden;
  }

  .brand-name,
  .footer-brand-name {
    white-space: nowrap;
  }

  .brand-webs {
    font-size: 23px;
  }

  .brand-docs {
    font-size: 22px;
  }

  .brand-tagline {
    display: none;
  }

  .header-actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0px;
  }

  .header-action-secondary {
    display: inline-flex;
    align-items: center;
  }

  .header-cta,
  .site-header .hero-free-btn {
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;

    font-size: 0.7rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-decoration: none !important;

    background: #b7df52 !important;
    color: #16210f !important;
    box-shadow: 0 10px 24px rgba(183, 223, 82, 0.22) !important;
  }

  .header-cta i,
  .site-header .hero-free-btn i {
    font-size: 0.7rem !important;
    line-height: 1 !important;
  }

  .header-cta span,
  .site-header .hero-free-btn span {
    display: inline !important;
    line-height: 1 !important;
  }

  .site-header .panel-toggle {
    display: inline-flex !important;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
  }

  .site-header .panel-toggle span {
    width: 19px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .header-actions {
    gap: 16px;
  }
}

/* =========================
   MOBILE
   640px and below
========================= */
@media (max-width: 640px) {

  .header-inner {
    min-height: 66px;
    padding: 0 16px;
    column-gap: 10px;
  }

  .logo {
    gap: 6px;
  }

  .logo-image {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .brand-webs {
    display: none;
  }

  .brand-docs {
    display: none;
  }

  .header-actions {
    gap: 14px;
  }

  .header-cta,
  .site-header .hero-free-btn {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 15px !important;
    font-size: 0.84rem !important;
    gap: 7px !important;
  }

  .site-header .panel-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .site-header .panel-toggle span {
    width: 18px;
  }
}


/* =========================
   SMALL MOBILE
   430px and below
   Hide tagline already; keep brand name if space allows.
========================= */
@media (max-width: 430px) {

  .header-inner {
    min-height: 64px;
    padding: 0 14px;
    column-gap: 8px;
  }

  .logo-image {
    width: 40px;
    height: 40px;
  }

  .brand-webs {
    font-size: 20px;
  }

  .brand-docs {
    font-size: 19px;
  }

  .header-actions {
    gap: 7px;
  }

  .header-cta,
  .site-header .hero-free-btn {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 13px !important;
    font-size: 0.8rem !important;
  }

  .site-header .panel-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}


/* =========================
   VERY SMALL MOBILE
   380px and below
   Hide brand text to protect CTA + quick access.
========================= */
@media (max-width: 380px) {

  .header-inner {
    padding: 0 12px;
  }

  .logo {
    flex: 0 0 auto;
  }

  .logo-text {
    display: none;
  }

  .logo-image {
    width: 42px;
    height: 42px;
  }

  .header-cta,
  .site-header .hero-free-btn {
    padding: 0 12px !important;
    font-size: 0.78rem !important;
  }
}


/* =========================
   EXTRA TINY MOBILE
   340px and below
   Icon-only CTA if needed.
========================= */
@media (max-width: 340px) {

  .header-cta,
  .site-header .hero-free-btn {
    width: 40px !important;
    padding: 0 !important;
  }

  .header-cta span,
  .site-header .hero-free-btn span {
    display: none !important;
  }
}



  /* ===============================
     HERO
  ================================= */

  .hero{
    min-height: auto;
	padding-top: 80px;
    padding: 90px 0 40px;
  }

  .hero-content{
    padding: 0 12px;
  }

  .hero-title{
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .hero-text{
    font-size: 0.9rem;
  }

  .hero-actions{
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .hero-btn{
    width: 70%;
  }

@media (max-width: 768px){

  .hero-trust{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    align-items: flex-start;
  }

  .hero-trust span{
    font-size: 0.68rem;
    padding: 5px 9px;
    max-width: 100%;
  }

}
/* ===============================
   FOOTER MOBILE FIX
================================ */

@media (max-width: 768px){

  .footer-top{
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 42px 0 24px;
  }

  .footer-brand-col{
    gap: 18px;
  }

  .footer-brand{
    max-width: 100%;
  }

  .footer-brand-text{
    margin: 16px 0 0;
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 100%;
  }

  .footer-actions{
    gap: 8px;
  }

  .footer-action-link{
    font-size: 0.84rem;
    padding: 8px 12px;
  }

  .footer-social{
    margin-top: 2px;
    justify-content: flex-start;
    gap: 8px;
  }

  .footer-links-grid{
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-col{
    padding-top: 0;
  }

  .footer-col h4{
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .footer-col ul{
    gap: 10px;
 }




/* ===============================
   TABLET (SMOOTH TRANSITION)
================================ */

@media (max-width: 1024px){

  .footer-top{
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-links-grid{
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 28px;
  }

}

@media (max-width: 640px) {
  .site-footer .footer-shell {
    width: calc(100% - 28px);
  }
}

/* ===============================
   TEMPLATE SYSTEM FIX
================================ */

@media (max-width: 900px){

  .template-library-grid{
    grid-template-columns: 1fr;
  }

  .template-library-wrap{
    padding: 16px;
  }

  .template-library-preview{
    position: static;
    border-left: none;
    padding-left: 0;
  }

}

@media (max-width: 700px){

  .template-search-filters{
    grid-template-columns: 1fr;
  }

  .template-search-input-wrap{
    flex-direction: column;
  }

  .template-search-input-wrap input,
  .template-search-input-wrap .btn{
    width: 100%;
  }

}
@media (max-width: 768px){

  .audit-widget{
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .audit-box{
    grid-template-columns: 1fr;
  }

  .audit-left,
  .audit-right{
    width: 100%;
  }

}


