:root {
  --navy: #061a30;
  --navy-deep: #031326;
  --navy-soft: #0a2744;
  --gold: #d6a35f;
  --gold-bright: #e0b158;
  --paper: #f7f5ef;
  --ink: #10213a;
  --white: #fff;
  --line: rgba(214, 163, 95, .48);
  --container: 1240px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; background: var(--navy); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; overflow-x: clip; background: var(--navy); color: var(--white); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; }

/* ONE RULE FOR THE WHOLE SITE:
   content is centered in a 1240px grid; backgrounds and photos remain full-bleed. */
.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.page { width: 100%; min-height: 100vh; overflow: hidden; background: var(--navy); }
.section-navy { background: var(--navy); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 9999; top: 10px; left: 10px; transform: translateY(-160%); padding: 10px 14px; border-radius: 6px; background: #fff; color: var(--navy); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

/* Header — full-width navy, 1240px content */
.topbar { width: 100%; background: #04182d; border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-block: 16px; }
.brand { display: block; width: 340px; max-width: 42%; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 100%; height: auto; }
.brand-promise { margin-left: auto; text-align: right; line-height: 1.22; }
.brand-promise p { margin: 0; }
.brand-promise-en { color: var(--gold-bright); font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.brand-promise-th { margin-top: 6px !important; color: #fff; font-family: Tahoma, "Leelawadee UI", Thonburi, sans-serif; font-size: 16px; font-weight: 400; }

/* Hero — full-width photo, copy centered EXACTLY in the 1240px grid */
.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(540px, 36vw, 650px);
  overflow: hidden;
  background-color: var(--navy);
  background-image: url("images/bangkok-wat-arun-hero-v6.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 54%;
  border-bottom: 1px solid rgba(214,163,95,.42);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,8,18,.12) 0%, rgba(0,8,18,.02) 46%, rgba(0,8,18,.24) 100%),
    radial-gradient(circle at 50% 42%, rgba(3,18,35,.08) 0%, rgba(3,18,35,.16) 48%, rgba(3,18,35,.23) 100%);
  pointer-events: none;
}
.hero-inner {
  min-height: inherit;
  display: grid;
  place-items: center;
  padding-block: 46px;
}
.hero-copy {
  width: min(100%, 820px);
  margin-inline: auto;
  text-align: center;
  transform: translateY(-2px);
}
.hero h1 { margin: 0; font-size: clamp(46px, 4vw, 68px); line-height: 1.01; letter-spacing: -.041em; text-shadow: 0 4px 20px rgba(0,0,0,.48); }
.hero h1 span { display: block; }
.hero-title-white { color: #fff; font-weight: 700; }
.hero-title-gold { margin-top: 6px; color: var(--gold-bright); font-weight: 600; }
.hero-mark { width: min(340px, 56%); margin: 24px auto 10px; display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 13px; }
.hero-line { height: 1px; background: var(--gold-bright); opacity: .9; }
.hero-symbol-wrap { width: 44px; height: 44px; display: grid; place-items: center; }
.hero-symbol-wrap img { width: 44px; height: 44px; object-fit: contain; aspect-ratio: 1 / 1; }
.hero-th { margin: 0; color: #fff; font-family: Tahoma, "Leelawadee UI", Thonburi, sans-serif; font-size: clamp(29px, 2.1vw, 40px); line-height: 1.24; font-weight: 500; text-shadow: 0 3px 14px rgba(0,0,0,.62); }
.hero-th span, .hero-th strong { display: block; }
.hero-th strong { color: var(--gold-bright); font-weight: 500; }

/* Intro — full-width background image, 1240px text grid */
.intro { position: relative; overflow: hidden; padding: 40px 0 42px; border-bottom: 1px solid rgba(214,163,95,.38); }
.intro-photo { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,26,48,.96), rgba(6,26,48,.90) 50%, rgba(6,26,48,.96)), url("images/bangkok-skyline-v6.webp") center 56% / cover no-repeat; opacity: .52; pointer-events: none; }
.intro-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) 1px minmax(0,1fr); gap: 38px; align-items: stretch; }
.language-divider { width: 1px; background: var(--line); }
.copy { min-width: 0; font-size: 16px; line-height: 1.68; }
.copy p { margin: 0 0 13px; }
.copy p:last-child { margin-bottom: 0; }
.copy-th { font-family: Tahoma, "Leelawadee UI", Thonburi, sans-serif; line-height: 1.78; }
.gold-lead { color: var(--gold-bright); }

