/* Import Font Awesome for social media icons */



:root{
    --back:#fff;
    --text:#1a1f24;
    --muted:#6b7280;
    --apnblue:#005397;
    --apngreen:#51B948;
    --apnorange:#f58021;
    --darkgrey:#2e2e2e;
    --hovergrey:rgba(168, 166, 166, 0.2);
    /* footer styles */
    --f-primary:#2c3e50;
    --f-secondary: #34495e;
    --f-accent: #3498db;
    --f-light:#ecf0f1;
    --f-success: #27ae60;
    --f-warning: #f39c12;
    --f-alert:#e74c3c;
    --f-text:#2c3e50;
    --f-text-light: #7f8c8d;
    --f-border:rgba(189, 195, 199, 0.5);
    --f-shadow: rgba(44,62,80,0.15);
    --f-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --footer-height: 80px;
}



*{
    box-sizing:border-box;
    margin:0;
    padding:0;

}

html{
    height:100%;
    margin: 0;
}

body{
    display:flex;
    flex-direction:column;
    min-height:100vh;
    font-family: system-ui, -apple-system, Segoe Ui, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--back);
    
}


main{
  flex: 1 1 auto;
  display: block;
  min-height: auto;
  box-sizing: border-box;
  padding-top: 80px; 
}

main.site-main, main {
  flex: 1 1 auto;
  display: block;
  box-sizing: border-box;
  padding-bottom: 0;
  min-height:0;
  
}



footer{
  flex-shrink: 0;
  position: relative;
  text-align:center;
  padding:1rem;
  background: var(--f-light);
}

section, main, footer {
  height: auto;
  scroll-snap-align: start;
}

/*=========== Nav ===========*/

.site-header {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0;
  height: 64px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  z-index: 1000;
  background: none;          
  backdrop-filter: none;    
}



.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* logo */
.brand img{
  display: block;
  height:40px;
}


.nav-links {
  display: flex;
  gap: 15px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav-links a:hover {
  color:var(--darkgrey);
  background: var(--hovergrey);
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
}

/* site header when scrolled */
.site-header.scrolled{
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px) saturate(110%);
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: var(--f-transition);
}

.site-header.scrolled .nav-toggle span{
    background: var(--darkgrey);
}

/* nav-links when scrolled */
.nav-links.scrolled a,
.site-header.scrolled,.nav-links a {
    color: var(--darkgrey);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    background: transparent;
    transition: color .2s ease, background .2s ease;
}

/* smooth default transition */
.nav-links a {
    transition: color .2s ease, background .2s ease;
}

.contact-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  border:none;
  cursor:pointer;
  background: #f58021;
}

.contact-btn a{
  background: #f58021;
  color: #fff;
  text-decoration: none;
  font-weight: 600;

  cursor:pointer;
  transition: background .15s ease;
}
.contact-btn:hover{
  background: #cc6b1c;
}


/* Hamburger toggle*/
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  position: fixed;
  top: 16px;
  right: 5vw;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 24px; 
  height: 2px;
  background: var(--muted);
  margin: 5px 0;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/*============Clients PAGE STYLES==================*/

.page{
    display:block;
    padding:0 5vw 40px 5vw;
    min-height: calc(100vh - var(--footer-height));
    box-sizing: border-box;
    background: var(--f-light);
    scroll-behavior:smooth;
    padding-bottom:0 !important;
    
}


.page-title{
    font-size:2rem;
    font-weight:700;
    color:var(--apnblue);
    margin-bottom:10px;
}

.page-header{
    display:flex;
    flex-direction:column;
    align-items:left;
    justify-content:left;
    text-align:left;
    padding:60px 20px 20px 20px;
}

.section-subtitle{
    font-size:1.1rem;
    color:var(--muted);
    margin-bottom:30px;
    max-width:600px;
}


.clients-container{
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    gap:30px;
    max-width:100%;
    padding:25px;
}

.clients-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
    gap:20px;
}

.client-card{
    background:#fff;
    border-radius:12px;
    box-shadow:0 2px 16px rgba(0,0,0,0.08);
    padding:10px;
    display:flex;
    flex-direction:column;
    gap:15px;
}

.clients-logo{
    display:flex;
    align-items:center;
    justify-content:center;
    height:100px;
    margin-bottom:5px;
}

