/* Expat Focus destination template styles. Generated from the approved
   mockup (ef-redesign/surfaces/destination-pages/output/destination-mockup.html).
   Scoped under .efd. Edit here for the dev build. 2026-06-23. */

/* ============================================================
   Expat Focus destination page — REDESIGN MOCKUP
   Worked example: Germany. All figures are SAMPLE/placeholder.
   Everything is scoped under .efd so it can inform the
   GenerateBlocks Element later. Brand colours are tokens at the
   top — swap to the real EF palette in one place.
   No external assets (no copyrighted images); hero + stat icons
   are CSS/SVG so the design is self-contained.
   ============================================================ */

:root{
  --efd-primary:#0e5a6e;
  --efd-primary-dark:#093f4e;
  --efd-accent:#f0a202;        /* warm CTA accent */
  --efd-accent-dark:#cf8a00;
  /* warmer secondary accents for the aspirational ("heart") layer */
  --efd-warm:#ff8a5c;
  --efd-sun:#ffd166;
  --efd-coral:#ef6f6c;
  --efd-ink:#23303a;
  --efd-muted:#5b6b79;
  --efd-bg:#fbf7f2;            /* warm off-white, not clinical grey */
  --efd-card:#ffffff;
  --efd-line:#ece4da;          /* warm hairline */
  --efd-radius:18px;
  --efd-shadow:0 8px 26px rgba(9,63,78,.09);
  --efd-shadow-lg:0 20px 52px rgba(9,63,78,.20);
  --efd-max:1140px;
}

/* photo placeholder helper — clearly marks where real photography goes.
   Drop a real per-destination image in (ACF destination_hero_image / card
   featured images) and these markers disappear. */
.efd .efd-photo{position:relative;overflow:hidden;background-size:cover;background-position:center}
.efd .efd-photo[data-ph]::after{content:"📷 " attr(data-ph);position:absolute;left:12px;bottom:12px;
  background:rgba(0,0,0,.55);color:#fff;font-size:11px;font-weight:700;letter-spacing:.03em;
  padding:5px 10px;border-radius:7px;pointer-events:none}

*{box-sizing:border-box}
body{margin:0;background:var(--efd-bg)}

.efd{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--efd-ink);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
.efd img{max-width:100%;display:block}
/* generic links only - buttons excluded, else this (0,1,1) outranks the
   .efd-btn--* colour declarations (0,1,0) and repaints button text teal */
.efd a:not([class*="efd-btn"]){color:var(--efd-primary);text-decoration:none}
.efd a:hover:not([class*="efd-btn"]){text-decoration:underline}

.efd-wrap{max-width:var(--efd-max);margin:0 auto;padding:0 20px}



