/* MJL Services location pages (built by scripts/locations/build_locations.py) and the Web Design Philippines page. */
:root { --primary-blue: #0066cc; --dark-blue: #004c99; --light-blue: #e6f2ff; --white: #ffffff; --off-white: #f8f9fa; --text-dark: #1a1a1a; --text-gray: #555555; --green: #15803d; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--text-dark); line-height: 1.6; }
a { color: var(--primary-blue); }
nav { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid #eee; }
.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--primary-blue); text-decoration: none; }
.mjl-logo-link { display: inline-flex; align-items: center; gap: 10px; }
.mjl-logo { height: 40px; width: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 500; }
.nav-links a:hover { color: var(--primary-blue); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary-blue); cursor: pointer; }

.hero { padding: 150px 5% 70px; background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%); }
.hero-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: #dbeafe; color: #1d4ed8; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.12; color: var(--text-dark); margin: 0 0 1rem; letter-spacing: -.5px; }
.hero h1 span { color: var(--primary-blue); }
.hero-lead { color: var(--text-gray); max-width: 560px; margin: 0 0 1.8rem; font-size: 1.15rem; }
.hero .actions { justify-content: flex-start; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 1.4rem; color: #334155; font-size: .93rem; font-weight: 600; }
.checks span::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 6px; }
.hero-card { background: #fff; border-radius: 22px; padding: 14px; box-shadow: 0 30px 60px -30px rgba(0,76,153,.45); border: 1px solid #e3eaf3; position: relative; }
.hero-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.hero-card .who { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 8px 4px; }
.hero-card .who b { display: block; font-size: 1.05rem; }
.hero-card .who small { color: var(--text-gray); }
.hero-card .loc { background: var(--light-blue); color: var(--dark-blue); font-weight: 700; font-size: .8rem; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.hero-card .tag { position: absolute; left: -16px; top: 26px; background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.3); font-size: .85rem; font-weight: 700; color: var(--text-dark); }
.hero-card .tag small { display: block; color: var(--text-gray); font-weight: 500; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 28px; background: var(--primary-blue); color: #fff; text-decoration: none; text-align: center; border-radius: 50px; font-weight: 600; border: 2px solid var(--primary-blue); }
.btn:hover { background: var(--dark-blue); border-color: var(--dark-blue); }
.btn-ghost { background: #fff; color: var(--dark-blue); border-color: #cbd5e1; }
.btn-ghost:hover { background: var(--light-blue); border-color: var(--primary-blue); }

section { padding: 64px 5%; }
.wrap { max-width: 1060px; margin: 0 auto; }
.alt { background: var(--off-white); }
.section-subtitle { display: block; text-align: center; color: var(--primary-blue); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; margin-bottom: .4rem; }
h2.section-title { text-align: center; font-size: clamp(1.6rem, 3.4vw, 2.1rem); color: var(--text-dark); margin-bottom: .8rem; line-height: 1.25; }
.lead { text-align: center; color: var(--text-gray); max-width: 720px; margin: 0 auto 2.2rem; }

.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.price-card { background: #fff; border: 1px solid #e3eaf3; border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--primary-blue); box-shadow: 0 16px 40px -20px rgba(0,102,204,.45); }
.price-card h3 { color: var(--dark-blue); font-size: 1.15rem; }
.price-card .amount { font-size: 2rem; font-weight: 800; color: var(--text-dark); margin: .4rem 0 0; letter-spacing: -.5px; }
.price-card .note { color: var(--text-gray); font-size: .85rem; margin-bottom: 1rem; }
.price-card ul { list-style: none; color: var(--text-gray); font-size: .95rem; flex: 1; margin-bottom: 1.2rem; }
.price-card li { padding: 5px 0 5px 22px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.price-foot { text-align: center; color: var(--text-gray); font-size: .9rem; margin-top: 1.4rem; }

.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why div { background: #fff; border-radius: 14px; padding: 22px; border: 1px solid #e6edf6; }
.why .icon { font-size: 1.7rem; display: block; margin-bottom: .5rem; }
.why h3 { color: var(--dark-blue); font-size: 1.02rem; margin-bottom: .35rem; }
.why p { color: var(--text-gray); font-size: .93rem; }

.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.work a { display: block; background: #fff; border: 1px solid #e3eaf3; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--text-dark); transition: transform .2s, box-shadow .2s; }
.work a:hover { border-color: var(--primary-blue); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,76,153,.5); }
.work .shot { height: 150px; display: flex; align-items: center; justify-content: center; background: #0d0d0d; }
.work .shot img { max-height: 120px; max-width: 80%; object-fit: contain; }
.work .shot.ultra { background: linear-gradient(135deg, #0b1d3a, #123d7a); color: #fff; font-weight: 900; font-size: 1.8rem; letter-spacing: .08em; }
.work .body { padding: 18px 20px 20px; }
.tpls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tpls a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid #e3eaf3; background: #fff; text-decoration: none; color: var(--text-dark); }
.tpls a:hover { border-color: var(--primary-blue); }
.tpls img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.tpls span { display: block; padding: 10px 12px; font-weight: 600; font-size: .92rem; }
.work b { display: block; font-size: 1.1rem; color: var(--dark-blue); }
.work small { display: block; color: var(--primary-blue); font-weight: 600; margin: 2px 0 8px; }
.work p { color: var(--text-gray); font-size: .93rem; }

.expat { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; background: radial-gradient(circle at 85% 0%, #0b3a7a 0%, #061633 65%); color: #fff; border-radius: 20px; padding: 34px; }
.expat h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.25; margin-bottom: .7rem; }
.expat p { color: rgba(255,255,255,.85); margin-bottom: .7rem; }
.phones { display: grid; gap: 12px; }
.phones a { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 14px 18px; color: #fff; text-decoration: none; }
.phones a:hover { background: rgba(255,255,255,.14); }
.phones .flag { font-size: 1.6rem; }
.phones small { display: block; color: rgba(255,255,255,.7); font-size: .8rem; }
.phones b { font-size: 1.1rem; }

.cities { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cities a { background: #fff; border: 1px solid #dbe5f1; border-radius: 999px; padding: 9px 16px; text-decoration: none; color: var(--dark-blue); font-weight: 600; font-size: .95rem; }
.cities a:hover { border-color: var(--primary-blue); background: var(--light-blue); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps div { background: #fff; border-radius: 14px; padding: 22px; border: 1px solid #e6edf6; }
.steps div::before { counter-increment: s; content: counter(s); display: flex; width: 38px; height: 38px; border-radius: 50%; background: var(--primary-blue); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: .7rem; }
.steps h3 { color: var(--dark-blue); font-size: 1.02rem; margin-bottom: .3rem; }
.steps p { color: var(--text-gray); font-size: .93rem; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid #e3eaf3; border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--dark-blue); }
.faq details p { color: var(--text-gray); margin-top: .6rem; }

.cta { text-align: center; background: var(--dark-blue); color: #fff; }
.cta h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: .6rem; }
.cta p { color: #dbeafe; margin-bottom: 1.4rem; }
.cta .btn { background: #fff; color: var(--dark-blue); border-color: #fff; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

footer { background: #003a75; color: #fff; text-align: center; padding: 2rem 5%; }
footer a { color: #fff; }
footer p + p { margin-top: .4rem; font-size: .92rem; }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; } .hero-lead { margin-left: auto; margin-right: auto; } .hero .actions, .checks { justify-content: center; } .hero-card { max-width: 380px; margin: 0 auto; } .hero-card .tag { left: 10px; } .why, .tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prices, .work, .steps { grid-template-columns: 1fr; } .expat { grid-template-columns: 1fr; padding: 26px; } }
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 2rem; text-align: center; box-shadow: 0 10px 10px rgba(0,0,0,.1); }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero { padding-top: 130px; }
}
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } .actions .btn { width: 100%; } }

/* Location pages only */
.sub { color: var(--text-gray); font-size: .92rem; margin-top: -.9rem; margin-bottom: 1.6rem; }
.intro { max-width: 860px; margin: 0 auto; text-align: center; }
.intro p { color: var(--text-gray); margin-bottom: .8rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 1rem; }
.tags span { background: var(--light-blue); color: var(--dark-blue); font-weight: 600; font-size: .9rem; padding: 6px 14px; border-radius: 999px; }
.spotlight { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid #e3eaf3; border-radius: 20px; padding: 26px; box-shadow: 0 18px 40px -28px rgba(0,76,153,.5); margin-bottom: 22px; }
.spotlight .logo { height: 160px; border-radius: 14px; background: #0d0d0d; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.spotlight .logo img { max-width: 80%; max-height: 120px; object-fit: contain; }
.spotlight .logo.text { background: linear-gradient(135deg, #0b1d3a, #123d7a); color: #fff; font-weight: 900; letter-spacing: .06em; font-size: 1.3rem; text-align: center; padding: 10px; }
.spotlight small { display: block; color: var(--primary-blue); font-weight: 700; font-size: .85rem; margin-bottom: .2rem; }
.spotlight h3 { color: var(--dark-blue); font-size: 1.35rem; margin-bottom: .4rem; }
.spotlight p { color: var(--text-gray); margin-bottom: .9rem; }
.guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide div { background: #fff; border: 1px solid #e6edf6; border-radius: 14px; padding: 20px; }
.guide h3 { color: var(--dark-blue); font-size: 1.02rem; margin-bottom: .4rem; line-height: 1.35; }
.guide p { color: var(--text-gray); font-size: .94rem; }
.local p { color: var(--text-gray); margin-bottom: 1rem; }
.local-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 1.2rem 0 1.4rem; padding: 0; list-style: none; }
.local-services li { background: var(--off-white); border-radius: 12px; padding: 14px 16px; color: var(--text-gray); font-size: .95rem; }
.local-services a { font-weight: 700; }
.lakbay { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #e8f7ef, #e6f2ff); border: 1px solid #cfe6dc; border-radius: 16px; padding: 16px 20px; text-decoration: none; color: var(--text-dark); margin-top: 1.4rem; }
.lakbay:hover { border-color: #0a8f5a; }
.lakbay .i { font-size: 2rem; line-height: 1; flex: none; }
.lakbay b { display: block; color: #0a6b45; }
.lakbay span span { color: #444; font-size: .93rem; }
.lakbay em { flex: none; margin-left: auto; font-style: normal; background: #0a8f5a; color: #fff; font-weight: 700; padding: 9px 15px; border-radius: 999px; font-size: .88rem; white-space: nowrap; }
.cities .group { width: 100%; text-align: center; font-weight: 800; color: var(--text-gray); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 10px 0 2px; }
.cities a[aria-current="page"] { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }
.near { text-align: center; color: var(--text-gray); font-size: .92rem; margin-top: 1.2rem; }
@media (max-width: 900px) { .spotlight { grid-template-columns: 1fr; text-align: center; } .spotlight .logo { max-width: 240px; margin: 0 auto; width: 100%; } .guide, .local-services { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .lakbay { flex-wrap: wrap; } .lakbay em { width: 100%; text-align: center; margin-left: 0; } }
