:root {
  --black: #000000;
  --blue: #1e4792;
  --text-color: #333;
  --text-light: #676b6e;
  --roboto: "Roboto", sans-serif;
  --oswald: "Oswald", sans-serif;
  --inter: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
}

a {
  cursor: pointer;
}

h1 {
  font-size: 36px;
  letter-spacing: 0.1em;
}

@media (min-width: 1650px) {
  h1 {
    font-size: 48px;
  }
}

h2 {
  font-size: 24px;
}

@media (min-width: 1650px) {
  h2 {
    font-size: 28px;
  }
}

h3 {
  font-size: 24px;
  font-family: var(--roboto);
  font-weight: 400;
  color: var(--black);
}

h4 {
  font-size: 20px;
  font-family: var(--roboto);
  color: var(--black);
}

p {
  font-size: 16px;
}

@media (min-width: 1650px) {
  p {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 22px;
  }

  h4 {
    font-size: 20px;
  }

  p {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 25px;
  }
}

.blue-btn {
  font-family: var(--roboto);
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--blue);
  color: white;
  padding: 10px 10px;
  width: 115px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 auto 20px auto;
}

.blue-btn:hover {
  background-color: rgba(30, 71, 146, 0.85);
}

.container {
  padding-left: 12vw;
  padding-right: 12vw;
  box-sizing: border-box;
  max-width: 1800px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .container {
    padding-left: 8vw;
    padding-right: 8vw;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0 50px;
  background-color: var(--black);
  height: 95px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  nav {
    flex-direction: column;
    padding: 30px;
    height: auto;
    gap: 20px;
    align-items: center;
    justify-content: center;
  }
}

.logo {
  display: flex;
  align-items: center;
}

.contact {
  display: flex;
  align-items: stretch;
}

.contact-btn {
  font-family: var(--roboto);
  letter-spacing: 2px;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--blue);
  color: white;
  padding: 0 20px;
  height: 100%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: rgba(30, 71, 146, 0.85);
}

@media (max-width: 900px) {
  .contact-btn {
    padding: 10px 20px;
    height: auto;
  }
}

.hero {
  background-image: url("./assets/modern-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: white;
  aspect-ratio: 1440/759;
  margin: 0 auto;
  padding-bottom: 40px;
}
.hero:after {
  content: "Photo By: Clinton Meyer for Grace Home Furnishings";
  font-family: var(--roboto);
  color: #ffffffa6;
  position: absolute;
  bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.5px;
  right: 10px;
}

@media (max-width: 1200px) {
  /* .hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 6;
  } */
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  max-width: 1800px;
  margin: 0 auto;
  justify-items: center;
  align-items: center;
}

@media (max-width: 1200px) {
  .hero-container {
    display: grid;
    grid-template-columns: 1fr;
    padding: 80px 0;
  }
}

.hero-content {
  width: 29vw;
  padding-top: 26vw;
  justify-self: start;
}

@media (max-width: 1200px) {
  .hero-content {
    width: 90vw;
    padding-top: 0;
    margin: 0 auto;
    position: relative;
    z-index: 10;
  }
}

.hero .small-title h4 {
  font-family: var(--oswald);
  font-size: 20px;
  color: white;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
}

.hero h1 {
  font-family: var(--inter);
  text-transform: uppercase;
}

.hero p {
  color: white;
  font-family: var(--roboto);
  line-height: 1.65;
}

.form-container.desk {
  margin-top: 40px;
  max-width: 600px;
  width: 100%;
  padding: 40px 40px 60px 40px;
  box-sizing: border-box;
  background-color: white;
  opacity: 0.9;
  max-height: fit-content;
}

.form-container h2 {
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  text-align: center;
  font-weight: 400;
  margin: 20px 0 30px 0;
}

.form-container p {
  font-family: var(--roboto);
  color: var(--black);
  line-height: 1.65;
  margin: 0 auto 30px auto;
  text-align: center;
  max-width: 350px;
}

form {
  width: 100%;
}

.form-group {
  margin-bottom: 20px;
  overflow: hidden;
}

.form-label {
  display: block;
  padding-bottom: 5px;
  font-family: var(--roboto);
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--black);
  font-size: 16px;
}

.form-label .required {
  font-size: 12px;
  color: #a8a8a8;
  display: inline-block;
  padding-left: 9px;
  font-weight: normal;
  font-family: var(--roboto);
}

input[type="text"],
input[type="email"],
textarea,
.form-input,
.form-textarea {
  font-size: 16px !important;
  font-family: var(--roboto);
  width: 100%;
  padding: 15px 12px;
  border: 1px solid var(--black);
  font-size: 14px;
  background: white;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #007bff;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-row-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}

.submit-btn {
  font-family: var(--roboto);
  font-size: 18px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--blue);
  color: white;
  padding: 10px 10px;
  width: 115px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: rgba(30, 71, 146, 0.85);
}

#successMessage {
  display: block;
  margin: 0 auto;
  text-align: center;
  color: white;
  font-family: "Roboto";
  margin-top: 60px;
}

.form-container.mobile {
  display: none;
}