/* Services — full-width white section, cards locked to 1240px */
.services { width: 100%; background: var(--paper); color: var(--ink); border-bottom: 1px solid rgba(205,156,77,.52); }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); padding-block: 28px 24px; }
.service-card { position: relative; min-width: 0; padding: 0 24px 4px; text-align: center; }
.service-card + .service-card::before { content: ""; position: absolute; left: 0; top: 9%; width: 1px; height: 82%; background: rgba(202,151,67,.30); }
.service-icon { width: 108px; height: 108px; margin: 0 auto 9px; display: grid; place-items: center; }
.service-icon img { width: 104px; height: 104px; object-fit: contain; }
.service-card h3 { margin: 0 0 5px; font-size: 17px; line-height: 1.18; text-transform: uppercase; letter-spacing: .025em; font-weight: 600; }
.service-card p { margin: 0; min-height: 28px; font-family: Tahoma, "Leelawadee UI", Thonburi, sans-serif; font-size: 16px; line-height: 1.42; }
.mini-line { display: block; width: 32px; height: 2px; margin: 10px auto 0; background: var(--gold-bright); }

/* Network — full-width navy, 1240px grid */
.network { position: relative; width: 100%; overflow: hidden; border-bottom: 1px solid var(--line); }
.network-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,26,48,.08), rgba(6,26,48,.22) 38%, rgba(6,26,48,.95) 75%), linear-gradient(180deg, #061a30 0%, #061a30 100%); pointer-events: none; }
.network-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 37% 31.5% 31.5%; align-items: stretch; }
.network-visual { position: relative; min-height: 405px; overflow: hidden; }
.network-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 58%, rgba(6,26,48,.38) 82%, #061a30 100%); pointer-events: none; }
.network-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 38% center; }
.network-copy { min-width: 0; padding: 40px 30px 34px; border-left: 1px solid rgba(214,163,95,.34); font-size: 15.5px; line-height: 1.62; }
.network-copy h2 { margin: 0 0 14px; color: var(--gold-bright); font-size: 22px; line-height: 1.2; font-weight: 500; }
.network-copy p { margin: 0 0 12px; }
.network-copy-th { font-family: Tahoma, "Leelawadee UI", Thonburi, sans-serif; line-height: 1.75; }
.network-cta { margin-top: 16px !important; color: var(--gold-bright); }
.network-cta strong { font-weight: 600; }
.network-cta a { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.42); }
.network-cta a:hover, .network-cta a:focus-visible { color: var(--gold-bright); text-decoration-color: currentColor; }

/* Coming soon */
.coming-soon { border-bottom: 1px solid var(--line); }
.coming-grid { min-height: 112px; display: grid; grid-template-columns: 82px 1fr 1px 1fr 82px; gap: 20px; align-items: center; }
.calendar-mark { display: grid; place-items: center; color: var(--gold-bright); }
.calendar-mark svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.coming-en, .coming-th { margin: 0; text-align: center; font-size: 24px; line-height: 1.28; font-weight: 400; }
.coming-th { color: var(--gold-bright); font-family: Tahoma, "Leelawadee UI", Thonburi, sans-serif; }
.coming-th strong { font-weight: 500; }
.coming-divider { width: 1px; height: 66px; background: var(--line); }

