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

/* ══════════════════════════════════════════════════
   MM-Thai Visa — shared.css  (clean rewrite)
   ══════════════════════════════════════════════════ */

:root {
  --blue-deep:   #1A3F6F;
  --blue-mid:    #2563A8;
  --blue-light:  #3B82D4;
  --blue-pale:   #EBF3FC;
  --blue-border: #C5DBEF;
  --accent:      #F59E0B;
  --white:       #FFFFFF;
  --gray-50:     #F8FAFC;
  --gray-500:    #64748B;
  --gray-700:    #374151;
  --success:     #10B981;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.6;
  overflow-x: hidden;
}

/* TOPBAR */
.topbar {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 0.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: rgba(255,255,255,0.85); text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar-right { display: flex; gap: 1.5rem; align-items: center; }

/* NAV */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--blue-border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 12px rgba(26,63,111,0.08);
}

.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; min-width: 140px; }
.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--blue-deep); font-weight: 700; white-space: nowrap; letter-spacing: -0.01em; }
.logo-text span { color: var(--blue-light); font-weight: 400; }

ul.nav-links {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  list-style: none;
  height: 68px;
  margin: 0; padding: 0; gap: 0;
}
ul.nav-links > li { display: flex; align-items: stretch; position: relative; }
ul.nav-links > li > a {
  display: flex; align-items: center;
  padding: 0 0.65rem;
  font-size: 0.78rem; font-weight: 500;
  color: var(--gray-700); text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
ul.nav-links > li > a:hover { color: var(--blue-mid); border-bottom-color: var(--blue-light); }

/* Active nav page highlight */
ul.nav-links > li > a.nav-active {
  color: var(--blue-mid) !important;
  border-bottom: 2px solid var(--blue-light) !important;
  font-weight: 700;
}
@media (max-width: 1024px) {
  ul.nav-links > li > a.nav-active {
    border-left: 3px solid var(--blue-mid) !important;
    border-bottom: none !important;
    background: var(--blue-pale);
    color: var(--blue-deep) !important;
  }
}
ul.nav-links > li > a.nav-cta {
  align-self: center;
  background: var(--blue-mid); color: #fff !important;
  padding: 0.55rem 1rem; height: auto;
  border-radius: 6px; border-bottom: none !important;
  margin-left: 0.3rem; font-size: 0.78rem; font-weight: 600;
}
ul.nav-links > li > a.nav-cta:hover { background: var(--blue-deep); }

.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--blue-deep); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* DROPDOWN */
.has-drop { position: relative; }
.submenu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1.5px solid var(--blue-border);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(26,63,111,0.13);
  min-width: 230px; padding: 0.4rem 0; list-style: none; z-index: 600;
}
.has-drop:hover > .submenu { display: block; }
.submenu li a {
  display: block; padding: 0.75rem 1.2rem; font-size: 0.85rem;
  color: var(--gray-700); text-decoration: none; white-space: nowrap;
  border-left: 3px solid transparent; transition: background 0.15s, border-color 0.15s;
}
.submenu li a:hover { background: var(--blue-pale); border-left-color: var(--blue-mid); color: var(--blue-deep); }
.submenu li:first-child { border-bottom: 1px solid var(--blue-border); padding-bottom: 0.3rem; margin-bottom: 0.3rem; }

/* MOBILE NAV */
@media (max-width: 1024px) {
  nav { padding: 0 1.2rem; height: 60px; }
  .hamburger { display: flex; }
  ul.nav-links {
    display: none; position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; height: auto;
    background: var(--white); overflow-y: auto;
    border-top: 2px solid var(--blue-pale);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    z-index: 499; padding-bottom: 2rem;
  }
  ul.nav-links.open { display: flex; }
  ul.nav-links > li { display: block; height: auto; border-bottom: 1px solid var(--blue-pale); }
  ul.nav-links > li > a { display: block; height: auto; padding: 1rem 1.5rem; font-size: 1rem; border-bottom: none; border-left: 3px solid transparent; }
  ul.nav-links > li > a:hover { background: var(--blue-pale); border-left-color: var(--blue-mid); }
  ul.nav-links > li > a.nav-cta { align-self: auto; margin: 0.8rem 1.5rem; text-align: center; height: auto; padding: 0.9rem; border-radius: 8px; font-size: 1rem; }
  .submenu { position: static; display: none; box-shadow: none; border: none; border-radius: 0; background: var(--blue-pale); min-width: 0; padding: 0; }
  .has-drop:hover > .submenu { display: none; }
  .has-drop.open > .submenu { display: block; }
  .submenu li a { padding: 0.85rem 2.5rem; font-size: 0.95rem; border-left: none; border-bottom: 1px solid rgba(197,219,239,0.5); }
  .submenu li:first-child { border-bottom: 1px solid var(--blue-border); padding-bottom: 0; margin-bottom: 0; }
}
@media (min-width: 1025px) and (max-width: 1300px) {
  nav { padding: 0 1.5rem; }
  ul.nav-links > li > a { padding: 0 0.5rem; font-size: 0.74rem; }
}
@media (min-width: 1301px) {
  nav { padding: 0 3rem; }
  ul.nav-links > li > a { padding: 0 0.85rem; font-size: 0.82rem; }
}

