/* ExpatAmigo theme - adapted from the owner's mockups (2026-11-27).
   Sizes use rem so the A / A+ / A++ buttons (root font size) scale the whole site. */
:root{
  --navy:#0F2F5F; --blue:#1558A6; --sky:#EAF4FC; --sky2:#F4F9FE; --line:#D6E8F7; --line2:#A9C9E8;
  --ink:#14243D; --muted:#46546B; --orange:#FFA53B; --gold:#FFC24B; --deep:#0B2348;
  --rose:#A81E66; --rosebg:#FDF0F6; --cream:#FFF6E2; --warnbg:#FFF1D9; --warn:#C26A00; --red:#9E1B1B;
  /* legacy names used by existing templates */
  --bg:#FFFFFF; --card:#FFFFFF; --accent:var(--blue); --accent-dk:var(--navy); --accent2:var(--sky);
  --pet:#7a4f12; --petbg:#fbefd9; --ok:#1f6b3a;
}
html{font-size:17px}
html[data-textsize="2"]{font-size:19px}
html[data-textsize="3"]{font-size:21.5px}
*{box-sizing:border-box}
[hidden]{display:none!important}   /* "hidden" must win over display rules like label{display:flex} */
body{margin:0;font-family:'Lato',Verdana,sans-serif;font-size:1.12rem;line-height:1.55;color:var(--ink);background:#fff}
a{color:var(--blue)}a:hover{color:var(--navy)}
img{max-width:100%}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px}
:focus-visible{outline:3px solid var(--orange);outline-offset:2px}

