/*--------------------------------------------------------------
# General Notes
--------------------------------------------------------------*/
/*  ../style.css normalizes and set the styling context */
/* for theme base font-family styling see ../webfonts/font-style.css */

/*--------------------------------------------------------------
# Housekeeping
--------------------------------------------------------------*/

/* Suppress the logged-in Edit link at bottom of pages */

.edit-link {
  display: none;
}

/* Eliminate the top and bottom margins that we don't need and affect page layout */

.post, .page {
  margin: 0 0 0;
}

/*--------------------------------------------------------------
# Theme-wide
--------------------------------------------------------------*/

body {
  background-color: #ffffff;
  border-top: 25px solid rgb(3, 105, 55);
  border-bottom: 25px solid rgb(3, 105, 55);
  color: rgb(3, 105, 55);
	font-family: 'BryantWeb';  /* Set base font for inheritance chain in the body context to ensure it will apply to as many elements as possible */
  font-style: normal;
  font-weight: 400;
  font-size: 1.2rem; 
  display: flex;
  flex-direction: column;
}

body > header {
  /* Occupies a position in the body element flex layout */
  flex: 0 1 2%;
  
  /* Is 80% the width of body */
  width: 80%;
  margin: 0 auto;
  
  /* Displays its contents in a flex column */
  display: flex;
  flex-flow: column;
  
  /* Has a border along its bottom edge */
  border-bottom: 1px solid rgb(3, 105, 55);
}

body > main {
  /* Occupies a position in the body element flex layout */
  flex: auto;
  
  /* Is 80% the width of body */
  width: 80%;
  margin: 0 auto;
}

body > footer {
  /* Occupies a position in the body element flex layout */
  flex: 0 1 2%;
  
  /* Is 80% the width of body */
  width: 80%;
  margin: 0 auto;
  
  /* Displays its contents in a flex column */
  display: flex;
  flex-flow: column;
  align-items: center;
  
  /* Has a border along its top edge */
  border-top: 1px solid rgb(3, 105, 55);
  
  /* Has padding inside on top and bottom */
  padding: 1rem 0;
}

/* Make links TT green */
a {
  color: rgb(3, 105, 55);
}

a:visited {
  color: rgb(3, 105, 55);
}

a:hover {
  color: rgb(3, 105, 55);
  background-color: #bedabb;
}



/* Remove the top and bottom margins that force the body to have extra space */
.page-content, .entry-content, .entry-summary {
  margin: 0 0 0;
}

/* For styling <em>, <i>, <dfn>, and <cite> elements italic is synthesized in-browser */
/* For styling <strong> and <b> elements set typeface to BryantWebBold  */
strong, b {
  font-weight: 600;
}

/* This style links that are presented as buttons from theme/Gutenberg. All we need to do is add colour */
.wp-block-button__link {
  color: rgb(255, 255, 255);
  background-color: rgb(3, 105, 55);
}

/* This will style <hr> elements */
.wp-block-separator {
    background-color: rgb(3, 105, 55);
    border: 0;
    height: 1px;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

p.notice {
  border: 1px solid #ffd324;
}

/* Set padding the the green Service box */
.service {
  padding: 20px 30px;
  margin: 0;
}

/* Position the Service H2 */
h2#service {
  margin: 0;
}

ul {
  padding: 0;
  margin: 0 3rem;
}

/* Style the photo of Cynthia. The width: 120px; is set in content editor. */
.wp-image-98 {
  float: left;
  margin-right: 0.5em;
}

.header-menu {
  /* No bullets or anything */
  list-style-type: none;
  
  /* Display in a flexbox row for easy alignment and behaviour */
  display: flex;
  justify-content: center;
  gap: 1em;
  
  /* Bump the top margin open */
  margin-top: 1em;
}

.header-menu .menu-item {
  flex: 0 0 auto;
}

.site-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.site-branding a {
  color: rgb(3, 105, 55);
  text-decoration: none;
  margin: 0;
}

.site-branding a:visited {
  color: rgb(3, 105, 55);
}

.site-branding a:hover {
  background-color: transparent;
}

.site-branding a h1 {
  margin: -1rem 0 1rem 0;
  text-transform: uppercase;
  font-weight: 400;
  line-height: initial;
  text-align: center;
}

.site-branding .custom-logo-link {
    display: block;
    width: 100px;
    margin-top: 1rem;
}

nav + .site-branding .custom-logo-link {
  display: block;
  width: 100px;
  margin-top: 0;
}

.footer-menu {
  /* No bullets or anything */
  list-style-type: none;
  
  /* Display in a flexbox row for easy alignment and behaviour */
  display: flex;
  justify-content: center;
  gap: 1em;
  
  /* Bump the bottom margin open a bit more */
  margin-bottom: 0.5em;
}

.footer-menu .menu-item {
  flex: 0 0 auto;
}

footer .custom-logo-link {
    display: block;
    width: 50px;
}

footer .custom-logo-link:hover {
    background-color: transparent;
}

.site-info {
  font-size: 0.9em;
}

/* ----------------------- FORMS --------------------------- */

/* Style placeholder text in the placeholder pseudo-element of form inputs */
*::placeholder {
  color: #bedabb;
}

/* Meta Box plugin classes that are added to the form as hooks */

/* A lot of !important s follow as I don't know how to get my styles to load after rwmb styles */

/* Place the labels ABOVE the inputs and make them as wide as the form */
body .gform_wrapper .gform_body .gform_fields .gfield .gfield_label {
  font-size: inherit;
  float: none !important;
  width: 100% !important;
}

/* Set the width of these inputs. */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
}

/* Override the red asterisk on required fields in forms, make it light green */
.gfield_required {
  color: #bedabb !important;
  font-style: normal !important;
}

/* Hit the borders on inputs again to make them stick in exceptional cases. Ensure that BryantWeb is the font-family in use. */
input,
textarea {
  border: 1px solid #bedabb !important;
  font-family: inherit;
  color: rgb(3, 105, 55);
}

/* Set the colour of text inside these input types. */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  color: rgb(3, 105, 55);
}

/* Set the colour of text while the input has focus or is active too. */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="tel"]:active,
textarea:focus {
  color: rgb(3, 105, 55);
}

/* Remove any styling that is applied to checkboxes by a browser. */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
}

/* Reposition the checkboxes to align in a more natural way with their associated text labels. */
input[type="checkbox"] {
  position: relative;
  width: 1.3em !important;
  height: 1.3em;
  margin-right: 0.5rem;
  color: rgb(3, 105, 55);
  vertical-align: middle;
  margin-top: -5px;
}

/* Style the ::before pseudo-element for when the checkbox is selected. */
input[type="checkbox"]::before {
  content: "×";
  position: absolute;
  font-size: 2rem;
  height: calc( .65em - 2px );
  width: calc( .65em - 2px );
  text-align: center;
  visibility: hidden;
  color: rgb(255,255,255);
  background-color: rgb(3, 105, 55);
  line-height: 0.7;
}

/* Ensure we're efficient in our checkbox overrides. */
input[type="checkbox"]:checked::before {
  /* Use `visibility` instead of `display` to avoid recalculating layout */
  visibility: visible;
}

/* Description text for fields should be present but not regular in prominence. */
.gfield_description {
  padding: 0 !important;
  margin-bottom: 0;
  font-size: 1rem;
}

/* Style the form submit button that was generically styled by the normalization CSS in ../style.css */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: none;
  border-radius: 1.5em;
  background: rgb(3, 105, 55);
  color: rgb(255, 255, 255);
  font-family: inherit;
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
  padding: 0.5em 2em;
}