/* ==========================================================================
   Stop Napa Oaks — static rebuild of the Squarespace "Pacific" template site
   Design tokens extracted from the original site.css
   (Raleway via Google Fonts replaces the Squarespace-hosted copy)
   ========================================================================== */

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

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

body {
  font-family: "Raleway", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .4px;
  line-height: 1.6em;
  color: rgba(0, 0, 0, .5);
  background-color: #171717;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

/* ---------------- Typography (original tweak values) ---------------- */

h1 {
  font-family: "Raleway", Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 42px;
  line-height: 1.1em;
  color: #201713;
  margin: 1.5em auto .3em;
}

h2 {
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 32px;
  line-height: 1.5em;
  color: #201713;
  margin: 1.5em auto .3em;
}

h3 {
  font-family: "Raleway", Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: .05em;
  font-size: 15px;
  line-height: 1.4em;
  color: rgba(28, 28, 28, .8);
  margin: 1.5em auto .3em;
}

p { margin: 1em 0; }

.text-align-center { text-align: center; }
.text-align-right { text-align: right; }

.sqs-html-content a { color: inherit; }

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

#header {
  background-color: #000;
  padding: 0 30px;
  width: 100%;
  text-align: center;
}

.logo-image { margin: 0; padding: 25px 0 5px; }
.logo-image a { display: inline-block; }
.logo-image img { width: 200px; max-width: 200px; height: auto; display: inline-block; }

#mainNavigation {
  background-color: #000;
  text-align: center;
  padding: 14px 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1002;
}

#mainNavigation a {
  font-family: "Raleway", Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 14px;
  line-height: 1em;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  display: inline-block;
  padding: .5em .75em;
}

#mainNavigation a:hover,
#mainNavigation a.active { color: #fff; }

/* ---------------- Index sections ---------------- */

.index-section { background-color: #fff; }
.index-section.alt-section { background-color: #f5f5f5; }

.index-section .content {
  max-width: 1080px;
  margin: auto;
  padding: 100px 34px;
}

/* Banner (home) section */

.index-section.has-main-image {
  position: relative;
  background-size: cover;
  background-position: 50% 50%;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.index-image-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: rgba(0, 0, 0, .2);
}

.index-section.has-main-image .content {
  position: relative;
  width: 100%;
  padding: 102px 34px;
}

.index-section.has-main-image h1 {
  color: #fff;
  font-size: 72px;
  font-weight: 800;
  margin: 0;
  word-wrap: normal;
}

/* ---------------- Layout grid ---------------- */

.row { display: flex; flex-wrap: wrap; margin: 0 -17px; }
.row .col { padding: 0 17px; min-width: 0; }
.col.span-3 { width: 25%; }
.col.span-4 { width: 33.3333%; }
.col.span-6 { width: 50%; }
.col.span-12 { width: 100%; }

/* ---------------- Blocks ---------------- */

.sqs-block { padding: 17px 0; }

/* Quote block */
.quote-block figure {
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 29px;
  line-height: 1.35em;
  color: #1c1c1c;
  padding: 34px;
  text-align: center;
  margin: 0;
}
.quote-block blockquote { margin: 0; padding: .5em 20px; border: 0; font-style: normal; }
.quote-block .source {
  display: block;
  margin-top: 1em;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(28, 28, 28, .5);
}

/* Video embeds */
.video-block .intrinsic { max-width: 100%; }
.embed-block-wrapper {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}
.embed-block-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Image blocks & captions */
.image-block figure { margin: 0; }
.image-block .image-link-wrapper { display: block; }
.image-caption {
  font-size: .825em;
  color: rgba(28, 28, 28, .5);
  margin-top: 10px;
}
.image-caption p { margin: 0 0 .5em; }
.image-caption a { color: inherit; }

.image-centered img { margin: 0 auto; }

/* ---------------- Contact form ---------------- */

.form-block { max-width: 640px; }
.form-block .form-item { margin-bottom: 24px; }
.form-block .title {
  display: block;
  font-weight: 500;
  color: rgba(28, 28, 28, .8);
  margin-bottom: 6px;
}
.form-block .required { color: #d0021b; }
.form-block .caption {
  display: block;
  font-size: .825em;
  color: rgba(28, 28, 28, .5);
  margin-top: 4px;
}
.form-block .name-fields { display: flex; gap: 20px; }
.form-block .name-fields > div { flex: 1; }
.form-block fieldset { border: 0; }
.form-block input[type="text"],
.form-block input[type="email"],
.form-block textarea {
  font-family: "Raleway", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: .4px;
  color: rgba(0, 0, 0, .7);
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 2px;
}
.form-block input:focus,
.form-block textarea:focus { outline: none; border-color: #999; }
.form-block textarea { min-height: 140px; resize: vertical; }
.form-block .button {
  font-family: "Raleway", Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 12px;
  color: #fff;
  background-color: rgba(28, 21, 19, .86);
  border: 1px solid rgba(28, 21, 19, .86);
  padding: 13px 26px;
  cursor: pointer;
}
.form-block .button:hover { background-color: #1c1513; }

/* ---------------- Pre-footer & footer ---------------- */

#preFooter {
  background-color: #1f1f1f;
  color: #c9c9c9;
  padding: 25px 30px;
  text-align: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
}
.social-icon svg { width: 16px; height: 16px; fill: #fff; }
.social-icon:hover { opacity: .8; }

#footer {
  background-color: #171717;
  color: rgba(255, 255, 255, .4);
  text-align: center;
  padding: 20px 30px 40px;
}

#footer .back-to-top {
  font-family: "Raleway", Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 12px;
}
#footer .back-to-top a {
  color: rgba(255, 255, 255, .4);
  text-decoration: none;
  display: inline-block;
  padding: .75em 1em;
}
#footer .back-to-top a:hover { color: rgba(255, 255, 255, .7); }
#footer .html-block { font-size: 95%; }

/* ---------------- Standalone (contact) page ---------------- */

.main-content-page {
  background-color: #fff;
}
.main-content-page .content {
  max-width: 880px;
  margin: auto;
  padding: 68px 34px 100px;
}

/* ---------------- Responsive ---------------- */

@media screen and (max-width: 900px) {
  .index-section.has-main-image h1 { font-size: 48px; }
  .col.span-3 { width: 50%; }
}

@media screen and (max-width: 767px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .index-section .content { padding: 68px 20px; }
  .index-section.has-main-image h1 { font-size: 36px; }
  .index-section.has-main-image { min-height: 70vh; }
  .col.span-3, .col.span-4, .col.span-6 { width: 100%; }
  #header { padding: 0 20px; }
  #mainNavigation { position: static; }
  .quote-block figure { font-size: 22px; padding: 20px 0; }
  .form-block .name-fields { display: block; }
  .form-block .name-fields > div + div { margin-top: 16px; }
}
