/* ==========================================================
   Home page — loaded only by index.php via $extraCss.
   Uses the existing theme colours from style.css.
   ========================================================== */

.home {
  --brand-soft: #eaf6ff;
  --brand-line: #e2f0fb;
  --deep: #002726;
  --line: #eef2f7;
  --tint: #edf5fc;
  --section-gap: 80px;
  --shadow-sm: 0 1px 2px rgba(11, 33, 48, .06);
  --shadow-md: 0 10px 30px -12px rgba(11, 33, 48, .18);
  --shadow-lg: 0 24px 60px -20px rgba(11, 99, 182, .30);
  --radius: 16px;
  overflow-x: hidden;
}

.home svg { width: 18px; height: 18px; flex: none; }

/* ---------- Shared bits ---------- */
.home .h-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.home h1 { font-size: clamp(30px, 4.4vw, 48px) !important; line-height: 1.12; letter-spacing: -.02em; }
.home h2 { font-size: clamp(26px, 3.2vw, 36px) !important; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 10px; }
.home h3 { font-size: 19px !important; margin: 0 0 8px; }

.home .h-accent {
  color: var(--brand);
  background: linear-gradient(transparent 68%, var(--brand-soft) 68%);
}

/* #contact/#services/#portfolio/#pricing ids get padding in style.css, so match them here */
.home .h-section,
.home #services, .home #portfolio, .home #pricing, .home #contact { padding: var(--section-gap) 0; }
.home .h-section { background: #fff; }
.home .h-section.h-tint { background: var(--tint); border-block: 1px solid #e2eef9; }

.home .h-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.home .h-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* Buttons */
.home .h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--deep);
  color: #fff;
  padding: 13px 22px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(0, 39, 38, .6);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.home .h-btn:hover { background: var(--brand); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(11, 99, 182, .6); }
.home .h-btn svg { transition: transform .2s; }
.home .h-btn:hover svg { transform: translateX(3px); }

.home .h-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1.5px solid #cfdceb;
  font-weight: 600;
  color: var(--dark);
  background: #fff;
  transition: border-color .2s, color .2s;
}
.home .h-btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.home .h-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: 15px; }
.home .h-link svg { width: 16px; height: 16px; transition: transform .2s; }
.home .h-link:hover svg { transform: translateX(4px); }

/* Forms */
.home .h-form { gap: 14px; }
.home .h-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--dark); }
.home .h-form input,
.home .h-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 12px 14px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #fff;
  color: var(--dark);
  transition: border-color .2s, box-shadow .2s;
}
.home .h-form textarea { resize: vertical; min-height: 120px; }
.home .h-form input:focus,
.home .h-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 99, 182, .12); }
.home .h-form .h-btn { margin-top: 4px; width: 100%; }
.home .h-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Hero ---------- */
.home .h-hero {
  position: relative;
  padding: var(--section-gap) 0;
  background:
    radial-gradient(600px 380px at 85% 10%, rgba(11, 99, 182, .12), transparent 70%),
    radial-gradient(500px 320px at 0% 100%, rgba(0, 39, 38, .06), transparent 70%),
    linear-gradient(180deg, #f7fbff, #fff);
}
.home .h-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 99, 182, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  pointer-events: none;
}
.home .h-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
}
.home .h-hero h1 { margin: 0 0 18px; }
.home .h-lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 560px; }
.home .h-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.home .h-stats { margin-top: 40px; gap: 14px; }
.home .h-stats .card {
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.home .h-stats .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.home .h-stats .hero-img { width: 42px; height: 42px; flex: none; }
.home .hero-no strong { display: block; font-size: 19px; line-height: 1.2; color: var(--dark); }
.home .hero-no span { display: block; font-size: 12.5px; color: var(--muted); }

.home .h-call-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.home .h-call-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--deep), var(--brand));
}
.home .h-call-card h3 { font-size: 22px !important; margin: 12px 0 6px; }
.home .h-call-card > p { color: var(--muted); margin: 0 0 20px; }
.home .h-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #0a7a4a;
  background: #e8f8ef;
  padding: 4px 10px;
  border-radius: 999px;
}
.home .h-note { display: block; margin-top: 14px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Services ---------- */
.home .h-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.home .h-service {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.home .h-service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.home .h-service-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--brand-soft);
  margin-bottom: 20px;
  transition: transform .25s;
}
.home .h-service:hover .h-service-icon { transform: rotate(-4deg) scale(1.05); }
.home .h-service-icon img { width: 46px; height: 46px; object-fit: contain; }
.home .h-service p { color: var(--muted); font-size: 15.5px; margin: 0 0 18px; flex: 1; }

