/* ===========================
   CRM Help Canada — Styles
   Tweak colors & spacing here.
   =========================== */

:root{
  --white:#ffffff;
  --stone-50:#f8fafc;
  --stone-200:#e2e8f0;
  --stone-600:#475569;
  --stone-800:#0f172a;

  /* HubSpot-ish palette */
  --orange:#ff7a59;          /* HubSpot orange */
  --orange-700:#e86445;
  --maroon:#7a3333;          /* “maroon-ish” accent */
  --maroon-700:#5c2424;

  --brand:var(--orange);
  --brand-contrast:var(--white);

  --radius:16px;
  --container:1120px;
  --pad-section:72px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--stone-800);
  background:var(--stone-50);
  line-height:1.5;
}

/* Layout helpers */
.container{max-width:var(--container); margin:0 auto; padding:0 20px}
.section-pad{padding: var(--pad-section) 0}
.section-title{font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin:0 0 .25rem}
.section-sub{color:var(--stone-600); margin:.25rem 0 2rem}

/* Header */
.site-header{
  position:sticky; top:0; z-index:10;
  background:rgba(255,255,255,.8); backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--stone-200);
}
.nav{display:flex; align-items:center; justify-content:space-between; min-height:64px}
.brand{display:flex; gap:.5rem; align-items:center; text-decoration:none; color:inherit; font-weight:700}
.logo-mark{display:inline-grid; place-items:center; width:22px; height:22px; border-radius:999px; background:linear-gradient(135deg, var(--brand), var(--maroon)); color:#fff; font-size:12px}
.logo-type{letter-spacing:.2px}
nav a{color:var(--stone-800); text-decoration:none; margin-left:18px; font-weight:600}
nav a:hover{color:var(--brand)}

/* Hero */
.hero{background: radial-gradient(1200px 800px at 15% -5%, #ffe7e0 0%, rgba(255,122,89,.08) 40%, transparent 70%)}
.hero-grid{display:grid; gap:24px; align-items:center; grid-template-columns:1.2fr .8fr}
.hero-copy h1{font-size: clamp(2rem, 4.2vw, 3rem); line-height:1.1; margin:0 0 .75rem}
.lead{font-size: clamp(1rem, 1.6vw, 1.125rem); color:var(--stone-600); max-width:52ch}
.cta-row{display:flex; gap:12px; margin-top:18px}
.hero-card{
  background: #fff; border:1px solid var(--stone-200); border-radius: var(--radius);
  padding:22px 22px; box-shadow: 0 8px 24px rgba(16,24,40,.06);
}
.bullets{margin:0; padding-left:18px; color:var(--stone-600)}
.bullets li{margin:.35rem 0}

/* Buttons */
.btn{display:inline-flex; align-items:center; justify-content:center; border-radius:12px; padding:12px 16px; font-weight:700; text-decoration:none; border:1px solid transparent}
.btn-primary{background:var(--brand); color:var(--brand-contrast)}
.btn-primary:hover{background:var(--orange-700)}
.btn-ghost{background:#fff; color:var(--stone-800); border-color:var(--stone-200)}
.btn-ghost:hover{border-color:var(--stone-600)}

/* Cards & grids */
.grid-3{display:grid; gap:18px; grid-template-columns:repeat(3, 1fr)}
.card{
  background:#fff; border:1px solid var(--stone-200); border-radius:var(--radius);
  padding:20px; box-shadow:0 8px 24px rgba(16,24,40,.06)
}
.card h3{margin:.25rem 0 .25rem}
.card p{color:var(--stone-600); margin:0}
.icon{font-size:24px}

/* Contact */
.contact{background: linear-gradient(0deg, rgba(255,122,89,.05), rgba(255,122,89,.05))}
.contact-grid{display:grid; gap:24px; grid-template-columns:1fr 1fr; align-items:start}
.contact-list{list-style:none; padding:0; margin:12px 0 20px}
.contact-list .link{color:var(--maroon); text-decoration:none; font-weight:700}
.contact-list .link:hover{color:var(--maroon-700)}
.form .field{margin-bottom:12px}
label{display:block; font-weight:600; margin-bottom:6px}
input, textarea{
  width:100%; border:1px solid var(--stone-200); border-radius:12px; padding:12px 12px;
  background:#fff; font:inherit; color:inherit;
}
input:focus, textarea:focus{outline:2px solid #ffd8cf; border-color:#ffc0b1}
.error{display:block; color:#b42318; font-size:.85rem; min-height:1.25em}

/* Footer */
.site-footer{border-top:1px solid var(--stone-200); background:#fff}
.foot{display:flex; align-items:center; justify-content:space-between; min-height:68px}
.link{color:var(--brand); text-decoration:none}
.link:hover{text-decoration:underline}
.fineprint{color:var(--stone-600); font-size:.92rem}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr 1fr}
  .contact-grid{grid-template-columns:1fr}
}
@media (max-width: 600px){
  .grid-3{grid-template-columns:1fr}
  .cta-row{flex-wrap:wrap}
}

/* ===========================
   ===== Tidy-up additions ====
   =========================== */

/* Slightly tighter vertical rhythm where used */
.section-tight{
  padding-top: calc(var(--pad-section) * 0.8);
  padding-bottom: calc(var(--pad-section) * 0.8);
}

/* Equal-height helper */
.card-equal{display:flex; flex-direction:column; justify-content:flex-start;}

/* ===== HubSpot CRM Consultant section (match aesthetic) ===== */
.hubspot-section{
  background: linear-gradient(0deg, rgba(255,122,89,.05), rgba(255,122,89,.05));
}
.hubspot-section .info-block{
  max-width: 860px;
  margin: 0 auto;
}

/* ===== Services polish ===== */
.services .services-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.services .card{
  min-height: 220px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.services .card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16,24,40,.08);
  border-color: #d8dee9;
}
.services .icon.badge{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,122,89,.10); /* soft brand tint */
  font-size: 22px;
  margin-bottom: 6px;
}
.services .card h3{
  margin: 4px 0 2px;
  font-size: 1.1rem;
  line-height: 1.2;
}
.services .card p{margin:0}

/* ===== Contact polish ===== */
.equal-cols > *{height:100%;}
.contact .card{display:flex; flex-direction:column; gap:10px}

/* ===== Hero card align ===== */
.hero-card{border:1px solid var(--stone-200);}

/* ===== HubSpot Spotlight (split band) ===== */
.hubspot-spotlight{
  /* soft brand tint, matches Contact section vibe but lighter */
  background: radial-gradient(1200px 700px at 15% -10%, rgba(255,122,89,.08), transparent 60%),
              linear-gradient(0deg, rgba(255,122,89,.05), rgba(255,122,89,.05));
}

.spotlight-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px;
  align-items: center;
}

/* Left column */
.spotlight-copy .section-title{ margin-bottom: .35rem; }
.spotlight-copy .section-sub{ margin-top: .35rem; max-width: 62ch; }

/* Right column media */
.spotlight-media{
  margin: 0;
  position: relative;
  isolation: isolate;
}
.spotlight-media img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--stone-200);
  box-shadow: 0 20px 40px rgba(16,24,40,.12);
  background: #fff;
}

/* subtle accent bar behind the image for depth (no extra text) */
.spotlight-media::before{
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;   /* top-right corner */
  width: 120px;
  height: 120px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--maroon));
  opacity: .12;
  z-index: -1;
  filter: blur(2px);
}

/* Responsive */
@media (max-width: 960px){
  .spotlight-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .spotlight-media::before{
    inset: -14px -14px auto auto;
    width: 88px; height: 88px;
  }
}
