/* Aspect Housing — base elements and functional components.
   Edit design.css for the visual theme and page layouts; media.css for PDF controls. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font);
}

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

a {
  color: inherit;
  text-underline-offset: 4px;
}

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

button, summary {
  cursor: pointer;
}

button {
  border: 0;
}

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  margin: 0 0 1.4rem;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 1.2rem;
}

ul, ol {
  padding-left: 1.4rem;
}

figure {
  margin: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--button);
  color: #fff;
  padding: 12px 20px;
}

.skip-link:focus {
  top: 12px;
}

/* Native disclosure navigation remains usable without JavaScript. */

/* Transaction pages use these simple content wrappers. */
.site-section {
  position: relative;
  background: #fff;
}

.section-inner {
  width: 100%;
  max-width: var(--site-max-width);
  margin: auto;
  padding: 6vw var(--site-gutter);
}

.text-large {
  font-size: 20px;
  line-height: 1.8;
}

.text-small {
  font-size: 13px;
}

.accordion {
  width: 100%;
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  font-weight: 500;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: '+';
  flex-shrink: 0;
  font-weight: 300;
}

.accordion details[open] summary::after {
  content: '−';
}

.video-embed {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  margin: auto;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Shared forms, including native validation and a hidden spam trap. */
.contact-form {
  width: 100%;
  padding: 17px 0;
}

.form-field {
  display: block;
  padding: 0;
  border: 0;
  min-width: 0;
}

.form-field > label, .form-field legend {
  display: block;
}

.form-field input:not([type="checkbox"]), .form-field select, .form-field textarea {
  width: 100%;
  min-width: 0;
}

.form-field textarea {
  resize: vertical;
}

.field-description {
  text-align: left;
  margin-bottom: 8px;
}

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

.name-fields label {
  display: block;
  margin-bottom: 5px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 9px 0;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin: 5px 0 0;
  flex-shrink: 0;
}

.form-errors {
  padding: 20px;
  margin-bottom: 26px;
}

.form-errors p {
  margin-bottom: 0;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 767px) {
  p {
    overflow-wrap: anywhere;
  }

  .checkbox-label {
    padding: 6px 0;
  }

  .form-field select {
    text-overflow: ellipsis;
  }

  .section-inner {
    padding: 45px var(--site-gutter);
  }


}

@media (max-width: 400px) {
  .name-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }


}
