/* ============================================================
   Football ICC — styles.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --blue-deep:  #1c2752;
  --blue:       #1d8ad6;
  --blue-pale:  #cfe4f3;
  --blue-dark:  #14406b;
  --ink:        #1f2330;
  --ink-soft:   #4a5061;
  --ink-faint:  #8a8f9c;
  --paper:      #fbfaf6;
  --paper-2:    #f3f1ea;
  --rule:       #dcdad3;
  --white:      #ffffff;

  --font:  'Plus Jakarta Sans', system-ui, sans-serif;
  --r:     2px;
  --w:     1060px;
  --pad:   44px;
  --ease:  cubic-bezier(0.32, 0.72, 0, 1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; background: #0b1628; }

body  {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Container ──────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ── Type ───────────────────────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 18px;
}
.label::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.45;
  flex-shrink: 0;
}
.label--blue  { color: var(--blue); }
.label--light { color: rgba(255,255,255,0.4); }
.label--light::before { background: var(--blue); opacity: 1; }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.08;
  color: var(--blue-deep);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 3.8rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: 1rem; letter-spacing: -0.01em; }
p  { color: var(--ink-soft); line-height: 1.75; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.22s var(--ease),
    color      0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform  0.15s var(--ease);
}
.btn:hover  { background: var(--ink); color: var(--white); }
.btn:active { transform: scale(0.975); }

.btn-primary {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.28);
  color: var(--white);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.07); }

.btn-white {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue-deep);
}
.btn-white:hover { background: var(--blue-pale); border-color: var(--blue-pale); }

/* ── Navigation — floating pill ─────────────────────────────── */
#site-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 8px 0 14px;
  gap: 2px;
  width: max-content;
  max-width: calc(100vw - 32px);
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(220,218,211,0.7);
  border-radius: 100px;
  transition: box-shadow 0.3s var(--ease);
}
#site-nav.is-scrolled {
  box-shadow: 0 4px 36px rgba(28,39,82,0.11);
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-right: 6px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin-right: 6px;
}
.nav-links a {
  display: block;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 100px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(28,39,82,0.05); }

.nav-cta-btn {
  padding: 8px 18px;
  font-size: 12px;
  border-radius: 100px;
}

/* hamburger — hidden desktop */
.nav-hamburger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 100px;
  transition: background 0.18s var(--ease);
}
.nav-hamburger:hover { background: rgba(28,39,82,0.06); }
.nav-hamburger .hb-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav-hamburger.is-active .hb-line:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav-hamburger.is-active .hb-line:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* mobile full-screen overlay */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(251, 250, 246, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 32px;
}
#mobile-menu.open { display: flex; }

#mobile-menu a {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--blue-deep);
  letter-spacing: -0.025em;
  line-height: 1.1;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity  0.4s var(--ease),
    transform 0.4s var(--ease),
    color    0.2s;
}
#mobile-menu.open a:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.04s; }
#mobile-menu.open a:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.09s; }
#mobile-menu.open a:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.14s; }
#mobile-menu.open a:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.19s; }
#mobile-menu a:hover { color: var(--blue); }

#mobile-menu .btn {
  margin-top: 16px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  padding: 10px 36px;
  border-radius: 100px;
  color: var(--white);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity  0.4s var(--ease),
    transform 0.4s var(--ease),
    background 0.2s,
    color    0.2s;
}
#mobile-menu.open .btn { opacity: 1; transform: none; transition-delay: 0.22s; }

/* ── Hero ───────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #0b1628 0%, #1c2752 40%, #1a5485 72%, #1d8ad6 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 128px 0 88px;
}
.hero-inner { max-width: 700px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(207,228,243,0.55);
  margin-bottom: 30px;
}

#hero h1 {
  color: var(--white);
  margin-bottom: 26px;
}

.hero-sub {
  font-size: 16.5px;
  color: rgba(255,255,255,0.64);
  line-height: 1.7;
  max-width: 530px;
  margin-bottom: 44px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Section shell ──────────────────────────────────────────── */
.sec {
  padding: 100px 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 80px;
}
.sec--alt  { background: var(--paper-2); }
.sec--dark {
  background: var(--blue-deep);
  border-bottom: none;
}
#contact { border-bottom: none; }

/* ── Section header ─────────────────────────────────────────── */
.sec-header { margin-bottom: 56px; }
.sec-header h2 { line-height: 1.12; }

