/* ============================================================
   ATLAS GUIDE — TOOLS HUB
   tools-hub.css  |  /tools/index.html
   ============================================================ */

:root {
  --teal:         #1A6B5F;
  --teal-light:   #2A8C7D;
  --teal-dim:     #E8F4F2;
  --teal-dark:    #0D4A40;
  --coral:        #C76A4A;
  --coral-dim:    #FAEEE9;
  --ink:          #1C1C1C;
  --ink-mid:      #3D3D3D;
  --ink-soft:     #6B6B6B;
  --sand:         #F5F0E8;
  --sand-dark:    #EDE5D6;
  --white:        #FFFFFF;
  --border:       rgba(28,28,28,.10);
  --border-soft:  rgba(28,28,28,.06);
  --shadow-sm:    0 2px 8px rgba(26,107,95,.08);
  --shadow-md:    0 8px 32px rgba(26,107,95,.12);
  --shadow-lg:    0 20px 60px rgba(26,107,95,.16);
  --radius:       14px;
  --radius-sm:    8px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img   { display: block; max-width: 100%; }
a     { color: inherit; }



.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute; top: -48px; left: 0;
  background: var(--teal); color: var(--white);
  padding: 8px 16px; font-size: 14px; font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0; text-decoration: none;
  transition: top .2s; z-index: 10000;
}
.skip-link:focus { top: 0; }

/* ===== PROGRESS BAR ===== */
.page-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  z-index: 9999; pointer-events: none;
}

/* ===== BREADCRUMB ===== */
/* Lives inside .hub-hero, inherits sand background */
.breadcrumb { padding: 0 0 20px; }
.breadcrumb__inner { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.breadcrumb__inner a { color: var(--teal); text-decoration: none; }
.breadcrumb__inner a:hover { text-decoration: underline; }
.breadcrumb__sep { opacity: .5; }

/* ===== HERO ===== */
.hub-hero {
  background: var(--sand);
  padding: 124px 0 64px;
  position: relative;
  overflow: hidden;
}
.hub-hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,107,95,.08) 0%, transparent 65%);
  pointer-events: none;
}
.hub-hero::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199,106,74,.07) 0%, transparent 65%);
  pointer-events: none;
}
.hub-hero__inner { position: relative; z-index: 1; max-width: 680px; }

.hub-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 18px;
}
.hub-hero__eyebrow::before {
  content: ''; display: inline-block;
  width: 24px; height: 2px; background: var(--teal); border-radius: 2px;
}

.hub-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.12; color: var(--ink); margin-bottom: 18px;
}
.hub-hero h1 em { font-style: italic; color: var(--teal); }

.hub-hero__sub {
  font-size: 1.05rem; color: var(--ink-mid); line-height: 1.7;
  max-width: 540px; margin-bottom: 40px;
}

.hub-hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hub-stat { display: flex; flex-direction: column; }
.hub-stat__val {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 700; color: var(--teal); line-height: 1;
}
.hub-stat__label {
  font-size: 11px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .08em; margin-top: 5px;
}

/* ===== TOOLS SECTION ===== */
.tools-section { padding: 72px 0 80px; }

.tools-section__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 10px;
}
.tools-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 44px;
}

/* ===== TOOL CARDS GRID ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.tool-card--featured { grid-column: span 7; }
.tool-card--tall     { grid-column: span 5; }
.tool-card--half     { grid-column: span 6; }
.tool-card--third    { grid-column: span 4; }

.tool-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.tool-card:not(.tool-card--muted):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.tool-card:not(.tool-card--muted):hover .tool-card__arrow { transform: translateX(5px); }
.tool-card:not(.tool-card--muted):hover .tool-card__icon  { transform: scale(1.06); }

/* Visual band */
.tool-card__visual {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  height: 200px; flex-shrink: 0;
}
.tool-card--featured .tool-card__visual,
.tool-card--tall     .tool-card__visual { height: 240px; }
.tool-card__visual--short { height: 160px !important; }

/* Dot grid texture */
.tool-card__visual::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 20px 20px; z-index: 0;
}

