/* Sobie Supply Co. — charcoal, Playfair Display, Source Sans,
   drawn from the May 16, 2024 sobiesupply.com snapshot and the historic wordmark. */

:root {
  --ink: #161616;
  --ink-soft: #1c1c1c;
  --charcoal: #2c2c2c;
  --gray: #6f6f6f;
  --gray-light: #e9e9e9;
  --paper: #f4f0e8;
  --paper-2: #ece6db;
  --white: #ffffff;
  --navy: #1d3d8a;
  --navy-deep: #152c68;
  --navy-bright: #2a56b8;
  --sand: #c4b49a;
  --sand-dark: #8c7a5e;
  --header-h: 5.25rem;
  --wrap: 72rem;
  --radius: 0.9rem;
  --shadow: 0 22px 48px rgba(22, 22, 22, 0.16);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1.075rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--navy-bright); }
address { font-style: normal; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 200;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-dark);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(3rem, 8.2vw, 6rem); margin: 0 0 1.15rem; font-weight: 600; }
h2 { font-size: clamp(2.05rem, 4.4vw, 3.15rem); margin: 0 0 1.1rem; }
h3 { font-size: 1.4rem; margin: 0 0 0.55rem; }

.section-intro {
  max-width: 44rem;
  margin-bottom: 2.75rem;
}
.section-intro p { color: var(--charcoal); font-size: 1.12rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.15rem;
  padding: 0.75rem 1.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-bright); color: var(--white); }
.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 22, 22, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  width: min(100% - 1.5rem, var(--wrap));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand img {
  height: 3.35rem;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.6rem;
}
.site-nav a {
  color: var(--gray-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.site-nav a:hover { color: var(--white); }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--navy-bright); }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: min(94vh, 56rem);
  display: grid;
  align-items: end;
  color: var(--white);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  /* Keep the full "SOBIE FABRICS" sign in the bright upper-right of the frame. */
  background: url("../images/storefront.jpg") 86% 16% / cover no-repeat;
  z-index: -2;
}
.hero-shade {
  /* Scrim only behind the headline (left side). The sign stays bright. */
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(46rem, 58%);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(22, 22, 22, 0.82) 0%,
    rgba(22, 22, 22, 0.58) 42%,
    rgba(22, 22, 22, 0.22) 72%,
    rgba(22, 22, 22, 0) 100%
  );
}
.hero-content {
  width: min(100% - 2rem, var(--wrap));
  margin: 0 auto 0 max(1rem, calc((100% - min(100% - 2rem, var(--wrap))) / 2));
  padding: 8rem 0 5rem;
  max-width: 48rem;
  justify-self: start;
}
.hero h1 {
  text-shadow: 0 2px 28px rgba(22, 22, 22, 0.45);
}
.hero .eyebrow { color: var(--sand); }
.hero .lede {
  text-shadow: 0 1px 16px rgba(22, 22, 22, 0.45);

  font-size: clamp(1.12rem, 2.1vw, 1.4rem);
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 2rem;
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero .btn-primary {
  background: var(--white);
  color: var(--ink);
}
.hero .btn-primary:hover {
  background: var(--sand);
  color: var(--ink);
}

/* Trust bar */
.trust {
  background: var(--ink);
  color: var(--white);
  padding: 2.75rem 0;
  border-top: 1px solid rgba(196, 180, 154, 0.22);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 2rem;
}
.trust-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.trust strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.trust p {
  margin: 0;
  color: #cfcfcf;
  font-size: 0.98rem;
}

/* About */
.about { padding: 6rem 0 5.5rem; }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.25rem;
  align-items: center;
}
.about-copy p { margin: 0 0 1.05rem; color: var(--charcoal); font-size: 1.08rem; }
.about-copy blockquote {
  margin: 1.7rem 0 0;
  padding: 0.15rem 0 0.15rem 1.3rem;
  border-left: 3px solid var(--navy);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.35;
}
.about-copy blockquote p { margin: 0; color: inherit; font-size: inherit; }
.about-photos {
  display: grid;
  gap: 0.85rem;
}
.about-photo { margin: 0; }
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.about-photo-main img { aspect-ratio: 5 / 4; }
.about-photo-side img { aspect-ratio: 16 / 10; }
.about-photo figcaption {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--gray);
}

