/* Bridge to Cambodia. White header with the name over a yellow curve and the WhatsApp number,
   a wide photo band, the headline over a yellow rule, then three columns under slanted yellow
   tabs. Type: Barlow throughout. Width rules answer to the page frame (@container page):
   see assets/base.css. */

@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

.s17b {
  --navy: #0d2149; --navy-deep: #081430; --yellow: #f9c31f; --yellow-hi: #ffd54a; --cream: #fbf2d9;
  --rule: #c9cfdb; --icon: #d9a200; --foot-ink: #d7def0; --wa: #128c3f; --radius: 0.6rem;
  font-family: "Barlow", system-ui, sans-serif; color: var(--navy-deep); background: #fff;
}

.s17b h1, .s17b h2, .s17b .btn {
  font-family: "Barlow", system-ui, sans-serif; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em;
}
.s17b strong, .s17b h3 { font-weight: 600; }

.s17b .top { background: #fff; box-shadow: 0 1px 0 var(--rule); }

/* The logo. The drawing is 59 units tall and --u is the size of one unit. */
.s17b .mark { --u: 0.0551rem; color: var(--navy); }
.s17b .mark svg { display: block; height: calc(59 * var(--u)); width: auto; max-width: none; overflow: visible; }
.s17b .lg-n { fill: var(--navy); }
.s17b .lg-y { fill: var(--yellow); }

.s17b .tabs { margin-right: 1.5rem; }
.s17b .tabs a { font-weight: 400; }
.s17b .tabs a:hover, .s17b .tabs a:focus-visible { text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.s17b .top-phone {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.75rem; padding-left: 1.5rem;
  border-left: 1px solid var(--rule); font-weight: 600; font-size: 1.2rem; text-decoration: none; white-space: nowrap;
}
.s17b .top-phone svg { width: 1.7rem; height: 1.7rem; color: var(--wa); }
.s17b .top-phone:hover span { text-decoration: underline; text-underline-offset: 0.2em; }

.s17b .hero-media img { width: 100%; height: clamp(10rem, 21cqw, 17rem); object-fit: cover; object-position: 50% 42%; }
.s17b h1 { font-size: clamp(1.6rem, 3.3cqw, 2.4rem); padding: 1.1rem 0 0.7rem; border-bottom: 3px solid var(--yellow); color: var(--navy-deep); text-wrap: balance; }
.s17b h1 span { display: block; }

.s17b .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 1.1rem 0 clamp(2rem, 4cqw, 3rem); }
.s17b .col { padding: 0 1.5rem; border-left: 1px solid var(--rule); }
.s17b .col:first-child { padding-left: 0; border-left: 0; }
.s17b .col:last-child { padding-right: 0; }
.s17b .col h2 {
  font-size: 1.3rem; padding: 0.5rem 1.5rem 0.55rem; margin-bottom: 0.9rem;
  background: var(--yellow); clip-path: polygon(0.9rem 0, 100% 0, calc(100% - 0.9rem) 100%, 0 100%);
}
.s17b .col > p { font-size: 1.0625rem; }
.s17b .collage { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1.1rem; }
.s17b .collage img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.s17b .collage .m-big { grid-column: 1 / -1; aspect-ratio: 16 / 10; object-position: 50% 70%; }
.s17b .col-photo { display: none; }

.s17b .rows { display: grid; gap: 0.5rem; }
.s17b .rows li { display: grid; grid-template-columns: 40% minmax(0, 1fr); background: var(--cream); }
.s17b .rows img { width: 100%; height: 0; min-height: 100%; object-fit: cover; }
.s17b .rows div { padding: 0.7rem 0.9rem 0.8rem 1.1rem; align-self: center; }
.s17b h3 { font-size: 1.125rem; line-height: 1.2; }
.s17b .rows p { font-size: 0.9375rem; line-height: 1.35; margin-top: 0.2rem; }

.s17b .ways { display: grid; gap: 0.35rem; }
.s17b .ways a, .s17b .ways .place { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; align-items: center; min-height: 3.75rem; text-decoration: none; overflow-wrap: anywhere; }
.s17b .ways svg { width: 2.6rem; height: 2.6rem; justify-self: center; color: var(--icon); }
.s17b .ways li:first-child svg { color: var(--wa); }
.s17b .ways strong { display: block; font-size: 1.2rem; line-height: 1.2; }
.s17b .ways a:hover strong { text-decoration: underline; text-underline-offset: 0.2em; }

.s17b .btn { font-size: 1.2rem; border-radius: var(--radius); }
.s17b .btn-wa { background: var(--yellow); color: var(--navy-deep); }
.s17b .btn-wa:hover { background: var(--yellow-hi); }
.s17b .col .btn { display: flex; margin-top: 1.1rem; }
.s17b .btn-line { background: #fff; color: var(--navy-deep); box-shadow: inset 0 0 0 2px var(--navy); }
.s17b .col .btn-line { margin-top: 0.6rem; }
.s17b .btn-line:hover { background: var(--cream); }

.s17b .foot { background: var(--navy-deep); color: var(--foot-ink); padding: 1.75rem 0; border-top: 0.5rem solid var(--yellow); }

/* Side by side: each column is a stack whose last part stretches, so the columns end on one line. */
@container page (min-width: 48rem) {
  .s17b .col { display: flex; flex-direction: column; }
  .s17b .collage { flex: 1 0 auto; grid-template-rows: minmax(9rem, 1.7fr) minmax(5.5rem, 1fr); }
  .s17b .collage img, .s17b .collage .m-big { height: 0; min-height: 100%; aspect-ratio: auto; }
  .s17b .rows { flex: 1 0 auto; grid-auto-rows: 1fr; }
}
@container page (min-width: 62.01rem) {
  .s17b .col-photo { display: block; position: relative; flex: 1 0 7rem; margin-top: 1.1rem; }
  .s17b .col-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
}

/* Three narrow columns: tighter buttons, so "Message on WhatsApp" stays on one line. */
@container page (min-width: 62.01rem) and (max-width: 70rem) {
  .s17b .col .btn { padding-inline: 0.75rem; gap: 0.45rem; }
  .s17b .col { padding: 0 1.1rem; }
}
@container page (max-width: 62rem) {
  .s17b .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
  .s17b .col:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .s17b .col:nth-child(2) { padding-right: 0; }
  .s17b .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 1rem; }
  .s17b .ways a, .s17b .ways .place { gap: 0.75rem; }
}
@container page (min-width: 48rem) and (max-width: 60rem) {
  .s17b .mark { --u: 0.047rem; }
  .s17b .top-phone { padding-left: 1rem; font-size: 1.1rem; }
}
@container page (max-width: 47.99rem) {
  .s17b .mark { --u: 0.0492rem; }
  .s17b .top-phone { display: none; }
  .s17b .cols { grid-template-columns: minmax(0, 1fr); }
  .s17b .col, .s17b .col:nth-child(2) { padding: 0; border-left: 0; }
  .s17b .ways { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .s17b .col .btn-wa { display: none; }
  /* Room for the WhatsApp button that rides along the bottom of the screen. */
  .s17b .foot { padding-bottom: 6.5rem; }
}
