:root {
  --paper: #ffffff;
  --mist: #f4f7f5;
  --ink: #111714;
  --muted: #5d6863;
  --line: #dce4df;
  --jade: #14584f;
  --jade-dark: #0c302c;
  --vermilion: #a83e32;
  --gold: #b8883d;
  --night: #091715;
  --shadow: 0 22px 70px rgba(7, 28, 25, 0.14);
  --radius: 8px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 228, 223, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--jade-dark);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 13px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.active {
  color: var(--ink);
  background: var(--mist);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--jade);
  color: var(--jade);
  font-weight: 700;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-line {
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.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;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
  background: var(--night);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 23, 21, 0.88) 0%, rgba(9, 23, 21, 0.63) 48%, rgba(9, 23, 21, 0.2) 100%),
    url("../img/bespoke-measurement.jpg") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(240px, 330px);
  gap: 56px;
  align-items: end;
  padding: 96px 0 82px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 760px;
}

.hero-lede {
  margin: 24px 0 0;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--vermilion);
  color: var(--paper);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
}

.button-light {
  background: var(--paper);
  color: var(--jade-dark);
}

.hero-notes {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-notes div {
  padding: 20px;
  background: rgba(8, 27, 24, 0.64);
}

.hero-notes strong,
.hero-notes span {
  display: block;
}

.hero-notes strong {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
}

.hero-notes span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.section {
  padding: 92px 0;
}

.intro-section {
  padding-top: 80px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1fr);
  gap: 72px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.rich-text p,
.story-panel p,
.service-detail p,
.image-feature p,
.contact-info p,
.cta-layout p {
  color: var(--muted);
}

.rich-text p:first-child,
.story-panel p:first-child,
.service-detail p:first-of-type {
  margin-top: 0;
}

.rich-text p:last-child,
.story-panel p:last-child,
.service-detail p:last-child {
  margin-bottom: 0;
}

.service-band,
.values-section,
.occasion-section {
  background: var(--mist);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 48px rgba(9, 23, 21, 0.05);
}

.service-card.accent-card {
  background: var(--jade-dark);
  border-color: var(--jade-dark);
  color: var(--paper);
}

.service-card p {
  color: var(--muted);
}

.service-card.accent-card p {
  color: rgba(255, 255, 255, 0.74);
}

.service-number {
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 30px;
}

.service-card a {
  margin-top: auto;
  color: var(--jade);
  font-weight: 800;
}

.service-card.accent-card a {
  color: var(--paper);
}

.image-story {
  background: var(--paper);
}

.image-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
  gap: 56px;
}

.reverse-story .image-story-layout img {
  order: 2;
}

.image-story-layout img,
.image-feature-grid img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-panel {
  padding: 6px 0;
}

.story-panel p {
  font-size: 18px;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 2px;
  background: var(--vermilion);
}

.process-section {
  background: var(--night);
  color: var(--paper);
}

.process-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.process-item {
  min-height: 235px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.process-item span {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 28px;
}

.process-item p {
  color: rgba(255, 255, 255, 0.74);
}

.cta-section {
  background: var(--jade);
  color: var(--paper);
}

.cta-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-layout p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 660px;
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  color: var(--paper);
  background:
    linear-gradient(120deg, rgba(9, 23, 21, 0.92), rgba(20, 88, 79, 0.78)),
    url("../img/fabric-selection.jpg") center / cover no-repeat;
}

.services-hero {
  background:
    linear-gradient(120deg, rgba(9, 23, 21, 0.9), rgba(168, 62, 50, 0.58)),
    url("../img/client-consultation.jpg") center / cover no-repeat;
}

.contact-hero {
  background:
    linear-gradient(120deg, rgba(9, 23, 21, 0.92), rgba(184, 136, 61, 0.54)),
    url("../img/bespoke-measurement.jpg") center / cover no-repeat;
}

.page-hero-content {
  padding: 82px 0;
}

.page-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

.values-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 54px;
  align-items: start;
}

.values-intro p {
  color: var(--muted);
}

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

.values-grid span,
.material-list span {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-weight: 800;
}

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

.philosophy-grid article,
.occasion-grid article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 250px;
}

.occasion-grid article {
  background: var(--paper);
}

.philosophy-grid p,
.occasion-grid p {
  color: var(--muted);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 42px;
}

.detail-index {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
}

.detail-alt {
  background: var(--mist);
}

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

.feature-columns div {
  border-top: 2px solid var(--vermilion);
  padding-top: 18px;
}

.material-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.image-feature-grid {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.contact-section {
  background: var(--mist);
}

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

.contact-info,
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 56px rgba(9, 23, 21, 0.06);
}

.contact-info {
  padding: 34px;
}

.contact-info address,
.site-footer address {
  font-style: normal;
  color: var(--muted);
}

.contact-links {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.contact-links a,
.site-footer a {
  color: var(--jade);
  font-weight: 800;
}

.office-panel {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 24px;
}

.contact-form {
  padding: 34px;
}

.form-intro {
  margin-top: 6px;
  color: var(--muted);
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd6d0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  min-height: 48px;
  padding: 11px 13px;
  outline: none;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(20, 88, 79, 0.12);
}

.checkbox-field {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-button {
  margin-top: 22px;
  width: 100%;
}

.form-status {
  min-height: 28px;
  margin: 14px 0 0;
  color: var(--jade);
  font-weight: 800;
}

.form-status.error {
  color: var(--vermilion);
}

.site-footer {
  background: var(--night);
  color: var(--paper);
  padding: 58px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.8fr) minmax(160px, 0.4fr);
  gap: 42px;
}

.footer-brand .brand-mark {
  background: var(--paper);
  color: var(--jade-dark);
}

.site-footer p,
.site-footer address {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.site-footer a {
  display: table;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 8px;
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--mist);
}

.thank-you-card {
  max-width: 680px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px;
  box-shadow: var(--shadow);
}

.thank-you-card h1 {
  margin: 34px 0 8px;
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1.1;
}

.thank-you-card p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .header-action {
    display: none;
  }

  .hero-content,
  .two-column,
  .image-story-layout,
  .values-layout,
  .service-detail-grid,
  .image-feature-grid,
  .contact-grid,
  .footer-grid,
  .cta-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 38px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 50px;
  }

  .service-grid,
  .process-list,
  .philosophy-grid,
  .occasion-grid,
  .material-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reverse-story .image-story-layout img {
    order: 0;
  }

  .image-story-layout img,
  .image-feature-grid img {
    height: 430px;
  }

  .cta-layout {
    display: grid;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav-shell {
    min-height: 66px;
    gap: 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text {
    max-width: 150px;
    white-space: normal;
    line-height: 1.1;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    display: none;
    grid-template-columns: 1fr;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(9, 23, 21, 0.9) 0%, rgba(9, 23, 21, 0.68) 62%, rgba(9, 23, 21, 0.86) 100%),
      url("../img/bespoke-measurement.jpg") center / cover no-repeat;
  }

  .hero-content {
    padding: 74px 0 48px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-lede,
  .page-hero p {
    font-size: 18px;
  }

  .section {
    padding: 64px 0;
  }

  h2 {
    font-size: 32px;
  }

  .service-grid,
  .process-list,
  .philosophy-grid,
  .occasion-grid,
  .material-list,
  .feature-columns,
  .field-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .process-item,
  .philosophy-grid article,
  .occasion-grid article {
    min-height: auto;
  }

  .image-story-layout img,
  .image-feature-grid img {
    height: 320px;
  }

  .detail-index {
    font-size: 42px;
  }

  .contact-info,
  .contact-form,
  .thank-you-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
