/****************************************
* Variables
****************************************/

:root {
  --tt-font-1: 'Cambay';
  --tt-font-2: 'Carter One';

  --tt-color-1: #b78727;
  --tt-color-2: #114d88;
  --tt-color-3: #000814;
  --tt-color-4: #f0f3f6;
  --tt-color-5: #fce4e3;

  --tt-nav-toggle-color: #114d88;
}

/****************************************
* Typography
****************************************/

h1 {
  font: normal bold 36px/1em var(--tt-font-2);
}

h2 {
  font: normal bold 26px/1.2em var(--tt-font-2);
  color: var(--tt-color-3);
}

h3 {
  font: normal bold 20px/1.5em var(--tt-font-1);
}

a,
p,
li,
label,
input,
legend,
textarea,
.btn-link {
  font: normal normal 16px/1.5em var(--tt-font-1);
  color: var(--tt-color-3);
}

a,
.btn-link {
  color: #354656;
  font-weight: 600;
}

a:hover,
.btn-link:hover {
  color: #51687e;
  text-decoration: none;
}

hr {
  margin: 1rem 0;
  border: none;
  border-top: 2px dashed rgb(220, 225, 228);
}

.small {
  font-size: 14px;
  font-weight: 300;
}

.line {
  position: relative;
  margin: 1rem auto;
  background-color: #000000;
  width: 100%;
  max-width: 300px;
  height: 1px;
}

.line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #000000;
  width: 100px;
  height: 3px;
}

.line.alt,
.line.alt::before {
  background-color: #ffffff;
}

.d-flex + .title-battlement {
  margin-top: 6rem;
}

h2 + .testimonials {
  margin-top: 2rem;
}

h1 + p,
h2 + p,
h2 + .d-grid,
h3 + p,
#available-puppies h3 + .d-grid,
p + p,
p + a,
p + ul,
p + .d-grid,
p + .d-flex,
.d-grid + .d-flex,
.d-flex + .btn,
.polaroid + .btn {
  margin-top: 1rem;
}

hr + *,
hr + [type="submit"] {
  margin-top: 0;
}

.max-width {
  margin: 0 auto;
  max-width: 1000px;
}

/****************************************
* Buttons
****************************************/

.btn {
  padding: .75rem 1rem .5rem 1rem;
  transition: all .4s ease-in;
}

.btn.btn-primary {
  background-color: var(--tt-color-2);
  color: #ffffff;
}

.btn.btn-primary:focus,
.btn.btn-primary:hover {
  background-color: var(--tt-color-1);
}

.btn.btn-secondary {
  background-color: var(--tt-color-2);
  color: #ffffff;
}

.btn.btn-secondary:focus,
.btn.btn-secondary:hover {
  background-color: var(--tt-color-1);
}

.btn-link {
  display: inline-block;
  line-height: 1em;
  text-decoration: underline;
}

/****************************************
* Badge
****************************************/

.badge {
  display: inline-block;
  margin-top: .5rem;
  border-radius: 5px;
  background-color: rgba(60, 141, 192, .1);
  width: auto;
  padding: .5rem .5rem .25rem .5rem;
  line-height: 1em;
  font-size: 14px;
  color: #3c8dc0;
}

.badge.reserved {
  background-color: rgba(150, 56, 56, .1);
  color: #963838;
}

.badge.available {
  background-color: rgba(48, 150, 90, .1);
  color: #30965a;
}

/****************************************
* Accents
****************************************/

.accent-1 {
  position: relative;
  box-shadow: inset 0 2px 15px rgba(0, 0, 0, .1);
  background-color: var(--tt-color-4);
}

.accent-1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: url('/images/svgs/pawprint.svg');
  background-size: 150px;
  opacity: .5;
}

.accent-1 .container {
  position: relative;
  z-index: 2;
}

.accent-2 {
  background: var(--tt-color-2) url('/images/layout/triangles.png');
}

.accent-2 .title-battlement::before {
  content: url('/images/svgs/battlement-white.svg');
}

.accent-2 .title-battlement h2 {
  color: #ffffff;
}

/* .accent-3 {
  border-top: 3px solid #f9f9f9;
  border-bottom: 3px solid #f9f9f9;
  background: linear-gradient(to bottom, #ffffff, #f0f3f6);
} */

.accent-4 {
  background: var(--tt-color-5);
}

.accent-5 {
  background-color: var(--tt-color-4);
}

/****************************************
* Header
****************************************/

header {
  position: relative;
  border-top: 5px solid var(--tt-color-1);
  padding: 1rem 2rem;
}

header img {
  max-width: 200px;
}

header .nav-toggler {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

header .logo img {
  display: block;
  width: 200px;
  max-width: unset;
}

/****************************************
* Navigation
****************************************/

nav {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 999;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, .1);
  background-color: #ffffff;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: all .3s ease-in-out;
}

