* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 10px 22px;
  border-bottom: 1px solid rgba(255, 244, 226, 0.34);
  background: rgba(244, 234, 216, 0.92);
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: flex;
  width: 164px;
  min-width: 164px;
  flex: 0 0 164px;
  aspect-ratio: 1876 / 838;
}

.brand-mark img,
.site-footer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex: 1 1 480px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  font-size: 0.9rem;
  font-weight: 850;
}

.site-nav a {
  padding: 9px 11px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover {
  border-color: var(--line);
  background: rgba(255, 244, 226, 0.72);
}

.breadcrumb {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 14px 24px;
  color: var(--olive);
  font-size: 0.86rem;
  font-weight: 850;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb span::before {
  content: "/";
  margin: 0 8px;
  color: rgba(101, 116, 82, 0.62);
}

.hero {
  min-height: clamp(560px, 74svh, 760px);
  display: flex;
  align-items: flex-end;
  padding: clamp(66px, 8vw, 96px) 24px 56px;
  color: var(--shell);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-home {
  background-position: center 58%;
  background-image:
    linear-gradient(90deg, rgba(23, 31, 28, 0.86) 0%, rgba(23, 31, 28, 0.62) 46%, rgba(23, 31, 28, 0.18) 100%),
    url("../public/bustan/bustan-solar-villa-roof-real.png");
}

.hero-thailand {
  background-position: center 48%;
  background-image:
    linear-gradient(90deg, rgba(23, 31, 28, 0.88) 0%, rgba(23, 31, 28, 0.62) 50%, rgba(23, 31, 28, 0.2) 100%),
    url("../public/bustan/bustan-solar-battery-inverter-real.png");
}

.hero-phangan {
  background-position: center 44%;
  background-image:
    linear-gradient(90deg, rgba(23, 31, 28, 0.88) 0%, rgba(23, 31, 28, 0.62) 50%, rgba(23, 31, 28, 0.2) 100%),
    url("../public/bustan/bustan-solar-site-survey-real.png");
}

.hero-inner {
  width: min(780px, 100%);
}

.field-tag,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 840px;
  margin: 18px 0 0;
  font-size: clamp(3rem, 5vw, 4.1rem);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 1000;
  text-wrap: balance;
}

.hero p {
  max-width: 700px;
  margin: 22px 0 0;
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 680;
  overflow-wrap: break-word;
}

.hero-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  color: var(--shell);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 4px;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
}

.button.secondary {
  color: var(--shell);
  background: rgba(255, 244, 226, 0.08);
  border-color: rgba(255, 244, 226, 0.66);
}

.signal-band,
.content-band {
  padding: 58px 24px;
}

.signal-band {
  background: var(--basalt);
  color: var(--shell);
}

.content-band {
  background: var(--paper);
}

.content-band.alt {
  background: var(--shell);
}

.band-inner,
.content-grid,
.section-head,
.process-grid,
.link-grid,
.site-footer {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.four-up {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 244, 226, 0.28);
  background: rgba(255, 244, 226, 0.28);
}

.four-up div {
  min-height: 130px;
  padding: 20px;
  background: rgba(36, 70, 62, 0.92);
}

.four-up b,
.link-grid b {
  display: block;
  font-size: 1.05rem;
}

.four-up span,
.link-grid span {
  display: block;
  margin-top: 9px;
  line-height: 1.45;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 390px);
  gap: 42px;
  align-items: center;
}

.content-grid.reverse {
  grid-template-columns: minmax(280px, 390px) minmax(0, 1.08fr);
}

h2 {
  margin: 16px 0 0;
  font-size: 2.45rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 10px 0 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

p {
  font-size: 1.06rem;
  line-height: 1.68;
}

.tag-row span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 244, 226, 0.72);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 900;
}

.field-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--shell);
}

.field-figure img {
  display: block;
  width: 100%;
  background: var(--paper);
  object-fit: contain;
}

.field-figure.square img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.field-figure figcaption {
  padding: 12px 14px;
  color: var(--olive);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-head {
  max-width: 900px;
}

.section-head p {
  max-width: 760px;
}

.process-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.process-grid article,
.link-grid a {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(244, 234, 216, 0.68);
  border-radius: 6px;
  text-decoration: none;
}

.process-grid b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--teal);
  color: var(--shell);
  font-family: var(--mono);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 12px 14px;
  border-left: 6px solid var(--teal);
  background: rgba(255, 244, 226, 0.74);
  font-weight: 760;
}

.link-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.link-grid a:hover {
  border-color: var(--teal);
  background: rgba(216, 236, 232, 0.54);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 24px 38px;
  font-weight: 850;
}

.site-footer img {
  width: 150px;
}

@media (max-width: 1120px) {
  .four-up,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid,
  .content-grid.reverse {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 350px);
    gap: 32px;
  }
}

@media (max-width: 980px) {
  .content-grid,
  .content-grid.reverse {
    grid-template-columns: 1fr;
  }

  .field-figure {
    width: min(520px, 100%);
    justify-self: center;
  }

  .content-grid.reverse .field-figure {
    order: 2;
  }

  .content-grid.reverse > div {
    order: 1;
  }
}

@media (max-width: 880px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    gap: 12px;
    padding: 10px 18px;
  }

  .brand-mark {
    width: 150px;
    min-width: 150px;
    flex: 0 0 auto;
  }

  .site-nav {
    display: grid;
    flex-basis: 100%;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .site-nav a {
    padding: 7px 9px;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }

  .hero {
    min-height: auto;
    padding: 46px 18px 42px;
  }

  .hero-home {
    background-position: center top;
    background-image:
      linear-gradient(180deg, rgba(23, 31, 28, 0.62) 0%, rgba(23, 31, 28, 0.78) 100%),
      url("../public/bustan/bustan-solar-villa-roof-real.png");
  }

  .hero-thailand,
  .hero-phangan {
    background-position: center 36%;
  }

  .hero-thailand {
    background-image:
      linear-gradient(180deg, rgba(23, 31, 28, 0.66) 0%, rgba(23, 31, 28, 0.82) 100%),
      url("../public/bustan/bustan-solar-battery-inverter-real.png");
  }

  .hero-phangan {
    background-image:
      linear-gradient(180deg, rgba(23, 31, 28, 0.66) 0%, rgba(23, 31, 28, 0.82) 100%),
      url("../public/bustan/bustan-solar-site-survey-real.png");
  }

  .hero h1 {
    margin-top: 14px;
    font-size: clamp(2.18rem, 10vw, 2.95rem);
    line-height: 1;
  }

  .hero p {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .button {
    min-width: min(100%, 206px);
  }

  .field-tag,
  .eyebrow {
    min-height: 28px;
    font-size: 0.68rem;
  }

  .four-up,
  .process-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .signal-band,
  .content-band {
    padding: 42px 18px;
  }

  h2 {
    font-size: 2rem;
  }
}