/* ── Overview ───────────────────────────────────────────────── */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.ov-left h2 { margin-bottom: 20px; line-height: 1.1; }
.ov-left p  { font-size: 15px; }

.ov-card {
  background: var(--blue-pale);
  border: 1px solid rgba(29,138,214,0.14);
  border-radius: var(--r);
  padding: 40px;
}
.ov-card-head {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.4;
  margin-bottom: 14px;
}
.ov-card p { font-size: 14px; line-height: 1.75; }
.ov-card p + p { margin-top: 10px; }
.ov-card-note {
  font-size: 12.5px;
  color: var(--ink-faint);
  font-style: italic;
}

/* ── Accordion ──────────────────────────────────────────────── */
.accordion { border-top: 1px solid var(--rule); }
.acc-item  { border-bottom: 1px solid var(--rule); }

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
.acc-trigger:hover .acc-title { color: var(--blue-deep); }

.acc-num {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  min-width: 28px;
  flex-shrink: 0;
  transition: color 0.2s var(--ease);
}
.acc-item.is-open .acc-num { color: var(--blue); }

.acc-title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.012em;
  transition: color 0.2s var(--ease);
}
.acc-item.is-open .acc-title { color: var(--blue-deep); }

/* ±  icon circle */
.acc-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.acc-icon::before,
.acc-icon::after {
  content: '';
  position: absolute;
  background: var(--ink-soft);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), background 0.2s;
}
.acc-icon::before { width: 8px; height: 1.5px; }
.acc-icon::after  { width: 1.5px; height: 8px; }

.acc-item.is-open .acc-icon {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}
.acc-item.is-open .acc-icon::before { background: var(--white); }
.acc-item.is-open .acc-icon::after  {
  background: var(--white);
  transform: scaleY(0);
  opacity: 0;
}

/* grid-template-rows trick: animates height without JS */
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.44s var(--ease);
}
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }

.acc-body-inner {
  overflow: hidden;
  padding-bottom: 0;
  transition: padding-bottom 0.44s var(--ease);
}
.acc-item.is-open .acc-body-inner { padding-bottom: 30px; }

.acc-body p {
  font-size: 14.5px;
  line-height: 1.78;
  max-width: 620px;
  padding-left: 50px;
}

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs-nav {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--rule);
}
.tab-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  padding: 11px 20px;
  background: none;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--r) var(--r) 0 0;
  cursor: pointer;
  position: relative;
  bottom: -1px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.is-active {
  color: var(--blue-deep);
  background: var(--paper);
  border-color: var(--rule);
  border-bottom-color: var(--paper);
}

.tabs-body { padding-top: 40px; }

.tab-pane { display: none; }
.tab-pane.is-active {
  display: block;
  animation: tabIn 0.3s var(--ease);
}
@keyframes tabIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tab-list { display: flex; flex-direction: column; }
.tab-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.5;
}
.tab-list li:last-child { border-bottom: none; }
.tab-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 5px;
}

/* ── Contact dark section ───────────────────────────────────── */
#contact.sec--dark h2 {
  color: var(--white);
  margin-bottom: 18px;
  max-width: 520px;
  line-height: 1.1;
}
#contact.sec--dark > .wrap > p {
  font-size: 15px;
  color: rgba(255,255,255,0.58);
  max-width: 440px;
  margin-bottom: 36px;
}
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-foot {
  font-size: 11.5px;
  color: rgba(255,255,255,0.22);
  margin-top: 32px;
  font-style: italic;
}

/* ── Footer ─────────────────────────────────────────────────── */
#footer {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  height: 28px;
  width: auto;
  display: block;
  margin-bottom: 12px;
  object-fit: contain;
}
.footer-brand p {
  font-size: 12px;
  color: var(--ink-faint);
  max-width: 280px;
  line-height: 1.6;
}
.footer-legal-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: 11px;
  color: var(--ink-faint);
  text-align: right;
}
.footer-legal-block a { color: var(--ink-faint); transition: color 0.15s; }
.footer-legal-block a:hover { color: var(--ink-soft); }

