@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@800,700,500&f[]=satoshi@400,500,700&display=swap');

:root{
  --brand-900:#1e4a5b;
  --brand-950:#163744;
  --ink:#0b1220;
  --paper:#fbfcfd;
  --muted:#6b7280;
  --ring: rgba(30,74,91,.25);
  --header-height: 5rem;
  --container-max: 80rem;
  --container-pad: 1.5rem;
}

@media (max-width: 767px){
  :root{
    --header-height: 4rem;
  }
}

html{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width:100%;
  overflow-x:hidden;
}
body{
  font-family:'Satoshi',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:var(--paper);
  max-width:100%;
  overflow-x:hidden;
}
@supports (overflow: clip){
  html,body{ overflow-x:clip; }
}
h1,h2,h3,h4{ font-family:'Cabinet Grotesk',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; letter-spacing:-.02em; }
.site-main{ padding-top: var(--header-height); }

@view-transition { navigation: auto; }
::view-transition-old(main-content){ animation:.28s ease-out both fade-out; }
::view-transition-new(main-content){ animation:.28s ease-in .06s both fade-in; }
@keyframes fade-out{ from{opacity:1} to{opacity:0} }
@keyframes fade-in{ from{opacity:0} to{opacity:1} }

.reveal-on-scroll{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on-scroll.visible{ opacity:1; transform: translateY(0); }
details summary::-webkit-details-marker{ display:none; }

/* Logo */
.logo{ text-decoration:none; }
.logo-textblock{ display:flex; flex-direction:column; justify-content:center; line-height:1.05; white-space:nowrap; }
.logo-title{ font-weight:800; color:#000; font-size:32px; }
.logo-tagline{ font-weight:500; color:#000; font-size:16px; margin-top:2px; }
.logo-icon{ width:auto; flex:0 0 auto; display:block; }
.logo--header .logo-icon{ height:56px; }
.logo--footer .logo-icon{ height:48px; }
.logo--footer .logo-title{ font-size:26px; }
.logo--footer .logo-tagline{ font-size:14px; }

@media (max-width:767px){
  #siteHeader > div{
    height: 4rem;
  }
  .logo--header .logo-icon{ height:40px; }
  .logo--header .logo-title{ font-size:20px; }
  .logo--header .logo-tagline{ display:none; }
  .logo--footer .logo-icon{ height:40px; }
  .logo--footer .logo-title{ font-size:22px; }
  .logo--footer .logo-tagline{ font-size:12px; }
}

/* Modern hero background */
.hero-home{
  --hero-header-offset: var(--header-height);
  position:relative;
  display:flex;
  align-items:center;
  min-height: calc(100svh - var(--hero-header-offset));
  padding-block: clamp(2.5rem, 7vh, 5.25rem);
  isolation:isolate;
  background-image:
    radial-gradient(1000px 500px at 14% 14%, rgba(22,55,68,.48) 0%, rgba(22,55,68,0) 62%),
    linear-gradient(115deg, rgba(8,16,24,.58) 0%, rgba(8,16,24,.33) 46%, rgba(8,16,24,.12) 100%),
    url('images/home/home-hero-pvc-windows-lake-view-1536w.webp?v=20260303-2');
  background-size: cover;
  background-position: center right 10%;
  background-repeat:no-repeat;
}
.hero-home:after{
  content:"";
  position:absolute; inset:0;
  background-image: radial-gradient(circle at 80% 28%, rgba(255,255,255,.12), rgba(255,255,255,0) 55%);
  pointer-events:none;
}
.hero-home .hero-content{
  position:relative;
  z-index:1;
  width:min(100%, var(--container-max));
  margin-inline:auto;
  padding-inline: var(--container-pad);
}

.hero-home .hero-copy{
  max-width: min(44rem, 100%);
  text-align:left;
}

.hero-home .hero-kicker{
  font-size: .82rem;
  letter-spacing: .16em;
  line-height: 1.25;
  margin-bottom: 1.15rem;
}

.hero-home .hero-title{
  font-size: clamp(2.7rem, 5.7vw, 5.25rem);
  line-height: 1.02;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.hero-home .hero-subtitle{
  font-size: clamp(1.08rem, 1.6vw, 1.52rem);
  line-height: 1.45;
  margin-bottom: 2rem;
  text-wrap: pretty;
}

.hero-home .hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.85rem;
}

.hero-home .hero-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 3.5rem;
  border-radius: 9999px;
}

.hero-home .hero-btn{
  padding-inline: 2.05rem;
  padding-block: .75rem;
  font-size: 1.13rem;
  line-height: 1.1;
}

@media (max-width:1024px){
  .hero-home{
    min-height: calc(84svh - var(--hero-header-offset));
    padding-block: clamp(2rem, 5.5vh, 3.4rem);
    background-position: 62% center;
  }
  .hero-home .hero-content{
    padding-inline: var(--container-pad);
  }
  .hero-home .hero-copy{
    max-width: min(38rem, 100%);
  }
  .hero-home .hero-title{
    font-size: clamp(2.35rem, 6.1vw, 4.15rem);
  }
  .hero-home .hero-subtitle{
    font-size: clamp(1rem, 2.1vw, 1.3rem);
    margin-bottom: 1.7rem;
  }
}

@media (max-width:767px){
  .hero-home{
    min-height: clamp(30rem, 64svh, 34rem);
    align-items:flex-start;
    padding-top: clamp(1rem, 3.6vh, 1.45rem);
    padding-bottom: 1rem;
    background-position: 62% center;
  }
  .hero-home .hero-content{
    padding-inline: var(--container-pad);
  }
  .hero-home .hero-copy{
    max-width: 100%;
  }
  .hero-home .hero-kicker{
    font-size: .72rem;
    letter-spacing: .14em;
    padding: .55rem 1rem;
    margin-bottom: 1rem;
  }
  .hero-home .hero-title{
    font-size: clamp(2.1rem, 9.8vw, 3.15rem);
    line-height: 1.05;
    margin-bottom: 1rem;
  }
  .hero-home .hero-subtitle{
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: .85rem;
  }
  .hero-home .hero-actions{
    gap: .55rem;
  }
  .hero-home .hero-actions a{
    width: 100%;
    justify-content: center;
    min-height: 3.15rem;
  }
  .hero-home .hero-btn{
    font-size: 1rem;
    padding-inline: 1.5rem;
  }
  .products-quick-grid{
    padding-top: .2rem;
    gap: .9rem;
  }
}

/* Subtle card polish */
.card-soft{
  border:1px solid rgba(15,23,42,.06);
  box-shadow: 0 12px 30px rgba(2,6,23,.06);
}

/* Hide visual scrollbar but keep scrolling */
.no-scrollbar{
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar{
  width: 0;
  height: 0;
  display: none;
}

.glass{
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border:1px solid rgba(255,255,255,.45);
  box-shadow: 0 18px 40px rgba(2,6,23,.10);
}

/* Portfolio filters */
.filter-btn{
  color:#0f172a;
  background:#fff;
  border-color: rgba(15,23,42,.12);
}
.filter-btn:hover{
  color:#163744;
  border-color: rgba(30,74,91,.45);
}
.filter-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(30,74,91,.18);
}
.filter-btn.active{
  color:#fff;
  border-color:#1e4a5b;
  background: linear-gradient(135deg, #2a5d71 0%, #1e4a5b 48%, #163744 100%);
  box-shadow: 0 10px 24px rgba(22,55,68,.24);
}
.filter-btn.active:hover{
  color:#fff;
  border-color:#163744;
}

.tabs-scroll{
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  justify-content: flex-start;
  margin: 0 -0.5rem 2.5rem;
  padding: 0 0.5rem 0.75rem;
  scroll-snap-type: x proximity;
}
.tabs-scroll::-webkit-scrollbar{
  width: 0;
  height: 0;
  display: none;
}
.tabs-scroll{
  scrollbar-width: none;
}
.tabs-scroll .filter-btn{
  flex: 0 0 auto;
  scroll-snap-align: start;
}

@media (min-width: 768px){
  .tabs-scroll{
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
    overflow-x: visible;
    margin: 0 0 2.5rem;
    padding: 0 0.5rem;
    scroll-snap-type: none;
    gap: 1rem;
  }
}

/* Header shadow on scroll */
#siteHeader.header-scrolled{ box-shadow: 0 12px 30px rgba(2,6,23,.08); }
