/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --color-black: #222126;
  --color-gray: #6E7987;
  --color-smoke: #E5E8EB;
  --color-white: #ffffff;
  --color-purple: #7E4384;
  --color-blue: #4D597A;
  --color-red: #E64D47;
  --color-orange: #E66747;
  --color-green: #436961;
  --color-yellow: #F1B73A;

  --bg-dark: var(--color-black);
  --bg-light: var(--color-orange);
  --text-dark: var(--color-black);
  --text-light: var(--color-white);
  --border-light: var(--color-orange);
  --border-dark: var(--color-purple);

  --font-size-base: 16px;
  --font-size-default: 1rem;
  --font-size-1: 1em;     /* 16px */
  --font-size-2: 1.125em; /* 18px */
  --font-size-3: 1.25em;  /* 20px */
  --font-size-4: 1.5em;   /* 24px */
  --font-size-5: 1.875em; /* 30px */
  --font-size-6: 2.125em; /* 34px */
  --font-size-7: 2.5em;   /* 40px */
  --font-size-page-title: 4em;  /* 64px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
}

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

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
/* ul[role='list'], */
/* ol[role='list'] { */
/*   list-style: none; */
/* } */

ul, ol {
  margin: 0;
}

/* Set core body defaults */
body {
  font-family: "Fira Mono", monospace;
  font-weight: 400;
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  font-weight: var(--font-weight-normal);
}

b, strong {
  font-weight: var(--font-weight-bold);
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  border: none;
  border-radius: 0;
  font-family: inherit;
  font-size: var(--font-size-3);
  font-weight: var(--font-weight-medium);
  padding: 1rem 1.25rem;
}

textarea {
  resize: none;
}
/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 5ch;
}

input[type="submit"], button {
  background-color: var(--color-purple);
  color: var(--color-white);
  outline: none;
}

input[type="submit"]:hover, input[type="submit"]:active, input[type="submit"]:focus, button:hover, button:active, button:focus {
  background-color: var(--color-black);
  color: var(--color-white);
}

::placeholder {
  color: var(--gray);
  font-weight: var(--font-weight-normal);
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
}

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

html {
  font-size: var(--font-size-base);
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-size: 1rem;
  padding: 0;
  margin: 0;
}

.link {
  color: inherit;
  text-decoration: none;
}
.link:hover, .link:active, .link:focus {
  color: var(--color-yellow);
}

.section {
  border-width: 1px 0 0px;
  border-style: solid;
  border-color: var(--border-light);
  display: flex;
  justify-content: center;
  width: 100%;
}

.section > div, .section > nav, .section > header, .section footer {
  border-width: 0 1px;
  border-color: inherit;
  border-style: inherit;
  max-width: 86.125rem;
  width: 100%;
}

.split > *:not(:last-child) {
  border-width: 0;
  border-bottom-width: 1px;
  border-style: solid;
  border-color: var(--color-orange);
}

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

@media screen and (min-width: 900px) {
  .text-center-md {
    text-align: center;
  }
  .text-end-md {
    text-align: end;
  }
}

.wide {
  width: 100%;
  max-width: 100%;
}

.center {
  align-items: center;
  justify-content: center;
  justify-items: center;
}

.align-start {
  align-items: start;
}
.align-center {
  align-items: center;
}
.justify-self-center {
  justify-self: center;
}
.justify-self-end {
  justify-self: end;
}
.justify-center {
  justify-content: center;
  justify-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-end {
  justify-content: end;
}

.content-col {
  flex-direction: column;
}

.button {
  font-size: var(--font-size-3);
  background: var(--color-yellow);
  color: var(--color-black);
  padding: .75em 1.5em;
  text-decoration: none;
}
.button:hover, .button:focus, .button:active {
  background: var(--color-orange);
  color: var(--color-white);
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 80ch;
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-7);
  color: var(--color-white);
  text-align: center;
}
@media screen and (min-width: 900px) {
  .page-title {
    font-size: var(--font-size-page-title);
  }
}
.page-title::before, .page-title::after {
  content: '';
  display: block;
  height: 1px;
  background-color: var(--color-yellow);
  flex-grow: 1;
}
.page-title::before {
  margin-right: 1em;
}
.page-title::after {
  margin-left: 1em;
}

.intro > * {
  max-width: 80ch;
}

