:root {
  --navy: #061b33;
  --navy-2: #0b2947;
  --green: #6a9d2d;
  --green-2: #4f7f20;
  --ink: #142033;
  --muted: #5f6d7d;
  --line: #dfe7ee;
  --soft: #f3f7f3;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(6, 27, 51, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Tahoma, "Noto Sans Thai", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-pad {
  padding: 56px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.topbar {
  width: min(1800px, calc(100% - 96px));
  min-height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 20px;
}

.brand {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: #ffffff;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.7vw, 36px);
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a {
  padding: 31px 0 27px;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: #b8d474;
  border-color: var(--green);
}

.header-contact {
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-template-areas:
    "label label label label"
    "line id phone-icon phone";
  align-items: center;
  gap: 5px 10px;
  font-weight: 700;
}

.header-label {
  grid-area: label;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.line-icon {
  grid-area: line;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #88c34a;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 900;
  border-radius: 8px;
}

.line-id {
  grid-area: id;
  color: #d9edb0;
  font-size: 0.94rem;
}

.phone-icon {
  grid-area: phone-icon;
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 201, 104, 0.24);
}

.phone-link {
  grid-area: phone;
  font-size: 1.22rem;
}

.hero-image {
  position: relative;
  background: #e8eef3;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-image > img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.small-button,
.solid-button,
.outline-button,
.call-chip,
.facebook-band a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 800;
}

.small-button,
.solid-button,
.call-chip,
.facebook-band a {
  color: var(--white);
  background: var(--green);
}

.small-button:hover,
.solid-button:hover,
.call-chip:hover,
.facebook-band a:hover {
  background: var(--green-2);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.image-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.dark-card::after {
  background: linear-gradient(90deg, rgba(6, 27, 51, 0.95), rgba(6, 27, 51, 0.5));
}

.green-card::after {
  background: linear-gradient(90deg, rgba(13, 56, 27, 0.94), rgba(42, 85, 28, 0.45));
}

.image-card > div {
  width: min(88%, 360px);
  padding: 34px;
}

.round-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 16px;
  background: var(--green);
  border-radius: 50%;
  font-size: 1.7rem;
}

.image-card h2,
.section-title h2,
.why-band h2,
.contact-strip h2,
.service-copy h2,
.contact-panel h2,
.qr-card h2 {
  margin: 0 0 12px;
  line-height: 1.22;
}

.image-card h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
}

.image-card p {
  margin: 0 0 24px;
}

.outline-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(6, 27, 51, 0.18);
}

.outline-button:hover {
  border-color: #b8d474;
  background: rgba(106, 157, 45, 0.32);
}

.why-band {
  background: var(--navy);
  color: var(--white);
}

.why-band h2 {
  text-align: center;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
}

.why-band h2 span {
  color: #9bc35a;
}

.reason-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.reason-grid div {
  min-height: 130px;
  padding: 20px 18px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.reason-grid div:first-child {
  border-left: 0;
}

.reason-grid b {
  color: var(--white);
}

.reason-grid p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.section-title {
  margin-bottom: 24px;
}

.section-title p,
.page-hero p {
  margin: 0 0 8px;
  color: var(--green);
  font-weight: 900;
}

.section-title h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.preview-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.work-tile img,
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-tile span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  background: rgba(6, 27, 51, 0.88);
  color: var(--white);
  font-weight: 800;
  border-left: 4px solid var(--green);
}

.contact-strip {
  padding: 42px 0;
  background: #eef3ef;
  border-top: 1px solid #dce7df;
  border-bottom: 1px solid #dce7df;
}

.contact-strip-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.contact-strip h2,
.contact-strip p {
  margin: 0;
}

.contact-strip h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
}

.contact-strip p {
  color: var(--muted);
}

.contact-actions {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.call-chip {
  min-width: 225px;
  gap: 12px;
  padding: 12px 18px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #d6e3d9;
  box-shadow: 0 10px 26px rgba(6, 27, 51, 0.08);
}

.call-chip:hover {
  color: var(--navy);
  background: #f8fbf8;
  border-color: var(--green);
}

.call-icon {
  display: block;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 201, 104, 0.24);
}

.call-copy,
.qr-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.call-copy small,
.qr-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.call-copy strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.qr-block {
  display: grid;
  grid-template-columns: 88px minmax(132px, auto);
  align-items: center;
  gap: 12px;
  min-width: 252px;
  padding: 8px 14px 8px 8px;
  background: var(--white);
  border: 1px solid #d6e3d9;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(6, 27, 51, 0.08);
  font-weight: 800;
}

.qr-block:hover {
  border-color: #00c968;
  transform: translateY(-1px);
}

