/*
Theme Name: THE PRINT3D BARN
Theme URI: https://www.theprint3dbarn.com
Description: A warm, nostalgic WordPress theme for THE PRINT3D BARN.
Version: 1.0.0
Author: THE PRINT3D BARN
Text Domain: the-print3d-barn
*/

:root {
  color-scheme: light;
  --ink: #1d302a;
  --ink-soft: #4b6258;
  --paper: #faecd4;
  --paper-light: #fffaf0;
  --green: #2c5d4b;
  --green-dark: #17352a;
  --red: #c54f36;
  --red-dark: #963424;
  --blue: #347fd0;
  --brass: #dca94d;
  --cream: #fff7e8;
  --line: rgba(32, 48, 43, 0.18);
  --shadow: 0 24px 65px rgba(31, 40, 34, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(36, 70, 59, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(36, 70, 59, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px, 42px 42px, auto;
  font-family: "Work Sans", Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.35;
  background-image:
    radial-gradient(rgba(32, 48, 43, 0.09) 0.7px, transparent 0.7px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

img {
  max-width: 100%;
}

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

.blue-3 {
  color: var(--blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(170px, 250px) 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 86px;
  padding: 14px clamp(18px, 5vw, 70px);
  color: var(--cream);
  background: rgba(20, 40, 32, 0.96);
  border-bottom: 4px solid var(--brass);
  box-shadow: 0 12px 30px rgba(10, 20, 16, 0.22);
}

.brand {
  display: block;
}

.brand img,
.site-footer img {
  display: block;
  height: auto;
  background: var(--paper-light);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.brand img {
  width: min(230px, 52vw);
  max-height: 62px;
  object-fit: contain;
}

.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 34px);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links a,
.site-footer nav a {
  opacity: 0.9;
}

.nav-links a:hover,
.site-footer nav a:hover {
  color: var(--brass);
  opacity: 1;
}

.header-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  border: 2px solid transparent;
  padding: 0 20px;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.header-button {
  color: var(--cream);
  background: var(--red);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.header-button:hover,
.button-primary:hover {
  background: var(--red-dark);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(810px, 91vh);
  padding: clamp(76px, 8vw, 118px) clamp(20px, 6vw, 84px) clamp(40px, 5vw, 68px);
  overflow: hidden;
  color: var(--cream);
  border-bottom: 8px solid var(--green);
}

.hero-photo,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo {
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(12, 23, 19, 0.94) 0%, rgba(20, 36, 30, 0.78) 42%, rgba(20, 36, 30, 0.15) 77%),
    linear-gradient(0deg, rgba(12, 23, 19, 0.55), rgba(12, 23, 19, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--brass);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker.dark {
  color: var(--red);
}

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

.hero h1,
.section-heading h2,
.shop-copy h2,
.story-card h2,
.contact-section h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(3.2rem, 7.4vw, 7.8rem);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.tagline {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 244, 222, 0.9);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
}

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

.button-primary {
  color: var(--cream);
  background: var(--red);
  border-color: var(--red);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.button-secondary {
  color: var(--cream);
  border-color: rgba(255, 244, 222, 0.62);
  background: rgba(255, 244, 222, 0.08);
}

.button-secondary:hover {
  background: rgba(255, 244, 222, 0.16);
}

.hero-ticket {
  position: absolute;
  right: clamp(18px, 5vw, 78px);
  bottom: clamp(24px, 5vw, 70px);
  z-index: 2;
  width: min(310px, calc(100% - 36px));
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 249, 237, 0.94);
  border: 2px solid rgba(198, 146, 61, 0.75);
  box-shadow: var(--shadow);
}

.hero-ticket span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-ticket strong {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.05;
}

.hero-ticket p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.marquee {
  display: flex;
  justify-content: center;
  gap: 1px;
  color: var(--cream);
  background: var(--green-dark);
  border-bottom: 4px solid var(--brass);
}

.marquee span {
  flex: 1;
  min-width: 160px;
  padding: 16px 18px;
  text-align: center;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 244, 222, 0.05);
}

.section,
.shop-band,
.story-section,
.contact-section,
.vision {
  padding: clamp(62px, 9vw, 120px) clamp(20px, 6vw, 84px);
}

.intro {
  background:
    linear-gradient(180deg, rgba(255, 249, 237, 0.88), rgba(244, 234, 216, 0.94));
}

.section-heading {
  max-width: 860px;
  margin: 0 0 36px;
}

.section-heading h2,
.shop-copy h2,
.story-card h2,
.contact-section h2 {
  font-size: clamp(2.05rem, 4.5vw, 4.35rem);
}

.section-heading p,
.shop-copy p,
.story-card p,
.contact-section p {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

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

.product-grid article,
.process-list div,
.values div,
.quote-form {
  border: 1px solid var(--line);
  background: var(--paper-light);
  box-shadow: 0 16px 38px rgba(31, 40, 34, 0.1);
}

.product-grid article {
  min-height: 265px;
  padding: 26px;
  border-top: 6px solid var(--green);
}

.product-grid article:nth-child(2) {
  border-top-color: var(--red);
}

.product-grid article:nth-child(3) {
  border-top-color: var(--blue);
}

.product-grid article:nth-child(4) {
  border-top-color: var(--brass);
}

.number {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  color: var(--cream);
  background: var(--green);
  border-radius: 50%;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 700;
}

.product-grid h3,
.process-list h3 {
  margin: 0 0 10px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.1;
}

.product-grid p,
.process-list p,
.values span {
  margin: 0;
  color: var(--ink-soft);
}

.shop-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 0.9fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: start;
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(36, 70, 59, 0.96), rgba(20, 40, 32, 0.98)),
    var(--green);
  border-top: 8px solid var(--brass);
  border-bottom: 8px solid var(--brass);
}

.shop-copy p {
  color: rgba(255, 244, 222, 0.82);
}

.process-list {
  display: grid;
  gap: 16px;
}

.process-list div {
  position: relative;
  min-height: 150px;
  padding: 24px 24px 24px 88px;
  color: var(--ink);
}

.process-list span {
  position: absolute;
  left: 24px;
  top: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--cream);
  background: var(--red);
  border-radius: 50%;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 700;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.62fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--paper);
}

.story-card {
  padding: clamp(28px, 5vw, 56px);
  background: var(--paper-light);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}

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

.values {
  display: grid;
  gap: 16px;
}

.values div {
  padding: 24px;
}

.values strong,
.contact-lines a,
.contact-lines span {
  display: block;
}

.values strong {
  margin-bottom: 6px;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.vision {
  color: var(--cream);
  background: var(--red-dark);
}

.vision p {
  max-width: 1080px;
  margin: 0 auto;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.65rem, 3.3vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: var(--paper-light);
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-weight: 700;
}

.contact-lines a {
  color: var(--blue);
}

.quote-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border-top: 6px solid var(--red);
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fffdf7;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(39, 107, 164, 0.18);
  border-color: var(--blue);
}

.quote-form .button {
  width: 100%;
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 320px) 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px clamp(20px, 6vw, 84px);
  color: var(--cream);
  background: var(--green-dark);
  border-top: 5px solid var(--brass);
}

.site-footer img {
  width: 230px;
  max-height: 62px;
  object-fit: contain;
}

.site-footer p {
  margin: 12px 0 0;
  color: rgba(255, 244, 222, 0.78);
}

.copyright {
  margin: 0;
  text-align: right;
  font-size: 0.92rem;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: minmax(170px, 230px) auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-ticket {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 36px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .copyright {
    text-align: left;
  }
}

@media (max-width: 820px) {
  .site-header,
  .shop-band,
  .story-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .header-button {
    width: fit-content;
  }

  .hero {
    min-height: 760px;
    align-items: end;
  }

  .hero-scrim {
    background:
      linear-gradient(0deg, rgba(12, 23, 19, 0.94) 0%, rgba(20, 36, 30, 0.74) 58%, rgba(20, 36, 30, 0.18) 100%);
  }

  .marquee {
    flex-wrap: wrap;
  }

  .marquee span {
    flex: 1 1 50%;
  }

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

@media (max-width: 560px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand img {
    width: 210px;
  }

  .nav-links {
    font-size: 0.84rem;
    gap: 18px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-actions .button,
  .header-button {
    width: 100%;
  }

  .hero-ticket {
    padding: 18px;
  }

  .section,
  .shop-band,
  .story-section,
  .contact-section,
  .vision {
    padding-inline: 16px;
  }

  .process-list div {
    padding: 22px;
  }

  .process-list span {
    position: static;
    margin-bottom: 18px;
  }
}