.sun {
  max-width: 60%;
}
.fixed-services {
  display: flex;
  flex-direction: column;
  align-items: end;
  position: sticky;
  top: 0;
  bottom: 0;
  margin: 0 auto;
  max-width: 86.125rem;
}
.fixed-services__button {
  background: var(--color-orange);
  font-size: 1em;
  position: absolute;
  right: 1px;
  left: auto;
  padding: .25em .5em;
  bottom: 0;
}
.fixed-services__button:focus, .fixed-services__button:active, .fixed-services__button:hover {
  background-color: var(--color-purple);
}
.fixed-services__content {
  background: var(--color-blue);
  height: 0;
  overflow-y: hidden;
  position: absolute;
  bottom: 1.5em;
  right: 0;
}
.fixed-services__content[aria-hidden="false"] {
  overflow-y: scroll;
  border: 1px solid var(--color-orange);
  height: 50vh;
}
.fixed-services__list {
  padding: .5em;
}
.services {
  display: grid;
  gap: 2em;
  padding: 2em;
}
@media screen and (min-width: 900px) {
  .services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 2em;
  }
}

.divider {
  background-color: currentColor;
  flex-grow: 1;
  height: 1px;
}

.service {
  background: var(--color-black);
  font-size: .875rem;
  display: inline-block;
  padding: 0.5em 1.25em ;
  border: 1px solid var(--border-dark);
  border-radius: 2em;
  text-decoration: none;
  color: var(--text-light);
}
.service--small {
  font-size: .875rem !important;
  width: 100%;
}
.service:hover, .service:focus, .service:active, 
.service[aria-expanded="true"], .service.active {
  background: var(--bg-light);
  border-color: var(--border-light);
}
.service-content {
  position: relative;
}
.service-close {
  background: transparent;
  color: var(--color-red);
  padding: 0 .5em;
  position: absolute;
  font-size: var(--font-size-4);
  top: 0;
  right: 0;
  /* transform: translateX(-3ch); */
}

.avatar {
  display: block;
  transform: translateY(0.75ch);
  justify-self: center;
  min-height: 8.125rem;
  min-width: 8.125rem;
}
.voice {
  border-radius: 4rem;
  padding: 2rem 3rem;
  position: relative;
}
.voice::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 1rem solid transparent;
  border-top-color: var(--color-white);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.contact-form {
  width: 100%;
}

.feature, .reason {
  border-width: 0 0 2px 2px;
  border-style: solid;
  border-color: var(--color-blue);
  padding: 1em;
}

.input {
  border: 1px solid var(--color-white);
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column-reverse;
}
.input.has-error .label {
  background: var(--color-red);
}
.input.has-error .field {
  border: 1px solid var(--color-red);
}
.input.has-error .field:empty::placeholder {
  color: var(--color-red);
}

.label {
  background: var(--color-purple);
  padding: .25em 1.25em;
  position: absolute;
  font-size: 1rem;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  transition: transform 300ms, background-color 300ms;
  transform: translateY(-105%);
}

.field {
  background: var(--color-white);
  display: block;
  padding: 1.25em;
  font-size: 1em;
  width: 100%;
  transition: padding 300ms;
  z-index: 1;
}

/* Focus styles - works in all browsers */
.input:focus-within .field {
  padding-top: 2em;
  padding-bottom: .5em;
}

.input:focus-within .label {
  transform: translateY(0);
}

/* Content styles - modern browsers */
@supports (selector(:has(.field))) {
  .input:has(.field:not(:placeholder-shown)) .field {
    padding-top: 2em;
    padding-bottom: .5em;
  }

  .input:has(.field:not(:placeholder-shown)) .label {
    transform: translateY(0);
  }
}

/* Content styles - fallback for older browsers */
@supports not (selector(:has(.field))) {
  .field:not(:placeholder-shown), .input.has-error .field {
    padding-top: 2em;
    padding-bottom: .5em;
  }

  /* Use a data attribute to handle the label */
  .field:not(:placeholder-shown) ~ .label, .input.has-error .label {
    transform: translateY(0);
  }
}

/* Hide placeholder on focus */
.field:focus::placeholder {
  opacity: 0;
  transition: opacity 300ms;
}

.footer-logo {
  width: 30ch;
}

