/* ============================================================
   public.css — Below-fold styles (loaded async, non-blocking)
   Critical above-fold CSS is inlined in index.html <head>
   ============================================================ */

/* ── SERVICES ── */
.services-section { padding: 6rem 1.5rem; background-color: var(--sandstone); }
.services-inner   { max-width: 72rem; margin: 0 auto; }
.section-header   { text-align: center; margin-bottom: 4rem; }
.section-tag      { color: var(--gold); letter-spacing: .2em; font-size: .875rem; text-transform: uppercase; margin-bottom: .75rem; display: block; font-weight: 500; }
.section-h2       { font-size: 2.25rem; font-weight: 700; color: var(--onyx); margin-bottom: 1rem; }
@media(min-width:768px){ .section-h2 { font-size: 3rem; } }
.section-divider  { width: 4rem; height: 1px; background: var(--gold); margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
  overflow: hidden;
}
@media(min-width:768px)  { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .services-grid { grid-template-columns: repeat(4,1fr); } }

.svc-card { position: relative; overflow: hidden; border-radius: 1rem; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: box-shadow .5s; }
.svc-card:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04); }
.svc-img-wrap  { overflow: hidden; height: 12rem; position: relative; }
.svc-img       { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.svc-card:hover .svc-img { transform: scale(1.05); }
.svc-img-overlay  { position: absolute; inset: 0; background: linear-gradient(to bottom,transparent,rgba(26,0,0,.40)); }
.svc-emoji-badge  { position: absolute; top: .75rem; right: .75rem; background: rgba(255,255,255,.20); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border-radius: 9999px; width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.svc-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: linear-gradient(135deg,var(--crimson),#1A0000); }
.svc-body   { padding: 1.5rem; }
.svc-name   { font-size: 1.25rem; font-weight: 700; color: var(--onyx); margin-bottom: .25rem; }
.svc-en     { color: var(--gold); font-size: .75rem; letter-spacing: .2em; margin-bottom: .75rem; font-weight: 500; }
.svc-desc   { color: rgba(26,0,0,.70); line-height: 1.625; font-size: .875rem; }
.svc-bar    { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s; }
.svc-card:hover .svc-bar { transform: scaleX(1); }

/* ── COUNTRIES ── */
.countries-section { padding: 6rem 1.5rem; background: linear-gradient(to bottom,var(--crimson),var(--onyx)); }
.countries-inner   { max-width: 80rem; margin: 0 auto; }
.countries-header  { text-align: center; margin-bottom: 4rem; }
.cnt-h2     { font-size: 2.25rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
@media(min-width:768px){ .cnt-h2 { font-size: 3rem; } }
.cnt-divider { width: 4rem; height: 1px; background: var(--gold); margin: 0 auto 1.5rem; }
.cnt-sub     { color: rgba(255,255,255,.70); margin: 0 auto; font-size: 1.25rem; max-width: 28rem; }

.countries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  overflow: hidden;
}
@media(min-width:640px)  { .countries-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .countries-grid { grid-template-columns: repeat(3,1fr); } }
@media(min-width:1280px) { .countries-grid { grid-template-columns: repeat(4,1fr); } }

.cnt-card { position: relative; overflow: hidden; border-radius: 1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(54,10,10,.10); transition: border-color .5s, box-shadow .5s; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cnt-card:hover { border-color: var(--gold); box-shadow: 0 25px 50px -12px rgba(253,245,245,.10); }
.cnt-img-wrap { position: relative; overflow: hidden; height: 12rem; }
.cnt-img      { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.cnt-card:hover .cnt-img { transform: scale(1.05); }
.cnt-img-ph   { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: linear-gradient(135deg,var(--crimson),#1A0000); }
.cnt-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top,var(--onyx),rgba(26,0,0,.30),transparent); }
.cnt-info     { position: absolute; bottom: 1rem; right: 1rem; display: flex; align-items: center; gap: .75rem; }
.cnt-flag     { font-size: 2.5rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.cnt-flag-img { width: 2.5rem; height: 2.5rem; object-fit: cover; border-radius: 9999px; border: 2px solid #fff; }
.cnt-name     { color: #fff; font-weight: 700; font-size: 1.25rem; line-height: 1.25; }
.cnt-en       { color: var(--gold); font-size: .75rem; letter-spacing: .1em; }
.cnt-body     { display: flex; gap: .5rem; padding: 1rem .5rem; justify-content: center;}
.cnt-phones   { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.cnt-phone    { font-size: .75rem; color: rgba(255,255,255,.60); display: flex; align-items: center; gap: 6px; }
.cnt-phone i  { color: var(--gold); font-size: .625rem; }
.cnt-wa-btn, .cnt-phone-btn   { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; max-height: 60px; padding: .75rem .5rem; border-radius: .75rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); transition: background .3s, border-color .3s; }
.cnt-wa-btn:hover { background: rgba(37,211,102,.20); border-color: rgba(37,211,102,.60); }
.cnt-phone-btn:hover { background: rgba(37, 102, 211, 0.2); border-color: rgba(37, 102, 211, 0.6); }
.cnt-wa-label { color: #fff; font-weight: 600; font-size: .875rem; text-align: center; }
.cnt-wa-icon, .cnt-phone-icon  { width: 1.5rem; height: 1.5rem; color: rgba(255,255,255,.40); transition: color .3s; flex-shrink: 0; }
.cnt-card:hover .cnt-wa-icon { color: var(--wa); }
.cnt-card:hover .cnt-phone-icon { color: var(--phone); }

/* ── LOCATION ── */
.location-section { padding: 5rem 1.5rem; background: var(--sandstone); }
.location-inner   { max-width: 64rem; margin: 0 auto; }
.location-header  { text-align: center; margin-bottom: 3rem; }
.loc-tag    { color: var(--gold); letter-spacing: .2em; font-size: .875rem; text-transform: uppercase; font-weight: 500; margin-bottom: .75rem; display: block; }
.loc-h2     { font-size: 2.25rem; font-weight: 700; color: var(--onyx); margin-bottom: 1rem; }
@media(min-width:768px){ .loc-h2 { font-size: 3rem; } }
.loc-divider { width: 4rem; height: 1px; background: var(--gold); margin: 0 auto 1rem; }
.loc-sub    { color: rgba(26,0,0,.60); font-size: 1rem; }

.map-wrap { display: block; position: relative; border-radius: 1rem; overflow: hidden; box-shadow: 0 10px 15px -3px rgba(0,0,0,.10); border: 2px solid rgba(139,26,26,.20); transition: box-shadow .5s, border-color .5s; }
.map-wrap:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); border-color: rgba(139,26,26,.60); }
.map-iframe  { width: 100%; height: 380px; border: 0; display: block; pointer-events: none; }
.map-ph      { width: 100%; height: 380px; background: linear-gradient(135deg,#3d0000,#1A0000); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.map-ph-icon { font-size: 3rem; }
.map-ph-text { color: rgba(255,255,255,.55); font-size: 1rem; }
.map-hover-ov { position: absolute; inset: 0; background: rgba(26,0,0,0); transition: background .3s; display: flex; align-items: center; justify-content: center; }
.map-wrap:hover .map-hover-ov { background: rgba(26,0,0,.20); }
.map-badge    { opacity: 0; transition: opacity .3s; background: #fff; border-radius: 1rem; padding: .75rem 1.5rem; display: flex; align-items: center; gap: .75rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,.10); }
.map-wrap:hover .map-badge { opacity: 1; }
.map-badge-text { color: var(--onyx); font-weight: 700; font-size: 1rem; }

/* ── FOOTER ── */
footer { background: linear-gradient(to bottom,var(--onyx),rgba(107,0,0,.85)); border-top: 1px solid rgba(255,255,255,.10); padding: 3rem 1.5rem; }
.ft-inner { max-width: 72rem; margin: 0 auto; }
.ft-flex  { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2rem; }
@media(min-width:768px){ .ft-flex { flex-direction: row; align-items: center; } }

.ft-brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
@media(min-width:768px){ .ft-brand { align-items: flex-end; text-align: right; } }
.ft-logo-box { border: 2px solid rgba(139,26,26,.50); border-radius: .75rem; padding: .5rem; background: rgba(255,255,255,.05); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ft-logo     { width: 4rem; height: 4rem; object-fit: contain; border-radius: .5rem; }
.ft-logo-ph  { width: 4rem; height: 4rem; border-radius: .5rem; background: linear-gradient(135deg,var(--crimson),#1A0000); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; }
.ft-name     { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: .25rem; }
.ft-spec     { color: var(--gold); font-size: .875rem; letter-spacing: .2em; }
.ft-contacts { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: .75rem; justify-content: center; }
@media(min-width:768px){ .ft-contacts { justify-content: flex-end; } }
.ft-contact-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.65); font-size: .8125rem; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); transition: color .2s, border-color .2s; }
.ft-contact-link:hover { color: var(--gold); border-color: rgba(139,26,26,.4); }
.ft-contact-link i { color: var(--gold); }
.ft-vdiv   { display: none; width: 1px; height: 4rem; background: rgba(255,255,255,.10); }
@media(min-width:768px){ .ft-vdiv { display: block; } }
.ft-badge-box    { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border-radius: .75rem; padding: .5rem; background-color: white; }
.ft-badge     { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ft-badge-lbl { color: rgba(22,67,82, .7); font-size: 1rem; font-weight: bold; text-transform: uppercase; letter-spacing: .2em; }
.ft-badge-ph { background: white; border: 2px solid rgba(22,67,82,.50); border-radius: .75rem; padding: .5rem;}
.ft-flags-lbl { color: rgba(255,255,255,.40); font-size: .75rem; margin-bottom: .5rem; }
.ft-flags     { font-size: 1.125rem; letter-spacing: .25em; }
.ft-bottom    { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.05); text-align: center; }
.ft-copy, .ft-copy p { color: rgba(255,255,255,.20); font-size: .75rem; }

/* Floating icons moved to critical inline CSS in index.html */

/* ── PRINT ── */
@media print {
  .lang-bar, .float-wa, .float-phone { display: none; }
}

/* ── MOBILE PERFORMANCE & UX ─────────────────────────────────── */

/* Smooth scrolling on iOS */
.countries-grid,
.services-grid { -webkit-overflow-scrolling: touch; }

/* Ensure tap targets are at least 44x44px on mobile */
@media (max-width: 767px) {
  .lang-btn     { min-height: 44px; padding: 0 20px; }
  .float-wa, .float-phone { width: 3.5rem; height: 3.5rem; }
  .ft-contact-link { min-height: 44px; padding: 10px 14px; }
  .cnt-wa-btn   { min-height: 44px; }

  /* Prevent text overflow on small screens */
  .hero-title   { word-break: break-word; }
  .cnt-sub      { font-size: 1rem; }
  .ft-name      { font-size: 1.25rem; }

  /* Full-width service cards look better on small phones */
  .svc-body     { padding: 1rem; }
  .svc-name     { font-size: 1.125rem; }

  /* Map height on mobile */
  .map-iframe   { height: 280px; }
  .map-ph       { height: 280px; }

  /* Footer stack nicely */
  .ft-flags     { font-size: 1rem; letter-spacing: .15em; }
}



/* Backdrop-filter graceful degradation (not supported on all Android) */
@supports not (backdrop-filter: blur(1px)) {
  .lang-toggle  { background: rgba(26,0,0,0.95); }
  .hero-logo-box{ background: rgba(26,0,0,0.6);  }
  .ft-logo-box  { background: rgba(26,0,0,0.6);  }
  .ft-badge-box { background: rgba(0,0,82,0.6);  }
}

/* Prevent 300ms tap delay on mobile */
a, button { touch-action: manipulation; }