/* FOOTER */
.footer-main {
  background: #0F2A50; color: rgba(255,255,255,0.75);
  padding: 3.5rem 3rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--white); font-weight: 700; display: block; margin-bottom: 0.8rem; }
.footer-logo span { color: var(--blue-light); font-weight: 400; }
.footer-desc { font-size: 0.83rem; line-height: 1.7; margin-bottom: 1rem; color: rgba(255,255,255,0.6); }
.footer-email { color: var(--accent); font-size: 0.85rem; text-decoration: none; }
.footer-email:hover { text-decoration: underline; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.83rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  background: var(--blue-deep); border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.2rem 3rem; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
}

/* SECTIONS */
.section { padding: 5rem 3rem; }
.section-alt { background: var(--gray-50); }
.section-blue { background: var(--blue-pale); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block; background: var(--blue-pale); color: var(--blue-mid);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.9rem; border-radius: 20px; margin-bottom: 0.8rem;
  border: 1px solid var(--blue-border);
}
h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: var(--blue-deep); line-height: 1.2; margin-bottom: 0.8rem; }
.section-sub { font-size: 1rem; color: var(--gray-500); max-width: 560px; margin: 0 auto; }

/* BUTTONS */
.btn-primary { background: var(--blue-mid); color: var(--white); padding: 0.85rem 2rem; border-radius: 6px; font-weight: 600; font-size: 0.92rem; text-decoration: none; display: inline-block; transition: background 0.2s, transform 0.2s; border: none; cursor: pointer; font-family: 'Nunito', sans-serif; }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--blue-deep); padding: 0.85rem 2rem; border-radius: 6px; font-weight: 600; font-size: 0.92rem; text-decoration: none; display: inline-block; transition: transform 0.2s, box-shadow 0.2s; border: none; cursor: pointer; font-family: 'Nunito', sans-serif; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-ghost { background: transparent; color: var(--white); padding: 0.85rem 2rem; border-radius: 6px; font-weight: 500; font-size: 0.92rem; text-decoration: none; display: inline-block; border: 1.5px solid rgba(255,255,255,0.5); transition: background 0.2s; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-whatsapp { background: #25D366; color: #fff; padding: 0.85rem 2rem; border-radius: 6px; font-weight: 600; font-size: 0.92rem; text-decoration: none; display: inline-block; transition: background 0.2s, transform 0.2s; }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }

/* BREADCRUMB */
.breadcrumb { background: var(--gray-50); border-bottom: 1px solid var(--blue-border); padding: 0.75rem 3rem; font-size: 0.8rem; color: var(--gray-500); }
.breadcrumb a { color: var(--blue-mid); text-decoration: none; }
.breadcrumb span { margin: 0 0.4rem; }

/* PAGE HERO */
.page-hero { background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 60%, var(--blue-light) 100%); color: var(--white); padding: 4rem 3rem; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.page-hero-inner { position: relative; z-index: 1; max-width: 700px; }
.page-hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.95); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 20px; margin-bottom: 1.2rem; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; margin-bottom: 1rem; color: var(--white); }
.page-hero-sub { font-size: 1rem; color: rgba(255,255,255,0.85); line-height: 1.75; margin-bottom: 2rem; max-width: 580px; }
.page-hero-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero-meta-item { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 0.6rem 1.2rem; font-size: 0.82rem; }
.hero-meta-item strong { display: block; font-size: 1rem; color: var(--accent); }

