/* SU Home Textiles — shared stylesheet */

:root {
  --ivory: #F6F0E7;
  --sand: #EFE6D8;
  --beige: #DFCEB8;
  --taupe: #B8A78D;
  --cocoa: #6E5847;
  --espresso: #3A2E24;
  --rust: #B5502C;
  --hairline: #E3D7C4;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --measure: 62ch;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--espresso);
  background: var(--ivory);
  font-feature-settings: "kern", "liga", "clig";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

::selection { background: var(--rust); color: var(--ivory); }

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 600px) {
  .wrap { padding: 0 22px; }
}

/* ---------- Display headings ---------- */

.hero h1,
.page-hero h1,
.section-title,
.cta-band h2 {
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 240, 231, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.logo-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 1.5px solid var(--espresso);
  padding: 8px 16px;
  line-height: 1;
}

.logo-mark .su {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--espresso);
}

.logo-mark .rule {
  width: 26px;
  height: 1.5px;
  background: var(--rust);
  margin: 5px 0;
}

.logo-mark .sub {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--cocoa);
}

nav.main-nav {
  display: flex;
  gap: 34px;
}

nav.main-nav a {
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--espresso);
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle { display: none; }

@media (max-width: 820px) {
  nav.main-nav { display: none; }
}

/* ---------- Services sub-navigation ---------- */

.sub-nav {
  background: var(--ivory);
  border-bottom: 1px solid var(--hairline);
}

.sub-nav .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.sub-nav a {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cocoa);
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sub-nav a:hover { color: var(--espresso); }

.sub-nav a.active {
  color: var(--espresso);
  border-bottom-color: var(--rust);
}

/* ---------- Eyebrow / labels ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cocoa);
  font-weight: 600;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--rust);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(96px, 15vw, 148px) 0 clamp(80px, 12vw, 120px);
  background: var(--ivory);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.hero .wrap { max-width: 840px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.1;
  color: var(--espresso);
  margin: 0 0 28px;
}

.hero p.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.75;
  color: var(--cocoa);
  max-width: 58ch;
  margin: 0 0 38px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: 0;
  border: 1.5px solid var(--rust);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn-solid {
  background: var(--rust);
  color: var(--ivory);
}
.btn-solid:hover { background: #98401F; border-color: #98401F; }

.btn-outline {
  background: transparent;
  color: var(--espresso);
  border-color: var(--espresso);
}
.btn-outline:hover { background: var(--espresso); color: var(--ivory); }

/* ---------- Section shell ---------- */

section { padding: clamp(72px, 11vw, 120px) 0; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 35px);
  line-height: 1.2;
  color: var(--espresso);
  margin: 0 0 52px;
  max-width: 620px;
}

/* ---------- What we do / service cards ---------- */

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

.service-card {
  position: relative;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  padding: 44px 34px;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px -28px rgba(58, 46, 36, 0.4);
  border-color: var(--taupe);
}

.service-card .num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--rust);
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  color: var(--espresso);
  margin: 0 0 14px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--cocoa);
  margin: 0 0 24px;
  flex-grow: 1;
}

.service-card .link {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rust);
}

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

/* ---------- Stats / framed section ---------- */

.stats-section {
  background: var(--ivory);
  color: var(--espresso);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-frame {
  border: 1px solid var(--hairline);
  padding: 40px 24px;
  text-align: center;
}

.stat-frame .stat-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 44px);
  letter-spacing: -0.01em;
  color: var(--espresso);
  margin-bottom: 10px;
}

.stat-frame .stat-label {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--cocoa);
  line-height: 1.6;
}

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

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--sand);
  text-align: center;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.cta-band .wrap { max-width: 620px; }

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.25;
  color: var(--espresso);
  margin: 0 0 18px;
}

.cta-band p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--cocoa);
  margin: 0 0 32px;
}

.cta-band .email {
  display: block;
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--espresso);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--espresso);
  color: var(--beige);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}

.site-footer .logo-mark { border-color: var(--ivory); }
.site-footer .logo-mark .su { color: var(--ivory); }
.site-footer .logo-mark .sub { color: var(--beige); }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 18px;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: var(--ivory);
  line-height: 2.1;
  margin: 0;
}