/* ---- buttons ---- */
.efd-btn{
  display:inline-flex;align-items:center;gap:8px;
  font-weight:700;font-size:16px;line-height:1;
  padding:14px 22px;border-radius:999px;border:0;cursor:pointer;
  transition:transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.efd-btn:hover{text-decoration:none;transform:translateY(-1px)}
.efd-btn--primary{background:var(--efd-accent);color:#3a2700;box-shadow:0 6px 18px rgba(240,162,2,.34)}
.efd-btn--primary:hover{background:var(--efd-accent-dark);color:#3a2700}
/* SOLID, not glass: sits over the hero photo where the veil is weakest, so no
   translucency - the photo must not influence its contrast at all */
.efd-btn--ghost{background:var(--efd-primary-dark);color:#fff;border:1.5px solid rgba(255,255,255,.85)}
.efd-btn--ghost:hover{background:var(--efd-primary);color:#fff}
.efd-btn--outline{background:#fff;color:var(--efd-primary);border:1.5px solid var(--efd-line)}
.efd-btn--outline:hover{border-color:var(--efd-primary)}
.efd-btn--sm{font-size:14px;padding:10px 16px}

/* ---- section scaffolding ---- */
.efd-section{padding:54px 0}
.efd-section--tight{padding:38px 0}
.efd-eyebrow{
  text-transform:uppercase;letter-spacing:.12em;font-size:12.5px;font-weight:800;
  color:var(--efd-warm);margin:0 0 6px
}
.efd-h2{font-size:30px;line-height:1.15;margin:0 0 6px;font-weight:800;letter-spacing:-.4px}
.efd-h2 em{font-style:italic;color:var(--efd-primary)}
.efd-sub{color:var(--efd-muted);margin:0 0 26px;font-size:16px}
.efd-head-row{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.efd-head-row .efd-sub{margin-bottom:0}

/* =========================================================
   1. HERO
   ========================================================= */
.efd-hero{
  position:relative;color:#fff;overflow:hidden;
}
/* .efd-hero__bg carries ONLY the photo (set inline) or, with no photo, this
   warm fallback gradient. The veil that guarantees text legibility is a single
   always-on overlay (::before) so it stays consistent across all 81 photos and
   is tuned in one place. */
.efd-hero__bg{position:absolute;inset:0;background-size:cover;background-position:center;
  background-image:linear-gradient(120deg,#0e5a6e,#1c8095 40%, #f0a26b 100%);
  /* faint blur softens busy detail behind the text; slight scale-up hides the
     blurred edges (clipped by .efd-hero overflow:hidden). Text is a sibling, so
     it stays crisp. */
  filter:blur(2px);transform:scale(1.06);}
/* subtle FULL-WIDTH vertical gradient (even across the whole width, so it never
   reads as a patch): a little darker through the top band where the headline +
   blurb sit, easing off lower down. Lifts text legibility while keeping the
   photo bright and untouched-looking. */
.efd-hero__bg::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg, rgba(8,40,50,.60) 0%, rgba(8,46,58,.46) 38%, rgba(9,63,78,.24) 70%, rgba(9,63,78,.14) 100%);}
.efd-hero__bg[data-ph]::after{content:"📷 " attr(data-ph);position:absolute;left:50%;top:14px;
  transform:translateX(-50%);background:rgba(0,0,0,.4);color:#fff;font-size:11px;font-weight:700;
  padding:6px 12px;border-radius:8px;white-space:nowrap;pointer-events:none}
.efd-hero__inner{padding:64px 20px 74px;position:relative;z-index:2} /* keep .efd-wrap's side padding: this rule outranks it */
/* reserve extra bottom space only when the overlapping "at a glance" card
   follows (cohort destinations); else the hero would have a dead gap. */
.efd-hero--glance .efd-hero__inner{padding-bottom:140px}
.efd-crumbs{font-size:13px;color:rgba(255,255,255,.82);margin-bottom:18px}
.efd-crumbs a{color:rgba(255,255,255,.82)}
.efd-flag{
  width:64px;height:44px;border-radius:7px;box-shadow:0 4px 14px rgba(0,0,0,.25);
  display:grid;grid-template-rows:1fr 1fr 1fr;overflow:hidden;margin-bottom:16px
}
.efd-flag span{display:block}
.efd-flag .b{background:#111}.efd-flag .r{background:#d00}.efd-flag .y{background:#ffce00}
/* Force white: the theme's global `h1{color:#242c9d}` (brand indigo) otherwise
   beats the hero's inherited white and renders the headline dark on the photo. */
.efd-hero h1{color:#fff;font-size:54px;line-height:1.02;margin:0 0 14px;font-weight:800;letter-spacing:-.7px;
  text-shadow:0 1px 3px rgba(0,0,0,.45)}
.efd-hero h1 em{font-style:italic;color:var(--efd-sun)}
.efd-hero__eyebrow{display:inline-block;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);
  padding:6px 14px;border-radius:999px;font-size:12.5px;font-weight:700;letter-spacing:.07em;
  text-transform:uppercase;margin-bottom:16px}
.efd-hero__lede{font-size:20px;max-width:560px;color:rgba(255,255,255,.94);margin:0 0 26px;
  text-shadow:0 1px 2px rgba(0,0,0,.7), 0 1px 8px rgba(0,0,0,.5)}
.efd-hero__cta{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.efd-hero__note{font-size:13px;color:rgba(255,255,255,.72);margin-top:14px}

/* floating "at a glance" card overlapping hero + next section */
.efd-glance{
  position:relative;z-index:3;margin-top:-92px;margin-bottom:10px;
  background:var(--efd-card);border-radius:var(--efd-radius);box-shadow:var(--efd-shadow-lg);
  padding:22px 24px;
}
.efd-glance__top{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.efd-glance__title{font-size:18px;font-weight:800;margin:0}
.efd-glance__title small{display:block;font-weight:600;color:var(--efd-muted);font-size:12.5px;margin-top:2px}
.efd-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.efd-stat{
  background:#fbf6ef;border:1px solid var(--efd-line);border-radius:13px;padding:14px 12px;text-align:left
}
.efd-stat__ico{color:var(--efd-primary);margin-bottom:8px}
.efd-stat__val{font-size:21px;font-weight:800;line-height:1.1}
.efd-stat__lbl{font-size:12px;color:var(--efd-muted);margin-bottom:3px;line-height:1.3} /* label sits ABOVE the value */
.efd-compare-cta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.efd-compare-cta .pick{
  display:inline-flex;align-items:center;gap:8px;background:#fff;border:1.5px solid var(--efd-line);
  border-radius:999px;padding:9px 14px;font-weight:700;color:var(--efd-ink);font-size:14px
}
.efd-compare-cta .pick b{color:var(--efd-primary)}

/* =========================================================
   2. PRIMARY LEAD-GEN (insurance) — the commercial spine
   ========================================================= */
.efd-lead{
  background:linear-gradient(120deg,#0e5a6e 0%, #14708a 100%);
  color:#fff;border-radius:18px;padding:30px 32px;box-shadow:var(--efd-shadow);
  display:grid;grid-template-columns:1.4fr .9fr;gap:26px;align-items:center
}
.efd-lead h3{color:#fff;font-size:25px;margin:0 0 8px;font-weight:800}
.efd-lead p{margin:0 0 16px;color:rgba(255,255,255,.92);font-size:16px}
.efd-lead ul{list-style:none;margin:0;padding:0;display:flex;gap:18px;flex-wrap:wrap}
.efd-lead li{display:flex;align-items:center;gap:8px;font-size:14px;color:rgba(255,255,255,.95)}
.efd-lead li svg{flex:0 0 auto}
.efd-lead__box{text-align:center}
.efd-lead__box .efd-btn{width:100%;justify-content:center;margin-top:4px}
.efd-lead__box small{display:block;color:rgba(255,255,255,.78);font-size:12.5px;margin-top:10px}

/* =========================================================
   3/4. ARTICLE CARDS (Featured + Recent)
   ========================================================= */
.efd-grid{display:grid;gap:22px}
.efd-grid--feat{grid-template-columns:1.6fr 1fr 1fr}
.efd-grid--2{grid-template-columns:repeat(2,1fr)}
.efd-grid--3{grid-template-columns:repeat(3,1fr)}
.efd-card{
  background:var(--efd-card);border:1px solid var(--efd-line);border-radius:var(--efd-radius);
  overflow:hidden;box-shadow:var(--efd-shadow);display:flex;flex-direction:column;
  transition:transform .1s ease, box-shadow .15s ease
}
.efd-card:hover{transform:translateY(-3px);box-shadow:var(--efd-shadow-lg)}
.efd-thumb{aspect-ratio:16/9;background:linear-gradient(135deg,#f6d9bf,#e7a98c);position:relative;background-size:cover;background-position:center}
.efd-thumb[data-ph]::after{content:"📷";position:absolute;right:10px;bottom:9px;font-size:13px;opacity:.6;pointer-events:none}
.efd-thumb--tall{aspect-ratio:4/3}
.efd-thumb span{
  position:absolute;left:12px;top:12px;background:rgba(9,63,78,.86);color:#fff;
  font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:5px 9px;border-radius:6px
}
.efd-card__body{padding:16px 17px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.efd-card__meta{font-size:12px;color:var(--efd-muted)}
.efd-card__title{font-size:17px;font-weight:700;line-height:1.3;margin:0}
.efd-grid--feat .efd-card:first-child .efd-card__title{font-size:22px}
.efd-card__excerpt{font-size:14px;color:var(--efd-muted);margin:0}
.efd-card__more{margin-top:auto;font-weight:700;font-size:14px}

/* =========================================================
   5. EXPAT EXPERIENCES
   ========================================================= */
.efd-exp-band{background:#f4ece2}
.efd-exp{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.efd-exp__card{background:#fff;border:1px solid var(--efd-line);border-radius:var(--efd-radius);padding:20px 16px;text-align:center;box-shadow:var(--efd-shadow)}
.efd-ava{width:62px;height:62px;border-radius:50%;margin:0 auto 12px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:22px}
.efd-exp__name{font-weight:700;font-size:15px}
.efd-exp__where{font-size:12.5px;color:var(--efd-muted);margin-bottom:8px}
.efd-exp__quote{font-size:13px;color:var(--efd-muted);font-style:italic}

/* =========================================================
   6. MOVING GUIDE topics
   ========================================================= */
.efd-topics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.efd-topic{
  display:flex;align-items:center;gap:11px;background:#fff;border:1px solid var(--efd-line);
  border-radius:11px;padding:13px 15px;font-weight:600;color:var(--efd-ink);font-size:14.5px
}
.efd-topic:hover{border-color:var(--efd-primary);text-decoration:none}
.efd-topic .dot{width:34px;height:34px;border-radius:9px;background:#eaf3f5;color:var(--efd-primary);display:grid;place-items:center;flex:0 0 auto}

/* =========================================================
   7. SECONDARY SERVICES
   ========================================================= */
.efd-serv{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.efd-serv__card{background:#fff;border:1px solid var(--efd-line);border-radius:var(--efd-radius);padding:22px;box-shadow:var(--efd-shadow)}
.efd-serv__card h4{margin:10px 0 6px;font-size:17px}
.efd-serv__card p{margin:0 0 14px;color:var(--efd-muted);font-size:14px}
.efd-serv__ico{width:42px;height:42px;border-radius:10px;background:#eaf3f5;color:var(--efd-primary);display:grid;place-items:center}

/* =========================================================
   8. NEWSLETTER
   ========================================================= */
.efd-news{background:var(--efd-primary-dark);color:#fff;border-radius:18px;padding:34px;text-align:center}
.efd-news h3{margin:0 0 6px;font-size:24px}
.efd-news p{margin:0 0 18px;color:rgba(255,255,255,.85)}
.efd-news form{display:flex;gap:10px;max-width:480px;margin:0 auto;flex-wrap:wrap}
.efd-news input{flex:1;min-width:220px;padding:13px 16px;border-radius:999px;border:0;font-size:15px}

/* =========================================================
   responsive
   ========================================================= */
@media (max-width:960px){
  .efd-stats{grid-template-columns:repeat(3,1fr)}
  .efd-grid--feat,.efd-grid--3{grid-template-columns:repeat(2,1fr)}
  .efd-grid--feat .efd-card:first-child{grid-column:1 / -1}
  .efd-exp{grid-template-columns:repeat(2,1fr)}
  .efd-topics{grid-template-columns:repeat(2,1fr)}
  .efd-serv{grid-template-columns:1fr}
  .efd-lead{grid-template-columns:1fr;gap:6px} /* stacked: button hugs the text above */
}
@media (max-width:560px){
  .efd-hero h1{font-size:38px}
  .efd-stats{grid-template-columns:repeat(2,1fr)}
  .efd-grid--feat,.efd-grid--2,.efd-grid--3,.efd-exp{grid-template-columns:1fr}
  .efd-grid--feat .efd-card:first-child{grid-column:auto}
  .efd-section{padding:40px 0}
}

/* ---- Country Compare scorecard (ef-strategy data wired into the glance panel) ---- */
.efd-stats--score{grid-template-columns:repeat(auto-fit,minmax(118px,1fr))}
.efd-stats--score .efd-stat__val{font-size:15px;font-weight:700;line-height:1.25}
.efd-glance__read{margin-top:18px;display:flex;flex-direction:column;gap:8px}
.efd-factors{margin:0;font-size:13.5px;color:var(--efd-muted);display:flex;flex-wrap:wrap;align-items:center;gap:8px;line-height:1.5}
.efd-factors strong{color:var(--efd-ink);font-weight:700;margin-right:2px}
.efd-factor{display:inline-flex;align-items:baseline;gap:5px;background:#f4efe8;border:1px solid var(--efd-line);border-radius:999px;padding:3px 11px;color:var(--efd-ink);font-weight:600;font-size:13px;text-transform:capitalize}
.efd-factor small{color:var(--efd-muted);font-weight:600;font-size:11.5px;text-transform:none}
.efd-factors--weigh .efd-factor{background:#fff4ec;border-color:#f6d9c4}
.efd-glance__detail{margin-top:18px;display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
/* warm fill matching the .efd-stat tiles: reads as static data, NOT as the
   white bordered buttons the insurance widget uses for clickable options */
.efd-glance__detail>div{display:flex;flex-direction:column;gap:3px;background:#fbf6ef;border:1px solid var(--efd-line);border-radius:13px;padding:12px 14px}
.efd-detail-lbl{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--efd-primary)}
.efd-detail-val{font-size:14px;color:var(--efd-ink);line-height:1.35}
.efd-glance__sources{margin:14px 0 0;color:var(--efd-muted);line-height:1.4}
@media(max-width:560px){.efd-glance__detail{grid-template-columns:1fr}}

/* ---- Newsletter block (markup shared with the homepage; styles mirror home.css
   .efh .news, incl. the button/hover re-asserts against the theme hijack) ---- */
.efd .news{background:var(--efd-primary-dark);color:#fff;border-radius:22px;padding:40px;text-align:center;position:relative;overflow:hidden}
.efd .news::before{content:"";position:absolute;right:-40px;top:-40px;width:200px;height:200px;border-radius:50%;background:rgba(240,162,2,.25)}
.efd .news h3{margin:0 0 6px;font-size:26px;position:relative;color:#fff}
.efd .news p{margin:0 0 18px;color:rgba(255,255,255,.85);position:relative}
.efd .news .mc4wp-form-fields{display:flex;gap:10px;max-width:520px;margin:0 auto;flex-wrap:wrap;justify-content:center;position:relative}
.efd .news input[type=email],.efd .news input[type=text]{flex:1;min-width:220px;padding:14px 16px;border-radius:999px;border:0;font-size:15px}
.efd .news input[type=submit],.efd .news button{background:var(--efd-accent);color:#3a2700;font-weight:700;font-size:16px;padding:14px 24px;border-radius:999px;border:0;cursor:pointer}
.efd .news input[type=submit]:hover,.efd .news input[type=submit]:focus,
.efd .news button:hover,.efd .news button:focus{background:var(--efd-accent-dark);color:#3a2700}
.efd .news .efh-news-privacy{flex-basis:100%;font-size:12.5px;color:rgba(255,255,255,.75);margin:6px 0 0}
.efd .news .efh-news-privacy a{color:#ffd98a}

/* ---- monthly updates band (financial + healthcare worldwide round-ups) ---- */
.efd-updates{display:flex;align-items:center;gap:10px 22px;flex-wrap:wrap;background:#fff;
  border:1px solid var(--efd-line);border-radius:14px;padding:16px 22px;box-shadow:var(--efd-shadow)}
.efd-updates__lbl{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--efd-warm,#b0651d)}
.efd-updates a{font-weight:700;font-size:14.5px;color:var(--efd-primary);text-decoration:none}
.efd-updates a:hover{color:var(--efd-accent-dark);text-decoration:underline}

/* paired header buttons (experiences: view all + share) */
.efd-head-row__btns{display:flex;gap:10px;flex-wrap:wrap}
