/*  Westoria Home — self-hosted static site
    Layout metrics matched against the original Shopify storefront.
    Typography: Red Hat Text (body/UI) + Newsreader (display serif)
*/

@font-face {
  font-family: "Red Hat Text";
  src: url("../fonts/redhattext-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --dark: #383838;
  --ink: #111111;
  --gold: #976d36;
  --gold-line: #c1a483;
  --orange: #e2701e;
  --header-h: 100px;
  --gutter: 40px;
  --sans: "Red Hat Text", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: var(--header-h);
  background: #fff;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--gutter);
}

.site-header .logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  line-height: 0;
}

.site-header .logo img {
  height: 42px;
  width: auto;
}

.site-header .logo .logo-light {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 18px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.main-nav a {
  padding: 32px 0;
  position: relative;
  color: rgba(0, 0, 0, 0.8);
  transition: color 0.35s ease, opacity 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #000;
}

.menu-toggle {
  display: none;
}

/* Home page: transparent header over the hero, solid once scrolled */

body.page-home .site-header {
  background: transparent;
  box-shadow: none;
}

body.page-home .site-header.is-scrolled {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

body.page-home .site-header:not(.is-scrolled) .main-nav a {
  color: rgba(255, 255, 255, 0.8);
}

body.page-home .site-header:not(.is-scrolled) .main-nav a:hover,
body.page-home .site-header:not(.is-scrolled) .main-nav a[aria-current="page"] {
  color: #fff;
}

body.page-home .site-header:not(.is-scrolled) .menu-toggle {
  color: #fff;
}

body.page-home .site-header:not(.is-scrolled) .logo .logo-dark {
  display: none;
}
body.page-home .site-header:not(.is-scrolled) .logo .logo-light {
  display: block;
}

/* ---------------------------------------------------------------- heroes */

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #fff;
  background-color: #2a2a28;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.34) 32%,
    rgba(0, 0, 0, 0.14) 62%,
    rgba(0, 0, 0, 0.14) 100%
  );
  pointer-events: none;
}

/* full-viewport home hero */
.hero--home {
  height: 100svh;
  min-height: 640px;
}

.hero--home .hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(96px, 24vh, 240px) 16px 0;
}

.hero--home .hero__title {
  margin: 0;
  max-width: 1324px;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.003em;
  text-wrap: balance;
}

.hero--home .hero__sub {
  margin: 16px auto 0;
  max-width: 1300px;
  font-size: clamp(20px, 2.78vw, 40px);
  line-height: 1.4;
  font-weight: 400;
}

.hero--home .hero__meta {
  margin: 16px auto 0;
  max-width: 1200px;
  font-size: clamp(17px, 2.22vw, 32px);
  line-height: 1.4;
}

.hero--home .hero__cta {
  margin-top: 46px;
}

/* inner-page banner: 16:9 crop, 22px below the fixed header */
.hero--page {
  height: 56.25vw;
  max-height: 900px;
  min-height: 300px;
  margin-top: calc(var(--header-h) + 22px);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.6;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold-line);
  color: #fff;
}

.btn--gold:hover {
  background: #7f5c2c;
  border-color: #7f5c2c;
}

.btn--black {
  background: #000;
  border-color: #000;
  color: #fff;
}

.btn--black:hover {
  background: #262626;
  border-color: #262626;
}

/* ---------------------------------------------------------------- bands */

.band {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 50px 16px 70px;
}

.band__inner {
  max-width: 672px;
  margin: 0 auto;
}