.clients-logo img{
    height:100%;
    width:auto;
    object-fit:contain;
}


/* ============= DA FOOoTAR ===================*/

.site-footer{
    flex: 0 0 auto;
    display:flex;
    flex-shrink:0;
    position: sticky;
    z-index:1;
    width:100%; 
    background:var(--back); 
    box-shadow:0 -2px 16px rgba(0,0,0,0.08); 
    flex-wrap:wrap; 
    justify-content:center; 
    align-items:flex-start; 
    padding:10px 5vw 10px 5vw; 
    font-size:0.95rem;
    
}

/*mobile collapsible panel*/
.portal-footer{
    width:100%;
    max-width:1100px;
    background:var(--back);
    border-radius:12px 12px 0 0;
    box-shadow: 0 -4px 20px var(--f-shadow);
}

.footer-col{
    flex:1 1 120px;
    min-width:120px;
    margin-bottom:12px;
    display:flex;
    flex-direction: column;
    /* align-items: flex-start; */
    /* justify-content: flex-start; */
}

.footer-toggle{
    width:100%;
    padding: 8px 0px;
    background: none;
    border: none;
    color: #fff;
    display: flex;
    justify-content:space-between;
    align-items: center;
    cursor: pointer;
    user-select:none;

}


.footer-toggle .plus {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  position: relative;
  vertical-align: middle;
}





.toggle-title{
    font-weight:600;
    font-size:14px;
    display:flex;
    align-items: center;
    gap:8px;
}

.toggle-control{
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-control .status{
    font-size:12px;
   opacity:.9;
}


/*.toggle-arrow{
    font-size:18px;
    transition:var(--f-transition);
}
  .toggle-arrow.open{
    transform:rotate(180deg);}
*/
  .footer-content{
    max-height:0; 
    overflow:hidden;
    transition:max-height .5s cubic-bezier(0,1,0,1);
    border-top:1px solid var(--f-border);
    background:#fff;
  }
  .footer-content.expanded{
    max-height: 70vh;
    transition:max-height .5s cubic-bezier(.25,.8,.25,1);
    overflow:auto;
  }

  /* Footer inner responsiveness */
  .footer-sections{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    padding:24px;
  }
  .footer-section{
    flex:1 1 220px;
    display:flex;
    flex-direction:column;
  }


  .section-title{
    font-size:14px; 
    font-weight:600; 
    color:var(--f-secondary);
    margin-bottom:15px; 
    position:relative; 
    display:flex; 
    align-items:center; 
    gap:8px;
  }
  .section-title::after{
    content:''; 
    position:absolute; 
    left:0; 
    bottom:-5px; 
    width:30px; 
    height:2px; 
    background:var(--f-accent);
    transition:var(--f-transition);
  }
  .footer-section:hover .section-title::after{ width:100%; }

  .section-links{ 
    display:flex; 
    flex-direction:column; 
    gap:10px; 
    list-style:none; 
    padding:0; 
    margin:0;
    list-style:none;
}

  .link-item{
    font-size:13px; 
    color:var(--f-text-light);
    text-decoration:none;
    display:flex; 
    align-items:center; 
    gap:8px; 
    transition:var(--f-transition);
  }

  .link-item:hover{
    /* text-decoration:underline; */
    color:var(--f-accent); 
    transform:translateX(5px); }

  .badge{
    display:inline-flex; 
    align-items:center; 
    justify-content:center;
    border-radius:10px; 
    font-size:10px; 
    font-weight:500; 
    height:18px; 
    padding:0 6px; 
    margin-left:5px;
    color:#fff;
  }
  .badge.new{ 
    background-color:var(--f-success); 
  }
  .badge.updated{ 
    background-color:var(--f-warning); 
  }

  .footer-bottom{
    background:#f5f7fa;
    border-top:1px solid var(--f-border);
    padding:15px 24px;
    display:flex; 
    justify-content:space-between; 
    align-items:center;
    font-size:12px; 
    color:var(--f-text-light);
  }
  .footer-actions{ 
    display:flex; 
    align-items:center; 
    gap:15px; }

    .footer-social{
    display:flex; 
    align-items:center; 
    gap:10px;
    justify-content:center;
    flex-wrap:wrap;
    /*margin-top:5px;*/
    width:100%;
    height: 15%;
    }

  .footer-social a{
    color:var(--f-text-light);
    text-decoration:none;
    transition:var(--f-transition);
    text-align:center; 
     font-size:2.9em;
  }

  .footer-copyright{
    font-size:12px; 
    color:var(--f-text-light);
    width:100%; 
    text-align:center;
     margin-top:5px; 
     font-size:0.9em; 
     color:#444;
  }

  .action-button{
    background:none; 
    border:none; 
    color:var(--f-text-light); cursor:pointer;
    display:flex; 
    align-items:center; 
    gap:5px; 
    font-size:12px; 
    transition:var(--f-transition);
  }
  .action-button:hover{ 
    color:var(--f-accent); 
}

footer a {
  color: var(--f-text-light);
  text-decoration: none;
  transition: var(--f-transition);
}

footer a:hover {
  color: var(--f-accent); 
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}


@media (max-width: 1360px){
    .clients-grid{
      grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
    }
  }

@media (max-width: 1200px){
    .clients-grid{
      grid-template-columns:repeat(auto-fit, minmax(130px, 1fr));
    }
  }


  /* Tablets */

@media (max-width: 1024px){
    .page{ flex-direction:column;
     padding-top: 75px;}
     .page{
       padding: 25px 18px 20px 18px;
     }

     .clients-container{
      padding:15px;
    }

    .clients-grid{
      grid-template-columns:repeat(auto-fit, minmax(120px, 1fr));
      gap:15px;
    }

     .footer-content.expanded{
      max-height: 50vh;
      overflow:auto;
      max-height: 50vh;
      overflow:auto;
    }
    
    .page-title{
      font-size:1.8rem;
      line-height: 1.2;
      margin-bottom: 15px;
      padding-bottom: 12px;
      padding-top: 50px;
    }


  }

  /* Mobile */
@media (max-width: 900px) {
    
    .page{
      padding: 25px 18px 20px 18px;
    }   
.clients-grid{
      grid-template-columns:repeat(auto-fit, minmax(100px, 1fr));
      gap:12px;
    }

    .nav-toggle { display: block; }

  .nav-links {
    text-align: center;
    display: none;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
    padding: 12px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
  }
  .nav-links a {
    background: rgba(52,73,98,0.25);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border:none;
    cursor:pointer;
  }
  .contact-btn a{
  background: #f58021;

}
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 55px;
    right: 5vw;
    transition: var(--f-transition);
  }

  .nav-links.open.scrolled {
    display: flex;
    position: fixed;
    top: 55px;
    right: 5vw;
    transition: var(--f-transition);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px) saturate(110%);
    -webkit-backdrop-filter: blur(8px) saturate(110%);
  }

  .nav-links a:hover {
  background: rgba(255,255,255,0.95);
}

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

