/*
Theme Name: ImmCase — ImmCase.com
Theme URI: https://www.immcase.com
Author: ZaazTech
Author URI: https://zaaz.app
Description: Custom child theme for ImmCase.com. Built on the ZaazTheme framework. Provides the immigration-native marketing homepage (front-page.php) with the "Forward Fan" brand system. Trilingual EN/ES/FR via Polylang.
Template: zaaztheme
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: immcase-child
*/

/* =====================================================================
   ImmCase homepage — "Forward Fan" brand system.
   ALL rules are scoped under .immcase-home so nothing leaks onto other
   pages that share this child theme (Features / Pricing / Contact, etc.).
   ===================================================================== */

.immcase-home {
  /* Brand palette (logo README) */
  --green:      #8CC63F;
  --teal:       #3FB6A8;
  --blue:       #1CA3DC;
  --deep-blue:  #0E76BC;
  --bright-blue:#37B6EA;
  --ink:        #16314D;

  --bg:        #ffffff;
  --bg-soft:   #f5f8fb;
  --bg-tint:   #eef5fb;
  --line:      #e2e8f0;
  --text:      #1f2d3d;
  --muted:     #5b6b7e;

  --ic-maxw: 1140px;
  --ic-radius: 18px;
  --ic-shadow: 0 18px 50px -20px rgba(14, 49, 77, 0.28);
  --ic-shadow-sm: 0 8px 24px -14px rgba(14, 49, 77, 0.35);
  --fan: linear-gradient(90deg, var(--green) 0%, var(--teal) 38%, var(--blue) 70%, var(--deep-blue) 100%);

  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.immcase-home *,
.immcase-home *::before,
.immcase-home *::after { box-sizing: border-box; }

.immcase-home img,
.immcase-home svg { display: block; max-width: 100%; }

.immcase-home a { color: var(--deep-blue); text-decoration: none; }
.immcase-home a:hover { text-decoration: underline; }

.immcase-home h1,
.immcase-home h2,
.immcase-home h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
.immcase-home h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.immcase-home h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.immcase-home h3 { font-size: 1.15rem; font-weight: 700; }
.immcase-home p  { margin: 0 0 1rem; }

.immcase-home .ic-container { width: 100%; max-width: var(--ic-maxw); margin: 0 auto; padding: 0 24px; }
.immcase-home .ic-section { padding: 84px 0; }
.immcase-home .ic-section--soft { background: var(--bg-soft); }
.immcase-home .ic-section--ink  { background: var(--ink); color: #cdd9e6; }
.immcase-home .ic-section--ink h2,
.immcase-home .ic-section--ink h3 { color: #fff; }

.immcase-home .ic-eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--deep-blue); margin-bottom: 14px;
}
.immcase-home .ic-section--ink .ic-eyebrow { color: var(--bright-blue); }
.immcase-home .ic-lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.immcase-home .ic-section--ink .ic-lead { color: #b6c6d6; }

/* Buttons */
.immcase-home .ic-btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.immcase-home .ic-btn:hover { text-decoration: none; transform: translateY(-2px); }
.immcase-home .ic-btn--primary { background: var(--deep-blue); color: #fff; box-shadow: var(--ic-shadow-sm); }
.immcase-home .ic-btn--primary:hover { background: #0c6aa9; }
.immcase-home .ic-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.immcase-home .ic-btn--ghost:hover { border-color: var(--deep-blue); color: var(--deep-blue); }
.immcase-home .ic-btn--light { background: #fff; color: var(--ink); }
.immcase-home .ic-btn--light:hover { background: #eef5fb; }
.immcase-home .ic-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.immcase-home .ic-btn--outline-light:hover { border-color: #fff; }

/* Hero */
.immcase-home .ic-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(28,163,220,.12), transparent 60%),
    radial-gradient(820px 480px at 8% 8%, rgba(140,198,63,.12), transparent 55%),
    var(--bg);
  padding: 84px 0;
}
.immcase-home .ic-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.immcase-home .ic-hero h1 { margin-bottom: 18px; }
.immcase-home .ic-hero h1 .grad { background: var(--fan); -webkit-background-clip: text; background-clip: text; color: transparent; }
.immcase-home .ic-hero__sub { font-size: 1.22rem; color: var(--muted); max-width: 54ch; margin-bottom: 12px; }
.immcase-home .ic-hero__one { font-size: 1.02rem; color: var(--ink); font-weight: 600; max-width: 52ch; }
.immcase-home .ic-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.immcase-home .ic-hero__note { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); font-weight: 600; }
.immcase-home .ic-hero__visual {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 22px;
  background: linear-gradient(160deg, #fff, var(--bg-tint)); border: 1px solid var(--line);
  border-radius: 26px; box-shadow: var(--ic-shadow);
}
.immcase-home .ic-hero__visual .ic-tile {
  aspect-ratio: 1; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; padding: 16%; transition: transform .2s ease;
}
.immcase-home .ic-hero__visual .ic-tile:hover { transform: translateY(-4px) scale(1.03); }
.immcase-home .ic-hero__visual .ic-tile img { width: 100%; }

/* Fan rule */
.immcase-home .ic-fan-rule { height: 6px; width: 88px; border-radius: 999px; background: var(--fan); margin-bottom: 22px; }

/* Problem */
.immcase-home .ic-problem__card { background: #fff; border: 1px solid var(--line); border-radius: var(--ic-radius); padding: 30px 32px; box-shadow: var(--ic-shadow-sm); }
.immcase-home .ic-patchwork { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.immcase-home .ic-patchwork span { font-size: .9rem; font-weight: 600; color: var(--muted); background: var(--bg-soft); border: 1px dashed var(--line); padding: 7px 14px; border-radius: 999px; }

/* Pillars */
.immcase-home .ic-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 40px; }
.immcase-home .ic-pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--ic-radius); padding: 26px 24px; box-shadow: var(--ic-shadow-sm); position: relative; overflow: hidden; }
.immcase-home .ic-pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--fan); }
.immcase-home .ic-pillar__num { font-size: .85rem; font-weight: 800; color: var(--deep-blue); letter-spacing: .1em; }
.immcase-home .ic-pillar h3 { margin: 10px 0 8px; }
.immcase-home .ic-pillar p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Feature blocks */
.immcase-home .ic-feature-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.immcase-home .ic-feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.immcase-home .ic-feature-list li { padding-left: 30px; position: relative; color: var(--text); }
.immcase-home .ic-feature-list li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 4px; background: var(--fan); }
.immcase-home .ic-feature-list strong { color: var(--ink); }

.immcase-home .ic-tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.immcase-home .ic-tile-grid .ic-tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; place-items: center; box-shadow: var(--ic-shadow-sm); }
.immcase-home .ic-tile-grid .ic-tile img { width: 64px; }
.immcase-home .ic-tile-grid .ic-tile span { margin-top: 10px; font-size: .82rem; font-weight: 600; color: var(--muted); text-align: center; }

