/* HANNAH HAUAN */

/* Reset (Meyer) */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }

body { line-height: 1; }

ol, ul { list-style: none; }

blockquote, q { quotes: none; }

blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }

table { border-collapse: collapse; border-spacing: 0; }


/* VARIABLES */
:root {
  --fonts: Molle, cursive;
  --fonts2: Montserrat, sans-serif;
  --yellow: #f6d64a;
  --turq: #55bcd5;
  --purple: #9b26b0;
  --blue: #499bd2;
  --light-blue: #96d0ff;
  --dark-gray: #222;
  --light-gray: #eaeaea;
  --white: #fff;
  --black: #000;
  --radio-size: 56px;
  --radio-border: 4px;
}


/* BYPASS BLOCKS */
.skip {
  background: var(--turq);
  color: var(--black);
  font-weight: 700;
  left: 50%;
  padding: 8px;
  border-radius: 3px;
  outline: 2px solid var(--turq);
  position: absolute;
  transform: translateY(-170%);
  transition: transform .3s;
}

.skip a { color: var(--turq); }

.skip:focus {
  transform: translateY(0%);
  outline: 2px solid var(--black);
  color: var(--turq);
}

.skip:focus-within { transform: translateY(0%); color: var(--black); }


/* HEADER */
header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: .75rem 1rem;
  padding: 1rem 1.5rem;
  margin: 0 auto;
  width: 100%;
  background: linear-gradient(180deg,var(--turq) 0%, rgba(255, 255, 255, 1) 100%);
}

#logo { grid-column: 1; grid-row: 1; }

#logo img {
  width: 75%;
  height: auto;
  display: block;
}


/* MENU */
#menu-toggle {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 100%;
}

#menu-toggle input[type="checkbox"] { display: none; }

#menu-toggle label {
  background: var(--yellow);
  color: var(--black);
  font-family: var(--fonts2);
  font-weight: 600;
  padding: .85rem 1rem;
  font-size: 1rem;
  border-radius: 0;
  text-align: center;
  cursor: pointer;
  display: block;
  width: 100%;
}

#menu-toggle ul {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: var(--turq);
  overflow: hidden;
  padding: 0;
  margin: 0;
  transform: translateY(-100%);
  transition: transform .3s ease;
  z-index: 100;
}

#toggle:checked + label {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: #222;
  color: #fff;
  z-index: 101;
  cursor: pointer;
}

#toggle:checked + label + ul {
  transform: translateY(0%);
  padding-top: 3.25rem;
}

#menu-toggle ul li { 
  border-top: 1px solid var(--black); 
}

#menu-toggle ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 1rem;
  text-align: center;
  font-family: var(--fonts2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--black);
  background: var(--turq);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

#menu-toggle ul li a:hover,
#menu-toggle ul li a:focus {
  background: var(--light-blue) ;

}


header h1 {
  grid-column: 1 / -1;
  grid-row: 2;
  font-family: var(--fonts);
  font-size: 3.5rem;
  line-height: 1.1;
  margin: .25rem 0 0;
}

header p {
  grid-column: 1 / -1;
  grid-row: 3;
  font-family: var(--fonts2);
  color: var(--dark-gray);
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
}

.sr-only {
  position: absolute;
  left: -1000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* MAIN */
main {
  color: var(--dark-gray);
  font-family: var(--fonts2);
  padding: 1rem 1.5rem;
  margin: 0 auto;
}

article {
  max-width: 480px;
  font-family: var(--fonts2);
  font-size: .9rem;
  line-height: 1.6;
}


/* INTRO IMAGES */
#img-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#img-grid img,
#img-grid picture,
#img-grid picture img {
  width: 100vw;
  max-width: none;
  height: auto;
  display: block;
  object-fit: cover;
  margin-left: calc(-50vw + 50%);
}

#intro h2 {
  font-family: var(--fonts);
  font-size: 2.5rem;
}

#intro p {
  font-size: 1rem;
  line-height: 2.2rem;
  font-weight: 300;
}


/* PLAN YOUR TRIP */

#plan { 
  background-color: var(--yellow);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 1rem 1rem 1.5rem;
}


#plan > div > section {
  box-sizing: border-box;
  background-color: var(--turq);
  border: 3px solid var(--white);
  border-radius: 10px;
  padding: .75rem;
  width: 400px;
  height: 400px;
  max-width: 90vw;
  aspect-ratio: 1 / 1;
  display: grid;
  align-items: start;
  text-align: center;
 
}

#plan {
  background-color: var(--yellow);
  width: 100vw;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem 2rem;
}

