/* ==========================================================================
   Edify Consulting Services — Main Stylesheet (style.css)
   Premium IT Support theme: "Diagnostic / Restored Connection"
   Palette: Charcoal, Graphite, Pearl Tint, Ink, Slate, White — matched to
   the official logo (charcoal #404040 on white).
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Colors — derived from the official logo's charcoal/graphite/white palette */
  --navy: #262626;
  --navy-700: #171717;
  --azure: #404040;
  --azure-600: #2b2b2b;
  --sky: #f2f2f2;
  --sky-200: #e5e5e5;
  --ink: #1a1a1a;
  --slate: #6b6b6b;
  --slate-300: #a3a3a3;
  --white: #ffffff;
  --line: #e2e2e2;
  --success: #16a34a;
  --danger: #dc2626;

  /* Typography */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;

  /* Radii & Shadows */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(38, 38, 38, 0.06);
  --shadow-md: 0 14px 40px rgba(38, 38, 38, 0.10);
  --shadow-lg: 0 28px 70px rgba(38, 38, 38, 0.16);

  /* Layout */
  --container: 1180px;
  --header-h: 74px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 var(--space-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: var(--space-1);
}

.lead { font-size: 1.14rem; color: var(--slate); }

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section { padding-block: var(--space-7); }
.section--tint { background: var(--sky); }
.section--navy { background: var(--navy); color: var(--sky); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 680px; margin: 0 auto var(--space-5); text-align: center; }
.section-head p { color: var(--slate); margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--azure); color: var(--white); box-shadow: 0 10px 24px rgba(64, 64, 64, 0.35); }
.btn--primary:hover { background: var(--azure-600); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(64, 64, 64, 0.45); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--azure); color: var(--azure); transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 38px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--navy); letter-spacing: -0.02em; }
.brand-name span {
    color: var(--azure);
    padding-left: 5px;
}

.site-footer .brand-name span {
    color: #fff;	
}

a.btn.btn--primary {
    color: #fff;
}	
.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--azure); background: var(--sky); }
.nav a.is-active { color: var(--azure); }
.header-cta { margin-left: 0.6rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 80% -10%, var(--sky) 0%, transparent 60%), var(--white);
  padding-block: var(--space-6) var(--space-7);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
}
.hero-copy h1 { margin-bottom: var(--space-3); }
.hero-copy .lead { max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: var(--space-4); }
.hero-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--slate); font-weight: 500; }
.hero-badge svg { width: 20px; height: 20px; color: var(--azure); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* Signature: restored-connection pulse ring */
.pulse-ring {
  position: absolute;
  top: -18px;
  left: -18px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  z-index: 2;
}
.pulse-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--azure);
  animation: pulse 2.4s ease-out infinite;
}
.pulse-ring svg { width: 40px; height: 40px; color: var(--azure); }

.hero-stat {
  position: absolute;
  bottom: -22px;
  right: -14px;
  background: var(--navy);
  color: var(--white);
  padding: 0.9rem 1.3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.hero-stat span { font-size: 0.8rem; color: var(--sky-200); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%);
  color: var(--sky);
  padding-block: var(--space-6);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64,64,64,0.35) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--sky-200); max-width: 60ch; margin-bottom: 0; }
.breadcrumb { font-size: 0.85rem; color: var(--sky-200); margin-bottom: var(--space-2); font-family: var(--font-display); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Cards Grid ---------- */
.grid { display: grid; gap: var(--space-3); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--sky-200); }
.card h3 { margin-bottom: var(--space-1); }
.card p { color: var(--slate); margin-bottom: var(--space-2); }

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  background: var(--sky);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-3);
}
.card-icon svg { width: 30px; height: 30px; color: var(--azure); }

.card-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--azure);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.card-link svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.card-link:hover svg { transform: translateX(4px); }

/* Feature card (compact) */
.feature { display: flex; gap: var(--space-2); align-items: flex-start; }
.feature-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--sky);
  display: grid; place-items: center;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--azure); }
.feature h3 { font-size: 1.08rem; margin-bottom: 0.25rem; }
.feature p { font-size: 0.94rem; color: var(--slate); margin: 0; }

/* ---------- Support Process (signature numbered timeline) ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); counter-reset: step; }
.process-step { position: relative; padding-top: var(--space-4); }
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sky-200);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.process-step h3 { font-size: 1.15rem; }
.process-step p { color: var(--slate); font-size: 0.95rem; margin: 0; }
.section--navy .process-step::before { color: rgba(255,255,255,0.22); }
.section--navy .process-step p { color: var(--sky-200); }

/* ---------- About / Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.check-list li { display: flex; gap: 0.65rem; align-items: flex-start; margin-bottom: 0.7rem; color: var(--slate); }
.check-list svg { width: 22px; height: 22px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.testimonial .stars { color: #f5b301; letter-spacing: 2px; margin-bottom: var(--space-2); font-size: 0.95rem; }
.testimonial blockquote { margin: 0 0 var(--space-3); color: var(--ink); font-size: 1.02rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-author .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600;
}
.testimonial-author strong { display: block; font-size: 0.95rem; color: var(--navy); }
.testimonial-author span { font-size: 0.82rem; color: var(--slate); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--space-2); background: var(--white); overflow: hidden; }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question svg { width: 20px; height: 20px; color: var(--azure); flex-shrink: 0; transition: transform 0.25s ease; }
.faq-item[open] .faq-question svg,
.faq-question[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-answer { padding: 0 1.4rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-answer p { color: var(--slate); margin: 0; }
.faq-item.is-open .faq-answer { padding: 0 1.4rem 1.2rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--azure) 0%, var(--azure-600) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 52ch; margin-inline: auto; margin-bottom: var(--space-3); }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-5); align-items: start; }
.info-card { display: flex; gap: var(--space-2); align-items: flex-start; margin-bottom: var(--space-3); }
.info-card .feature-icon { background: var(--sky); }
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.info-card p { margin: 0; color: var(--slate); }
.info-card a:hover { color: var(--azure); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.field { margin-bottom: var(--space-2); }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.4rem; }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #f7f7f8;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 4px rgba(64,64,64,0.12); background: var(--white); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--slate); margin-top: var(--space-1); }
.form-status { padding: 0.9rem 1.1rem; border-radius: var(--radius); margin-bottom: var(--space-2); font-size: 0.92rem; display: none; }
.form-status.is-success { display: block; background: #e7f6ec; color: var(--success); border: 1px solid #bfe6cb; }
.form-status.is-error { display: block; background: #fdeaea; color: var(--danger); border: 1px solid #f5c2c2; }
.hp-field { position: absolute; left: -9999px; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--sky-200); padding-block: var(--space-6) var(--space-4); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-5); }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { color: var(--slate-300); max-width: 34ch; margin-top: var(--space-2); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--space-2); }
.footer-col a { color: var(--sky-200); font-size: 0.94rem; display: block; padding: 0.28rem 0; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.6rem; margin-top: var(--space-2); }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; }
.footer-social a:hover { background: var(--azure); }
.footer-social svg { width: 18px; height: 18px; color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); font-size: 0.86rem; color: var(--slate-300); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-3 { margin-top: var(--space-3); }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: var(--space-2); }