/* ── Comparison table ───────────────────────────────────────── */
.comp-wrap {
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.comp-table thead tr {
  background: var(--ink);
  color: var(--white);
}
.comp-table th {
  padding: 13px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
}
.comp-table th.th-dim {
  width: 18%;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.4;
}
.comp-table th.th-icc {
  background: var(--blue-deep);
  width: 41%;
}
.comp-table th.th-old { width: 41%; }

.comp-table td {
  padding: 14px 20px;
  vertical-align: middle;
  line-height: 1.45;
  border-top: 1px solid var(--rule);
}
.comp-table td.td-dim {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.comp-table td.td-icc {
  background: rgba(207,228,243,0.28);
  color: var(--ink);
}
.comp-table tbody tr:nth-child(even) td            { background: var(--paper-2); }
.comp-table tbody tr:nth-child(even) td.td-icc    { background: rgba(207,228,243,0.45); }

.chk  { color: var(--blue-dark); font-weight: 700; margin-right: 6px; }
.dash { color: var(--ink-faint); margin-right: 6px; }

.comp-legend {
  display: none;
}

/* ── Why Guernsey ───────────────────────────────────────────── */
.g-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.g-intro h2  { margin-bottom: 16px; }
.g-intro > p { font-size: 14.5px; line-height: 1.75; }

.g-points { display: flex; flex-direction: column; padding-top: 56px; }
.g-point  {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.g-point:last-child { border-bottom: 1px solid var(--rule); }
.g-dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--blue);
  flex-shrink: 0;
  transform: rotate(45deg);
}

/* ── Scroll reveal ──────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity   0.72s var(--ease),
    transform 0.72s var(--ease);
  transition-delay: var(--delay, 0s);
}
.fade-up.in-view {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 820px) {
  .overview-grid, .g-layout { grid-template-columns: 1fr; gap: 32px; }
  .g-points { padding-top: 0; }
  /* comparison table: horizontal scroll on narrow viewports */
  .comp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .comp-table { min-width: 540px; }
}

@media (max-width: 768px) {
  :root { --pad: 20px; }

  /* nav → full-width pill at top, below status bar */
  #site-nav {
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    justify-content: space-between;
    padding: 0 8px 0 14px;
  }
  .nav-links, .nav-cta-btn { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo img { height: 34px; }

  .sec { padding: 64px 0; scroll-margin-top: 64px; }

  /* hero bleeds behind status bar; push content clear of it */
  .hero-body { padding: calc(100px + env(safe-area-inset-top, 0px)) 0 64px; }
  #hero h1   { font-size: clamp(2.1rem, 8vw, 2.8rem); }
  .hero-sub  { font-size: 15px; }

  .acc-trigger { gap: 14px; }
  .acc-body p  { padding-left: 0; }
  .acc-title   { font-size: 15px; }

  .ov-card { padding: 24px; }

  .tab-btn { padding: 10px 14px; font-size: 12px; }

  /* comparison table legend */
  .comp-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink-soft);
  }

  /* comparison table → stacked cards */
  .comp-wrap {
    overflow-x: visible;
    border: none;
    border-radius: 0;
  }
  .comp-table { min-width: 0; font-size: 13px; }

  .comp-table,
  .comp-table tbody,
  .comp-table tr,
  .comp-table td { display: block; width: 100%; }

  .comp-table thead { display: none; }

  .comp-table tbody tr {
    border: 1px solid var(--rule);
    border-radius: var(--r);
    margin-bottom: 8px;
    overflow: hidden;
  }
  .comp-table tbody tr:last-child { margin-bottom: 0; }

  .comp-table td { border-top: none; }

  .comp-table td.td-dim {
    background: var(--ink);
    color: rgba(255,255,255,0.42);
    padding: 8px 14px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .comp-table td.td-icc {
    background: rgba(207,228,243,0.38);
    padding: 13px 14px;
    color: var(--ink);
  }

  .comp-table td:last-child {
    padding: 13px 14px;
    background: var(--paper);
    border-top: 1px solid var(--rule);
  }

  /* reset zebra-stripe overrides */
  .comp-table tbody tr:nth-child(even) td            { background: var(--paper); }
  .comp-table tbody tr:nth-child(even) td.td-dim     { background: var(--ink); }
  .comp-table tbody tr:nth-child(even) td.td-icc     { background: rgba(207,228,243,0.38); }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-legal-block { align-items: flex-start; text-align: left; }
}

@media (max-width: 480px) {
  .hero-actions, .cta-btns {
    flex-direction: column;
  }
  .hero-actions .btn, .cta-btns .btn {
    width: 100%;
    justify-content: center;
  }
}