@media (min-width: 600px) {
  .split-sm > *:not(:last-child) {
    border-bottom-width: 0;
    border-right-width: 1px;
  }
}
@media (min-width: 900px) {
  .split-md > *:not(:last-child) {
    border-bottom-width: 0;
    border-right-width: 1px;
  }
  .sun {
    max-width: none;
  }
  .service {
    font-size: var(--font-size-2);
  }
  .voice::before {
    border-top-color: transparent;
    border-right-color: var(--color-white);
    top: 50%;
    left: 0;
    transform: translate(-100%, -50%);
  } 
}
@media screen and (min-width: 1200px) {
  .split-lg > *:not(:last-child) {
    border-bottom-width: 0;
    border-right-width: 1px;
  }
  .contact {
    max-width: 97ch;
    width: 100%;
  }
  .contact-form {
    position: relative;
    margin: 0 5rem;
  }
  .contact-form::before, .contact-form::after {
    content: "";
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 9rem;
  }
  .contact-form::before {
    background-image: url("/assets/bracket-left-eb7c8777.svg");
    right: 100%;
  }
  .contact-form::after {
    background-image: url("/assets/bracket-right-f88248ab.svg");
    left: 100%;
  }
}

.success-message {
  padding: 2rem;
  background: var(--color-white);
  border-radius: 1rem;
}

.success-message .checkmark {
  font-size: 3rem;
  color: var(--color-orange);
  animation: scale-in 0.3s ease-out;
}

.wiggle {
  animation: wiggle 5s linear infinite;
  transform-origin: left center;
}

@keyframes wiggle {
  0% {transform: rotate(5deg);}
  10% {transform: rotate(-5deg);}
  20% {transform: rotate(5deg);}
  30% {transform: rotate(-5deg);}
  40% {transform: rotate(0deg);}
  100% {transform: rotate(0deg);}
}

@keyframes scale-in {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
/* Add disabled state styles */
input[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.transition-height {
  display: block;
  transition: height 0.3s ease-out;
}

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

/* Ensure interactive elements have proper focus states */
.button:focus-visible,
.service:focus-visible,
.link:focus-visible {
  outline-color: var(--color-yellow);
  background-color: var(--color-purple);
  color: var(--color-white);
}

/* Menu styles */
.menu-controls {
  position: relative;
}
.menu-toggle {
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-white);
  padding: 0.5rem;
  font-size: var(--font-size-4);
  z-index: 3;
}

.menu-toggle:hover {
  border: 1px solid var(--color-orange);
  background: var(--color-purple);
}
.menu-toggle[aria-expanded="true"] {
  border: 1px solid var(--color-orange);
  background: var(--color-red);
}

.menu-content {
  display: none;
  border: 1px solid var(--color-orange);
  color: var(--text-dark);
  background: var(--color-yellow);
  position: absolute;
  top: 0;
  right: 100%;
  white-space: nowrap;
}

.menu-content[aria-hidden="false"] {
  display: block;
}

.menu-link {
  border-bottom: 1px solid var(--color-orange);
  color: inherit;
  display: block;
  padding: .75em 1.5em;
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  text-align: center;
}

.menu-link:hover, .menu-link:active, .menu-link:focus {
  background: var(--color-purple);
  color: var(--text-light);
}

/* Ensure skip links are available but hidden */
.skip-link {
  background: var(--color-yellow);
  color: var(--color-black);
  left: 50%;
  padding: 8px;
  position: absolute;
  transform: translateY(-100%);
  transition: transform 0.3s;
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0%);
}

.fw {
  font-weight: var(--font-weight-normal);
}
.fw-m {
  font-weight: var(--font-weight-medium);
}
.fw-b {
  font-weight: var(--font-weight-bold);
}

.c {
  color: var(--color-black);
}
.c-g {
  color: var(--color-gray);
}
.c-y {
  color: var(--color-yellow);
}
.c-o {
  color: var(--color-orange);
}
.c-b {
  color: var(--color-blue);
}
.c-p {
  color: var(--color-purple);
}
.c-w {
  color: var(--color-white);
}

.bc {
  border-color: var(--color-black);
}
.bc-y {
  border-color: var(--color-yellow);
}
.bc-o {
  border-color: var(--color-orange);
}
.bc-b {
  border-color: var(--color-blue);
}
.bc-p {
  border-color: var(--color-purple);
}
.bc-w {
  border-color: var(--color-white);
}

.bg {
  background-color: var(--color-black);
}
.bg-y {
  background-color: var(--color-yellow);
}
.bg-o {
  background-color: var(--color-orange);
}
.bg-b {
  background-color: var(--color-blue);
}
.bg-p {
  background-color: var(--color-purple);
}
.bg-w {
  background-color: var(--color-white);
}

