/* ==========================================================================
   Emorph IT — main.css
   Single responsive stylesheet. Mobile-first. Replaces all per-page inline CSS.
   Brand: Purple #5B16E4 → Purple Dark #331088, Gold #FDB128.
   ========================================================================== */

:root {
  --purple: #5b16e4;
  --purple-dark: #331088;
  --gold: #fdb128;
  --gold-dark: #e69900;
  --ink: #2d2d2d;
  --gray: #666666;
  --line: #e7e7ef;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --footer-bg: #1a1230;

  --gradient: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  --gradient-gold: linear-gradient(45deg, var(--gold), var(--gold-dark));

  --container: 1180px;
  --container-narrow: 760px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 10, 60, 0.10);
  --shadow-lg: 0 20px 45px rgba(20, 10, 60, 0.16);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--purple-dark); font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding: 4.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); text-align: center; margin-bottom: 1rem; }
.section-intro { text-align: center; color: var(--gray); max-width: 640px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--purple); text-align: center; display: block; margin-bottom: .6rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.7rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn-primary { background: var(--gradient-gold); color: #1a1230; box-shadow: 0 4px 15px rgba(253, 177, 40, .4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(253, 177, 40, .5); color: #1a1230; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-secondary:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-ghost:hover { background: var(--purple); color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(20,10,60,.07);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: .7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-name {
  font-size: 1.45rem; font-weight: 700;
  background: linear-gradient(45deg, var(--purple), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--purple-dark); font-weight: 500; position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.site-nav a.is-active { color: var(--purple); }
.nav-cta {
  background: var(--gradient-gold); color: #1a1230 !important; padding: .5rem 1.1rem; border-radius: 50px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; padding: 8px; }
.nav-toggle span { display: block; height: 3px; border-radius: 3px; background: var(--purple-dark); margin: 4px 0; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  padding: 5.5rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 1rem; }
.hero .subhead { font-size: clamp(1.05rem, 2.4vw, 1.35rem); opacity: .96; margin-bottom: 1rem; }
.hero .proof { font-size: .98rem; opacity: .85; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Sub-page hero (smaller) */
.page-hero { background: var(--gradient); color: #fff; text-align: center; padding: 4rem 1.5rem 3.2rem; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: .8rem; }
.page-hero p { max-width: 680px; margin: 0 auto; opacity: .95; font-size: 1.1rem; }

/* ---------- Generic cards / grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--gradient-gold); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .6rem; font-size: 1.2rem; }
.card p { color: var(--gray); }
.card .icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-gold); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem;
}
.card-link { display: inline-block; margin-top: 1rem; font-weight: 600; }
.card-link::after { content: " →"; }

/* Pillars (Consolidate / Secure / Enable) */
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.pillar h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.pillar .pillar-tag { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); }
.pillar ul { list-style: none; margin-top: 1rem; }
.pillar li { padding: .35rem 0 .35rem 1.5rem; position: relative; color: var(--gray); }
.pillar li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 700; }

/* ---------- Stats row ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.stat { text-align: center; padding: 1.5rem; background: var(--bg-soft); border-radius: var(--radius); }
.stat .num { font-size: 2rem; font-weight: 800; background: linear-gradient(45deg, var(--purple), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .label { color: var(--gray); font-size: .95rem; margin-top: .3rem; }

/* ---------- Credibility / about split ---------- */
.split { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: center; }
.headshot { width: 240px; height: 240px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); box-shadow: var(--shadow-lg); margin: 0 auto; }
.portrait { width: 100%; max-width: 240px; height: auto; border-radius: var(--radius); border: 3px solid var(--gold); box-shadow: var(--shadow-lg); margin: 0 auto; display: block; }
.split--top { align-items: start; }
.pullquote { background: var(--gradient); color: #fff; padding: 1.6rem 1.8rem; border-radius: var(--radius); margin-top: 1.4rem; position: relative; }
.pullquote p { position: relative; z-index: 1; }

/* ---------- Testimonial ---------- */
.testimonial { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); text-align: center; }
.testimonial::before { content: "★★★★★"; color: var(--gold); display: block; margin-bottom: 1rem; letter-spacing: .15em; }
.testimonial blockquote { font-size: 1.1rem; color: var(--ink); }
.testimonial cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; color: var(--purple-dark); }
.testimonial-logo { max-height: 56px; width: auto; margin: 1.2rem auto 0; display: block; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.step { text-align: center; padding: 1.5rem; }
.step .n { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(45deg, var(--purple), var(--gold)); color: #fff; font-weight: 700; font-size: 1.3rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { color: var(--gray); }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--gradient); color: #fff; text-align: center; padding: 3.5rem 1.5rem; }
.cta-strip h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: .8rem; }
.cta-strip p { opacity: .95; margin-bottom: 1.6rem; }

/* ---------- Contact form ---------- */
.contact-form { max-width: 620px; margin: 0 auto; background: var(--bg-soft); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(91,22,228,.15); }
.form-message { padding: .9rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-weight: 500; }
.form-message--success { background: rgba(46,160,67,.12); color: #1a7f37; border: 1px solid rgba(46,160,67,.3); }
.form-message--error { background: rgba(218,54,51,.1); color: #b42318; border: 1px solid rgba(218,54,51,.3); }

/* ---------- Logos / trust ---------- */
.logo-row { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; align-items: center; margin-top: 1.5rem; }
.logo-row img { max-height: 64px; width: auto; filter: grayscale(100%) opacity(.75); transition: filter .25s ease; }
.logo-row img:hover { filter: grayscale(0) opacity(1); }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 1.6rem; max-width: 820px; margin: 0 auto; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.post-card h2 a { color: var(--purple-dark); }
.post-card h2 a:hover { color: var(--purple); }
.post-card .post-meta { color: var(--gray); font-size: .9rem; margin-bottom: .6rem; }
.post-card p { color: var(--gray); }

.post { padding: 3rem 0 1rem; }
.post-back { font-weight: 600; }
.post-title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 1rem 0 .5rem; }
.post-meta { color: var(--gray); font-size: .95rem; }
.post-tags { margin: .6rem 0 1.5rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.tag { background: var(--bg-soft); border: 1px solid var(--line); color: var(--purple); font-size: .8rem; padding: .2rem .7rem; border-radius: 50px; }
.post-body { font-size: 1.08rem; }
.post-body h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; }
.post-body h3 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; color: var(--purple); }
.post-body p { margin-bottom: 1.1rem; }
.post-body ul, .post-body ol { margin: 0 0 1.1rem 1.4rem; }
.post-body li { margin-bottom: .4rem; }
.post-body blockquote { border-left: 4px solid var(--gold); padding-left: 1.2rem; color: var(--gray); font-style: italic; margin: 1.2rem 0; }
.post-body a { text-decoration: underline; }
.post-cta { margin: 2.5rem 0 1rem; padding: 2rem; background: var(--bg-soft); border-radius: var(--radius); text-align: center; }
.post-cta h3 { margin-bottom: .4rem; }
.post-cta p { color: var(--gray); margin-bottom: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.75); padding: 3rem 0 1.5rem; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.brand--footer .brand-name { font-size: 1.3rem; }
.footer-tagline { color: var(--gold); font-size: .9rem; margin: .8rem 0 .6rem; }
.footer-desc { font-size: .92rem; line-height: 1.6; }
.footer-col h4 { color: var(--gold); font-size: 1rem; margin-bottom: .9rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.75); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { max-width: var(--container); margin: 2rem auto 0; padding: 1.4rem 1.5rem 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.phone-link, .footer-bottom a { color: rgba(255,255,255,.75); }
.phone-link:hover { color: var(--gold); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.hp { display: none; }
.svc-subhead { font-size: 1rem; color: var(--purple); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin: 2.5rem 0 1.2rem; border-left: 4px solid var(--gold); padding-left: .8rem; }
.contact-intro { text-align: center; color: var(--gray); max-width: 600px; margin: 0 auto 2rem; }
.tech-list { display: flex; flex-wrap: wrap; gap: .7rem .9rem; justify-content: center; max-width: 860px; margin: 0 auto; }
.tech-item { background: #fff; border: 1px solid var(--line); border-radius: 50px; padding: .5rem 1.15rem; font-weight: 600; color: var(--purple-dark); font-size: .95rem; box-shadow: var(--shadow); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; box-shadow: 0 12px 24px rgba(20,10,60,.12);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.is-open { max-height: 460px; }
  .site-nav a { width: 100%; padding: .9rem 1.5rem; border-top: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .nav-cta { border-radius: 0; }
  .split { grid-template-columns: 1fr; text-align: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .brand--footer { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
}