/* Footer */
.footer { padding: 20px 0 23px; }
.stay-connected { margin: 0 0 15px; color: var(--gold-bright); text-align: center; text-transform: uppercase; font-size: 12px; letter-spacing: .34em; font-weight: 600; }
.contact-grid { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.contact-item { min-width: 0; min-height: 92px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid rgba(214,163,95,.14); border-radius: 10px; color: #fff; font-size: 13px; line-height: 1.34; text-decoration: none; background: rgba(255,255,255,.015); transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.contact-item:hover, .contact-item:focus-visible { color: #fff; background: rgba(255,255,255,.045); border-color: rgba(214,163,95,.38); outline: none; transform: translateY(-1px); }
.contact-icon { width: 34px; height: 34px; flex: 0 0 34px; color: var(--gold-bright); }
.contact-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.whatsapp-icon svg path:first-child { fill: none; }
.contact-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; overflow-wrap: anywhere; }
.contact-copy small { color: var(--gold-bright); font-size: 10px; line-height: 1.25; text-transform: uppercase; letter-spacing: .10em; }
.contact-copy strong { color: #fff; font-size: 12.5px; line-height: 1.35; font-weight: 500; }
.contact-copy em { color: rgba(255,255,255,.68); font-size: 10.5px; line-height: 1.3; font-style: normal; }
.contact-line { padding-right: 10px; }
.line-logo { width: 42px; height: 42px; flex: 0 0 42px; }
.line-logo img { width: 42px; height: 42px; object-fit: contain; display: block; }
.qr-thumb { width: 58px; height: 58px; margin-left: auto; flex: 0 0 58px; overflow: hidden; border-radius: 5px; background: #fff; padding: 3px; }
.qr-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.company-name { margin: 17px 0 0; color: var(--gold-bright); text-align: center; text-transform: uppercase; font-size: 11px; letter-spacing: .18em; font-weight: 600; }

@media (max-width: 980px) {
  :root { --gutter: 24px; }
  .topbar-inner { min-height: 100px; }
  .brand { width: 310px; max-width: 48%; }
  .brand-promise-en { font-size: 17px; }

  .network-grid { grid-template-columns: 46% 54%; }
  .network-copy-th { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(214,163,95,.34); }

  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-line { grid-column: auto; width: auto; justify-self: stretch; }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; }

  .topbar-inner { min-height: auto; flex-direction: column; justify-content: center; gap: 10px; padding-block: 17px 15px; }
  .brand { width: min(340px, 88vw); max-width: none; }
  .brand-promise { margin-left: 0; text-align: center; }

  .hero { min-height: 540px; background-position: 34% center; }
  .hero-inner { padding-block: 38px; }
  .hero-copy { width: min(100%, 650px); }
  .hero h1 { font-size: clamp(40px, 10vw, 56px); }
  .hero-mark { width: min(300px, 72vw); margin-top: 20px; }
  .hero-th { font-size: clamp(28px, 7vw, 37px); }

  .intro { padding: 31px 0 33px; }
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .language-divider { width: 100%; height: 1px; }

  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); padding-block: 0; }
  .service-card { padding: 24px 16px 21px; }
  .service-card:nth-child(3)::before { display: none; }
  .service-card:nth-child(n+3) { border-top: 1px solid rgba(202,151,67,.27); }

  .network-grid { grid-template-columns: 1fr; }
  .network-visual { min-height: 360px; }
  .network-visual::after { background: linear-gradient(180deg, transparent 58%, #061a30 100%); }
  .network-copy, .network-copy-th { grid-column: auto; border-left: 0; border-top: 1px solid rgba(214,163,95,.34); padding: 29px 22px; }

  .coming-grid { min-height: auto; grid-template-columns: 1fr; gap: 12px; padding-block: 24px 27px; }
  .calendar-mark:first-child { display: none; }
  .coming-divider { width: 90px; height: 1px; margin: 3px auto; }
  .calendar-mark:last-child svg { width: 48px; height: 48px; }
  .coming-en, .coming-th { font-size: 22px; }

  .contact-grid { grid-template-columns: 1fr; width: min(100%, 560px); margin-inline: auto; }
  .contact-line { width: 100%; }
}

@media (max-width: 480px) {
  :root { --gutter: 15px; }
  .hero { min-height: 510px; background-position: 30% center; }
  .hero h1 { font-size: clamp(37px, 10.8vw, 50px); line-height: 1.03; }
  .hero-title-gold { margin-top: 8px; }
  .hero-mark { width: min(280px, 78vw); grid-template-columns: 1fr 40px 1fr; }
  .hero-symbol-wrap, .hero-symbol-wrap img { width: 40px; height: 40px; }
  .hero-th { font-size: clamp(26px, 7.8vw, 34px); }

  .services-grid { grid-template-columns: 1fr; }
  .service-card + .service-card::before { display: none; }
  .service-card:nth-child(n+2) { border-top: 1px solid rgba(202,151,67,.27); }

  .network-visual { min-height: 285px; }
  .contact-item { justify-content: flex-start; }
  .qr-thumb { width: 70px; height: 70px; flex-basis: 70px; }
  .stay-connected { letter-spacing: .25em; }
  .company-name { font-size: 10px; letter-spacing: .13em; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