.bg-pattern {
  background-image: url("/assets/pigeon-feet-a80120c7.svg");
  background-repeat: repeat;
  background-position: center;
}

.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}

.grid, .grid-row {
  display: grid;
  grid-auto-flow: row;
}
.grid-reverse > *:first-child {
  order: 1;
}
.grid-col {
  display: grid;
  grid-auto-flow: column;
}

@media (min-width: 600px) {
  .split-sm > *:not(:last-child) {
    border-bottom-width: 0;
    border-right-width: 1px;
  }
  .grid-sm, .grid-row-sm {
    display: grid;
    grid-auto-flow: row;
  }
  .grid-col-sm {
    display: grid;
    grid-auto-flow: column;
  }
  .grid-reverse-sm > *:first-child {
    order: 1;
  }
}
@media (min-width: 900px) {
  .grid-md, .grid-row-md {
    display: grid;
    grid-auto-flow: row;
  }
  .grid-col-md {
    display: grid;
    grid-auto-flow: column;
  }
  .grid-reverse-md > *:first-child {
    order: 1;
  }
}
@media screen and (min-width: 1200px) {
  .grid-lg, .grid-row-lg {
    display: grid;
    grid-auto-flow: row;
  }
  .grid-col-lg {
    display: grid;
    grid-auto-flow: column;
  }
  .grid-reverse-lg > *:first-child {
    order: 1;
  }
}
.ff-1 {
  font-family: "Fira Mono", monospace;
  font-weight: 400;
  font-style: normal;
}
.ff-2 {
  font-family: "Suez One", serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: .0125em;
}

.fs-default {
  font-size: var(--font-size-default);
}
.fs-1 {
  font-size: var(--font-size-1);
}
.fs-2 {
  font-size: var(--font-size-2);
}
.fs-3 {
  font-size: var(--font-size-2);
}
.fs-4 {
  font-size: var(--font-size-3);
}
.fs-5 {
  font-size: var(--font-size-4);
}
.fs-6 {
  font-size: var(--font-size-5);
}
.fs-7 {
  font-size: var(--font-size-6);
}
.fs-ph {
  font-size: var(--font-size-page-title);
}
@media (min-width: 900px) {
  .fs-3 {
    font-size: var(--font-size-3);
  }
  .fs-4 {
    font-size: var(--font-size-4);
  }
  .fs-5 {
    font-size: var(--font-size-5);
  }
  .fs-6 {
    font-size: var(--font-size-6);
  }
  .fs-7 {
    font-size: var(--font-size-7);
}
}

.p-0 {
  padding: 0;
}
.p-1 {
  padding: 2.125rem .75rem;
}
.p-2 {
  padding: 2.5rem 1.25rem;
}
.p-3 {
  padding: 2.75rem 1.5rem;
}
.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 2.125rem;
}
.mt-2 {
  margin-top: 2.5rem;
}
.mt-3 {
  margin-top: 2.75rem;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 2.125rem;
}
.mb-2 {
  margin-bottom: 2.5rem;
}
.mb-3 {
  margin-bottom: 2.75rem;
}
@media (min-width: 900px) {
  .p-1 {
    padding: 3.125rem 3rem;
  }
  .p-2 {
    padding: 3.5rem 3.5rem;
  }
  .p-3 {
    padding: 3.75rem 3.75rem;
  }
}

.gap-1 {
  grid-gap: .5rem;
}
.gap-2 {
  grid-gap: 1rem;
}
.gap-3 {
  grid-gap: 1.5rem;
}
.gap-4 {
  grid-gap: 2rem;
}
@media (min-width: 900px) {
  .gap-1-md {
    grid-gap: .5rem;
  }
  .gap-2-md {
    grid-gap: 1rem;
  }
  .gap-3-md {
    grid-gap: 1.5rem;
  }
  .gap-4-md {
    grid-gap: 2rem;
  }
}

.list-style-none {
  list-style: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .transition-height {
    transition: none !important;
  }
  .wiggle {
    animation: none;
  }
}

.service[aria-expanded="true"] {
  background: var(--color-purple);
  color: var(--color-white);
}

@media print {
  .menu-toggle,
  .skip-link,
  .button {
    display: none !important;
  }
  
  * {
    color: black !important;
    background: white !important;
    print-color-adjust: exact !important;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
  }
  
  .section {
    break-inside: avoid;
  }
}