.qr-block img {
  width: 88px;
  background: var(--white);
  padding: 5px;
}

.qr-copy em {
  color: #6f7f76;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 400;
}

.facebook-band {
  padding: 28px 16px 36px;
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  background: var(--navy);
  color: var(--white);
}

.facebook-band p {
  margin: 0;
}

.site-footer {
  padding: 24px 16px;
  text-align: center;
  background: #041426;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 700;
}

.page-hero {
  padding: 82px 0;
  background:
    linear-gradient(90deg, rgba(6, 27, 51, 0.92), rgba(6, 27, 51, 0.62)),
    url("assets/S__58261543_0.jpg") center/cover;
  color: var(--white);
}

.works-hero {
  background:
    linear-gradient(90deg, rgba(6, 27, 51, 0.92), rgba(6, 27, 51, 0.58)),
    url("Pic/รื้อถอนอาคารและสิ่งปลูกสร้าง/S__58261536_0.jpg") center/cover;
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(6, 27, 51, 0.92), rgba(6, 27, 51, 0.58)),
    url("assets/Cleardee.jpg") center/cover;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.18;
}

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

.service-link-grid a {
  min-height: 86px;
  display: flex;
  align-items: center;
  padding: 18px;
  background: var(--soft);
  border: 1px solid #d8e6d3;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  font-weight: 800;
}

.service-link-grid a:hover {
  background: #e7f0df;
}

.service-details {
  padding-bottom: 36px;
}

.service-row {
  scroll-margin-top: 110px;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: center;
}

.service-row.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.service-row.reverse .service-copy {
  order: 2;
}

.service-row img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-copy span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green);
  font-weight: 900;
  font-size: 1.3rem;
}

.service-copy h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
}

.service-copy p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.06rem;
}

.muted-section {
  background: var(--soft);
}

.gallery-grid {
  grid-auto-rows: 260px;
}

.gallery-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid img {
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(6, 27, 51, 0.12);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.contact-panel,
.qr-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(6, 27, 51, 0.1);
}

.qr-copy {
  display: grid;
  gap: 3px;
}

.qr-copy strong,
.line-id-display strong {
  color: var(--green-dark);
}

.contact-panel h2,
.qr-card h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.contact-line {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-line span {
  color: var(--muted);
}

.contact-line strong {
  color: var(--navy);
  word-break: break-word;
}

.qr-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
  background: var(--soft);
}

.qr-card img {
  width: min(260px, 100%);
  background: var(--white);
  padding: 10px;
}

.line-id-display {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 86px 1fr;
    min-height: auto;
    padding: 12px 0 14px;
  }

  .brand {
    width: 68px;
    height: 68px;
  }

  .main-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .main-nav a {
    padding: 6px 0;
  }

  .header-contact {
    grid-column: 1 / -1;
    grid-template-columns: auto auto auto auto;
    grid-template-areas:
      "label label label label"
      "line id phone-icon phone";
    justify-content: center;
  }

  .split-grid,
  .service-row,
  .service-row.reverse,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-row.reverse .service-copy {
    order: 0;
  }

  .reason-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reason-grid div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .preview-grid,
  .gallery-grid,
  .gallery-grid.two-col,
  .service-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-strip-inner {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .section-pad {
    padding: 38px 0;
  }

  .topbar {
    width: min(100% - 20px, 1180px);
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 10px 0;
  }

  .site-header {
    position: static;
  }

  .brand {
    width: 70px;
    height: 70px;
  }

  .main-nav {
    justify-content: center;
    white-space: normal;
    gap: 6px 14px;
    font-size: 0.92rem;
  }

  .main-nav a {
    padding: 3px 0;
  }

  .header-contact {
    display: flex;
    gap: 10px;
  }

  .header-label {
    display: none;
  }

  .line-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.62rem;
  }

  .phone-link {
    font-size: 1.08rem;
  }

  .contact-actions {
    width: 100%;
    flex-direction: column;
  }

  .call-chip,
  .qr-block {
    width: 100%;
    min-width: 0;
  }

  .hero-image > img {
    min-height: 0;
    aspect-ratio: 1536 / 768;
    object-fit: cover;
    object-position: center;
  }

  .image-card {
    min-height: 330px;
  }

  .image-card > div {
    width: 100%;
    padding: 24px;
  }

  .reason-grid,
  .preview-grid,
  .gallery-grid,
  .gallery-grid.two-col,
  .service-link-grid {
    grid-template-columns: 1fr;
  }

  .work-tile,
  .gallery-grid {
    min-height: 230px;
  }

  .gallery-grid {
    grid-auto-rows: 230px;
  }

  .service-row img {
    height: 280px;
  }

  .contact-panel,
  .qr-card {
    padding: 22px;
  }
}