.footer-col a { transition: color 0.2s ease; }
.footer-col a:hover { color: var(--taupe); }

.footer-bottom {
  border-top: 1px solid rgba(246, 240, 231, 0.14);
  padding-top: 26px;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--taupe);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

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

/* ---------- Generic content page shell (about / services / contact) ---------- */

.page-hero {
  padding: clamp(72px, 10vw, 104px) 0 clamp(48px, 7vw, 68px);
  border-bottom: 1px solid var(--hairline);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
  color: var(--espresso);
  margin: 12px 0 20px;
}

.page-hero p.lead {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.75;
  color: var(--cocoa);
  max-width: 60ch;
}

.prose p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--cocoa);
  max-width: var(--measure);
  margin: 0 0 22px;
}

.prose p:last-child { margin-bottom: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 44px; }
}

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cocoa);
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--hairline);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 16px;
  height: 1px;
  background: var(--rust);
}
.check-list li:first-child { padding-top: 4px; }
.check-list li:first-child::before { top: 13px; }

.process-step {
  display: flex;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
}
.process-step:last-child { border-bottom: none; }
.process-step:first-child { padding-top: 4px; }

.process-step .num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--taupe);
  width: 52px;
  flex-shrink: 0;
  line-height: 1.2;
}

.process-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--espresso);
  margin: 0 0 8px;
}

.process-step p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--cocoa);
  margin: 0;
  max-width: 60ch;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.expertise-item {
  border-left: 2px solid var(--rust);
  padding-left: 22px;
}

.expertise-item h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--espresso);
  margin: 0 0 8px;
}

.expertise-item p {
  font-size: 14px;
  color: var(--cocoa);
  line-height: 1.65;
  margin: 0;
}

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

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pill {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--espresso);
  border: 1px solid var(--taupe);
  padding: 8px 18px;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tag-pill:hover {
  background: var(--espresso);
  color: var(--ivory);
  border-color: var(--espresso);
}

.alt-bg {
  background: var(--sand);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.contact-form {
  display: grid;
  gap: 20px;
}
.contact-form label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cocoa);
  margin-bottom: 8px;
  display: block;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 15px;
  border: 1px solid var(--taupe);
  background: #FFFDF9;
  color: var(--espresso);
  border-radius: 0;
  transition: border-color 0.2s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--taupe); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--rust);
}

.contact-info-block { border: 1.5px solid var(--espresso); padding: 34px; }
.contact-info-block .row { margin-bottom: 24px; }
.contact-info-block .row:last-child { margin-bottom: 0; }
.contact-info-block .label {
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 7px;
}
.contact-info-block .value {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--espresso);
}

/* ---------- Textile motifs (decorative) ---------- */