.band h2 {
  margin: 0 0 30px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.band h3 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.band p {
  margin: 0 auto 20px;
  max-width: 672px;
  font-size: 19.5px;
  font-weight: 400;
  line-height: 1.4;
}

.band .lead {
  max-width: 672px;
}

.band .line-list {
  list-style: none;
  margin: 0 auto 20px;
  padding: 0;
  max-width: 672px;
}

.band .line-list li {
  font-size: 19.5px;
  line-height: 1.4;
}

.stats {
  max-width: 672px;
  margin: 0 auto 20px;
}

.band .stat {
  margin: 0 auto 20px;
  max-width: 672px;
}

.band .stat:last-child {
  margin-bottom: 0;
}

.band .stat__label {
  display: block;
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.4;
}

.band .stat__value {
  display: block;
  font-size: 19.5px;
  font-weight: 400;
  line-height: 1.4;
}

.band .band__cta {
  margin-top: 52px;
}

.band .band__cta--lg {
  margin-top: 50px;
}

/* per-section spacing matched to the original storefront */
.band--about-intro {
  padding-bottom: 50px;
}

.band--about-what {
  padding-bottom: 60px;
}

.band--work-stats {
  padding-bottom: 52px;
}

.band--work-stats h2 {
  margin-bottom: 34px;
}

.band--work-stats .stats {
  margin-bottom: 40px;
}

.band--work-who {
  padding-top: 32px;
  padding-bottom: 60px;
}

.band--work-who h2 {
  margin-bottom: 32px;
}

.band .band__rule {
  width: min(672px, 100%);
  height: 43px;
  margin: 30px auto;
  border: 0;
  background: linear-gradient(var(--orange), var(--orange)) center / 100% 1px
    no-repeat;
}

.band--home .band__rule {
  width: min(100%, 1360px);
  height: 3px;
  margin: 32px auto 35px;
  border: 0;
  background: linear-gradient(var(--orange), var(--orange)) center / 100% 1px
    no-repeat;
}

.band .band__contact div {
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.4;
}

.band .band__contact div + div {
  margin-top: 30px;
}

.band .band__contact a:hover {
  text-decoration: underline;
}

/* home “Let's Build Together” block */
.band--home {
  padding: 64px var(--gutter) 66px;
  text-align: center;
}

.band--home .band__inner {
  max-width: 1360px;
}

.band--home h2 {
  margin: 0 auto 31px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.band--home p {
  margin: 0 auto 20px;
  max-width: 780px;
  font-size: 20px;
  line-height: 1.4;
}

.band--home .band__contact div {
  font-size: 18px;
  line-height: 1.4;
}

.band--home .band__contact div + div {
  margin-top: 12px;
}

/* ---------------------------------------------------------------- images */

.full-image {
  width: 100%;
  height: 56.25vw;
  max-height: 900px;
  min-height: 300px;
  overflow: hidden;
  background: #242422;
}

.full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------------- contact */

.contact-page {
  padding: calc(var(--header-h) + 62px) 24px 228px;
}

.contact-page h1 {
  margin: 0 auto 33px;
  max-width: 680px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 200;
  font-size: 72px;
  line-height: 1.1;
  letter-spacing: 0.002em;
  color: #000;
}

.contact-form {
  max-width: 680px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .field--full {
  grid-column: 1 / -1;
}

.field {
  position: relative;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 16px 20px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: #222;
  background: #fff;
  border: 1px solid #f2f2f2;
  border-radius: 0;
  appearance: none;
  transition: border-color 0.2s ease;
}

.field input {
  height: 53px;
}

.field textarea {
  height: 226px;
  padding-top: 16px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5f5f5f;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #c4c4c4;
}

.form-actions {
  margin-top: 14px;
}

.form-status {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #444;
}

.form-status.is-error {
  color: #b3261e;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.site-footer__inner {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
}

/* ---------------------------------------------------------------- drawer */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 22px 26px 40px;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  visibility: hidden;
}

.mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu__top img {
  height: 34px;
}

.mobile-menu__close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #222;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  margin-top: 34px;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-menu__nav a {
  padding: 14px 0;
  border-bottom: 1px solid #ececec;
}

.mobile-menu__contact {
  margin-top: auto;
  font-size: 14px;
  line-height: 1.9;
  color: #444;
}

.mobile-menu__contact a {
  display: block;
}

/* visually hidden helper */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
    --gutter: 20px;
  }

  .site-header .logo img {
    height: 32px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -6px;
    padding: 0;
    background: none;
    border: 0;
    color: #111;
    cursor: pointer;
  }

  .menu-toggle svg {
    width: 24px;
    height: 24px;
  }

  .hero--home {
    height: 100svh;
    min-height: 560px;
  }

  .hero--home .hero__content {
    padding: 100px 18px 20px;
  }

  .hero--home .hero__title {
    font-size: clamp(28px, 7.6vw, 40px);
    line-height: 1.3;
  }

  .hero--home .hero__sub {
    margin-top: 14px;
    font-size: 20px;
    line-height: 1.45;
    max-width: 560px;
  }

  .hero--home .hero__meta {
    margin-top: 14px;
    font-size: 16px;
  }

  .hero--home .hero__cta {
    margin-top: 28px;
  }

  .hero--page {
    height: 62vw;
    min-height: 260px;
    margin-top: calc(var(--header-h) + 12px);
  }

  .band {
    padding: 44px 20px 56px;
  }

  .band h2 {
    margin-bottom: 24px;
    font-size: 21px;
  }

  .band h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .band p,
  .band .line-list li,
  .band .stat__label,
  .band .stat__value {
    font-size: 17px;
    line-height: 1.5;
  }

  .band p {
    margin-bottom: 16px;
  }

  .band .line-list {
    margin-bottom: 16px;
  }

  .band .band__rule {
    margin: 24px auto;
  }

  .band .band__contact div {
    font-size: 16px;
  }

  .band--home {
    padding: 48px 20px 54px;
  }

  .band--home h2 {
    margin-bottom: 24px;
  }

  .band--home p {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .band--home .band__rule {
    margin: 26px auto;
  }

  .full-image {
    height: 62vw;
  }

  .contact-page {
    padding: calc(var(--header-h) + 40px) 20px 120px;
  }

  .contact-page h1 {
    font-size: clamp(40px, 12vw, 64px);
    margin-bottom: 26px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .field textarea {
    height: 190px;
  }

  .site-footer__inner {
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
