/* ==========================================================================
   ห้างหุ้นส่วนจำกัด เพชรประสงค์ / PetchPrasong Limited Partnership
   Single-page site styles. No build step: edit and deploy as-is.
   ========================================================================== */

/* Fonts: IBM Plex Sans Thai (headings, UI) and Sarabun (body text), both SIL OFL 1.1.
   Only the Thai and Latin subsets are shipped; see assets/fonts/LICENSE-*.txt */
@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-thai-thai-500-normal.woff2") format("woff2");
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}
@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-thai-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-thai-thai-600-normal.woff2") format("woff2");
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}
@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-thai-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/sarabun-thai-400-normal.woff2") format("woff2");
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}
@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/sarabun-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sarabun-thai-600-normal.woff2") format("woff2");
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}
@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sarabun-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* --------------------------------------------------------------------------
   Tokens
   Paper white, navy ink for text and the frame, and the blue of a signing
   pen for anything you can press.
   -------------------------------------------------------------------------- */
:root {
  --paper: #ffffff;
  --panel: #f2f4f8;
  --ink: #14213d;
  --ink-2: #34425e;
  --muted: #5b6680;
  --rule: #d5dbe5;
  --field: #7f8aa0;
  --sign: #1f45b8;
  --sign-dark: #173489;
  --sign-tint: #e7ecf9;
  --on-ink: #e6eaf2;
  --on-ink-muted: #a9b4c8;
  --danger: #b42318;

  --font-head: "IBM Plex Sans Thai", "Noto Sans Thai", "Leelawadee UI", Thonburi, Tahoma, sans-serif;
  --font-body: "Sarabun", "Noto Sans Thai Looped", "Leelawadee UI", Thonburi, Tahoma, sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --radius: 6px;
  --section-y: clamp(72px, 9vw, 128px);

  /* Hero headline: ink width of "ออกแบบและพัฒนาโปรแกรม" in IBM Plex Sans Thai 600, in em,
     and its left side bearing. Used to make the line exactly as wide as the frame. */
  --title-ink: 11.843;
  --title-lsb: 0.04em;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
address {
  margin: 0;
}

address {
  font-style: normal;
}

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

a {
  color: var(--sign);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--sign);
  outline-offset: 3px;
}

::selection {
  background: var(--sign-tint);
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Thai compound words that must not be split across lines (see tools/thai_nobr.py). */
.nobr {
  white-space: nowrap;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -200px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Buttons and small controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn--primary {
  background: var(--sign);
  color: #fff;
}

.btn--primary:hover {
  background: var(--sign-dark);
}

.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn--sm {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 1rem;
}

.btn--sm svg {
  width: 18px;
  height: 18px;
}

.icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* Copy buttons only do something with JavaScript, so they appear only then. */
.copy {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-2);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.js .copy {
  display: inline-flex;
}

.copy svg {
  width: 16px;
  height: 16px;
}

.copy:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.copy .copy__done,
.copy.is-done .copy__idle {
  display: none;
}

.copy.is-done .copy__done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sign);
}

.copy__idle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 500;
}

.link-icon svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.brand__text {
  display: grid;
  gap: 5px;
}

.brand__wordmark {
  width: 190px;
  height: 15px;
}

.brand__th {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__list {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 10px 0;
  color: var(--ink-2);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link:hover {
  color: var(--sign);
}

.site-nav__link[aria-current="true"] {
  color: var(--ink);
}

.site-nav__link[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--sign);
}

@media (max-width: 959px) {
  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .brand__wordmark {
    width: 165px;
    height: 13px;
  }

  .js .icon-btn {
    display: inline-flex;
  }

  /* Without JavaScript the links simply stay visible on a second row. */
  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    padding-bottom: 8px;
  }

  .site-nav__list {
    flex-wrap: wrap;
    gap: 4px 20px;
  }

  .site-nav__call {
    display: none;
  }

  .js .site-header__inner {
    flex-wrap: nowrap;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 24px -16px rgba(20, 33, 61, 0.25);
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .js .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .js .site-nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1.125rem;
  }

  .js .site-nav__link[aria-current="true"]::after {
    display: none;
  }

  .js .site-nav__call {
    display: inline-flex;
    min-height: 52px;
  }
}