/* ---------- Process ---------- */
.home .h-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: none;
}
.home .h-steps li {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.home .h-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 48px;
  right: -22px;
  width: 22px;
  border-top: 2px dashed #cfdceb;
}
.home .h-step-no {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--deep);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.home .h-steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Portfolio ---------- */
.home .h-portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.home .h-project {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.home .h-project:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.home .h-project-logo {
  height: 160px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f7fbff, var(--brand-soft));
  padding: 24px;
}
.home .h-project-logo img { max-width: 70%; max-height: 80px; object-fit: contain; }
.home .h-project-meta { padding: 18px 22px; border-top: 1px solid var(--line); }
.home .h-project strong { display: block; font-size: 17px; }
.home .h-project span { color: var(--muted); font-size: 14px; }
.home .h-project-cta {
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 28px;
  background: linear-gradient(135deg, var(--deep), #0b3f5c);
  border: 0;
  color: #fff;
}
.home .h-project-cta strong { font-size: 20px; }
.home .h-project-cta span { display: inline-flex; align-items: center; gap: 6px; color: #bfe0ff; font-weight: 600; }

/* ---------- Pricing ---------- */
.home .h-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.home .h-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.home .h-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.home .h-plan h3 { font-size: 20px !important; margin: 0; }
.home .h-plan-tag { color: var(--muted); margin: 4px 0 18px; font-size: 14.5px; }
.home .h-price { font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.home .h-plan ul { list-style: none; padding: 20px 0 0; margin: 0 0 28px; border-top: 1px solid var(--line); display: grid; gap: 12px; flex: 1; }
.home .h-plan li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.home .h-plan li svg { color: var(--brand); margin-top: 2px; }
.home .h-plan .h-btn-ghost,
.home .h-plan .h-btn { width: 100%; }

.home .h-plan.is-featured {
  background: linear-gradient(160deg, var(--deep), #0b2130 60%, #0b3f5c);
  color: #fff;
  border: 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
}
.home .h-plan.is-featured:hover { transform: translateY(-14px); }
.home .h-plan.is-featured .h-plan-tag { color: #a9c3d6; }
.home .h-plan.is-featured ul { border-color: rgba(255, 255, 255, .14); }
.home .h-plan.is-featured li svg { color: #7cc4ff; }
.home .h-plan-flag {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.home .h-btn-light { background: #fff; color: var(--deep); }
.home .h-btn-light:hover { background: var(--brand-soft); color: var(--deep); }

/* ---------- Contact ---------- */
.home .h-contact {
  display: grid;
  grid-template-columns: 400px 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.home .h-contact-info {
  position: relative;
  padding: 44px 38px;
  color: #dbe7f1;
  background:
    radial-gradient(300px 200px at 100% 100%, rgba(11, 99, 182, .45), transparent 70%),
    linear-gradient(160deg, var(--deep), #0b2130);
}
.home .h-contact-info .h-eyebrow { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #bfe0ff; }
.home .h-contact-info h2 { color: #fff; }
.home .h-contact-info > p { color: #a9c3d6; margin: 0 0 28px; }
.home .h-contact-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 18px; }
.home .h-contact-list li { display: flex; align-items: center; gap: 14px; }
.home .h-contact-list small { display: block; color: #a9c3d6; font-size: 12.5px; }
.home .h-contact-list a { color: #fff; font-weight: 600; }
.home .h-contact-list a:hover { color: #bfe0ff; }
.home .h-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #bfe0ff;
}
.home .h-ic svg { width: 20px; height: 20px; }
.home .h-follow strong { color: #fff; display: block; margin-bottom: 10px; }
.home .h-follow div { display: flex; flex-wrap: wrap; gap: 8px; }
.home .h-follow a {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 14px;
  color: #fff;
  transition: background .2s, border-color .2s;
}
.home .h-follow a:hover { background: var(--brand); border-color: var(--brand); }

.home .h-contact-form { padding: 44px 40px; }
.home .h-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.home .h-contact-form .h-btn { width: auto; align-self: flex-start; }

/* ---------- Scroll reveal (only when JS enabled it) ---------- */
.js-reveal .home .reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s ease, transform .25s, box-shadow .25s, border-color .25s; }
.js-reveal .home .reveal.is-visible { opacity: 1; translate: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .home .h-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .home .h-call-card { max-width: 560px; }
  .home .h-services,
  .home .h-portfolio { grid-template-columns: repeat(2, 1fr); }
  .home .h-steps { grid-template-columns: repeat(2, 1fr); }
  .home .h-steps li:not(:last-child)::after { display: none; }
  .home .h-pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .home .h-plan.is-featured { transform: none; }
  .home .h-plan.is-featured { margin-top: 8px; }
  .home .h-contact { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .home { --section-gap: 56px; }
  .home .h-lead { font-size: 16.5px; }
  .home .h-actions a { flex: 1 1 100%; }
  .home .h-stats { grid-template-columns: 1fr; }
  .home .h-call-card { padding: 24px 20px; }
  .home .h-head { margin-bottom: 32px; }
  .home .h-services,
  .home .h-portfolio,
  .home .h-steps { grid-template-columns: 1fr; }
  .home .h-service { padding: 24px; }
  .home .h-contact-info,
  .home .h-contact-form { padding: 32px 22px; }
  .home .h-form-row { grid-template-columns: 1fr; }
  .home .h-contact-form .h-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { transition: none !important; }
}
