:root {
  --primary: #0A5C91;
  --accent:  #FF6B00;
  --text:    #222;
  --muted:   #666;
  --bg:      #f8fafc;
}

/* Base */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Header + Topbar */
header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 0; z-index: 1000;
}
.topbar { background: var(--primary); color:#fff; font-size:14px; }
.topbar-inner { display:flex; justify-content:space-between; align-items:center; padding:6px 0; }
.topbar a { color:#fff; text-decoration:none; }
.topbar a:hover { text-decoration:underline; }
.topbar .contact-info { display:flex; gap:10px; flex-wrap:wrap; }
.topbar .social a { margin-left:12px; font-weight:500; }

.navbar {
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:10px 0;
}
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }

/* ✅ Logo sizing (PNG/SVG) */
.brand img {
  height: 120px;        /* was 44px */
  width: auto;         /* keep aspect ratio */
  max-height: 140px;    /* safety cap */
}

.brand .name { font-weight:700; color:var(--primary); }

nav a {
  text-decoration:none; color:#333; padding:8px 10px; border-radius:6px;
}
nav a:hover { background:#eef3f7; color:var(--primary); }

/* (Optional) highlight the Download Brochure link */
#nav a#downloadBrochureNav { background: var(--accent); color:#fff; }
#nav a#downloadBrochureNav:hover { background:#e65c00; }

/* Buttons */
.btn { display:inline-block; padding:10px 16px; border-radius:8px; text-decoration:none; }
.btn-primary { background:var(--primary); color:#fff; }
.btn-accent  { background:var(--accent);  color:#fff; }

/* Hero */
.hero {
  background: linear-gradient(180deg, #fff, #f1f6fb 55%);
  padding:56px 0;
  border-bottom:1px solid #e5e7eb;
  text-align:center;
}
.hero h1 { margin:0; font-size:40px; color:var(--primary); }
.hero p  { color:var(--muted); margin-bottom:20px; }

/* Layout utilities */
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:16px; }
.card { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:16px; }
.card h3 { margin-top:0; color:var(--primary); }

.badges { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:16px; }
.badge  { background:#eef3f7; color:var(--primary); padding:6px 10px; border-radius:999px; font-size:14px; }

/* Footer */
footer {
  margin-top:40px; background:#f1f6fb; color:#333; padding:20px 0; font-size:14px;
}
footer a { color:#333; text-decoration:none; }
footer a:hover { text-decoration:underline; }
.footer-top { display:flex; gap:16px; justify-content:space-between; align-items:center; }
.footer-brand { display:flex; gap:10px; align-items:center; }

/* Footer logo sizing + ensure it displays */
.footer-brand .footer-logo {
  height: 100px !important;   /* adjust to taste (48–64px works well) */
  width: auto;
  display: block;
}


/* Tables */
.table { width:100%; border-collapse:collapse; background:#fff; }
.table th, .table td { padding:10px; border-bottom:1px solid #e5e7eb; text-align:left; }
.table th { color:var(--primary); background:#f7fbff; }

/* Forms */
.form input, .form textarea, .form select {
  width:100%; padding:10px; border:1px solid #e5e7eb; border-radius:8px;
}
.form label { display:block; margin:12px 0 6px; color:#333; }
.form button { margin-top:12px; }

/* Notices */
.notice { background:#fff7ed; border:1px solid #ffedd5; color:#9a3412; padding:10px; border-radius:8px; }

/* =========================
   Slider Engine (Base)
   ========================= */
.slider { position:relative; overflow:hidden; border-radius:12px; background:#fff; border:1px solid #e5e7eb; }
.slides { display:flex; transition: transform 0.5s ease; }
.slide  { min-width:100%; }
.slide img { display:block; width:100%; height:auto; }

/* Controls + dots */
.s-controls { position:absolute; inset:0; display:flex; justify-content:space-between; align-items:center; pointer-events:none; }
.s-btn { pointer-events:auto; background:rgba(0,0,0,0.45); color:#fff; border:none; width:44px; height:44px; border-radius:50%; font-size:20px; display:flex; align-items:center; justify-content:center; margin:0 8px; }
.s-dots { position:absolute; bottom:8px; left:0; right:0; display:flex; gap:6px; justify-content:center; }
.s-dot { width:10px; height:10px; border-radius:50%; background:#d1d5db; border:none; }
.s-dot.active { background:var(--primary); }

/* =========================
   Row Gallery Mode (Products)
   ========================= */
.slider.row { --cols:5; --gap:12px; }
.slider.row .slides { display:flex; gap:var(--gap); transform:none !important; will-change:auto; }
.slider.row .slide { flex:0 0 calc((100% - (var(--gap) * (var(--cols) - 1))) / var(--cols)); min-width:0; }
.slider.row .slide img {
  width:100%; height:auto; border-radius:8px; display:block;
  aspect-ratio: 4 / 3; object-fit: cover;
}
.slider.row .s-controls,
.slider.row .s-dots { display:none !important; }

/* =========================
   Home Page Carousels
   ========================= */
/* Category grid inside slides (older structure) */
.cat-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:14px; }
.cat-card { display:flex; flex-direction:column; text-decoration:none; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; background:#fff;
  transition: transform .15s ease, box-shadow .15s ease; }
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.cat-card img { width:100%; height:180px; object-fit:cover; display:block; }
.cat-card span { padding:10px 12px; color:var(--primary); font-weight:600; }

/* Single-image category hero slider (if used) */
.slider.cat-hero { --h: 320px; border: none; }
.slider.cat-hero .slide { min-width:100%; position:relative; display:block; border-radius:12px; overflow:hidden; }
.slider.cat-hero img { width:100%; height: var(--h); object-fit: cover; display:block; }
.slider.cat-hero .caption {
  position:absolute; left:16px; bottom:16px;
  background: rgba(10,92,145,0.85); color:#fff;
  padding:8px 12px; border-radius:8px; font-weight:600;
}
@media (max-width: 600px){ .slider.cat-hero { --h: 220px; } }

/* Horizontal category ribbon carousel (compact tiles in one line) */
.slider.cat-carousel .slides { display:flex; gap:14px; }
.slider.cat-carousel .slide { display:flex; gap:14px; }
.slider.cat-carousel .cat-card {
  flex:0 0 160px;
  display:flex; flex-direction:column;
  border:1px solid #e5e7eb; border-radius:12px; overflow:hidden;
  background:#fff; text-decoration:none;
}
.slider.cat-carousel .cat-card img { width:100%; height:110px; object-fit:cover; }
.slider.cat-carousel .cat-card span { padding:8px; font-size:14px; font-weight:600; color:var(--primary); text-align:center; }

/* Logos carousel (bigger logos) */
.slider.logos .logo-row {
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns: repeat(6, 1fr);
  gap:16px; align-items:center;
}
.slider.logos .logo-row img {
  max-width:100%; width:100%;
  height:120px;               /* increased from 60px earlier */
  object-fit:contain; aspect-ratio: 5 / 2;
  filter: grayscale(30%);
  background:#fff; padding:12px;
  border-radius:10px; border:1px solid #e5e7eb;
}

/* Testimonials carousel */
.testimonial-card {
  display:flex; gap:16px; align-items:center;
  background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:16px;
}
.testimonial-card img {
  width:84px; height:84px; border-radius:50%;
  object-fit:cover; aspect-ratio: 1 / 1;  /* square avatar */
}
.testimonial-card p { margin:0 0 6px; color:#333; }
.testimonial-card strong { color:var(--primary); }

/* Anchor offset for sticky header (section headings like #stationery) */
.section h2, h2[id] { scroll-margin-top: 110px; }

/* =========================
   Brochure Modal (single, consolidated)
   ========================= */
#brochureModal[hidden] { display: none !important; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: grid;
  place-items: center;
  z-index: 1200;
}

.modal {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  max-width: 520px;
  width: 92%;
  padding: 18px 16px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: fadeInScale .25s ease;
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #eef3f7;
  color: #0A5C91;
  font-size: 18px;
  cursor: pointer;
}
.modal-close:hover { background: #dbe6f1; }

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* Responsive tweaks */
@media (max-width: 900px){
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .slider.logos .logo-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px){
  .topbar-inner { flex-direction:column; gap:4px; text-align:center; }
}
@media (max-width: 560px){
  .cat-card img { height:150px; }
  .testimonial-card { flex-direction:column; text-align:center; }
}
