/* =============================================
   Azure Template Library — Showcase
   ============================================= */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px;color:#111827;background:#fff;overflow-x:hidden;line-height:1.65;}
img{display:block;max-width:100%;}
a{color:inherit;text-decoration:none;}
button{cursor:pointer;background:none;border:none;font-family:inherit;}
ul{list-style:none;}

:root{
  --navy:   #0F1F3D;
  --blue:   #1A56DB;
  --teal:   #0E9F8B;
  --red:    #C0392B;
  --green:  #1A7A4A;
  --border: #E2E8F0;
  --surface:#F8FAFC;
  --muted:  #6B7280;
  --r:      5px;
  --ease:   cubic-bezier(0.22,1,0.36,1);
  --w:      88vw;
  --w-max:  1440px;
}

.tl-container{width:var(--w);max-width:var(--w-max);margin:0 auto;}

/* ── Buttons ── */
.tl-btn{display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 24px;font-size:14px;font-weight:700;letter-spacing:0.03em;background:var(--navy);color:#fff;border:2px solid var(--navy);border-radius:var(--r);transition:background 0.22s,box-shadow 0.22s;white-space:nowrap;}
.tl-btn:hover{background:#1a3566;border-color:#1a3566;box-shadow:0 4px 20px rgba(15,31,61,0.22);}
.tl-btn--lg{height:52px;padding:0 30px;font-size:15px;}
.tl-btn--full{width:100%;justify-content:center;height:50px;}

/* ── Tags ── */
.tl-tag{display:inline-block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.09em;padding:3px 9px;border-radius:3px;}
.tl-tag--blue {background:rgba(26,86,219,0.10);color:#1A56DB;}
.tl-tag--green{background:rgba(26,122,74,0.10);color:#1A7A4A;}
.tl-tag--teal {background:rgba(14,159,139,0.10);color:#0E9F8B;}
.tl-tag--red  {background:rgba(192,57,43,0.10);color:#C0392B;}
.tl-tag--dark {background:rgba(15,31,61,0.08);color:var(--navy);}
.tl-tag--grey {background:#F1F5F9;color:var(--muted);}

/* =============================================
   NAVBAR
   ============================================= */
.tl-navbar{position:sticky;top:0;z-index:200;background:rgba(255,255,255,0.96);border-bottom:1px solid var(--border);backdrop-filter:blur(8px);transition:box-shadow 0.3s;}
.tl-navbar.scrolled{box-shadow:0 2px 16px rgba(15,31,61,0.08);}
.tl-navbar-inner{height:64px;display:flex;align-items:center;gap:32px;}
.tl-brand{display:flex;align-items:center;gap:10px;}
.tl-brand-mark{width:32px;height:32px;background:var(--navy);color:#fff;border-radius:var(--r);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;letter-spacing:0.04em;flex-shrink:0;}
.tl-brand-mark--sm{width:24px;height:24px;font-size:9px;}
.tl-brand-name{font-size:16px;font-weight:800;color:var(--navy);}
.tl-brand-name b{color:var(--blue);}
.tl-nav{display:flex;align-items:center;gap:28px;margin-left:auto;}
.tl-nav-link{font-size:14px;font-weight:600;color:#4B5563;transition:color 0.2s;}
.tl-nav-link:hover{color:var(--navy);}
.tl-navbar-end{display:flex;align-items:center;gap:12px;flex-shrink:0;}
.tl-toggle{display:none;flex-direction:column;gap:5px;width:28px;padding:4px 0;}
.tl-toggle span{display:block;height:2px;background:var(--navy);border-radius:2px;transition:transform 0.3s,opacity 0.3s;}
.tl-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.tl-toggle.is-open span:nth-child(2){opacity:0;}
.tl-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* =============================================
   HERO
   ============================================= */
.tl-hero{background:var(--surface);border-bottom:1px solid var(--border);padding:80px 0 72px;}
.tl-hero h1{font-size:clamp(34px,4vw,58px);font-weight:800;color:var(--navy);letter-spacing:-0.03em;line-height:1.08;margin-bottom:18px;max-width:700px;}
.tl-hero p{font-size:17px;line-height:1.75;color:var(--muted);max-width:600px;margin-bottom:36px;}

/* =============================================
   TEMPLATES GRID
   ============================================= */
.tl-templates{padding:80px 0 96px;}
.tl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}

/* ── Card ── */
.tl-card{border:1px solid var(--border);border-radius:var(--r);overflow:hidden;background:#fff;transition:box-shadow 0.35s var(--ease),transform 0.35s var(--ease);}
.tl-card:hover{box-shadow:0 16px 48px rgba(15,31,61,0.12);transform:translateY(-4px);}

/* ── Scroll preview thumbnail ── */
.tl-thumb{
  display:block;
  position:relative;
  height:280px;          /* visible window */
  overflow:hidden;
  cursor:pointer;
}
.tl-thumb img{
  width:100%;
  height:auto;           /* full screenshot height */
  display:block;
  transform:translateY(0);
  transition:transform 5s cubic-bezier(0.25,0.46,0.45,0.94); /* slow smooth scroll */
  will-change:transform;
}
/* on hover: slide image up so user sees the rest of the page */
.tl-card:hover .tl-thumb img{
  transform:translateY(calc(-100% + 280px));
}
/* overlay with open button */
.tl-thumb-open{
  position:absolute;
  bottom:12px;right:12px;
  background:rgba(15,31,61,0.85);
  color:#fff;
  font-size:12px;font-weight:700;
  padding:7px 14px;
  border-radius:var(--r);
  display:flex;align-items:center;gap:6px;
  opacity:0;
  transition:opacity 0.25s;
  pointer-events:none;
}
.tl-card:hover .tl-thumb-open{opacity:1;}
.tl-thumb-open .ti{font-size:14px;}

/* ── Card body ── */
.tl-card-body{padding:22px 24px 24px;}
.tl-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px;}
.tl-card-body h2{font-size:17px;font-weight:800;color:var(--navy);letter-spacing:-0.01em;margin-bottom:8px;line-height:1.3;}
.tl-card-body p{font-size:13px;line-height:1.72;color:var(--muted);margin-bottom:16px;}
.tl-cta{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--blue);transition:gap 0.2s,color 0.2s;}
.tl-cta:hover{gap:10px;color:#1240b0;}
.tl-cta .ti{font-size:14px;}

/* =============================================
   CONTACT
   ============================================= */
.tl-contact{background:var(--surface);border-top:1px solid var(--border);padding:80px 0;}
.tl-contact-inner{display:grid;grid-template-columns:1fr 1.4fr;gap:64px;align-items:start;}
.tl-contact-copy h2{font-size:30px;font-weight:800;color:var(--navy);letter-spacing:-0.02em;margin-bottom:12px;line-height:1.2;}
.tl-contact-copy p{font-size:15px;line-height:1.8;color:var(--muted);margin-bottom:28px;}
.tl-channels{display:flex;flex-direction:column;gap:12px;}
.tl-channel{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--border);border-radius:var(--r);padding:14px 18px;transition:border-color 0.2s,box-shadow 0.2s;}
.tl-channel:hover{border-color:var(--blue);box-shadow:0 4px 14px rgba(26,86,219,0.08);}
.tl-channel>.ti{font-size:22px;color:var(--blue);flex-shrink:0;}
.tl-channel div{display:flex;flex-direction:column;}
.tl-channel span{font-size:11px;text-transform:uppercase;letter-spacing:0.1em;color:var(--muted);}
.tl-channel strong{font-size:14px;font-weight:700;color:var(--navy);}
.tl-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.tl-field{display:flex;flex-direction:column;gap:5px;margin-bottom:12px;}
.tl-field label{font-size:11px;font-weight:700;color:var(--navy);text-transform:uppercase;letter-spacing:0.08em;}
.tl-form input,.tl-form textarea{width:100%;border:1px solid var(--border);background:#fff;border-radius:var(--r);padding:0 13px;font-family:inherit;font-size:14px;color:#111827;outline:none;transition:border-color 0.22s,box-shadow 0.22s;-webkit-appearance:none;appearance:none;}
.tl-form input{height:44px;}
.tl-form textarea{padding-top:11px;resize:vertical;}
.tl-form input:focus,.tl-form textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(26,86,219,0.1);}
.tl-form input::placeholder,.tl-form textarea::placeholder{color:#9CA3AF;}

/* =============================================
   FOOTER
   ============================================= */
.tl-footer{background:var(--navy);padding:24px 0;}
.tl-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.tl-footer-brand{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:#fff;}
.tl-footer p{font-size:13px;color:rgba(255,255,255,0.4);}

/* =============================================
   RESPONSIVE — 1100px
   ============================================= */
@media(max-width:1100px){
  :root{--w:92vw;}
  .tl-grid{grid-template-columns:repeat(2,1fr);gap:22px;}
}

/* =============================================
   RESPONSIVE — 768px
   ============================================= */
@media(max-width:768px){
  .tl-nav{display:none;position:fixed;inset:64px 0 0 0;background:#fff;flex-direction:column;align-items:flex-start;padding:24px 24px;gap:0;border-top:1px solid var(--border);z-index:199;overflow-y:auto;}
  .tl-nav.is-open{display:flex;}
  .tl-nav-link{font-size:17px;font-weight:700;padding:13px 0;width:100%;border-bottom:1px solid var(--border);}
  .tl-toggle{display:flex;}
  .tl-navbar-end .tl-btn{display:none;}
  .tl-hero{padding:56px 0 52px;}
  .tl-hero h1{font-size:30px;}
  .tl-hero p{font-size:15px;}
  .tl-templates{padding:56px 0 72px;}
  .tl-grid{grid-template-columns:1fr;gap:20px;}
  .tl-thumb{height:260px;}
  .tl-card:hover .tl-thumb img{transform:translateY(calc(-100% + 260px));}
  .tl-contact{padding:56px 0;}
  .tl-contact-inner{grid-template-columns:1fr;gap:40px;}
  .tl-form-row{grid-template-columns:1fr;}
  .tl-footer-inner{flex-direction:column;align-items:flex-start;gap:8px;}
}

/* =============================================
   RESPONSIVE — 480px
   ============================================= */
@media(max-width:480px){
  :root{--w:94vw;}
  .tl-hero h1{font-size:26px;}
  .tl-card-body{padding:18px 18px 20px;}
  .tl-thumb{height:220px;}
  .tl-card:hover .tl-thumb img{transform:translateY(calc(-100% + 220px));}
}