/* BOXES */
.req-box { background: var(--white); border: 1.5px solid var(--blue-border); border-radius: 12px; padding: 1.8rem; margin-bottom: 1.5rem; }
.req-box h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--blue-deep); margin-bottom: 1rem; }
.req-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.req-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; color: var(--gray-700); line-height: 1.5; }
.req-list li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 0.1rem; }
.highlight-box { background: var(--blue-pale); border: 1px solid var(--blue-border); border-left: 4px solid var(--blue-mid); border-radius: 8px; padding: 1.2rem 1.5rem; font-size: 0.88rem; color: var(--blue-deep); margin: 1.5rem 0; line-height: 1.6; }
.warning-box { background: #FEF3C7; border: 1px solid #FCD34D; border-left: 4px solid var(--accent); border-radius: 8px; padding: 1.2rem 1.5rem; font-size: 0.88rem; color: #92400E; margin: 1.5rem 0; line-height: 1.6; }

/* STEPS */
.steps-list { display: flex; flex-direction: column; gap: 1.2rem; }
.step-item { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--white); border: 1.5px solid var(--blue-border); border-radius: 10px; padding: 1.2rem 1.5rem; }
.step-num { width: 36px; height: 36px; min-width: 36px; background: var(--blue-mid); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.step-content h4 { font-size: 0.95rem; color: var(--blue-deep); margin-bottom: 0.3rem; }
.step-content p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; }

/* FAQ */
.faq-item { border: 1.5px solid var(--blue-border); border-radius: 8px; margin-bottom: 0.8rem; overflow: hidden; }
.faq-q { padding: 1rem 1.3rem; font-weight: 600; font-size: 0.9rem; color: var(--blue-deep); cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--white); transition: background 0.2s; user-select: none; }
.faq-q:hover { background: var(--blue-pale); }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--blue-mid); line-height: 1; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 1.3rem 1rem; font-size: 0.87rem; color: var(--gray-700); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* CTA STRIP */
.cta-strip { background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid)); color: var(--white); padding: 4rem 3rem; text-align: center; }
.cta-strip h2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-strip p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* RELATED GRID */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1rem; }
.related-card { background: var(--white); border: 1.5px solid var(--blue-border); border-radius: 10px; padding: 1.3rem; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; display: block; }
.related-card:hover { border-color: var(--blue-light); box-shadow: 0 4px 16px rgba(37,99,168,0.1); transform: translateY(-2px); }
.related-icon { font-size: 1.5rem; margin-bottom: 0.6rem; display: block; }
.related-title { font-size: 0.9rem; font-weight: 600; color: var(--blue-deep); margin-bottom: 0.3rem; }
.related-desc { font-size: 0.78rem; color: var(--gray-500); line-height: 1.5; }

/* CONTACT */
.contact-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--blue-border); }
.contact-row:last-child { border-bottom: none; }
.contact-ico { font-size: 1.2rem; margin-top: 0.1rem; }
.contact-lbl { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); margin-bottom: 0.2rem; }
.contact-val { font-size: 0.9rem; color: var(--gray-700); }
.contact-val a { color: var(--blue-mid); text-decoration: none; }
.contact-val a:hover { text-decoration: underline; }

/* WHATSAPP FLOAT */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; background: #25D366; color: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.4); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr 1fr; padding: 2.5rem; }
  .section { padding: 4rem 2rem; }
  .page-hero { padding: 3rem 2rem; }
  .breadcrumb { padding: 0.75rem 2rem; }
  .cta-strip { padding: 3.5rem 2rem; }
  .topbar { padding: 0.5rem 2rem; }
  .footer-bottom { padding: 1rem 2rem; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .footer-main { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
  .footer-bottom { padding: 1rem 1.5rem; flex-direction: column; gap: 0.4rem; text-align: center; font-size: 0.72rem; }
  .section { padding: 2.5rem 1.2rem; }
  .page-hero { padding: 2.5rem 1.2rem; }
  .page-hero h1 { font-size: 1.9rem; }
  .breadcrumb { padding: 0.75rem 1.2rem; font-size: 0.75rem; }
  .cta-strip { padding: 2.5rem 1.2rem; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns a { text-align: center; }
  .related-grid { grid-template-columns: 1fr; }
  h2 { font-size: 1.6rem; }
  .wa-float { width: 60px; height: 60px; bottom: 16px; right: 16px; }
}

/* ── SOCIAL ICONS ── */
.topbar-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  width: 28px; height: 28px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.social-icon:hover { color: #fff; background: rgba(255,255,255,0.15); }

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}
.footer-social-icon:hover { background: rgba(255,255,255,0.25); color: #fff; }
.footer-social-icon svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
  .topbar-social { display: none; }
}

/* ── MOBILE GLOBAL FIXES ── */
img { max-width: 100%; height: auto; }
* { -webkit-tap-highlight-color: rgba(0,0,0,0); }

/* Prevent iOS font size adjustment */
html { -webkit-text-size-adjust: 100%; }

/* Smooth scroll on iOS */
.nav-links { -webkit-overflow-scrolling: touch; }

/* Form inputs — prevent iOS zoom (must be 16px+) */
input, select, textarea {
  font-size: 16px !important;
  font-family: 'Nunito', sans-serif;
}
