/*-- -------------------------- -->
<---        Contact 1388        -->
<--- -------------------------- -*/

/* CodeStitch 1388 (as on oakharborwebdesigns.com/contact), on this site's
   tokens. Changes from the stitch, and why:
   - padding-top is var(--interiorPadding), like every interior page's first
     section, so the title clears the fixed header.
   - The decorative tree illustrations were dropped (another brand's artwork).
   - The bottom wave is filled with the footer's own colour (white; #0e0e0e in
     dark mode), so the section flows into the footer the way the stitch's blue
     wave flows into its blue footer. The section is #f7f7f7 so the wave reads.
   - The form card is white on the grey band, with grey inputs (the stitch has
     it the other way round on a white band).
   - .cs-link uses --bodyTextColor: the stitch's #767676 is 4.2:1 on #f7f7f7.
   - The submit is the site's brush button at natural width (see root.css).
   - Dark mode uses the depth palette, not the stitch's blue glow.
   - The project photo in .cs-content is this site's addition. */

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #contact-1388 {
    /* changes at tablet to make room for the wave */
    padding: var(--sectionPadding);
    padding-top: var(--interiorPadding);
    background-color: #f7f7f7;
    position: relative;
    z-index: 1;
    overflow: hidden;
  }
  #contact-1388 .cs-container {
    width: 100%;
    /* changes to 1280px at tablet */
    max-width: 36.5rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    /* 32px - 48px */
    gap: clamp(2rem, 3vw, 3rem);
    position: relative;
  }
  #contact-1388 .cs-content {
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  #contact-1388 .cs-title {
    max-width: 23ch;
  }
  #contact-1388 .cs-text {
    /* Override: the last paragraph in each column (hours on the left, the
       intro above the form on the right) needs separation from what follows. */
    margin-bottom: 1rem;
  }
  #contact-1388 .cs-text:last-of-type {
    margin-bottom: 2rem;
  }
  #contact-1388 .cs-picture {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 1rem;
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
  }
  #contact-1388 .cs-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }
  #contact-1388 .cs-ul {
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
  }
  #contact-1388 .cs-li {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.25rem;
  }
  #contact-1388 .cs-li:hover .cs-icon-wrapper {
    transform: scale(1.1);
  }
  #contact-1388 .cs-header {
    font-family: var(--headerFont);
    font-size: 1.25rem;
    line-height: 1.2em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--headerColor);
    display: block;
  }
  #contact-1388 .cs-link {
    font-size: 1rem;
    line-height: 1.5em;
    text-decoration: none;
    color: var(--bodyTextColor);
    display: block;
    position: relative;
  }
  #contact-1388 .cs-link:hover {
    text-decoration: underline;
  }
  #contact-1388 .cs-icon-wrapper {
    width: 3.75rem;
    height: 3.75rem;
    margin: 0;
    border: 1px solid #bababa;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: none;
    transition: transform 0.3s;
  }
  #contact-1388 .cs-icon {
    width: 1.5rem;
    height: auto;
    display: block;
  }
  #contact-1388 .cs-form-group {
    /* the right-hand column: intro paragraph, then the form card */
    width: 100%;
    /* changes to 46% at small desktop */
    max-width: 39.375rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  #contact-1388 .cs-form {
    width: 100%;
    /* 24px - 48px top & bottom, 16px - 48px left & right */
    padding: clamp(1.5rem, 5.18vw, 3rem) clamp(1rem, 4vw, 3rem);
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
  }
  #contact-1388 .cs-h3 {
    font-family: var(--headerFont);
    /* 20px - 39px */
    font-size: clamp(1.25rem, 3vw, 2.4375rem);
    line-height: 1.2em;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--headerColor);
  }
  #contact-1388 .cs-label {
    font-family: var(--headerFont);
    /* 14px - 16px */
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    text-transform: uppercase;
    font-weight: 700;
    width: 100%;
    color: var(--headerColor);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.25rem;
  }
  #contact-1388 .cs-input {
    /* form controls don't inherit the page font; without this the textarea
       picked up the label's Oswald and the inputs the system font */
    font-family: var(--bodyFont);
    font-size: 1rem;
    width: 100%;
    height: 3.5rem;
    padding: 0;
    padding-left: 1.5rem;
    box-sizing: border-box;
    color: var(--headerColor);
    background-color: #f7f7f7;
    border: none;
    border-radius: 0.5rem;
  }
  #contact-1388 .cs-input::placeholder {
    color: #7d799c;
    opacity: 0.6;
  }
  #contact-1388 .cs-textarea {
    min-height: 7.5rem;
    margin-bottom: 0.75rem;
    padding-top: 1.5rem;
  }
  #contact-1388 .cs-submit {
    /* Override: the brush stroke reaches ~20% past the label, so a
       left-aligned brush button sits 24px in (house rule, see root.css). */
    margin: 0.75rem 0 0.5rem 1.5rem;
    align-self: flex-start;
  }
  #contact-1388 .cs-wave {
    width: 100%;
    height: auto;
    display: none;
    position: absolute;
    bottom: -1px;
    left: 0;
  }
  #contact-1388 .cs-wave path {
    /* the footer's background (white), so the wave runs into it seamlessly */
    fill: #fff;
  }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #contact-1388 {
    /* room for the wave, which is 12.5vw tall (1920x240) */
    /* 160px - 360px */
    padding-bottom: clamp(10rem, 20vw, 22.5rem);
  }
  #contact-1388 .cs-container {
    max-width: 80rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  #contact-1388 .cs-content {
    width: 47%;
    flex: none;
  }
  #contact-1388 .cs-form-group .cs-text {
    /* drop by the topper's height (line-height 1.2em + its 4px margin) so the
       intro lines up with the h1 beside it, not with the "Contact Us" topper */
    margin-top: calc(var(--topperFontSize) * 1.2 + 0.25rem);
  }
  #contact-1388 .cs-wave {
    display: block;
  }
}

/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #contact-1388 .cs-form-group {
    width: 46%;
    max-width: 36.125rem;
  }
}

/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #contact-1388 {
    background-color: var(--dark);
  }
  body.dark-mode #contact-1388 .cs-topper,
  body.dark-mode #contact-1388 .cs-title,
  body.dark-mode #contact-1388 .cs-text,
  body.dark-mode #contact-1388 .cs-header,
  body.dark-mode #contact-1388 .cs-link,
  body.dark-mode #contact-1388 .cs-label,
  body.dark-mode #contact-1388 .cs-h3 {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #contact-1388 .cs-text,
  body.dark-mode #contact-1388 .cs-link {
    opacity: 0.8;
  }
  body.dark-mode #contact-1388 .cs-icon-wrapper {
    border-color: #fff;
  }
  body.dark-mode #contact-1388 .cs-icon {
    /* the icons are brand-red masks; this turns them white */
    filter: grayscale(1) brightness(1000%);
  }
  body.dark-mode #contact-1388 .cs-form {
    background-color: var(--medium);
  }
  body.dark-mode #contact-1388 .cs-input {
    color: #fff;
    background-color: var(--accent);
  }
  body.dark-mode #contact-1388 .cs-input::placeholder {
    color: #fff;
    opacity: 0.8;
  }
  body.dark-mode #contact-1388 .cs-wave path {
    /* the dark footer: rgba(0,0,0,0.2) over --dark (#121212). Recompute if
       --dark changes. */
    fill: #0e0e0e;
  }
}
