/* Thais Murals design system
   Fonts: Instrument Serif (display) + Instrument Sans (body, labels).
   Colours: Linen Gallery palette (sand, linen, taupe, clay, espresso, driftwood).
   See DESIGN.md for usage rules. */
:root {
  /* Colour */
  --sand: #E7DDCF;       /* hero panel, story section */
  --linen: #F6F2EA;      /* page background */
  --taupe: #A58F76;      /* lines and small details only, never text */
  --clay: #574C3F;       /* body text */
  --espresso: #36302A;   /* headings, buttons, dark sections */
  --driftwood: #65594B;  /* captions, labels */
  --line: rgba(165, 143, 118, .45);

  /* Type */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --text-display: clamp(56px, 6.6vw, 104px);
  --text-h2: clamp(44px, 5.6vw, 84px);
  --text-h3: clamp(26px, 2.4vw, 34px);
  --text-body: 17px;
  --text-small: 15px;
  --text-label: 12px;

  /* Space */
  --gutter: 6vw;
  --section: 110px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--clay);
  background: var(--linen);
  font: 400 var(--text-body)/1.65 var(--font-body);
}
img {
  display: block;
  width: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(.97) brightness(1.02);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--espresso);
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; }

.eyebrow {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--driftwood);
}

.button {
  display: inline-block;
  margin-top: 26px;
  padding: 16px 26px;
  background: var(--espresso);
  color: var(--linen);
  border: 1px solid var(--espresso);
  font: 500 var(--text-label)/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.button:hover { background: transparent; color: var(--espresso); }

/* Navigation */
.nav {
  position: absolute;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 5vw;
  color: white;
}
.brand { font-family: var(--font-display); letter-spacing: .16em; font-size: 24px; color: var(--espresso); text-decoration: none; }
.navlinks { display: flex; gap: 26px; font-size: var(--text-label); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.navlinks a { text-decoration: none; }
.navlinks a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Hero: sand text panel left, mural photo right (nothing over the mural) */
.hero { display: grid; grid-template-columns: 5fr 7fr; min-height: 88vh; }
.heroCopy {
  background: var(--sand);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5vw 8vh;
}
.heroPhoto {
  background:
    linear-gradient(180deg, rgba(18,15,12,.45), rgba(18,15,12,0) 22%),
    url('../images/hero.jpg') 50% 30% / cover no-repeat;
}
.hero h1 { font-size: var(--text-display); line-height: .92; margin: 20px 0 24px; }
.hero p { font-size: var(--text-small); line-height: 1.65; max-width: 34ch; margin: 0; }

/* Intro */
.intro { padding: var(--section) var(--gutter) 64px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 10vw; align-items: start; }
.intro h2 { font-size: var(--text-h2); line-height: .95; margin: 0; }
.intro p { margin: 0; max-width: 58ch; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 8px; padding: 0 1vw; }
.gallery img { height: 62vh; }
.gallery img:nth-child(2) { object-position: 55% center; }
.gallery img:nth-child(3) { object-position: center 30%; }

/* Services */
.section { padding: var(--section) var(--gutter); }
.section h2 { font-size: var(--text-h2); line-height: .95; margin: 14px 0 56px; }
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service { padding: 32px 28px 36px; border-right: 1px solid var(--line); }
.service:last-child { border-right: 0; }
.service b {
  display: block;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--driftwood);
  margin-bottom: 16px;
}
.service p { margin: 0; font-size: var(--text-small); line-height: 1.6; }

/* Process / story */
.story { display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; background: var(--sand); }
.story img { height: 100%; min-height: 650px; object-position: center; }
.storyText { padding: 9vw 8vw; display: flex; flex-direction: column; justify-content: center; }
.storyText h2 { font-size: var(--text-h2); line-height: .95; margin: 14px 0 26px; }
.storyText p { margin: 0 0 16px; max-width: 52ch; }
.storyText .button { align-self: flex-start; }

/* Contact: intro left, enquiry form right, on espresso */
.cta {
  padding: 120px var(--gutter);
  background: var(--espresso);
  color: var(--sand);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px 8vw;
  align-items: start;
  scroll-margin-top: 0;
}
.ctaIntro { min-width: 0; }
.cta .eyebrow { color: var(--sand); opacity: .8; }
.cta h2 { font-size: var(--text-h2); line-height: .95; margin: 14px 0 24px; color: var(--linen); }
.cta p { max-width: 46ch; margin: 0 0 16px; }
.cta .ctaNote { font-size: var(--text-small); opacity: .8; }
.cta .button { background: var(--linen); color: var(--espresso); border-color: var(--linen); margin-top: 0; cursor: pointer; }
.cta .button:hover { background: transparent; color: var(--linen); }
.cta .button:disabled { opacity: .6; cursor: progress; }
.cta :focus-visible { outline-color: var(--linen); }

.contactForm { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; min-width: 0; }
.contactForm .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field label, .field legend {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
  padding: 0;
}
.field legend { margin-bottom: 12px; }
.opt { font-weight: 400; letter-spacing: .08em; text-transform: none; opacity: .7; margin-left: 6px; }
.field input, .field textarea {
  width: 100%;
  font: 400 var(--text-body)/1.5 var(--font-body);
  color: var(--linen);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(231, 221, 207, .45);
  border-radius: 0;
  padding: 8px 0 10px;
}
.field textarea { resize: vertical; min-height: 120px; border: 1px solid rgba(231, 221, 207, .45); padding: 12px 14px; }
.field input::placeholder, .field textarea::placeholder { color: var(--sand); opacity: .5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--linen); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--linen); }
.field .invalid { border-color: #E3A78C; }
.fieldError { font-size: 13px; color: #F0C3AE; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.field .chip { position: relative; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid rgba(231, 221, 207, .45);
  font-size: var(--text-small);
  color: var(--sand);
  transition: background-color .2s ease, color .2s ease;
}
.chip input:checked + span { background: var(--linen); color: var(--espresso); border-color: var(--linen); }
.chip input:focus-visible + span { outline: 2px solid var(--linen); outline-offset: 3px; }

.formFoot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta .privacy { font-size: 13px; margin: 0; opacity: .7; }
.cta .formStatus { margin: 0; font-size: var(--text-small); color: var(--linen); }
.formStatus:empty { display: none; }
.formStatus.error { color: #F0C3AE; }
.formDone { grid-column: 1 / -1; border: 1px solid rgba(231, 221, 207, .45); padding: 40px; }
.formDone h3 { font-size: var(--text-h3); color: var(--linen); margin: 0 0 12px; }
.formDone p { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot {
  padding: 28px 5vw;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--driftwood);
}

@media (max-width: 800px) {
  :root { --section: 76px; --gutter: 7vw; }
  .navlinks { display: none; }
  .nav .brand { color: white; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .heroPhoto { order: -1; min-height: 50vh; background-position: 45% 35%; }
  .heroCopy { padding: 36px 7vw 48px; }
  .hero h1 { font-size: 54px; margin: 14px 0 18px; }
  .intro { grid-template-columns: 1fr; gap: 28px; padding-bottom: 48px; }
  .gallery { grid-template-columns: 1fr 1fr; padding: 0; }
  .gallery img { height: 46vh; }
  .gallery img:first-child { grid-column: 1 / -1; height: 62vh; }
  .services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .story { grid-template-columns: 1fr; }
  .story img { min-height: 500px; }
  .storyText { padding: 70px 8vw; }
  .cta { grid-template-columns: 1fr; }
  .contactForm { grid-template-columns: 1fr; gap: 24px; }
  .formDone { padding: 28px; }
  .foot { gap: 15px; flex-direction: column; }
}
