:root {
  --clr-1: #EEE2DF;
  --clr-2: #EED7C5;
  --clr-3: #C89F9C;
  --clr-4: #C97C5D;
  --clr-5: #B36A5E;
  --clr-flamingo: #FC6C85;
  --clr-fuchsia: #C154C1;
}

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

h3 {
  margin-block-end: 0.3rem;
}

h2 {
  font-size: 2.2rem;
  font-weight: 300;
  margin-block-end: 5rem;
}

h3 {
  font-weight: 500;
  color: var(--clr-3);
}

a, &:visited {
  color: var(--clr-4);
}

html,
body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background-color: var(--clr-2);
}

html {
  display: flex;
  flex-flow: column;
  align-items: center;
}

body {
  flex-shrink: 1;
  display: flex;
  flex-flow: column;
  align-items: stretch;
  max-width: min(1300px, 100%);
}

.card {
  min-height: 100vh;
  display: flex;
  flex-flow: column;
  overflow: hidden;
  padding: 1rem;
  align-items: stretch;
  justify-content: center;
}

.card__content {
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
}

.card__header {
  text-align: center;
}

.card__content > * {
  flex: 1;
  flex-wrap: wrap;
}

.hero-image {
  width: 50%;
  position: relative;
  overflow: hidden;

  > img {
    position: absolute;
    height: 100%;
    left: 0%;
  }
}

span.accent {
  text-shadow: 0.02rem 0.02rem 0.02rem var(--clr-fuchsia);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--clr-5);
}

#about-me {
  background-color: var(--clr-1);

  .description {
    align-items: end;
    text-align: start;

    p {
      color: black;
    }
  }

  .card__content {
    gap: 1rem;
    justify-content: space-between;
  }
}

.portrait {
  display: flex;
  min-width: min(400px, 100%);

  > img {
    object-fit: cover;
    max-width: 100%;
    flex: 1;
    border-radius: 1rem;
  }
}

.a-btn {
  all: unset;
  color: var(--clr-1);
  background-color: var(--clr-5);
  max-width: fit-content;
  padding: 0.5rem 2ch;
  cursor: pointer;
  border-radius: 4px;

  &:hover {
    background-color: var(--clr-4);
  }
}

.description {
  display: flex;
  flex-flow: column;
  text-align: center;
  justify-content: center;
  align-items: center;
}

#certificates {
  align-self: center;
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
}

.certificate {
  cursor: pointer;
  transition: transform 0.2s;

  &:hover {
    transform: scale(1.01);
  }

  img {
    max-width: 100%;
  }
}

#contact {
  background-color: var(--clr-2);
}

#contact .card__content {
  justify-content: center;
  gap: 5rem;

  > * {
    flex-grow: 0;
  }
}

#contact__details {
  display: flex;
  flex-flow: row;
  align-content: start;
  align-items: start;
  justify-content: start;
  white-space: nowrap;
  gap: 1rem;

  #name {
    margin-block-start: 0.9rem;
    font-size: 1.5rem;
    white-space: normal;
  }

  a {
    display: flex;
    gap: 5px;
    align-items: center;
  }
}

#contact__location {
  display: flex;
  flex-flow: column;
  align-items: start;
  align-content: start;
  gap: 0.2rem;
}

.more--closed :nth-child(n + 7) {
  display: none;
}

@media (max-width: 1060px) {
  .more--closed :nth-child(n + 5) {
    display: none;
  }
}

#services {
  background-color: var(--clr-4);
  color: var(--clr-2);
  position: relative;
  justify-content: stretch;
}

#services .card__content {
  flex-flow: row;
  flex-wrap: wrap;
  gap: 2ch;
  justify-content: space-evenly;
  padding: 1ch;
  max-height: 100%;
}

.service-card {
  min-width: min(30ch, 45%);
  max-width: 25ch;
  > img {
    border-radius: 1rem;
    max-width: 100%;
  }
}

#services #btn-services-more {
  all: unset;
  background-color: var(--clr-1);
  color: black;
  border-radius: 100%;
  width: 50px;
  aspect-ratio: 1;
  font-size: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  cursor: pointer;

  position: absolute;
  bottom: 1rem;

  &:hover {
    background-color: var(--clr-5);
    color: var(--clr-1);
  }
}

