/* ===== Boston Aluminium Blog Styles v1 ===== */
/* ===== RESET & BASE ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',Arial,sans-serif;
  color:#111;background:#f5f5f5;
  line-height:1.5;overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
ul{list-style:none}
button{cursor:pointer;font-family:inherit;background:none;border:none}
:focus-visible{outline:2px solid #2e79ff;outline-offset:3px}
.container{max-width:1200px;margin:0 auto;padding:0 24px}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,.logo{font-weight:800}
.label{
  font-size:11px;font-weight:600;letter-spacing:2.5px;
  text-transform:uppercase;color:#2e79ff;margin-bottom:10px;
}

/* ===== REVEAL ===== */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease}
.reveal.visible{opacity:1;transform:translateY(0)}

/* ===== HEADER ===== */
.site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid #e8eaef}
.site-header.scrolled{box-shadow:0 2px 20px rgba(0,0,0,.08)}
.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:0 40px;max-width:1200px;margin:0 auto}
.brand{width:180px;flex-shrink:0}
.brand img{width:100%;height:auto}
.nav-links{display:flex;align-items:center;gap:28px}
.nav-links a{font-size:15px;font-weight:800;color:#071d3f;font-family:"Barlow Condensed","Arial Narrow",Arial,sans-serif;text-transform:uppercase;white-space:nowrap;transition:color .18s}
.nav-links a:hover{color:#2073df}
.nav-icons{display:flex;align-items:center;gap:16px}
.nav-icon-btn{background:none;border:none;cursor:pointer;padding:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;line-height:0}
.nav-icons svg{width:20px;height:20px;color:#0d2344;transition:color .2s}
.nav-icons svg:hover{color:#2e79ff}
.nav-icons .cart-wrap{position:relative;display:flex;align-items:center;justify-content:center;width:20px;height:20px}
.cart-count{position:absolute;top:-6px;right:-6px;width:16px;height:16px;border-radius:50%;background:#2e79ff;color:#fff;font-size:9px;font-weight:600;display:flex;align-items:center;justify-content:center}
.hamburger{display:none;flex-direction:column;gap:4px;cursor:pointer;background:none;border:none;padding:4px}
.hamburger span{width:22px;height:2px;background:#071d3f;display:block;transition:.3s}
.mobile-menu{display:none;position:fixed;inset:0;z-index:200;background:rgba(255,255,255,.98);flex-direction:column;align-items:center;justify-content:center;gap:24px;opacity:0;transform:translateY(-16px);transition:opacity .35s,transform .35s}
.mobile-menu.open{display:flex;opacity:1;transform:translateY(0)}
.mobile-menu a{font-size:22px;font-weight:700;color:#071d3f;font-family:"Barlow Condensed","Arial Narrow",Arial,sans-serif;text-transform:uppercase}
.mobile-menu a:hover{color:#2073df}
.mobile-close{position:absolute;top:20px;right:24px;background:none;border:none;font-size:36px;cursor:pointer;color:#071d3f}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar{background:#fff;border-bottom:1px solid #eee;padding:12px 0}
.breadcrumb-nav{display:flex;align-items:center;gap:10px;font-size:13px;list-style:none}
.breadcrumb-nav a{color:#666;transition:color .2s}
.breadcrumb-nav a:hover{color:#2e79ff}
.bc-sep{color:#ccc;font-size:12px}
.bc-current{color:#0d2344;font-weight:600}

/* ===== JOURNAL HERO ===== */
.journal-hero{background:#fff;padding:52px 0 32px;text-align:center;border-bottom:1px solid #eee}
.journal-title{
  font-size:clamp(28px,3.5vw,42px);
  font-weight:800;color:#0a2d5a;
  margin-bottom:10px;text-transform:uppercase;
}
.journal-sub{font-size:16px;color:#666;max-width:560px;margin:0 auto 28px;line-height:1.5}
.category-bar{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.cat-btn{
  padding:8px 20px;border-radius:4px;
  font-size:13px;font-weight:600;color:#666;
  background:#f0f2f5;transition:all .2s;
}
.cat-btn:hover,.cat-btn.active{background:#2e79ff;color:#fff}

/* ===== FEATURED POST ===== */
.featured-section{padding:40px 0}
.featured-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:32px;
  background:#fff;border-radius:6px;overflow:hidden;
  border:1px solid #eee;transition:box-shadow .3s;
}
.featured-grid:hover{box-shadow:0 8px 30px rgba(0,0,0,.08)}
.featured-img-wrap{
  aspect-ratio:16/10;overflow:hidden;position:relative;
  background:#e9edf2;
}
.featured-img-wrap img{width:100%;height:100%;object-fit:cover}
.featured-img-tag{
  position:absolute;top:16px;left:16px;
  background:#2e79ff;color:#fff;
  font-size:11px;font-weight:700;letter-spacing:.5px;
  padding:5px 14px;border-radius:3px;text-transform:uppercase;
}
.featured-info{padding:28px 32px 28px 0;display:flex;flex-direction:column;justify-content:center}
.featured-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px;font-size:12px;color:#888}
.meta-cat{color:#2e79ff;font-weight:600;text-transform:uppercase;letter-spacing:.5px}
.meta-sep{color:#ccc}
.featured-heading{
  font-size:clamp(20px,2.2vw,28px);font-weight:800;
  color:#0a2d5a;margin-bottom:10px;line-height:1.3;
}
.featured-excerpt{font-size:14px;color:#666;line-height:1.6;margin-bottom:16px}
.read-more{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13px;font-weight:700;color:#2e79ff;
  transition:gap .2s;
}
.read-more:hover{gap:10px}
.featured-author{display:flex;align-items:center;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid #eee}
.author-avatar-sm{
  width:38px;height:38px;border-radius:50%;
  background:#d0dae6;display:flex;align-items:center;
  justify-content:center;font-size:14px;font-weight:700;color:#2e79ff;
}
.author-name{font-size:13px;font-weight:600;color:#0d2344}
.author-title{font-size:11px;color:#999}

/* ===== POSTS SECTION ===== */
.posts-section{padding:0 0 60px}
.posts-header{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:28px;flex-wrap:wrap;gap:12px;
}
.posts-count{font-size:14px;color:#888;font-weight:500}
.sort-select{
  appearance:none;padding:8px 36px 8px 14px;
  border:1px solid #ddd;border-radius:4px;
  font-size:13px;font-weight:500;color:#333;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center;
  cursor:pointer;font-family:'Inter',sans-serif;
}

/* ===== POST GRID ===== */
.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.post-card{
  background:#fff;border:1px solid #eee;border-radius:6px;
  overflow:hidden;transition:transform .3s,box-shadow .3s;
}
.post-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.06)}
.post-img-wrap{
  aspect-ratio:16/10;overflow:hidden;position:relative;
  background:#e9edf2;
}
.post-img-wrap img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.post-card:hover .post-img-wrap img{transform:scale(1.06)}
.post-cat-tag{
  position:absolute;bottom:10px;left:10px;
  background:rgba(13,35,68,.75);backdrop-filter:blur(4px);
  color:#fff;font-size:10px;font-weight:600;letter-spacing:.4px;
  padding:4px 10px;border-radius:3px;text-transform:uppercase;
}
.post-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:14px 14px 0;font-size:11px;color:#999}
.post-meta-cat{color:#2e79ff;font-weight:600;text-transform:uppercase;letter-spacing:.3px}
.post-meta-dot{width:3px;height:3px;border-radius:50%;background:#ccc}
.post-title{
  font-size:16px;font-weight:700;color:#0d2344;
  padding:8px 14px 0;line-height:1.3;
  transition:color .2s;
}
.post-card:hover .post-title{color:#2e79ff}
.post-excerpt{font-size:13px;color:#888;line-height:1.5;padding:6px 14px 0}
.post-footer{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px;margin-top:8px;border-top:1px solid #f0f0f0;
}
.post-author-sm{display:flex;align-items:center;gap:8px}
.author-avatar-circle{
  width:28px;height:28px;border-radius:50%;
  background:#d0dae6;display:flex;align-items:center;
  justify-content:center;font-size:11px;font-weight:700;color:#2e79ff;
}
.post-author-name{font-size:12px;font-weight:500;color:#666}
.btn-ghost{font-size:12px;font-weight:600;color:#2e79ff;transition:opacity .2s}

/* ===== PAGINATION ===== */
.pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:40px}
.page-btn{
  width:38px;height:38px;display:flex;align-items:center;
  justify-content:center;border:1px solid #ddd;border-radius:4px;
  font-size:13px;font-weight:600;color:#555;transition:all .2s;
}
.page-btn:hover{border-color:#2e79ff;color:#2e79ff}
.page-btn.active{background:#2e79ff;color:#fff;border-color:#2e79ff}
.page-btn.disabled{opacity:.35;pointer-events:none}
.page-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}

/* ===== NEWSLETTER ===== */
.email-strip{background:#051f3e;padding:52px 0;color:#fff}
.email-strip-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:32px;flex-wrap:wrap;
}
.email-strip h2{font-size:clamp(20px,2.5vw,28px);font-weight:800;margin-bottom:6px}
.email-strip p{font-size:14px;color:rgba(255,255,255,.6);max-width:400px;line-height:1.5}
.email-form{display:flex;min-width:340px}
.email-input{
  flex:1;padding:12px 16px;border:none;
  font-size:14px;font-family:'Inter',sans-serif;
  border-radius:4px 0 0 4px;outline:none;
}
.email-submit{
  padding:12px 24px;background:#2e79ff;color:#fff;
  border:none;font-size:14px;font-weight:600;
  cursor:pointer;font-family:'Inter',sans-serif;
  border-radius:0 4px 4px 0;transition:background .2s;
}
.email-submit:hover{background:#1a5fee}
.nl-toast{font-size:13px;color:#5b8cc0;margin-top:10px;display:none;font-weight:500}

/* ===== FOOTER ===== */
.footer-wrap{background:#061f45}
.footer{position:relative;display:grid;grid-template-columns:31.6% 34.8% 1fr;min-height:96px;color:#fff;gap:0;max-width:1200px;margin:0 auto}
.footer-logo-panel{display:flex;align-items:center;padding-left:40px;background:#fff;clip-path:polygon(0 0,86% 0,100% 100%,0 100%)}
.footer-logo-panel img{width:180px;height:auto}
.footer-touch{display:flex;align-items:center;gap:18px;padding-left:80px;margin-left:-70px;background:linear-gradient(125deg,#145ab7 0%,#1269cc 52%,#0c3474 100%);clip-path:polygon(0 0,84% 0,100% 100%,14% 100%)}
.footer-icon{flex:0 0 auto;width:36px;height:36px;color:#fff}
.footer-icon svg{width:100%;height:100%;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.footer-touch h2{margin:0 0 6px;font-family:"Barlow Condensed","Arial Narrow",Arial,sans-serif;font-size:19px;font-weight:800;line-height:1;text-transform:uppercase}
.footer-touch p{margin:0;color:rgba(255,255,255,.94);font-size:14px;line-height:1.3}
.footer-contact{display:grid;align-content:center;gap:14px;padding-left:60px;background:#071f45}
.contact-item{display:flex;align-items:center;gap:14px;color:#fff;font-size:15px;font-weight:700;line-height:1}
.contact-item svg{width:24px;height:24px;flex-shrink:0;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* ===== BACK TO TOP ===== */
.btt{
  position:fixed;bottom:28px;right:28px;
  width:42px;height:42px;border-radius:50%;
  background:#0d2344;color:#fff;border:none;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  font-size:17px;opacity:0;transform:translateY(16px);
  transition:all .3s;z-index:50;box-shadow:0 4px 16px rgba(0,0,0,.15);
}
.btt.visible{opacity:1;transform:translateY(0)}
.btt:hover{background:#2e79ff}

/* ===== CART TOAST ===== */
.cart-toast{
  position:fixed;bottom:80px;right:28px;
  background:#0d2344;color:#fff;padding:12px 20px;
  border-radius:4px;font-size:13px;font-weight:500;
  box-shadow:0 6px 24px rgba(0,0,0,.2);
  opacity:0;transform:translateY(10px);
  transition:all .3s;z-index:60;pointer-events:none;
}
.cart-toast.show{opacity:1;transform:translateY(0)}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .featured-grid{grid-template-columns:1fr}
  .featured-info{padding:24px}
  .posts-grid{grid-template-columns:repeat(2,1fr)}
  .email-strip-inner{flex-direction:column;text-align:center}
  .email-form{min-width:0;width:100%;max-width:420px}
  .header-inner{padding:16px 24px}
  .footer{grid-template-columns:1fr}
  .footer-logo-panel,.footer-touch,.footer-contact{clip-path:none;padding:28px 24px;justify-content:center;text-align:center}
  .footer-touch{padding-left:24px;margin-left:0}
  .footer-contact{padding-left:24px;justify-items:center}
}
@media(max-width:768px){
  .nav-links{display:none}
  .hamburger{display:flex}
  .posts-grid{grid-template-columns:1fr}
  .footer{padding:48px 24px 0}
}
@media(max-width:480px){
  .header-inner{padding:14px 16px}
  .featured-info{padding:16px}
  .email-strip{padding:40px 0}
}
