* {box-sizing: border-box;}

header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background-color: #111111;
  max-height: 350px;
  overflow: hidden;
}

header h1 a {
  margin: 0;
  color: #FFFFFF;
  text-decoration: none;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.1em;
  padding: 0;
}

header img {
  justify-self: start;
  width: 200px;
  height: auto;
  display: block;
  margin: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav {
  font-weight: bold;
  padding: 1em;
  font-size: 120%;
  text-align: center;
  background: linear-gradient(to bottom, #5B2C6F, #AF2D93, #FF5C33);
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2em;
}

nav a:link {
  color: #FFFFFF;
}

nav a:visited {
  color: #000000;
}

nav a:hover {
  color: #4B0082;
}

nav li {
  border: none;
}

main {
  background-color: #000000;
  color: #FFFFFF;
  padding-top: 20px;

  display: block;
  overflow: auto;
}

body {
  margin: 0;
  background-color: #000000;
  color: #555555;
  font-family: Arial, Helvetica, sans-serif;
}

h1 {
  color: #FFFFFF; 
  margin-bottom: 0;
  margin-top: 0;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.25em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.intro {
  text-align: center;
  margin: 2em auto;
  max-width: 800px;
}

h2, h3 {
  background: linear-gradient(#5B2C6F, #AF2D93, #FF5C33);
  font-family: Georgia, 'Times New Roman', serif;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

footer {
  background: linear-gradient(to bottom, #5B2C6F, #AF2D93, #FF5C33);
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 90%;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

footer nav,
footer nav ul,
footer nav li,
footer nav a {
  background: none;
  margin: 0;
  padding: 0;
  color: white;
}

footer nav ul {
  display: flex;
  justify-content: center;
  gap: 2em;
  list-style: none;
  padding: 0 0 5px 0;
  margin: 0 0 15px 0;
  border-bottom: 2px solid white;
}

footer nav a:hover {
  color: #FFA500;
  background: none;
  padding: 0;
  margin: 0;
}

#wrapper {
  width: 100%;
  margin: 0 auto;
  background: rgba(0,0,0,0.6);
  border: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  padding: 2em;
}

.content-box {
  background-color: #1a1a1a;
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.content-box img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.content-box p {
  line-height: 1.5;
  font-size: 1.5rem;
  color: #FFFFFF;
}

.content-box a:link {
  background: linear-gradient(#5B2C6F, #AF2D93, #FF5C33);; 
  font-family: Georgia, 'Times New Roman', serif;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: underline;
  text-decoration-color: #5B2C6F;
}

.content-box h3 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.promo-video {
  width: 100%;
  height: 100%;
  max-height: 600px;
  border-radius: 8px;
  object-fit: cover;
}

#homehero {
  height: 500px;
  background-image: url('stretching.jpg');
  background-size: cover;
  background-position: center 70%;
  background-repeat: no-repeat;
}

#serviceshero {
  height: 500px;
  background-image: url('RDL.jpg');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}

#testimonialhero {
  height: 500px;
  background-image: url('Dessert.jpg');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}

#contacthero {
  height: 500px;
  background-image: url('Dessert.jpg');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}

table {
  border: 2px solid transparent;
  border-image: linear-gradient(to right, #5B2C6F, #AF2D93, #FF5C33) 1;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 0 auto;
}

td, th {
  color: #FFFFFF;
  border: 2px solid transparent;
  border-image: linear-gradient(to right, #5B2C6F, #AF2D93, #FF5C33) 1;
  padding: 0.5em;
  text-align: center;
}

.extra-spacing {
  padding-bottom: 40px;
}

.text {
  text-align: left;
}

form {
  width:100%;
  max-width: 30em;
  margin: 0 auto 1em auto;
  display: grid;
  grid-gap: 1em;
  border: 2px solid transparent;
  border-image: linear-gradient(to right, #5B2C6F, #AF2D93, #FF5C33) 1;
  border-collapse: separate;
  padding: 1em;
}

label {
  text-align: right;
  padding-right: 0.5em;
  font-weight: bold;
  color: #FFFFFF;
}

input, textarea {
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 0.5em;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input:required, textarea:required {
  border: 2px solid #AF2D93;
}

input[type="submit"] {
  grid-column: 2;
  width: 9em;
  padding: 0.6em 1em;
  background: linear-gradient(45deg, #5B2C6F, #FF5C33);
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

input[type="submit"]:hover {
  background: linear-gradient(45deg, #AF2D93, #5B2C6F);
}

.logo-right{
  display: none;
}

.testimonial-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2em;
  padding: 1em;
}

.testimonial-carousel {
  position: relative;
  max-width: 600px;
  margin: auto;
  overflow: hidden;
  text-align: center;
  margin-bottom: 2em;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

.testimonial {
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-width: 100%;
  background: #1a1a1a;
  color: white;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.testimonial p {
  font-size: 1.2em;
  margin-bottom: 1em;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.carousel-controls button {
  background: linear-gradient(45deg, #5B2C6F, #FF5C33);
  border: none;
  color: white;
  font-size: 1.5em;
  padding: 0.5em 1em;
  cursor: pointer;
  border-radius: 50%;
}

.carousel-dots {
  margin-top: 1em;
}

.carousel-dots .dot {
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dots .dot.active {
  background: linear-gradient(45deg, #AF2D93, #FF5C33);
}

.about-section {
  max-width: 1000px;
  margin: 3em auto;
  padding: 2em;
}

.about-grid {
  max-width: 1300px;
  margin: 3em auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "top1 top2 top3 top4"
    "mid1 text text mid2"
    "bottom1 bottom2 bottom3 bottom4";
  gap: 16px;
  align-items: center;
}

.about-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.top1    { grid-area: top1; }
.top2    { grid-area: top2; }
.top3    { grid-area: top3; }
.top4    { grid-area: top4; }

.mid1    { grid-area: mid1; }
.mid2    { grid-area: mid2; }

.bottom1 { grid-area: bottom1; }
.bottom2 { grid-area: bottom2; }
.bottom3 { grid-area: bottom3; }
.bottom4 { grid-area: bottom4; }

.about-text {
  grid-area: text;
  background: rgba(26,26,26,0.95);
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  line-height: 1.6;
  border: 2px solid transparent;
  border-image: linear-gradient(to right, #5B2C6F, #AF2D93, #FF5C33) 1;
  border-collapse: separate;
  border-spacing: 0;
}

@media (max-width: 768px) {

  header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  header img {
    margin: 0 auto;
    width: 150px;
    height: auto;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 1em;
  }

  form {
    width: 90%;
    max-width: 400px;
    margin: 1.5em auto;
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
  }

   #homehero {
    height: 300px;
  }

  #serviceshero, #testimonialhero, #contacthero {
    height: 300px;
    background-position: center 60%;
  }

   .about-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; 
  }

  .about-section img,
  .about-section .about-text {
    flex-shrink: 0; 
  }

  label {
    text-align: left;
  }

  input, textarea {
    font-size: 1rem;
    width: 100%;
  }

  input[type="submit"] {
    width: 100%;
    padding: 0.8em;
  }
  
  #content-grid {
    grid-template-columns: 1fr;
    padding: 1em;
  }

  footer nav ul {
    flex-wrap: wrap;
    gap: 1em;
  }

  section {
    margin-left: 2em;
    margin-right: 2em;
  }

  .flow {
    display: flex;
    flex-direction: row;
  }

  .flow section {
    flex: 1;
    margin: 0.5em;
  }

  .about-grid {
    grid-auto-rows: auto;
    gap: 12px;
  }

  .about-text {
    order: -1;
    width: 98%;
    justify-self: start;
    
  }

  .about-section {
    padding: 1.5em;
  }

  .about-section img {
    width: 180px;
  }

  #content-grid {
    grid-template-columns: 1fr; 
  }

  #homehero, #serviceshero, #testimonialhero, #contacthero {
    height: 220px;
  }
}
}


@media (min-width: 1024px){
  .logo-right{
    display: block;
    justify-self: end;
    width: 200px;
    height: auto;
    margin-right: 1em;
  }

  .about-text {
    width: 89%;
    justify-self: start;
  }
  
  header h1{
    font-size: 300%;
  }

  #content-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .content-box ul {
  list-style: disc;
  display: inline-block;
  text-align: left;
  padding-left: 1.2em;
  }

  #serviceshero, #testimonialhero, #contacthero {
    height: 500px;
    background-position: center 40%;
  }

  .testimonial-carousel {
    max-width: 800px;
  }
  #homehero {
    height: 500px;
  }

  table {
    width: 70%;
    margin: 0 auto;
  }

  #wrapper {
    margin: 0 auto;
    width: 100%;
  }

  nav {
    text-align: left;
    padding-left: 1em;
  }

  @supports (display:grid) {
    nav ul {
      flex-direction: row;
      padding-top: 1em;
    }

    header {
      grid-area: header;
    }

    nav {
      grid-area: nav;
    }

    main {
      grid-area: main;
    }

    footer {
      grid-area: footer;
    }
  }

}