.more--closed::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255,0,0,0) 70%,rgba(255,255,255,0.65) 100%);
}

#hero {
  background: no-repeat 0 0/contain url("assets/hero2.jpg");
  background-color: var(--clr-2);

  p {
    color: white;
    text-shadow: 0.1rem 0.1rem 0.5rem #000;
    font-size: 1.1rem;
    border-radius: 8px;
    backdrop-filter: blur(4px);
  }

  .slogan {
    font-size: 2.5rem;
    text-transform: uppercase;
  }

  .card__content {
    justify-content: end;
  }
  .description {
    max-width: min(500px, 100%);
  }
}


@media (max-width: 569px) {
  #hero {
    background-size: cover;
  }
}

/*  Toggle Switch  */

.toggleSwitch span span {
	display: none;
}  
  
.toggleSwitch {
	position: absolute;
  top: 1rem;
  right: 1rem;
	display: inline-block;
	height: 18px;
	overflow: visible;
	padding: 0;
	cursor: pointer;
	width: 200px;
	background-color: var(--clr-1);
	border: 1px solid var(--clr-3);
	border-radius:5px;
	height:34px;
}
.toggleSwitch * {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.toggleSwitch label,
.toggleSwitch > span {
	line-height: 20px;
	height: 20px;
	vertical-align: middle;
}
.toggleSwitch input:focus ~ a,
.toggleSwitch input:focus + label {
	outline: none;
}
.toggleSwitch label {
	position: relative;
	z-index: 3;
	display: block;
	width: 100%;
}
.toggleSwitch input {
	position: absolute;
	opacity: 0;
	z-index: 5;
}
.toggleSwitch > span {
	position: absolute;
	left: 0;
	width: calc(100% - 6px);
	margin: 0;
	text-align: left;
	white-space: nowrap;
  margin:0 3px;
}
.toggleSwitch > span span {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	display: block;
	width: 50%;
	margin-left: 50px;
	text-align: left;
	font-size: 0.9em;
	width: auto;
	left: 0;
	top: -1px;
	opacity: 1;
	width:40%;
	text-align: center;
  line-height:34px;
}
.toggleSwitch a {
	position: absolute;
	right: 50%;
	z-index: 4;
	display: block;
	top: 3px;
	bottom: 3px;
	padding: 0;
	left: 3px;
	width: 50%;
	background-color: var(--clr-3);
	border-radius: 4px;
	-webkit-transition: all 0.2s ease-out;
	-moz-transition: all 0.2s ease-out;
	transition: all 0.2s ease-out;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.toggleSwitch > span span:first-of-type {
	color: white;
	opacity: 1;
	left: 0;
	margin: 0;
    width: 50%;
}
.toggleSwitch > span span:last-of-type {
	left:auto;
	right:0;
	color: black;
	margin: 0;
  width: 50%;
}
.toggleSwitch > span:before {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: -2px;
	border-radius: 30px;
	-webkit-transition: all 0.2s ease-out;
	-moz-transition: all 0.2s ease-out;
	transition: all 0.2s ease-out;
}
.toggleSwitch input:checked ~ a {
	left: calc(50% - 3px);
}
.toggleSwitch input:checked ~ span span:first-of-type {
	left:0;
	color: black;
}
.toggleSwitch input:checked ~ span span:last-of-type {
	color: white;
}
/* Switch Sizes */
.toggleSwitch.large {
	width: 60px;
	height: 27px;
}
.toggleSwitch.large a {
	width: 27px;
}
.toggleSwitch.large > span {
	height: 29px;
	line-height: 28px;
}
.toggleSwitch.large input:checked ~ a {
	left: 41px;
}
.toggleSwitch.large > span span {
	font-size: 1.1em;
}
.toggleSwitch.large > span span:first-of-type {
	left: 50%;
}
.toggleSwitch.xlarge {
	width: 80px;
	height: 36px;
}
.toggleSwitch.xlarge a {
	width: 36px;
}
.toggleSwitch.xlarge > span {
	height: 38px;
	line-height: 37px;
}
.toggleSwitch.xlarge input:checked ~ a {
	left: 52px;
}
.toggleSwitch.xlarge > span span {
	font-size: 1.4em;
}
.toggleSwitch.xlarge > span span:first-of-type {
	left: 50%;
}

  /*  End Toggle Switch  */