.contact-btn a:hover {
  background: none;
}

.site-header{
      justify-content: space-between;
    }
.page{ padding-bottom: 12px;}


  }
@media (max-width: 768px){
    .clients-grid{
      grid-template-columns:repeat(auto-fit, minmax(80px, 1fr));
      gap:10px;
    }
  }
  
@media screen and (max-width: 600px) {
  .footer-sections {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  .footer-section {
    flex: 1 1 100%;
  }
  .client-grid {
    grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
    gap: 5px;
  }
  .client-card {
    padding: 7px;
    gap: 10px;
  }
    .clients-logo {
        height: 80px;
        margin-bottom: 5px;
    }
} 

@media (max-width: 594px){
    .clients-grid{
      grid-template-columns:repeat(auto-fit, minmax(70px, 1fr));
      gap:8px;
    }
    .client-card{
      padding:6px;
      gap:8px;
    }
    .clients-logo{
      height:60px;
      margin-bottom:2px;
    }
  } 

  @media (max-width: 530px){

    main{
        padding-top: 70px;
        overflow-y: visible;
    }
    
    .page { 
        padding: 20px 12px 12px 12px;
    }

    .site-footer{
      padding:10px 12px 10px 12px;
      overflow-y: visible;
    }
    .clients-grid{
      grid-template-columns:repeat(auto-fit, minmax(65px, 1fr));
      gap:3px;
    }
    .client-card{
      padding:5px;
      gap:10px;
    }
    .clients-logo{
      height:60px;
      margin-bottom:3px;
    }
  }

