/* Ban Sabai Big Buddha Retreat & Spa - static site
   Palette and type taken from the original WordPress theme. */

:root {
  --bg: #a3ccde;
  --ink: #003399;
  --accent: #336699;
  --accent-dark: #006699;
  --nav-bg: #676b91;
  --nav-bg-hover: #4f5375;
  --nav-ink: #e8f1f7;
  --rule: rgba(0, 51, 153, .18);
  --maxw: 1013px;
  --font: "Century Gothic", "Apple Gothic", "URW Gothic", Futura,
          "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a { color: var(--accent); }
a:hover, a:focus { color: var(--ink); }

/* ---------- Layout shell ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header { padding-top: 12px; }

.site-header .logo { display: block; }

.site-header .logo img {
  display: block;
  width: 100%;
  max-width: 969px;
  height: auto;
  margin: 0 auto;
}

/* ---------- Navigation ---------- */

.nav {
  margin: 14px 0 26px;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.nav a {
  display: block;
  padding: 7px 16px;
  background: var(--nav-bg);
  color: var(--nav-ink);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus,
.nav li.current a {
  background: var(--nav-bg-hover);
  color: #fff;
}

/* ---------- Content ---------- */

main { padding-bottom: 40px; }

h1, h2, h3 {
  color: var(--accent);
  font-family: var(--font);
  line-height: 1.3;
  margin: 1.6em 0 .6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(24px, 3.4vw, 34px);
  text-align: center;
  margin-top: .4em;
}

h2 { font-size: clamp(19px, 2.2vw, 23px); }
h3 { font-size: clamp(17px, 1.8vw, 19px); }

p { margin: 0 0 1.1em; }

.lead {
  font-size: clamp(18px, 2vw, 21px);
  text-align: center;
  color: var(--accent);
  max-width: 46em;
  margin-left: auto;
  margin-right: auto;
}

.center { text-align: center; }
.right  { text-align: right; }

.center .row, .row.center { justify-content: center; }

figure { margin: 1.6em 0; text-align: center; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.4em 0;
}

ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin: .3em 0; }

/* Columns converted from the original layout tables */

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin: 0 0 1.4em;
}

.col {
  flex: 1 1 260px;
  min-width: 0;
}

.col > :first-child { margin-top: 0; }
.col > :last-child { margin-bottom: 0; }

/* Real tables (price lists etc.) keep table semantics but scroll on phones */

.table-scroll { overflow-x: auto; margin: 0 0 1.4em; }

.table-scroll table { border-collapse: collapse; width: 100%; }
.table-scroll th, .table-scroll td {
  padding: 8px 12px;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

/* Download / link lists */

.files { list-style: none; padding: 0; }
.files li { margin: .5em 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid #fff;
  margin-top: 30px;
  padding: 22px 0 40px;
  text-align: center;
  font-size: 15px;
}

.site-footer .nav { margin-top: 0; }

.site-footer address {
  font-style: normal;
  margin: 18px 0 10px;
}

.site-footer .copyright {
  font-size: 14px;
  margin: 0;
}

/* ---------- Utilities ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  z-index: 10;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a { padding: 8px 12px; font-size: 14px; }
  .row { gap: 16px; }
}