nav.on {
  max-height: calc(100vh - 100px);
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 1rem;
}

nav li {
  margin: 0;
}

nav a {
  position: relative;
  border-radius: 8px;
  padding: .5rem;
  font-size: 16px;
}

nav a:hover,
nav a.active {
  color: var(--tt-color-1);
}

nav a:not(.btn)::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%);
  border-radius: 20px;
  background-color: var(--tt-color-1);
  width: 0px;
  height: 5px;
  transition: all .4s ease;
}

nav a.active::before {
  width: 10px;
}

nav a:hover::before,
nav a.active:hover::before {
  width: 50px;
  max-width: 100%;
}

/****************************************
* Banner
****************************************/

.banner {
  position: relative;
  background: linear-gradient(0, #ffffff, #ebf0f6, #ffffff);
  overflow: hidden;
}

.banner svg {
  width: 20px;
  height: 20px;
  margin-right: .5rem;
  margin-bottom: 5px;
  fill: #35ac42;
}

.banner .trail {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  opacity: .05;
}

.banner .trail svg {
  width: unset;
  height: 100%;
}

.banner .d-flex {
  position: relative;
  z-index: 2;
}

.banner h1 {
  color: var(--tt-color-1);
}

.banner h1 span {
  font: normal 500 25px/1em var(--tt-font-1);
  color: #b5b5b5;
}

/****************************************
* Title battlement
****************************************/

.title-battlement {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 2rem 0;
}

.title-battlement h2 {
  color: var(--tt-color-1);
}

.title-battlement::before {
  content: url('/images/svgs/battlement.svg');
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 100%;
}

/****************************************
* Title bone
****************************************/

.title-bone {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1rem;
}

.title-bone h2 {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
  background-color: #393b43;
  height: 41px;
  color: #ffffff;
  font-size: 18px;
}

.title-bone::before,
.title-bone::after {
  display: block;
  align-items: center;
  width: 50px;
  height: 75px;
}

.title-bone::before {
  content: url('/images/svgs/left-bone.svg');
  margin-right: -1px;
}

.title-bone::after {
  content: url('/images/svgs/right-bone.svg');
  margin-left: -1px;
}

/****************************************
* Divided
****************************************/

.divided > div {
  position: relative;
  width: 100%;
  padding: .5rem 1rem;
  text-align: center;
}

.divided > div + div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e6e6e6;
  width: 50px;
  height: 1px;
}

/****************************************
* Cards
****************************************/

.card {
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 3px 4px 10px rgba(0, 0, 0, .1);
  border: 1px solid rgba(220, 225, 228, .5);
  background-color: #ffffff;
  width: 100%;
  padding: 2rem;
  overflow: hidden;
}

/****************************************
* Polaroid photo
****************************************/

.polaroid {
  background-color: #ffffff;
  border-radius: 3px;
  box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.2);
  padding: 1rem;
}

.polaroid .image-wrapper {
  border-radius: 3px;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0px 0px 10px 7px rgba(0, 0, 0, 0.2);
  padding-top: 100%;
  min-height: unset;
}

.polaroid .details {
  margin-top: 1rem;
  text-align: center;
}

/* .polaroid p {
  font: normal normal 18px/1.5em 'Caveat';
} */

/****************************************
* Gallery slider
****************************************/

.gallery-container,
.shape-container {
  position: relative;
}

.gallery-container svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 115%;
}

.shape-container svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
}

.gallery.slip-n-slide {
  position: relative;
  margin: 0 auto;
  height: 0;
  padding-top: 90%;
  overflow: visible;
}

.gallery .slide {
  opacity: 0;
}

.gallery .slide,
.gallery .slide.on {
  position: absolute !important;
  top: 0;
  height: auto;
}

.gallery .slide.on {
  animation-name: toss;
  animation-duration: 2s;
  animation-fill-mode: both;
  animation-timing-function: ease;
}

@keyframes toss {
  from {
    top: 10rem;
    left: -10rem;
    opacity: 0;
    transform: scale(1.4);
  }
  to {
    top: 0;
    left: 0;
    opacity: 1;
    transform: scale(1);
  }
}

.gallery .slide.off {
  animation-name: lift-fade;
  animation-duration: 2s;
  animation-fill-mode: both;
  animation-timing-function: ease;
}

@keyframes lift-fade {
  from {
    top: 0;
    left: 0;
    /* top: unset;
    bottom: 0;
    left: 0; */
    opacity: 1;
    transform: scale(1);
  }
  /* 10% {
    transform: scale(1);
  } */
  to {
    top: 50%;
    left: 50%;
    /* top: unset;
    bottom: -10rem;
    left: 10rem; */
    opacity: 0;
    transform: translate(-50%, -50%) scale(.5);
  }
}

.gallery .photo {
  margin: 1rem auto 0;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.2);
  width: 82%;
  overflow: hidden;
}