@media (max-width: 380px) {
  .brand__th {
    display: none;
  }

  /* Keep the label for screen readers; show only the icon. */
  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Hero: the logo's frame at full scale. The side lines stop where the
   headline band runs through, and the headline is exactly as wide as the
   frame, the way the wordmark is in the logo.
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(20px, 3.5vw, 48px) clamp(56px, 7vw, 96px);
}

.frame {
  container-type: inline-size;
}

.frame__top,
.frame__bottom {
  --fw: clamp(2px, 0.5cqi, 6px);
  position: relative;
}

.frame__top::before,
.frame__bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  border: var(--fw) solid var(--ink);
  pointer-events: none;
}

.frame__top {
  height: clamp(36px, 6cqi, 76px);
}

.frame__top::before {
  border-bottom: 0;
}

.frame__bottom::before {
  border-top: 0;
}

.frame__band {
  font-size: min(calc((100vw - 2 * var(--gutter)) / var(--title-ink)), calc(var(--max) / var(--title-ink)));
  font-size: calc(100cqi / var(--title-ink));
  padding-block: 0.2em 0.02em;
  text-align: center;
}

.frame__glyph {
  width: max(0.6em, 30px);
  height: max(0.6em, 30px);
  margin: 0 auto 0.06em;
  color: var(--sign);
}

.hero__title {
  margin-left: calc(-1 * var(--title-lsb));
  font-family: var(--font-head);
  font-size: 1em;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  color: var(--ink);
}

.frame__bottom {
  padding: clamp(24px, 4.5cqi, 52px) clamp(16px, 6cqi, 80px) 0;
  text-align: center;
}

.hero__lead {
  max-width: 40em;
  margin-inline: auto;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.6cqi, 1.3125rem);
  line-height: 1.8;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(24px, 3cqi, 36px);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(32px, 5cqi, 56px) calc(-1 * clamp(16px, 6cqi, 80px)) 0;
  border-top: 1px solid var(--rule);
}

.hero__fact {
  padding: clamp(16px, 2cqi, 24px) 16px;
}

.hero__fact + .hero__fact {
  border-left: 1px solid var(--rule);
}