#plan h3 {
  font-family: var(--fonts);
  font-weight: 700;
  letter-spacing: .05rem;
  font-size: 2.5rem;
  color: var(--black);
  margin: .2rem 0 .35rem;
}

#plan > div {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 3rem;
  align-items: center;
}

#plan > div > section {
  background-color: var(--turq);
  border: 3px solid #fff;
  border-radius: 10px;
  padding: .75rem;
  text-align: center;
  aspect-ratio: 1 / 1;
  display: grid;
  height: 20rem;
  width: 20rem;
}

#plan > div > section h4 {
  font-family: var(--fonts2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05rem;
  font-size: 1.8rem;
  color: var(--black);
  margin: .2rem 0 .35rem;
}

#plan > div > section a { 
  display: grid; 
  place-items: center; 
}

#plan > div > section img {
  display: block;
  width: 65%;
  height: 65%;
  object-fit: contain;
}


/* TESTIMONIALS */
#testimonials {
  display: grid;
  padding: 2rem;
}

#testimonials section {
  display: flex;
  flex-direction: column;
  place-items: center;
  gap: 0;
}

#testimonials h3 {
  font-family: var(--fonts);
  font-weight: 700;
  letter-spacing: .05rem;
  font-size: 2.5rem;
  color: var(--black);
  margin: 0;
}

#testimonials section h4 {
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}

#testimonials section p {
  font-family: var(--fonts2);
  font-weight: 100;
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0;
  color: var(--dark-gray);
}

q {
  font-family: var(--fonts2);
  font-weight: 300;
  font-style: italic;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin: 0;
}


/* ABOUT */
#about {
  background-color: var(--blue);
  width: 100%;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 2rem 1.5rem;
}

#about h3 {
  font-family: var(--fonts);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--black);
  margin: .2rem 0 .35rem;
}

#about > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2rem;
  text-align: center;
}

#about section {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--black);
}

#about img { width: 80px; height: 80px; margin-bottom: 1rem; }

#about h4 {
  font-family: var(--fonts2);
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 600;
  margin: .25rem 0;
}

#about p {
  font-family: var(--fonts2);
  font-size: .85rem;
  color: var(--black);
  margin: 0;
}


/* CONTACT */
#contact h3 {
  font-family: var(--fonts);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--black);
  margin: .2rem 0 .35rem;
}

.required { color: var(--purple); margin-left: .25rem; }


#names input {
  height: 50px;
  width: 90%;
  border: 3px solid var(--purple);
  padding: .75rem;
  font-family: var(--fonts2);
  color: var(--black);
  font-size: 1rem;
}

#nums input {
  height: 50px;
  width: 90%;
  border: 3px solid var(--purple);
  padding: .75rem;
  font-family: var(--fonts2);
  color: var(--black);
  font-size: 1rem;
}

#destinations select {
    width: 100%;
}

.custom-select { 
    position: relative; width: 90%; 
}

.custom-select select {
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  height: 50px;
  padding: .75rem 3rem .75rem .75rem;
  border: 3px solid var(--purple);
  font-family: var(--fonts2);
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
}

.custom-select::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  transform: translateY(-50%);
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b26b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l6 6 10-12'/%3E%3C/svg%3E");
}

#mySubmit, #submitButton {
  width: 90%;
  height: 80px;
  padding: .75rem;
  background: var(--purple);
  color: var(--white);
  text-transform: uppercase;
  border: none;
  font-family: var(--fonts2);
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  margin-top: 1rem;
}

.form-required {
  font-family: var(--fonts2);
  font-size: .9rem;
  font-style: italic;
}

form {
  max-width: 480px;
  margin: 0 auto 3rem;
  font-family: var(--fonts2);
  color: var(--black);
}

h3 {
  font-family: var(--fonts);
  font-size: 2.2rem;
  margin: 0 0 .25rem;
}

h3 + form,
h3 + * + form { 
    margin-top: .5rem; 
}

form label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: .02em;
  margin: 1rem 0 .35rem;
}

form label span {
  align-items: center;
  color: var(--black);
  margin-left: .25rem;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form select {
  width: 100%;
  height: 52px;
  border: 3px solid var(--purple);
  border-radius: 0;
  padding: .75rem .9rem;
  font: 400 1rem var(--fonts2);
  color: var(--black);
  background: var(--white);
  box-sizing: border-box;
}

form input::placeholder { 
    color: var(--black); 
}

.radio-input {
  position: relative;
  width: var(--radio-size);
  height: var(--radio-size);
  flex: 0 0 var(--radio-size);
  display: inline-block;
}

.radio-input input[type="radio"] {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  
}
 
.radio-input .radio-control {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: var(--radio-border) solid var(--purple);
  border-radius: 50%;
  background: var(--white);
}

.radio-input input[type="radio"]:checked + .radio-control::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width:  calc(var(--radio-size) - (var(--radio-border) * 2) - 20px);
  height: calc(var(--radio-size) - (var(--radio-border) * 2) - 20px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--purple);
}