.gallery .slide:nth-of-type(1) .photo {
  transform: rotate(-3deg);
}

.gallery .slide:nth-of-type(2n) .photo {
  transform: rotate(3deg);
}

.gallery .slide:nth-of-type(3n + 2) .photo {
  transform: rotate(-1deg);
}

.gallery .slide:nth-of-type(4n + 2) .photo {
  transform: rotate(2deg);
}

.gallery .photo .image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0px 0px 10px 7px rgba(0, 0, 0, 0.2);
  padding-top: 100%;
}

/****************************************
* Image wrapper
****************************************/

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-height: 320px;
  height: 100%;
  aspect-ratio: 1;
}

.image-wrapper img {
  position: absolute;
  width: 100%;
  height: 90%;
  object-fit: cover;
}

/****************************************
* Available puppies
****************************************/

#available-puppies .d-grid {
  margin: 0 auto;
  /* max-width: 500px; */
}

/****************************************
* ABout Puppies
****************************************/

.about {
  margin: 2rem 0 0 0;
}

.about svg {
  position: relative;
  margin-right: .5rem;
  top: 5px;
  width: 20px;
}

.pickup svg {
  position: relative;
  margin-right: .5rem;
  top: 5px;
  width: 50px;
  height: 50px;
}

.pickup .svg {
  position: relative;
}

.pickup .svg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -60%);
  border-radius: 15px;
  background-color: rgba(0, 0, 0, .035);
  /* background: linear-gradient(45deg, rgba(0, 0, 0, .035), rgba(0, 0, 0, .5), rgba(0, 0, 0, .035)); */
  width: 50px;
  height: 50px;
}

/****************************************
* About puppies
****************************************/

.about .accent-5 {
  border-radius: 20px;
  padding: 2rem;
}

/****************************************
* Horizontal scroll container
****************************************/ 

.scroll-container {
  display: flex;
  position: relative;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.scroll-item {
  flex: 0 0 100%;
  margin: 0 .5rem;
  scroll-snap-align: start;
}

.controls {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: 1rem;
}

.controls > button {
  display: block;
  border: none;
  border-radius: 50%;
  background-color: rgba(220, 225, 228, .3);
  width: 15px;
  height: 15px;
  padding: 0;
}

.controls > button.on {
  background-color: #ffffff;
}

/****************************************
* Contact form
****************************************/

#contact .background {
  background-image: url('/images/layout/home-banner.jpg');
  background-size: cover;
  background-position: right;
  background-repeat: no-repeat;
}

#contact .card {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, .85);
}

form svg {
  margin-right: .25rem;
  width: 15px;
  height: 15px;
}

form .d-flex {
  margin-bottom: 4px;
}

form .d-flex > label {
  margin: 0;
}

form input,
form textarea {
  border-color: rgba(183, 135, 39, .25);
  background-color: rgba(255, 255, 255, .4);
}

/****************************************
* Logos
****************************************/

.logos a {
  display: flex;
  align-items: center;
}

.logos img {
  max-height: 100px;
  filter: grayscale(1);
  transition: all .5s ease;
}

.logos a:focus img,
.logos a:hover img {
  filter: none;
}

.logos a:first-of-type img {
  max-height: 50px;
}

/****************************************
* Footer
****************************************/

footer {
  background-color: var(--tt-color-3);
  text-align: center;
}

footer .container {
  max-width: 1200px;
}

footer h2,
footer p,
footer a {
  color: #ffffff;
}

footer a:hover {
  color: var(--tt-color-1);
}

footer a svg {
  position: relative;
  margin: 0 .5rem;
  top: 5px;
  width: 20px;
  fill: #ffffff;
}

footer a:hover svg {
  fill: var(--tt-color-1);
}

footer .badge {
  margin: 0 auto;
  background-color: transparent;
  padding: 0;
}

footer .badge a,
footer .badge svg {
  display: block;
  top: 0;
  margin: 0;
  width: 200px;
  height: 200px;
}

footer .badge svg path {
  transition: all .4s ease;
}

footer .badge a:hover svg path:first-of-type {
  fill: #ffffff;
}

footer .badge a:hover svg path:last-of-type {
  fill: var(--tt-color-1);
}

footer .social {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  background-color: rgba(255, 255, 255, .1);
  width: 100%;
  padding: 1rem;
  transition: all .4s ease;
}

footer .social:hover {
  background-color: rgba(255, 255, 255, .2);
  color: #ffffff;
}

footer .social svg {
  top: -2px;
}

footer .social:hover svg {
  fill: #ffffff;
}

/****************************************
* Attribution
****************************************/

.attribution {
  background-color: rgba(255, 255, 255, .1);
  padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom));
  text-align: center;
}

.attribution p,
.attribution a {
  margin: 0;
  font-size: 12px;
  color: #ffffff;
}

.attribution a {
  font-weight: normal;
  text-transform: none;
}