/* IRCC */
.immcase-home .ic-ircc { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; margin-top: 38px; }
.immcase-home .ic-ircc__card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--ic-radius); padding: 22px; }
.immcase-home .ic-ircc__card h3 { font-size: 1.02rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.immcase-home .ic-ircc__card p { color: #aebfd0; font-size: .94rem; margin: 0; }
.immcase-home .ic-ircc__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bright-blue); box-shadow: 0 0 0 4px rgba(55,182,234,.18); flex: none; }

/* Suite */
.immcase-home .ic-suite-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 18px; margin-top: 40px; }
.immcase-home .ic-suite-card { background: #fff; border: 1px solid var(--line); border-radius: var(--ic-radius); padding: 22px; box-shadow: var(--ic-shadow-sm); display: flex; flex-direction: column; gap: 12px; transition: transform .18s ease, box-shadow .18s ease; }
.immcase-home .ic-suite-card:hover { transform: translateY(-4px); box-shadow: var(--ic-shadow); }
.immcase-home .ic-suite-card img { width: 56px; height: 56px; }
.immcase-home .ic-suite-card h3 { font-size: 1rem; margin: 0; }
.immcase-home .ic-suite-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Compare */
.immcase-home .ic-compare { margin-top: 38px; border: 1px solid var(--line); border-radius: var(--ic-radius); overflow: hidden; box-shadow: var(--ic-shadow-sm); background:#fff; }
.immcase-home .ic-compare table { width: 100%; border-collapse: collapse; }
.immcase-home .ic-compare th, .immcase-home .ic-compare td { text-align: left; padding: 18px 22px; vertical-align: top; }
.immcase-home .ic-compare thead th { background: var(--ink); color: #fff; font-size: .92rem; }
.immcase-home .ic-compare tbody tr + tr td { border-top: 1px solid var(--line); }
.immcase-home .ic-compare tbody td:first-child { color: var(--muted); font-weight: 600; width: 38%; }
.immcase-home .ic-compare tbody td:last-child strong { color: var(--ink); }
.immcase-home .ic-compare tbody tr:nth-child(even) td { background: var(--bg-soft); }
.immcase-home .ic-frame { margin: 30px auto 0; text-align: center; font-size: 1.12rem; font-weight: 600; color: var(--ink); max-width: 70ch; }
.immcase-home .ic-frame strong { background: var(--fan); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* CTA */
.immcase-home .ic-cta {
  background:
    radial-gradient(700px 360px at 85% 10%, rgba(55,182,234,.25), transparent 60%),
    radial-gradient(640px 360px at 0% 100%, rgba(140,198,63,.22), transparent 55%),
    var(--ink);
  color: #fff; border-radius: 28px; padding: 56px 40px; text-align: center; box-shadow: var(--ic-shadow);
}
.immcase-home .ic-cta h2 { color: #fff; }
.immcase-home .ic-cta p { color: #c6d4e2; max-width: 56ch; margin: 0 auto 26px; }
.immcase-home .ic-cta__row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 920px) {
  .immcase-home .ic-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .immcase-home .ic-feature-block { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 720px) {
  .immcase-home .ic-section { padding: 60px 0; }
  .immcase-home .ic-compare thead { display: none; }
  .immcase-home .ic-compare table, .immcase-home .ic-compare tbody, .immcase-home .ic-compare tr, .immcase-home .ic-compare td { display: block; width: 100%; }
  .immcase-home .ic-compare tbody td:first-child { padding-bottom: 4px; }
  .immcase-home .ic-compare tbody td:last-child { padding-top: 4px; }
  .immcase-home .ic-compare tbody tr + tr td { border-top: 0; }
  .immcase-home .ic-compare tbody tr { border-top: 1px solid var(--line); }
}