.hero .wrap { position: relative; z-index: 1; }

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: 360px;
  height: 100%;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='720' viewBox='0 0 360 720' fill='none'%3E%3Cpath d='M20,-40 L30,-15 L39,11 L46,36 L50,61 L52,87 L52,112 L48,137 L43,163 L37,188 L30,213 L23,239 L18,264 L13,289 L9,315 L7,340 L5,365 L5,391 L4,416 L3,441 L3,467 L2,492 L2,517 L2,543 L4,568 L7,593 L11,619 L17,644 L23,669 L31,695 L38,720' stroke='%236E5847' stroke-width='1.4' stroke-linecap='round' opacity='0.55'/%3E%3Cpath d='M80,-40 L88,-15 L93,11 L96,36 L95,61 L92,87 L87,112 L80,137 L72,163 L65,188 L58,213 L52,239 L48,264 L45,289 L44,315 L43,340 L44,365 L45,391 L45,416 L46,441 L47,467 L48,492 L50,517 L52,543 L56,568 L60,593 L66,619 L73,644 L79,669 L85,695 L90,720' stroke='%23B8A78D' stroke-width='1.1' stroke-linecap='round' opacity='0.4'/%3E%3Cpath d='M135,-40 L138,-15 L139,11 L136,36 L130,61 L123,87 L115,112 L106,137 L98,163 L92,188 L87,213 L83,239 L82,264 L82,289 L83,315 L85,340 L88,365 L90,391 L92,416 L94,441 L96,467 L98,492 L101,517 L105,543 L110,568 L115,593 L120,619 L126,644 L130,669 L133,695 L134,720' stroke='%23B5502C' stroke-width='1.4' stroke-linecap='round' opacity='0.6'/%3E%3Cpath d='M181,-40 L179,-15 L174,11 L166,36 L158,61 L149,87 L140,112 L132,137 L126,163 L122,188 L121,213 L121,239 L123,264 L126,289 L129,315 L133,340 L136,365 L139,391 L142,416 L144,441 L147,467 L150,492 L153,517 L157,543 L162,568 L166,593 L170,619 L172,644 L173,669 L172,695 L168,720' stroke='%236E5847' stroke-width='1.1' stroke-linecap='round' opacity='0.5'/%3E%3Cpath d='M216,-40 L209,-15 L201,11 L191,36 L182,61 L173,87 L166,112 L162,137 L160,163 L160,188 L162,213 L166,239 L171,264 L175,289 L180,315 L184,340 L188,365 L191,391 L193,416 L196,441 L198,467 L201,492 L203,517 L206,543 L209,568 L211,593 L212,619 L211,644 L208,669 L203,695 L197,720' stroke='%23B8A78D' stroke-width='1.4' stroke-linecap='round' opacity='0.38'/%3E%3Cpath d='M243,-40 L234,-15 L224,11 L215,36 L207,61 L202,87 L199,112 L199,137 L202,163 L206,188 L211,213 L217,239 L223,264 L229,289 L233,315 L237,340 L239,365 L241,391 L243,416 L244,441 L246,467 L247,492 L249,517 L250,543 L250,568 L250,593 L247,619 L243,644 L237,669 L230,695 L222,720' stroke='%236E5847' stroke-width='1.1' stroke-linecap='round' opacity='0.5'/%3E%3Cpath d='M266,-40 L257,-15 L249,11 L243,36 L240,61 L239,87 L241,112 L246,137 L252,163 L259,188 L266,213 L273,239 L278,264 L282,289 L285,315 L287,340 L288,365 L289,391 L289,416 L289,441 L289,467 L289,492 L289,517 L288,543 L286,568 L282,593 L277,619 L271,644 L264,669 L257,695 L250,720' stroke='%23B8A78D' stroke-width='1.4' stroke-linecap='round' opacity='0.42'/%3E%3Cpath d='M291,-40 L285,-15 L281,11 L280,36 L282,61 L286,87 L293,112 L300,137 L308,163 L316,188 L322,213 L328,239 L331,264 L333,289 L334,315 L333,340 L332,365 L331,391 L330,416 L329,441 L327,467 L326,492 L324,517 L321,543 L317,568 L312,593 L306,619 L300,644 L294,669 L288,695 L284,720' stroke='%236E5847' stroke-width='1.1' stroke-linecap='round' opacity='0.48'/%3E%3C/svg%3E") no-repeat right top;
  background-size: 360px auto;
}

.cta-band,
.alt-bg {
  background-color: var(--sand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M0 0V56 M14 0V56 M28 0V56 M42 0V56 M56 0V56' stroke='%236E5847' stroke-width='1' stroke-dasharray='7 7' opacity='0.05'/%3E%3Cpath d='M0 0H56 M0 14H56 M0 28H56 M0 42H56 M0 56H56' stroke='%236E5847' stroke-width='1' stroke-dasharray='7 7' stroke-dashoffset='7' opacity='0.05'/%3E%3C/svg%3E");
}

.site-footer {
  background-color: var(--espresso);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M0 0V56 M14 0V56 M28 0V56 M42 0V56 M56 0V56' stroke='%23F6F0E7' stroke-width='1' stroke-dasharray='7 7' opacity='0.05'/%3E%3Cpath d='M0 0H56 M0 14H56 M0 28H56 M0 42H56 M0 56H56' stroke='%23F6F0E7' stroke-width='1' stroke-dasharray='7 7' stroke-dashoffset='7' opacity='0.05'/%3E%3C/svg%3E");
}

@media (max-width: 1099px) {
  .hero::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .service-card:hover { transform: none; }
}
