/* 
  Premiumify one-pager redesign
  Palette kept consistent with original brand feel.
*/

:root{
  --brand: #e05555;
  --brand-ink: #7c1b1b;
  --ink: #1a1111;
  --muted: #6b6464;
  --bg: #ffffff;
  --bg-alt: #faf8f8;
  --border: #ece8e8;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --wrap: clamp(16px, 4vw, 40px);
  --maxw: 1160px;
}

*{box-sizing:border-box}
html,body{margin:0}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A11y */
.visually-hidden{position:absolute !important;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden;white-space:nowrap}
.skip{position:absolute;left:-9999px;top:-9999px;background:#000;color:#fff;padding:.6rem .9rem;border-radius:10px}
.skip:focus{left:var(--wrap);top:10px;z-index:1000}

/* Layout */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--wrap)}
.section{padding:80px 0}
.section.alt{background:var(--bg-alt)}
.section-head{margin-bottom:22px}
.grid-2{display:grid;grid-template-columns:1.1fr .9fr;gap:28px}
.kicker{color:var(--muted)}

/* Typography */
h1,h2,h3{margin:0 0 10px}
.display{
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600; 
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  line-height: 1.1;
}
h2{font-size: clamp(1.6rem, 3vw, 2.2rem)}
h3{font-size: clamp(1.15rem, 2vw, 1.35rem)}
.lead{font-size: clamp(1.05rem, 2vw, 1.2rem);color:#312a2a}
.small{font-size:.92rem}
.muted{color:var(--muted)}
.eyebrow{color:var(--brand);font-weight:800;letter-spacing:.035em;text-transform:uppercase;font-size:.92rem}

/* Header */
.site-header{
  position:sticky;top:0;z-index:50;
  backdrop-filter: saturate(160%) blur(6px);
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;padding:16px var(--wrap)}
.primary-nav ul{display:flex;gap:18px;list-style:none;margin:0;padding:0;align-items:center}
.primary-nav a{color:var(--ink);text-decoration:none;font-weight:600;padding:.55rem .7rem;border-radius:10px}
.primary-nav a:hover{background:#f2eeee}
.nav-toggle{display:none;border:1px solid var(--border);background:#fff;border-radius:10px;padding:.55rem .6rem}
.nav-toggle .bars{display:block; width:20px;height:2px;background:var(--ink); position:relative}
.nav-toggle .bars::before,.nav-toggle .bars::after{content:"";position:absolute;left:0;right:0;height:2px;background:var(--ink)}
.nav-toggle .bars::before{top:-6px}
.nav-toggle .bars::after{top:6px}

/* Buttons and links */
.btn{display:inline-flex;align-items:center;gap:.55rem;font-weight:700;text-decoration:none;border-radius:12px;padding:.9rem 1.05rem;transition:.15s ease;box-shadow:var(--shadow)}
.btn-brand{background:var(--brand);color:#fff}
.btn-brand:hover{transform:translateY(-1px);background:#d24a4a}
.btn-outline{background:#fff;border:1px solid var(--ink);color:var(--ink)}
.btn-outline:hover{transform:translateY(-1px)}
.link-arrow{display:inline-flex;align-items:center;gap:.5rem;font-weight:700}
.link-arrow::after{content:"→";transition:transform .15s ease}
.link-arrow:hover::after{transform:translateX(3px)}

/* Hero */
.hero{position:relative;isolation:isolate}
.hero-bg{
  position:absolute;inset:0;z-index:-1;
  background:
    radial-gradient(900px 400px at 10% 10%, rgba(224,85,85,.15), transparent 60%),
    radial-gradient(700px 320px at 90% 30%, rgba(124,27,27,.12), transparent 60%),
    linear-gradient(180deg, #fff, #fff);
}
.trustpoints{display:flex;gap:16px;flex-wrap:wrap;margin:18px 0 0;padding:0;list-style:none}
.trustpoints li{border:1px dashed var(--border);padding:.4rem .6rem;border-radius:999px;background:#fff}

.hero-showcase .glass.card{padding:18px 18px 10px}
.pill-list{display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:8px 0 12px;list-style:none}
.pill-list li{padding:.4rem .7rem;border-radius:999px;background:#fff;border:1px solid var(--border);font-weight:600}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}
.stat{padding:16px;border-radius:14px;border:1px solid var(--border);background:rgba(255,255,255,.65);backdrop-filter: blur(8px)}
.stat .num{font-weight:800;font-size:1.4rem;color:var(--brand-ink);display:block}
.stat .label{color:var(--muted);font-size:.92rem}

/* Cards and tiles */
.glass{background:rgba(255,255,255,.65);backdrop-filter: blur(8px);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.card{padding:22px}
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:14px}
.tile{padding:18px;border:1px solid var(--border);border-radius:14px;background:#fff}
.pill{display:inline-block;margin-bottom:8px;font-weight:800;font-size:.85rem;border-radius:999px;padding:.35rem .6rem}
.pill-front{background:#f8eaea;color:#7d2a2a}
.pill-back{background:#eef7ff;color:#0a66c2}
.pill-commerce{background:#f7f1e6;color:#8a5a00}
.pill-care{background:#eef7ee;color:#1c6b2a}

/* Lists and logo pills */
.checks{list-style: none; padding:0; margin:12px 0 18px}
.checks li{padding-left:30px;position:relative;margin:.35rem 0}
.checks li::before{content:"✓";position:absolute;left:0;top:0;color:var(--brand-ink);font-weight:900}
.logo-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-top:10px}
.logo-pill{display:flex;align-items:center;justify-content:center;height:58px;border:1px solid var(--border);border-radius:12px;background:#fff;color:#3a3333;opacity:.95}
.logo-pill:hover{opacity:1}

/* Managed IT list cards */
.list-cards{display:grid;gap:12px}
.list-card{padding:18px;border:1px solid var(--border);border-radius:12px;background:#fff}

/* Portfolio */
.portfolio-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.shot{display:block;border:1px solid var(--border);border-radius:16px;overflow:hidden;background:#fff;text-decoration:none;color:inherit}
.shot-media{height:180px;background:
  linear-gradient(135deg, rgba(224,85,85,.18), rgba(124,27,27,.18)),
  repeating-linear-gradient(90deg, #fff, #fff 6px, #f7f3f3 6px, #f7f3f3 12px)}
.shot-media.alt1{background:
  linear-gradient(135deg, rgba(124,27,27,.16), rgba(224,85,85,.16)),
  radial-gradient(500px 220px at 30% 30%, #fff, #f6f2f2)}
.shot-media.alt2{background:
  linear-gradient(135deg, rgba(224,85,85,.2), rgba(224,85,85,.08)),
  radial-gradient(500px 220px at 70% 50%, #fff, #f6f2f2)}
.shot-meta{padding:14px}
.shot-meta span{color:var(--muted);font-size:.95rem}

/* Contact */
.contact-list{list-style:none;padding:0;margin:0 0 10px}
.contact-list li{margin:.35rem 0}
.contact-form{display:grid;gap:12px}
.contact-form label{display:grid;gap:6px}
input, textarea{
  font: inherit;color:inherit;background:#fff;border:1px solid var(--border);
  border-radius:12px;padding:.85rem 1rem;outline:none;transition: box-shadow .15s ease, border-color .15s ease;
}
input:focus, textarea:focus{border-color: var(--brand); box-shadow: 0 0 0 3px rgba(224,85,85,.15)}

/* Footer */
.site-footer{border-top:1px solid var(--border);background:#fff}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:18px;padding:34px var(--wrap)}
.foot-head{margin:0 0 8px;font-size:1rem}
.foot-links{list-style:none;padding:0;margin:0}
.foot-links li{margin:.35rem 0}
.copyright{padding:10px var(--wrap) 24px}

/* Elevation when scrolling */
[data-elevate].scrolled{box-shadow:0 6px 20px rgba(0,0,0,.07)}

/* Reveal on scroll */
.reveal{opacity:0;transform:translateY(12px);transition:opacity .5s ease, transform .5s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1;transform:none;transition:none}
}

/* Responsive */
@media (max-width: 1024px){
  .tiles{grid-template-columns:repeat(2,1fr)}
  .logo-grid{grid-template-columns:repeat(3,1fr)}
  .portfolio-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 760px){
  .grid-2{grid-template-columns:1fr}
  .primary-nav ul{display:none}
  .nav-toggle{display:inline-block}
  .primary-nav[data-open="true"] ul{
    display:flex;flex-direction:column;position:absolute;left:0;right:0;top:64px;
    background:#fff;border-bottom:1px solid var(--border);padding:10px var(--wrap);gap:6px
  }
  .stats{grid-template-columns:1fr 1fr}
  .logo-grid{grid-template-columns:repeat(2,1fr)}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 520px){
  .portfolio-grid{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr}
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--wrap);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 520px;
  width: 100%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: 0.15s ease;
  color: var(--muted);
}

.modal-close:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.modal-content {
  padding: 40px;
  text-align: center;
}

.modal-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 20px;
  color: var(--brand-ink);
}

.modal-text {
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.7;
}

.modal-text strong {
  color: var(--brand-ink);
  font-weight: 700;
}

.modal-btn {
  margin-top: 8px;
}

@media (max-width: 520px) {
  .modal-content {
    padding: 30px 24px;
  }
}
