/* —— Theme: gray-first with purple accents —— */
/* Updated for proper cente.hero h1{font-size:clamp(28px,5vw,52px); line-height:1.1; margin:0 0 10px; text-align:center}
.hero-logo{height:clamp(120px,15vw,250px); width:auto; margin:0 auto 20px; display:block;}
.hero-tagline{font-size:clamp(24px,4vw,42px); line-height:1.2; margin:0 0 8px; text-align:center; font-weight:800;}g - v1.2 - Contact button fix */
:root{
  /* Grays */
  --bg:#ECEFF3;        /* page background */
  --surface:#FFFFFF;   /* cards */
  --surface-2:#F4F6F9; /* alt sections */
  --outline:#D3D8E1;   /* borders/dividers */
  --text:#2B2F36;      /* main text */
  --muted:#4A4F59;     /* secondary text */

  /* Purples (accents) */
  --brand:#5C1B5E;     /* primary plum */
  --brand-2:#8C5A92;   /* lighter plum */

  --ok:#2E7D32;
  --shadow:0 10px 24px rgba(24,28,38,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg); color:var(--text); line-height:1.65; text-rendering:optimizeLegibility;
}
img{max-width:100%; display:block}
a{color:var(--brand)}
a:hover{text-decoration:underline}
.skip-link{position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden}
.skip-link:focus{left:16px; top:16px; width:auto; height:auto; background:#000; color:#fff; padding:8px 12px; border-radius:8px}

/* Header */
.site-header{
  position:sticky; top:0; z-index:10;
  backdrop-filter:blur(10px);
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border-bottom:1px solid var(--outline);
  display:flex; align-items:center; justify-content:space-between; padding:14px 18px;
}
.brand{font-weight:1000; letter-spacing:.2px; display:flex; align-items:center;}
.logo{height:40px; width:auto;}
.logo-dot{color:var(--brand)}
.nav{display:flex; gap:18px; align-items:center}
.nav a{padding:6px 10px; color:var(--muted); text-decoration:none;}
.nav a:hover{color:var(--brand); text-decoration:none;}
.nav-toggle{display:none; font-size:36px; background:none; border:0; color:var(--text)}

/* Buttons */
.btn{
  display:inline-block; padding:12px 16px; border-radius:12px;
  background:var(--brand); color:#fff; font-weight:800; box-shadow:var(--shadow); border:1px solid transparent;
  font-family:inherit;
}
.btn:hover{text-decoration:none; transform:translateY(-1px)}
.btn-ghost{
  background:transparent; color:var(--text); border:1px solid var(--outline); box-shadow:none;
}
.btn-small{
  padding:8px 12px; 
  border-radius:10px;
  background:var(--brand);
  color:#fff !important;
  font-weight:800;
}
.btn-small:hover{
  background:var(--brand);
  transform:translateY(-1px);
  color:#fff !important;
}
.btn-mini{padding:8px 12px; border-radius:10px; font-size:14px}

/* Hero */
.hero{
  padding:64px 20px 40px; text-align:center;
  background:
    radial-gradient(900px 300px at 50% -20%, rgba(92,27,94,.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0, var(--bg) 60%, var(--surface-2) 100%);
}
.hero h1{font-size:clamp(28px,5vw,52px); line-height:1.1; margin:0 0 10px; text-align:center}
.hero-logo{height:clamp(60px,8vw,120px); width:auto; margin:0 auto 10px; display:block;}
.hero-tagline{font-size:clamp(24px,4vw,42px); line-height:1.2; margin:0 0 8px; text-align:center; font-weight:800;}
.accent{background:linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip:text; background-clip:text; color:transparent}
.sub{color:var(--muted); max-width:820px; margin:0 auto 18px; font-size:20px; font-weight:600;}
.cta{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:14px}

/* Sections */
.section{
  padding:20px 20px; 
  max-width:1100px; 
  margin:0 auto; 
  background:var(--surface);
  text-align:center;
}
.section.alt{background:var(--surface-2)}
.section h2{font-size:32px; margin:0 0 16px; text-align:center}
.section-sub{color:var(--muted); margin-top:-8px; text-align:center; max-width:800px; margin-left:auto; margin-right:auto; font-size:18px;}

/* Service Grid */
.service-grid{
  display:grid; 
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); 
  gap:20px; 
  margin:16px auto 12px;
  max-width:1000px;
  justify-items:center;
  align-items:stretch;
}

.service-card{
  background:var(--surface); 
  border:1px solid var(--outline); 
  border-radius:16px; 
  padding:24px; 
  text-align:center;
  box-shadow:var(--shadow);
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.service-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(24,28,38,.15);
  border-color: var(--brand);
}

.service-icon{
  display:flex;
  justify-content:center;
  margin-bottom:16px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon{
  transform: scale(1.1);
}

.service-icon svg{
  width:40px;
  height:40px;
  color:var(--brand);
  transition: color 0.3s ease;
}

.service-card:hover .service-icon svg{
  color: var(--brand-2);
}

.service-card h3{
  margin:0 0 12px;
  color:var(--text);
  text-align:center;
  width:100%;
}

.service-card p{
  color:var(--muted);
  margin-bottom:16px;
  text-align:center;
  width:100%;
  flex-grow:1;
}

.service-card .ticks{
  list-style:none;
  padding:0;
  margin:0;
  text-align:left;
}

.service-card .ticks li{
  position:relative;
  padding-left:20px;
  margin-bottom:8px;
  color:var(--muted);
}

.service-card .ticks li::before{
  content:'✓';
  position:absolute;
  left:0;
  color:var(--ok);
  font-weight:bold;
}

/* Service CTA */
.service-cta{
  text-align:center;
  margin:16px auto 0;
  padding-top:8px;
}

/* Featured */
.featured-grid{
  display:flex; 
  justify-content:center; 
  gap:18px; 
  flex-wrap:wrap;
  max-width:800px;
  margin:0 auto;
}
.feature-card{
  background:var(--surface);
  border:1px solid var(--outline); 
  border-radius:16px; 
  overflow:hidden; 
  text-decoration:none; 
  color:inherit;
  box-shadow:var(--shadow); 
  transition:transform .12s ease;
  max-width:280px;
  width:100%;
}
.feature-card:hover{transform:translateY(-2px)}
.feature-body{padding:14px 16px; display:flex; align-items:center; gap:10px; justify-content:space-between; text-align:center}
.feature-body h3{margin:0}
.chip{
  font-size:12px; padding:4px 8px; border-radius:999px;
  background:rgba(92,27,94,.08); color:var(--muted); border:1px solid var(--outline);
}

/* Projects grid */
.grid{
  display:grid; 
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); 
  gap:18px; 
  max-width:1000px; 
  margin:0 auto;
}
.card{
  background:var(--surface); border:1px solid var(--outline); border-radius:16px; overflow:hidden;
  display:flex; flex-direction:column; box-shadow:var(--shadow);
}
.card-media img{aspect-ratio:16/9; object-fit:cover}
.card-body{padding:16px}
.card-body h3{margin:0 0 6px}
.muted{color:var(--muted)}
.card-actions{margin-top:10px; display:flex; gap:10px; align-items:center}
.text-link{font-weight:600}

/* Links grid */
.link-grid{
  display:flex; 
  justify-content:center; 
  gap:12px; 
  flex-wrap:wrap;
  max-width:600px;
  margin:0 auto;
}
.link-tile{
  background:var(--surface); border:1px solid var(--outline);
  border-radius:12px; padding:16px; text-align:center; font-weight:700; text-decoration:none; color:var(--text);
  box-shadow:var(--shadow); min-width:120px;
}
.link-tile:hover{outline:2px solid var(--brand-2); text-decoration:none}

/* Media list */
.media-list{list-style:none; padding:0; margin:0; display:grid; gap:10px}
.media-list a{font-weight:700}

/* Contact */
.contact{text-align:center}
.contact h2{text-align:center}
.contact p{text-align:center; margin-bottom:24px}
.contact form{max-width:560px; margin:0 auto; text-align:left}
.contact .alt-contact{text-align:center; margin-top:24px}
.form-row{display:flex; flex-direction:column; gap:6px; margin-bottom:12px}
input, textarea{
  width:100%; padding:12px 12px; border-radius:10px;
  border:1px solid var(--outline); background:#fff; color:var(--text);
}
input:focus, textarea:focus{outline:2px solid var(--brand-2); outline-offset:2px}
#formStatus{margin-top:10px; color:var(--ok)}

/* Footer */
.site-footer{
  border-top:1px solid var(--outline); padding:24px 20px; background:var(--surface-2);
  display:flex; justify-content:space-between; gap:12px; color:var(--muted); flex-wrap:wrap
}
.footer-nav a{margin-right:14px}

/* Responsive */
@media (min-width: 720px){
  .feature-card{grid-column:span 4}
  .card{grid-column:span 4}
  .link-tile{grid-column:span 3}
}

/* Mobile specific fixes */
@media (max-width: 768px){
  .section{
    padding: 48px 16px;
    text-align: center;
  }
  
  .service-grid{
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 24px auto 16px;
    max-width: 100%;
  }
  
  .service-card{
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
  }
  
  .featured-grid{
    justify-content: center;
    padding: 0 16px;
  }
  
  .feature-card{
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero{
    padding: 64px 16px 48px;
  }
  
  .cta{
    flex-direction: column;
    align-items: center;
  }
  
  .btn, .btn-ghost{
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

@media (max-width: 840px){
  .nav{
    display:none; position:absolute; right:12px; top:56px; background:#fff; border:1px solid var(--outline);
    border-radius:12px; padding:10px; flex-direction:column
  }
  .nav.open{display:flex}
  .nav-toggle{display:block}
}