/* Services */
.services {
  padding: 5.5rem 0 6rem;
  background:
    linear-gradient(rgba(236, 230, 219, 0.9), rgba(236, 230, 219, 0.9)),
    url("../images/fabric-linen-grey.jpg") center / cover no-repeat;
  background-color: var(--paper-2);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(22, 22, 22, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.service-thumb {
  height: 9.25rem;
  background-size: cover;
  background-position: center;
}
.service-body { padding: 1.25rem 1.25rem 1.45rem; }
.service-body p {
  margin: 0;
  color: var(--charcoal);
  font-size: 1rem;
}

/* Start Your Project — charcoal, matching the hero */
.intake {
  position: relative;
  padding: 6rem 0 6.25rem;
  background:
    linear-gradient(to right, rgba(22, 22, 22, 0.94) 0%, rgba(22, 22, 22, 0.88) 55%, rgba(22, 22, 22, 0.82) 100%),
    url("../images/storefront-street.jpg") right center / cover no-repeat;
  background-color: var(--ink);
  color: var(--white);
}
.intake-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.25rem;
  align-items: start;
}
.intake .eyebrow { color: var(--sand); }
.intake-copy p { color: #ddd6ca; font-size: 1.1rem; }
.intake-copy address {
  margin: 1.75rem 0 1rem;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--white);
}
.contact-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  max-width: 22rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-list span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 700;
  align-self: center;
}
.contact-list a { color: var(--white); }
.contact-list a:hover { color: var(--sand); }
.hours-note { font-size: 0.95rem; color: #b8b0a4 !important; }

.intake-form {
  background: #1b1b1b;
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 1.85rem 1.7rem 1.9rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 180, 154, 0.22);
}
.intake-form h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  margin: 0 0 0.7rem;
  color: var(--white);
}
.form-notice {
  margin: 0 0 1.25rem;
  padding: 0.8rem 0.9rem;
  background: rgba(196, 180, 154, 0.1);
  border-left: 3px solid var(--sand);
  font-size: 0.92rem;
  color: #e4ddd2;
}
.form-notice a { color: var(--sand); }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field { margin-bottom: 0.95rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: #f0ebe3;
}
.optional, .req { font-weight: 400; font-size: 0.8rem; letter-spacing: 0.02em; }
.optional { color: #9a9388; }
.req { color: var(--sand); }
.field-hint {
  margin: -0.35rem 0 1rem;
  font-size: 0.88rem;
  color: #b8b0a4;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.5rem;
  font: inherit;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.field input::placeholder,
.field textarea::placeholder { color: #8f877c; }
.field select { color-scheme: dark; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--sand);
  outline-offset: 1px;
  border-color: var(--sand);
}
.intake-form .btn { width: 100%; margin-top: 0.35rem; }
.intake-form .btn-primary {
  background: var(--white);
  color: var(--ink);
}
.intake-form .btn-primary:hover {
  background: var(--sand);
  color: var(--ink);
}
.form-status {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  background: #e8f0e6;
  color: #1c3d18;
  font-size: 0.98rem;
}
.form-status.is-error {
  background: #f3e2dc;
  color: #5c2218;
}

/* Footer */
.site-footer {
  background: #101010;
  color: #d0d0d0;
  padding: 2.75rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 1.5rem 2rem;
  align-items: center;
}
.site-footer .brand img { height: 3.1rem; width: auto; }
.site-footer a { color: #e9e9e9; }
.site-footer p { margin: 0 0 0.4rem; font-size: 0.95rem; }
.copyright { color: var(--gray); margin: 0.7rem 0 0 !important; }

@media (max-width: 960px) {
  .trust-grid,
  .service-grid { grid-template-columns: 1fr 1fr; }
  .about-grid,
  .intake-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 1.25rem; }
  .about-photos { order: -1; }
}

@media (max-width: 720px) {
  :root { --header-h: 4.4rem; }
  .brand img { height: 2.7rem; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #111;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 1rem;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-cta {
    margin-top: 0.6rem;
    text-align: center;
    border-bottom: 0 !important;
  }
  .hero { min-height: 88vh; }
  .hero-media {
    /* Size the photo so the full "SOBIE FABRICS" sign fits the narrow frame. */
    background-color: #161616;
    background-size: 138% auto;
    background-position: 70% 0;
    background-repeat: no-repeat;
  }
  .hero-shade {
    width: 100%;
    top: auto;
    height: 58%;
    background: linear-gradient(
      to top,
      rgba(22, 22, 22, 0.9) 0%,
      rgba(22, 22, 22, 0.62) 38%,
      rgba(22, 22, 22, 0.18) 72%,
      rgba(22, 22, 22, 0) 100%
    );
  }
  .hero-content { padding: 6.5rem 0 3.25rem; }
  .trust-grid,
  .service-grid,
  .field-row { grid-template-columns: 1fr; }
  .about, .services, .intake { padding: 3.5rem 0; }
  .intake-form { padding: 1.3rem 1.1rem 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-toggle span { transition: none; }
}