@media (max-width: 1200px) {
  .form-container.mobile {
    position: relative;
    right: unset;
    top: unset;
    max-width: 90vw;
    display: block;
    margin: 30px auto;
    padding-bottom: 40px;
    bottom: unset;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 2px solid black;
  }

  .form-container.desk {
    display: none;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-input,
  .form-textarea {
    padding: 15px 10px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-row {
    gap: 0;
  }

  .r-mb {
    display: none;
  }
}

a.blue-btn.top {
  width: 135px;
}

.grid-image-section {
  margin-top: 70px;
}

.grid-image-section h2 {
  font-family: var(--inter);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--black);
  font-weight: 600;
  margin: 0 auto 50px auto;
  text-align: center;
}

.grid-image-section h3 {
  font-size: 20px;
  font-family: var(--roboto);
  font-weight: 600;
  color: var(--black);
  margin: 0 0 20px 0;
}

.grid-image-section p {
  font-family: var(--roboto);
  color: var(--black);
  line-height: 1.65;
  margin: 0;
}

.grid-image-section p a,
.grid-image-section p a:visited,
.grid-image-section p a:active{
color: var(--black);
}

.grid-image-section img {
      width: 40vw;
    height: auto;
    display: block;
    max-width: 600px;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1200px) {
  .grid-image-section img {
    width: 100%;
    margin: 0 auto;
    max-width: none;
  }
}

.perfection.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  margin-bottom: 60px;
}

.design.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-bottom: 60px;
}

@media (max-width: 1200px) {
  .perfection.grid,
  .design.grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}
.design .img::after {
  content: "Photo By: Clinton Meyer for Grace Home Furnishings";
  font-family: var(--roboto);
  color: #ffffffa6;
  position: absolute;
  bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.5px;
  left: 10px;
}
.design .img {
  
      position: relative;
    height: 100%;
    width: 100%;
}

.perfection .img::after {
  content: "Photo By: Clinton Meyer for Grace Home Furnishings";
  font-family: var(--roboto);
  color: #ffffffa6;
  position: absolute;
  bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.5px;
  left: 10px;
}

.perfection .img {
  position: relative;
  height: fit-content;
}

/* success content*/
.success-form {
  margin-top: 80px;
  text-align: center;
}

.success-form h3 {
  font-family: var(--roboto);
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--black);
  font-weight: 600;
}

.success-top-copy {
  text-align: center;
  margin-bottom: 40px;
}

.success-top-copy p {
  margin: 20px auto;
}

.flex-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: var(--black) 1px solid;
}

.flex-item a {
  font-family: var(--roboto);
  font-size: 16px;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: all 0.3s ease;
}
.flex-item a:hover {
  color: #2460c1;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.design.grid.success {
  align-items: center;
  margin-top: 60px;
}


.design.grid.container .copy,
.design.grid.success .copy {
  margin-top: 0;
}

.copy .right h4:first-child{
  margin-top:0;
}

@media (max-width: 1200px) {
  .right .border-btn-container {
    text-align: center;
  }
}

/* end success */

.grid .copy {
  margin-top: 40px;
}

@media (max-width: 1200px) {
  .grid .copy {
    order: 2;
  }
}

.btn.border {
  font-family: var(--roboto);
  font-size: 18px;
  display: inline-block;
  background-color: transparent;
  color: var(--black);
  padding: 10px 15px;
  text-decoration: none;
  border: 2px solid var(--black);
  transition: all 0.3s ease;
  margin: 0;
}

.cta-content .btn.border {
  background-color: white;
}

.border-btn-container {
  margin-top: 30px;
}

.btn.border:hover {
  border: 2px solid rgba(0, 0, 0, 0.641);
  color: rgba(0, 0, 0, 0.641);
}

.white-btn {
  font-family: var(--roboto);
  font-size: 18px;
  display: inline-block;
  background-color: white;
  color: var(--black);
  padding: 10px 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0;
}

.white-btn:hover {
  background-color: rgb(255, 255, 255, 0.85);
}

.modernism-event {
  margin-bottom: 60px;
}

.mw {
  display: flex;
  border: 1px solid var(--black);
  justify-content: space-between;
}

@media (max-width: 1100px) {
  .mw {
    flex-direction: column;
    gap: 0;
  }
}

.mw .logo {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1100px) {
  .mw .logo {
    width: 100%;
    padding: 30px 0;
  }
}

.mw .logo img {
  width: 30vw;
  height: auto;
  display: block;
  text-align: center;
}

@media (max-width: 1100px) {
  .mw .logo img {
    width: 100%;
    padding: 20px;
  }
}

.mw .dates {
  background: var(--black);
  color: white;
  text-align: center;
  padding: 50px;
  justify-self: flex-end;
}

.mw .dates h2 {
  font-family: var(--inter);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: white;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.cta {
  background-image: url("./assets/cta_bg.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 100px 30px;
  position: relative;
  margin: 0 auto;
}
.cta::after {
  content: "Photo By: Clinton Meyer for Grace Home Furnishings";
  font-family: var(--roboto);
  color: #ffffffa6;
  position: absolute;
  bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.5px;
  left: 10px;
}

.cta-content {
  width: 40vw;
  text-align: center;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .cta-content {
    width: 80vw;
  }
}

.cta h2 {
  font-family: var(--inter);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: white;
  font-weight: 600;
  margin: 0 0 20px 0;
}

footer {
  background-color: var(--black);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  font-family: var(--roboto);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.socials {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-contact {
  color: white;
  text-decoration: none;
  font-family: var(--roboto);
  font-size: 18px;
  border: 1px solid white;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.footer-contact:hover {
  background-color: rgb(255, 255, 255, 0.09);
}

@media (max-width: 900px) {
  footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .year_copy {
    order: 3;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}