/* Per-tool colour themes */
.tool-card[data-tool="btv"]      .tool-card__visual { background: linear-gradient(140deg,#0d4a40,#1A6B5F 60%,#2A8C7D); }
.tool-card[data-tool="currency"] .tool-card__visual { background: linear-gradient(140deg,#0f3320,#1B5E35 60%,#2D7A4A); }
.tool-card[data-tool="packing"]  .tool-card__visual { background: linear-gradient(140deg,#4a1a08,#C76A4A 60%,#e8845f); }
.tool-card[data-tool="budget"]   .tool-card__visual { background: linear-gradient(140deg,#0f1e40,#1E3A7A 60%,#3A5FC0); }
.tool-card[data-tool="visa"]     .tool-card__visual { background: linear-gradient(140deg,#22103a,#5C2D91 60%,#8A52CC); }
.tool-card[data-tool="soon"]     .tool-card__visual { background: linear-gradient(140deg,#2a2a2a,#4a4a4a); }
.tool-card[data-tool="weather"]  .tool-card__visual { background: linear-gradient(140deg,#0e1f3a,#1a3d6b 60%,#2a5ea0); }

.tool-card__icon {
  position: relative; z-index: 1;
  width: 68px; height: 68px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transition: transform .2s;
}
.tool-card__icon--dim { background: rgba(255,255,255,.08); }

.tool-card__badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px; padding: 4px 11px;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.9); letter-spacing: .03em;
}

.tool-card__ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
  pointer-events: none;
}

/* Body */
.tool-card__body {
  padding: 22px 22px 20px;
  flex: 1; display: flex; flex-direction: column;
}
.tool-card__name {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  color: var(--ink); margin-bottom: 8px; line-height: 1.3;
}
.tool-card__desc {
  font-size: .875rem; color: var(--ink-soft);
  line-height: 1.65; flex: 1; margin-bottom: 18px;
}
.tool-card__footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.tool-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--teal);
}
.tool-card__cta--muted { color: var(--ink-soft); }
.tool-card__arrow { display: inline-block; transition: transform .2s ease; }
.tool-card__tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tool-card__tag {
  font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 20px;
  background: var(--teal-dim); color: var(--teal);
}
.tool-card--muted { opacity: .55; cursor: default; }

/* ===== WHY SECTION ===== */
.why-section { background: var(--sand); padding: 72px 0; }
.why-section__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 10px;
}
.why-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 44px;
}
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.why-item { display: flex; flex-direction: column; gap: 10px; }
.why-item__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--white); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.why-item__title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.3;
}
.why-item__text { font-size: .875rem; color: var(--ink-soft); line-height: 1.65; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--teal); padding: 68px 0;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 440px; height: 440px; border-radius: 50%;
  background: rgba(255,255,255,.05); pointer-events: none;
}
.cta-banner__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-banner__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 8px;
}
.cta-banner__text p { font-size: 1rem; color: rgba(255,255,255,.72); }
.cta-banner__btns { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

.btn-white {
  background: var(--white); color: var(--teal);
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .2s, transform .15s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-white:hover { background: var(--sand); transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--white);
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.38);
  transition: all .18s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); transform: translateY(-1px); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .48s ease, transform .48s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher-bottom {
  position: fixed; bottom: 20px; right: 20px; z-index: 800; transition: opacity .3s;
}
body.lang-hidden .language-switcher-bottom { opacity: 0; pointer-events: none; }
.language-switcher-bottom select {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-size: 13px; font-family: var(--font-body);
  color: var(--ink-mid); cursor: pointer; box-shadow: var(--shadow-sm);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .tool-card--featured,
  .tool-card--tall,
  .tool-card--half  { grid-column: span 12; }
  .tool-card--third { grid-column: span 6; }
  .why-grid         { grid-template-columns: repeat(2,1fr); }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .cta-banner__btns  { justify-content: center; }
}
@media (max-width: 600px) {
  .container         { padding: 0 16px; }
  .hub-hero          { padding: 52px 0 44px; }
  .tools-section     { padding: 52px 0 64px; }
  .hub-hero__stats   { gap: 28px; }
  .tool-card--third  { grid-column: span 12; }
  .why-grid          { grid-template-columns: 1fr; }
  .tools-grid        { gap: 14px; }
}