/* Jayco Joinery: common */
:root {
  --gold: #96704c;
  --gold-light: #d2ae80;
  --gold-hover: #a98259;
  --espresso: #1b1611;
  --cream: #f4efe7;
  --cream-deep: #ece4d8;
  --ink: #29251f;
  --ink-soft: #665e53;
  --line: #dfd5c6;
  --white: #fff;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", Arial, sans-serif;
  --script: "Dancing Script", cursive;

  --container: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --page-hero-height: 530px;
  --page-hero-height-wide: 610px;
  --page-hero-height-mobile: 560px;

  
  --wood-texture: url("../assets/wood-texture.jpg");
  --testimonial-mobile: url("../assets/testimonial-bg.png");
  --consultation-mobile: url("../assets/consultation-bg.png");
  --footer-mobile-main: url("../assets/footer-mobile-bg.png");
  --footer-mobile-bottom: url("../assets/footer-mobile-bottom.png");
}

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

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

body {
  min-width: 280px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

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

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

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

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.center {
  text-align: center;
}

[id] {
  scroll-margin-top: 90px;
}

a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 5px;
}

.svg-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.btn,
.lower-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 300ms var(--ease),
    box-shadow 300ms ease;
}

.btn .icon,
.lower-button .icon {
  width: 18px;
  height: 18px;
}

.btn-gold,
.lower-button {
  background: var(--gold);
  color: #fff;
}

.btn-gold:hover,
.lower-button:hover {
  background: var(--gold-hover);
}

.btn-dark {
  background: var(--espresso);
  color: #fff;
}

.btn-dark:hover {
  background: #35271b;
}

.btn-ico,
.btn-arrow {
  display: none;
}

.section {
  padding: 64px 0;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.section-head {
  margin-bottom: 42px;
}

.section-head.center {
  max-width: 760px;
  margin-inline: auto;
}

.section-title {
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.18;
}

.caret {
  width: 10px;
  height: 10px;
}

.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .13em;
}

.eyebrow-rule::before {
  content: "";
  width: 30px;
  height: 1px;
  flex-shrink: 0;
  background: var(--gold);
}

.mobile-break {
  display: none;
}

.desktop-gallery {
  margin-top: 22px;
}

[data-slide].is-entering {
  animation: slide-reveal 450ms ease both;
}

@keyframes slide-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 920px) {
.mobile-break { display: inline; }

.desktop-gallery { display: none; }
}

@media (max-width: 640px) {
.container {
    width: calc(100% - 36px);
  }

.eyebrow-rule::before {
    width: 20px;
  }

.section { padding: 48px 0; }

.section-head { margin-bottom: 30px; }

.eyebrow { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
html {
    scroll-behavior: auto;
  }

*,
*::before,
*::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}

/* Shared type scale and accessibility refinements. */
:root{--body-size:1rem;--heading-size:clamp(1.75rem,3.1vw,2.5rem)}
body{font-size:var(--body-size)}
.eyebrow{font-size:12px}
.section-title{font-size:var(--heading-size)}
.skip-link{position:fixed;left:16px;top:-100px;z-index:10000;background:#fff;color:#16120e;padding:12px 18px}
.skip-link:focus{top:16px}
:focus-visible{outline:2px solid var(--gold-light);outline-offset:4px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