/* ---------- top bar + header ---------- */
.topbar{background:var(--navy);color:#fff}
.topbar .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;padding-block:6px;font-size:.92rem}
.textsize{display:flex;align-items:center;gap:6px}
.textsize button{min-width:44px;height:38px;border:2px solid #fff;border-radius:8px;background:transparent;color:#fff;font:inherit;cursor:pointer}
.textsize button[aria-pressed="true"]{background:#fff;color:var(--navy);font-weight:700}
.textsize .s1{font-size:.95rem}.textsize .s2{font-size:1.1rem}.textsize .s3{font-size:1.25rem}
.masthead{border-bottom:3px solid var(--line);background:#fff}
.masthead .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;padding-block:14px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--navy);font-size:1.85rem;font-weight:700;line-height:1.1}
.brand small{display:block;font-size:.8rem;font-weight:400;color:var(--muted)}
.brand svg{flex:none}
/* logo lettering (owner request: bold stylized name in header + footer; rest of the site stays Lato) */
.logo-word{display:block;font-family:'Paytone One','Lato',sans-serif;font-weight:400;line-height:1.15;letter-spacing:.2px}
.logo-word em{font-style:normal;color:#E8871E}
.brand .logo-word{font-size:1.75rem;padding-bottom:2px}
.site-foot .logo-word{padding-bottom:4px}
.site-foot .logo-word em{color:var(--orange)}
.mainnav{display:flex;flex-wrap:wrap;gap:8px;font-weight:900;font-size:1.02rem}
.mainnav a{padding:10px 16px;border-radius:10px;background:var(--sky);color:var(--navy);text-decoration:none}
.mainnav a:hover{background:#d8ebfa}
.mainnav a.on{background:var(--navy);color:#fff}

/* ---------- ad slot (reserved; ads come later) ---------- */
.ad-slot{margin:18px auto}
/* banner spaces - standard sizes (owner 2026-11-28): 970x250 on computers, 300x250 on phones */
.ad-slot .ad-live{display:block;max-width:970px;margin:0 auto;line-height:0}
.ad-slot .ad-live img{display:block;width:100%;height:auto;border-radius:8px}
.ad-slot.in-list,#grid .ad-slot.wrap{margin:4px 0;padding:0}
.ad-label{max-width:970px;margin:3px auto 0;font-size:.72rem;color:var(--muted);text-align:right;letter-spacing:.04em}
.ad-house{max-width:970px;aspect-ratio:970/250;margin:0 auto;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;
  text-align:center;padding:16px;border-radius:12px;background:linear-gradient(120deg,var(--navy),var(--blue));color:#fff;text-decoration:none}
.ad-house:hover{color:#fff;filter:brightness(1.08)}
.ad-house .ah-t{font-size:1.7rem;font-weight:700}
.ad-house .ah-d{color:#DCEEFF}
.ad-house .ah-b{background:var(--orange);color:var(--deep);font-weight:700;padding:8px 18px;border-radius:999px}
@media (max-width:640px){.ad-slot .ad-live{max-width:300px}.ad-label{max-width:300px}.ad-house{max-width:300px;aspect-ratio:300/250}.ad-house .ah-t{font-size:1.35rem}}

/* ---------- page basics ---------- */
main{padding-bottom:48px}
main.page{max-width:1180px;margin:0 auto;padding:30px 24px 56px}
h1{font-size:2.5rem;line-height:1.15;margin:0 0 8px;color:var(--navy)}
h2{color:var(--navy)}
.lead{color:var(--muted);margin:0 0 18px;font-size:1.15rem}
.msg{padding:12px 16px;border-radius:10px;margin:14px 0;background:var(--sky);border:2px solid var(--line2)}
.msg.error{background:#FDE8E8;border:2px solid #C62828;color:#7F1D1D;font-weight:700;border-radius:16px}
.msg.error::before{content:'⚠ ';}
.msg.success{background:#E7F6EC;border:2px solid #2E7D4F;color:#14532D;font-weight:700;border-radius:16px}
.msg.success::before{content:'✓ ';}
.msgs{padding-top:14px}.msgs .msg{margin:0 0 10px;font-size:1.1rem}
.panel{background:#fff;border:2px solid var(--line2);border-radius:14px;padding:22px}
.coming{background:var(--sky);border-radius:16px;padding:40px 28px;text-align:center;color:var(--navy);font-size:1.2rem}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 24px;border:0;border-radius:10px;
  background:var(--blue);color:#fff;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
.btn:hover{background:var(--navy);color:#fff}
.btn.navy{background:var(--navy)}
.btn.orange{background:var(--orange);color:var(--deep)}.btn.orange:hover{background:#ff9520;color:var(--deep)}
.btn.secondary{background:#fff;color:var(--navy);border:3px solid var(--navy)}.btn.secondary:hover{background:var(--sky);color:var(--navy)}
.btn.danger{background:var(--red)}
.btn.small{min-height:40px;padding:0 14px;font-size:.9rem}

/* ---------- forms ---------- */
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px 18px}
.form-grid .full{grid-column:1/-1}
label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:var(--ink);font-size:1rem}
input,select,textarea{font:inherit;font-weight:400;padding:10px 12px;border:3px solid var(--blue);border-radius:10px;color:var(--ink);background:#fff;min-width:0;min-height:52px}
input[type=checkbox],input[type=radio]{min-height:0;width:24px;height:24px;accent-color:var(--navy);padding:0}
textarea{min-height:140px}
.errorlist{color:var(--red);margin:2px 0;padding-left:18px;font-size:.95rem;font-weight:400}
.help{font-size:.88rem;color:var(--muted);font-weight:400}

/* ---------- footer ---------- */
.site-foot{background:var(--navy);color:#fff;margin-top:24px}
.site-foot .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:24px;padding-block:36px}
.site-foot .fname{font-size:1.7rem;font-weight:700}
.site-foot .fsub{font-size:.9rem;color:#C6DDF5;max-width:520px}
.site-foot nav{display:flex;flex-direction:column;gap:6px}
.site-foot a{color:#fff}
.site-foot .footsmall{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px 18px;border-top:1px solid #ffffff26;padding-block:12px 18px;font-size:.82rem;color:#C6DDF5}
.footsmall a{color:#C6DDF5}

/* ---------- home ---------- */
.hero-img{display:block;width:100%;height:clamp(240px,42vw,540px);object-fit:cover;object-position:center bottom}
.hero{background:var(--navy);color:#fff}
.hero .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:36px;padding-block:44px 52px}
.hero h1{color:#fff;font-size:clamp(2.1rem,4.4vw,3.2rem);margin:0 0 14px}
.hero p{margin:0;font-size:1.3rem;color:#DCEEFF}
.hero .ctas{flex:1 1 300px;display:flex;flex-direction:column;gap:14px}
.hero .ctas a{display:block;padding:18px 24px;border-radius:12px;font-size:1.35rem;font-weight:700;text-align:center;text-decoration:none}
.hero .cta1{background:var(--orange);color:var(--deep)}.hero .cta1:hover{background:#ff9520;color:var(--deep)}
.hero .cta2{border:3px solid #fff;color:#fff}.hero .cta2:hover{background:#ffffff1a;color:#fff}
.section{padding-block:56px}
.section h2{font-size:2.2rem;margin:0 0 24px}
.band{background:var(--sky)}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:24px}
.hcard{display:flex;flex-direction:column;border:3px solid var(--blue);border-radius:16px;overflow:hidden;text-decoration:none;color:var(--ink);background:#fff;transition:transform .12s,box-shadow .12s}
.hcard:hover{transform:translateY(-3px);box-shadow:0 8px 22px #0f2f5f26;color:var(--ink)}
.hcard img{width:100%;height:200px;object-fit:cover;object-position:center bottom}
.hcard .in{display:flex;flex-direction:column;flex-grow:1;gap:10px;padding:22px}
.hcard .t{font-size:1.55rem;font-weight:700;color:var(--navy)}
.hcard .d{flex-grow:1}
.hcard .go{display:block;padding:13px;border-radius:10px;background:var(--blue);color:#fff;font-weight:700;text-align:center}
.split{display:flex;flex-wrap:wrap;align-items:center;gap:44px}
.split > div{flex:1 1 440px;min-width:0}
.split img{flex:1 1 400px;min-width:0;width:100%;height:340px;object-fit:cover;border-radius:16px}
.steps{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}
.steps li{background:var(--sky2);border-radius:16px;padding:26px}
.steps .num{width:56px;height:56px;border-radius:50%;background:var(--orange);color:var(--deep);display:flex;align-items:center;justify-content:center;font-size:1.6rem;font-weight:700}
.steps h3{margin:14px 0 6px;font-size:1.45rem}
.steps p{margin:0}
.places{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:24px}
.places article{border-radius:16px;padding:28px;color:#fff;background:var(--navy)}
.places article.alt{background:var(--blue)}
.places h3{margin:0 0 8px;font-size:1.55rem;color:#FFC879}
.places article.alt h3{color:#FFE0B0}
.places p{margin:0}
.signup{max-width:860px;margin:0 auto;text-align:center}
.signup form{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:12px;text-align:left}
.signup label{flex:1 1 340px}
/* small contact form (Home) */
.contact{max-width:1180px;padding-block:30px}
.contact h2{font-size:1.5rem;margin:0 0 4px}
.contact p{margin:0 0 14px;color:var(--muted)}
.contact form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.contact .c-email{flex:1 1 230px}.contact .c-msg{flex:2 1 320px}.contact .c-cap{flex:0 1 auto}
.contact label{font-size:.95rem}
.contact input{min-height:46px;padding:8px 10px}
.c-cap img.captcha{display:block;height:46px;border-radius:6px;margin:2px 0 6px;background:#fff}
img.captcha{height:50px!important;width:auto!important;max-width:none;align-self:flex-start;display:block;border-radius:6px;margin:4px 0 6px}   /* was stretched huge in some forms */
.c-cap input[type=text]{width:150px}
.contact .btn{min-height:46px}
@media (max-width:520px){.places{grid-template-columns:1fr}}

/* invisible spam check: off-screen box only robots fill in (core/antispam.py) */
.hp-wrap{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