.hero__fact dt {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.hero__fact dd {
  margin-top: 2px;
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.5cqi, 1.1875rem);
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .hero__actions .btn {
    width: 100%;
  }

  .hero__facts {
    grid-template-columns: 1fr;
  }

  .hero__fact {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 14px 16px;
    text-align: left;
  }

  .hero__fact + .hero__fact {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .hero__fact dd {
    margin: 0;
    text-align: right;
  }
}

/* One orchestrated moment: the frame draws itself around the headline. */
@media (prefers-reduced-motion: no-preference) {
  .frame__top::before {
    animation: frame-top 0.7s cubic-bezier(0.25, 0.7, 0.2, 1) both;
  }

  .frame__bottom::before {
    animation: frame-bottom 0.6s 0.5s cubic-bezier(0.25, 0.7, 0.2, 1) both;
  }
}

@keyframes frame-top {
  from {
    clip-path: inset(0 50% calc(100% - var(--fw)) 50%);
  }
  55% {
    clip-path: inset(0 0 calc(100% - var(--fw)) 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes frame-bottom {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-y);
}

.section--panel {
  background: var(--panel);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.625rem);
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
  text-wrap: balance;
}

.section__intro {
  margin-top: 16px;
  max-width: 38em;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.8;
  text-wrap: pretty;
}

/* Services: a scope-of-work list rather than a wall of cards. */
.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 8px clamp(24px, 5vw, 64px);
  padding-block: clamp(22px, 2.6vw, 32px);
  border-bottom: 1px solid var(--rule);
}

.service__title {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
}

.service__desc {
  color: var(--ink-2);
  max-width: 40em;
}

.service__eg {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.services__more {
  margin-top: 28px;
  color: var(--ink-2);
}

@media (max-width: 720px) {
  .service {
    grid-template-columns: 1fr;
  }
}

/* Process: a real sequence, numbered in Thai numerals as in official letters. */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.step__num {
  display: block;
  margin-bottom: 18px;
  color: var(--sign);
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 2rem + 1.2vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
}

.step__title {
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
}

.step__text {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.75;
}

@media (max-width: 1023px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 16px;
    padding-block: 22px;
    border-top: 1px solid var(--rule);
  }

  .step:first-child {
    border-top: 2px solid var(--ink);
  }

  .step__num {
    grid-row: span 2;
    margin: 0;
    font-size: 2.5rem;
  }

  .step__text {
    max-width: 38em;
  }
}

/* Company record: laid out like the label and value cells of an official form. */
.company {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

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

.trust-list li {
  position: relative;
  padding-left: 30px;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border: 2px solid var(--sign);
}

.trust__title {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.45;
}

.trust__text {
  display: block;
  color: var(--ink-2);
}

.record {
  background: #fff;
  border: 1.5px solid var(--ink);
}

.record__head {
  padding: 20px 24px;
  border-bottom: 1.5px solid var(--ink);
}

.record__title {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.35;
}

.record__source {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.record__row {
  display: grid;
  grid-template-columns: minmax(0, 35%) minmax(0, 1fr);
  border-bottom: 1px solid var(--rule);
}

.record__row:last-child {
  border-bottom: 0;
}

.record__row dt {
  padding: 14px 18px;
  background: var(--panel);
  color: var(--ink-2);
  font-size: 0.96875rem;
  line-height: 1.55;
}

.record__row dd {
  padding: 14px 18px;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.55;
}

.record__row dd address {
  font: inherit;
}

.record__row dd .copy {
  margin: 2px 0 2px 12px;
  vertical-align: middle;
}

.record__id {
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.record__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 18px 24px;
  border-top: 1.5px solid var(--ink);
}

.record__hint {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (max-width: 959px) {
  .company {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .record__row {
    grid-template-columns: 1fr;
  }

  .record__row dt {
    padding-block: 10px 6px;
    background: none;
    color: var(--muted);
    font-size: 0.9375rem;
  }

  .record__row dd {
    padding-top: 0;
  }

  .record__head,
  .record__foot {
    padding-inline: 18px;
  }
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-item {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.contact-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-item__label {
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.contact-item__value {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}

a.contact-item__value:hover {
  color: var(--sign);
  text-decoration: underline;
}

.contact-item__value--phone {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.contact-item__value--email {
  overflow-wrap: anywhere;
}

.contact-item .copy,
.contact-item .link-icon {
  margin-top: 4px;
}

/* Quote form */
.quote {
  padding: clamp(24px, 3vw, 40px);
  background: #fff;
  border: 1.5px solid var(--ink);
}

.quote__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
}

.quote__desc {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 1rem;
}

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

.field {
  display: grid;
  align-content: start;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.field__opt {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1.5px solid var(--field);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7a8499;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--sign);
  box-shadow: 0 0 0 3px var(--sign-tint);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field__error {
  color: var(--danger);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.quote__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quote__note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.quote__status {
  margin-top: 12px;
  color: var(--sign);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
}

.quote__status:empty {
  display: none;
}

@media (max-width: 959px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .quote__actions .btn {
    width: 100%;
  }
}

/* Map */
.map {
  margin-top: clamp(48px, 6vw, 80px);
  background: #fff;
  border: 1.5px solid var(--ink);
}

.map iframe {
  width: 100%;
  height: clamp(300px, 36vw, 440px);
  border: 0;
  background: var(--panel);
}

.map__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 20px;
  border-top: 1.5px solid var(--ink);
}

.map__address {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.map__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(48px, 6vw, 72px) 28px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 1rem;
  line-height: 1.7;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 40px;
}

.footer-brand {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.footer-brand__lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  color: #fff;
}

.footer-brand__mark {
  width: 44px;
  height: 44px;
}

.footer-brand__wordmark {
  width: 228px;
  height: 18px;
}

.footer-brand__name {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
}

.footer-meta {
  color: var(--on-ink-muted);
  font-variant-numeric: tabular-nums;
}

.footer-title {
  margin-bottom: 10px;
  color: var(--on-ink-muted);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 500;
}

.footer-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-ink-muted);
  font-size: 0.9375rem;
}

.footer-bottom a {
  color: var(--on-ink);
}

@media (max-width: 959px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Print: keep the company record and contact details, drop the chrome.
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .skip-link,
  .hero__actions,
  .quote,
  .map,
  .copy,
  .record__foot .btn,
  .services__more {
    display: none !important;
  }

  body {
    font-size: 11pt;
  }

  .section {
    padding-block: 18pt;
  }

  .section--panel,
  .site-footer {
    background: none;
    color: #000;
  }

  .site-footer a,
  a {
    color: inherit;
    text-decoration: none;
  }

  .frame__top::before,
  .frame__bottom::before {
    animation: none;
  }
}