legend {
    font-family: var(--fonts2);
    font-weight: 700;
    font-size: 1rem;
    color: var(--black);
    margin-bottom: .5rem;
    text-transform: uppercase;
}

fieldset {
    margin-top: 1.5rem;
    width: 90%;
}

fieldset label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem;
  }

/* FOOTER */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--light-gray);
  color: var(--black);
  padding: 2rem;
  margin: 0;
  font-family: var(--fonts2);
  font-size: .9rem;
  gap: 1rem;
}

footer p { 
  margin: .5rem 0;
  font-size: .9rem;
}

footer a { 
  text-decoration: none; 
  color: var(--black); 
}


/* MEDIUM >550PX */
@media (min-width: 700px) {

  header {
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: .25rem 1.25rem;
    align-items: center;
    background: linear-gradient(180deg,var(--turq) 0%, rgba(255, 255, 255, 1) 100%);
  }

  #logo { 
    grid-column: 1; 
    grid-row: 1 / span 3; 
  }

  #logo img { 
    width: 100%; 
    height: auto; 
    display: block; 
  }

  header h1 {
    grid-column: 2 !important;
    grid-row: 1;
    margin: 0;
    text-align: left;
    font-size: 3rem;
  }

  header p {
    grid-column: 2;
    grid-row: 2;
    margin: 0 0 .75rem 0;
    text-align: left;
    max-width: 46ch;
  }

  #menu-toggle { grid-column: 2; grid-row: 3; width: 100%; }

  #menu-toggle label { display: none !important; }

  #menu-toggle ul {
    position: static !important;
    transform: none !important;
    width: auto;
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
  }

  #menu-toggle ul li { 
    border-top: 0; }

  #menu-toggle ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1rem;
    text-transform: uppercase;
    font-family: var(--fonts2);
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    color: var(--black);
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 2px 0 rgba(0, 0, 0, .06);
    border-radius: 4px;
  }

  #menu-toggle ul li.active a { 
    background: var(--yellow); 
  }

  #toggle:checked + label { 
    position: static; 
    width: auto; 
    background: transparent; 
    color: inherit; 
  }

  #toggle:checked + label + ul { 
    padding-top: 0;
   }

  article { 
    max-width: 960px; 
    margin: 0 auto; 
  }

  #intro h2 { 
    font-size: 3rem; 
    line-height: 1.1;
     margin: 1rem 0 .5rem; 
    }

  #intro p {
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 70ch;
    margin-bottom: 1rem;
  }

  #img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  #img-grid img,
  #img-grid picture,
  #img-grid picture img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    margin-left: 0;
  }

  #img-grid > :nth-child(1) { 
    grid-column: 1; 
  }

  #img-grid > :nth-child(2) { 
    grid-column: 2; 
  }

  #img-grid > :nth-child(3) {
     grid-column: 1 / -1; 
    }

  #plan > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 720px;
    margin: 0 auto;
  }

  #plan > div > section h4 { 
    font-size: 1.5rem; 
    letter-spacing: .08em; 
  }

  #testimonials {
    display: block;
    padding: 2rem 0 2.5rem;
  }

  #testimonials > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 720px;
    margin: 0 auto;
  }

  #testimonials > div > section {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: .5rem;
  }

  #testimonials > div > section img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    margin-bottom: .2rem;
  }

  #testimonials > div > section h4 {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    margin: 0;
    padding: 0;
  }

  #testimonials > div > section p { 
    font-size: .95rem; 
    font-weight: 400; 
    color: var(--black); 
    margin: 0;
  }

  #testimonials q {
    font-style: italic;
    font-weight: 300;
    font-size: .95rem;
    line-height: 1.5;
    color: var(--black);
    max-width: 34ch;
    margin: 0;
    padding: 0;
  }

  /* ABOUT */

  #about > div {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 1rem 0;
    text-align: center;
  }

  #about img { 
    width: 100px; 
    height: 100px; 
    margin-bottom: .75rem; 
  }

  #about h4 { 
    font-size: .95rem;
   }

  #about p  { 
    font-size: .9rem; 
  }

  fieldset {
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: space-between;
  }

  fieldset label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem;
  }

  footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 1.5rem 8rem;
  }

  article {
    display: flex;
    flex-direction: column;
  }
  }




