/*
 * LatValley Base Styles
 * Depends on theme/assets/css/tokens.css
 */

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

html {
  overflow-x: hidden;
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--lv-bg);
  color: var(--lv-body);
  font-family: var(--lv-font-body);
  font-size: var(--lv-font-size-base);
  font-weight: 400;
  line-height: var(--lv-line-height-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

button,
input,
optgroup,
select,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
}

button,
input,
select,
textarea {
  line-height: inherit;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  border-style: none;
}

iframe {
  max-width: 100%;
  border: 0;
}

a {
  color: var(--lv-green-mid);
  text-decoration: none;
  transition: color var(--lv-transition-fast);
}

a:hover {
  color: var(--lv-green-core);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--lv-gold-core);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--lv-space-5);
  color: var(--lv-green-deep);
  font-family: var(--lv-font-heading);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: var(--lv-font-size-h1);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--lv-font-size-h2);
}

h3 {
  font-size: var(--lv-font-size-h3);
  line-height: 1.3;
}

h4 {
  font-size: var(--lv-font-size-h4);
  line-height: 1.3;
}

h5 {
  font-size: var(--lv-font-size-h5);
  line-height: 1.4;
}

h6 {
  margin-bottom: var(--lv-space-3);
  font-size: var(--lv-font-size-h6);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

p,
ul,
ol,
blockquote,
figure {
  margin-top: 0;
  margin-bottom: var(--lv-space-5);
}

ul,
ol {
  padding-left: var(--lv-space-6);
}

blockquote {
  margin-right: 0;
  margin-left: 0;
}

hr {
  height: 1px;
  margin: var(--lv-space-7) 0;
  border: 0;
  background-color: var(--lv-border);
}

small {
  font-size: 0.875em;
}

label {
  display: inline-block;
  margin-bottom: var(--lv-space-2);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--lv-border);
  border-radius: var(--lv-radius-sm);
  background-color: var(--lv-surface);
}

input,
select {
  min-height: 44px;
  padding: var(--lv-space-3) var(--lv-space-4);
}

textarea {
  min-height: 120px;
  padding: var(--lv-space-3) var(--lv-space-4);
  resize: vertical;
}

::placeholder {
  color: var(--lv-muted);
  opacity: 1;
}

::selection {
  background-color: var(--lv-green-pale);
  color: var(--lv-green-deep);
}

.lv-container {
  width: 100%;
  max-width: var(--lv-container-max);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--lv-container-padding);
  padding-left: var(--lv-container-padding);
}

.lv-section {
  padding-top: var(--lv-section-padding);
  padding-bottom: var(--lv-section-padding);
}

.lv-section--compact {
  padding-top: var(--lv-section-padding-compact);
  padding-bottom: var(--lv-section-padding-compact);
}

/* Page offset clears the fixed header; local page spacing belongs below the header offset. */
.lv-about-page,
.lv-contact-page,
.lv-services-page,
.lv-blog-page,
.lv-article-page {
  padding-block-start: var(--lv-page-top-offset, 70px);
}