/* LARGE SCREEN SIZE >980px */

@media (min-width: 980px) {

header {
margin: 0 auto;
padding: 2.25rem 2rem;
display: grid;
grid-template-columns: 200px minmax(0, 1fr) auto;
grid-template-rows: auto auto;
gap: .5rem 2rem;
position: relative;
background: none;
width: 100%;
}

header::before {
content: "";
position: absolute;
z-index: -1;
inset: 0;
background: linear-gradient(180deg,var(--turq) 0%, rgba(255, 255, 255, 1) 100%);
}

#logo {
  grid-column: 1;
  grid-row: 1 / span 2;
}

#logo img {
min-width: 200px;
}

header h1 {
grid-column: 2;
grid-row: 1;
min-width: 0;
}

header p {
grid-column: 2 / 5;
grid-row: 2;
min-width: 0;
}

#menu-toggle ul li a {
white-space: nowrap;
padding: .6rem .9rem;
}

#menu-toggle {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: start;
  justify-self: end;
  width: auto;
  min-width: 0;
}
#menu-toggle ul {
  position: static;
  transform: none;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
  width: auto;
  background: transparent;
  overflow: visible;
}

header h1, 
header p {
  min-width: 0;
}

article {
    max-width: 1200px; 
}

#intro {
display: grid;
grid-template-columns: 460px 1fr;
gap: 2rem 2.25rem;
align-items: start;
}

#intro h2 { 
grid-column: 1; 
margin: 1rem 0 .5rem;
}

#intro p  { 
grid-column: 1;
    max-width: 46ch; 
}

#img-grid {
grid-column: 2;
display: grid;
grid-template-columns: 1fr 1fr;
gap: .9rem 1.1rem;
}

#img-grid img,
#img-grid picture,
#img-grid picture img {
width: 100%;
max-width: 100%;
height: auto;
object-fit: cover;
margin-left: 0;
}

#img-grid > :nth-child(1) { grid-column: 1; }
#img-grid > :nth-child(2) { grid-column: 2; }
#img-grid > :nth-child(3) { grid-column: 1 / -1; }

/* PLAN YOUR TRIP */

#plan > div {
min-width: 1000px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1.25rem 1.5rem;
justify-content: center;
}

#plan > div > section {
aspect-ratio: 1 / 1;
padding: .9rem;
display: grid;
grid-template-rows: auto 1fr;
align-items: start;
}

#plan > div > section h4 {
font-size: 1rem;
letter-spacing: .08em;
margin: .2rem 0 .35rem;
text-transform: uppercase;
}

#plan > div > section a {
place-items: center; 
}

#plan > div > section img { 
width: 65%; 
height: 65%; 
object-fit: contain; 
}
/* TESTIMONIALS */

#testimonials { padding: 2.5rem 0 3rem; }

#testimonials h3 {
margin: 0 auto;
text-align: left;

}

#testimonials > div {
max-width: 1100px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 2rem 2.5rem;
align-items: start;
text-align: center;
}

#testimonials > div > section {
display: grid;
justify-items: center;
gap: .5rem;
}

#testimonials > div > section img {
width: 120px;
height: 120px;
border-radius: 50%;
object-fit: cover;
border: 4px solid #fff;
box-shadow: 0 2px 0 rgba(0, 0, 0, .06);
margin-bottom: .25rem;
}

#testimonials > div > section h4 {
font-size: 1.05rem;
text-transform: uppercase;
letter-spacing: .06em;
font-weight: 700;
}

#testimonials > div > section p { 
font-size: .9rem; 
font-weight: 400; 
color: var(--black); 
}

#testimonials q {
font-size: .95rem;
line-height: 1.5;
color: #333;
max-width: 34ch;
}

#about {
background: var(--blue);
width: 100vw;
margin-left: 50%;
transform: translateX(-50%);
padding: 2.25rem 1.5rem 2.75rem;
}

#about > div {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 2rem 3rem;
padding: 1.25rem 0;
text-align: center;
}

#about img { 
width: 96px; 
height: 96px; 
margin-bottom: .75rem; 
}

#about h4 { 
font-size: .95rem; 
}


#about p  { 
font-size: .9rem; 
}


/* CONTACT */

form {
max-width: 100%;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(6, 1fr);   
column-gap: 1.5rem;
row-gap: 1rem;
align-items: start;
}

#names {
    grid-column: 1 / 3;

}

#nums {
    grid-column: 3 / 5;

}

#selects {
    grid-column: 5 / 7;
 
}

#names input,
#nums input 
.custom-select {
    width: 100%;
    }
}
