/* =================================
GLOBAL
================================= */
:root {
  --darkBlue: #001d3d;
  --white: #fff;
  --yellow: #ffc300;
  --backgroundClr: #f5f5f5;
  --lightBlue: #003d7e;
  --black: #000;
}

body {
  font-family: sans-serif;
  margin: 0;
}

p {
  font-size: 1em;
  color: var(--black);
  word-break: break-word;
  hyphens: auto;
  widows: 2;
  orphans: 2;
  margin-bottom: 1.5em;
  line-height: 1.6rem;
}

li {
  word-break: break-word;
  hyphens: auto;
  widows: 2;
  orphans: 2;
  margin-bottom: 0.5em;
}

img {
  width: 100%;
}

a img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

input,
textarea {
  background-color: var(--backgroundClr);
}

/* =================================
FONTS
================================= */
@font-face {
  font-family: "Birthstone";
  src: url("assets/fonts/birthstone.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

/* =================================
TYPOGRAPHY
================================= */
h1 {
  font-family: "Birthstone", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 4.2em;
  margin: 0 0 0.15em 0;
  line-height: 0.7em;
}

h2.custom {
  font-family: "Birthstone", serif;
  font-weight: 500;
  font-style: normal;
  font-size: 2rem;
  padding-bottom: 0.2em;
  line-height: 0.7em;
  border-bottom: solid 0.01em var(--darkBlue);
}

h2 {
  font-family: sans-serif, serif;
}

/* =================================
  EFFECTS
  ================================= */
.vignette {
  height: 60%;
  background: url("https://via.placeholder.com/800") center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.vignette::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
}

.embed {
  padding: 0 !important;
}

button,
.modal-footer button {
  background: var(--darkBlue);
  color: var(--white);
}

.comingsoon {
  text-align: center;
  padding: 20em 0;
  color: var(--white);
  background-color: var(--darkBlue);
  border-top: solid 0.5em var(--yellow);
}

.comingsoon h1 {
  color: var(--yellow);
}

.carousel button:hover {
  background-color: transparent;
}
.red {
  color: red;
}

/* =================================
  LAYOUT
  ================================= */
header {
  align-self: center;
  text-align: center;
  background-color: var(--darkBlue);
  color: var(--white);
  padding: 1.4em 1.7em;
  border-bottom: var(--yellow) solid 0.5em;
}

header h2 {
  font-size: 1em;
  font-family: sans-serif;
  font-weight: normal;
  color: var(--yellow);
  margin: 0 0 0 0 !important;
}

.accordion-button.collapsed {
  font-size: 0.8em;
  font-weight: 400;
  border-radius: 0 !important;
  background-color: var(--white);
}

header h6 {
  font-size: 0.9rem;
  margin-top: 1em;
}

.hero {
  background: var(--yellow);
  padding: 3em;
  text-align: center;
  font-size: 1.2em;
  border-top: solid 0.1em var(--darkBlue);
  border-bottom: solid 0.1em var(--darkBlue);
}

div.hero h1 {
  font-size: 3em;
  margin-bottom: 0.3em;
  text-align: center;
}

button {
  background-color: var(--darkBlue);
  border: solid var(--white) 0.1em;
  border-radius: 40px !important;
  padding: 0.8em 1.1em;
  color: var(--white);
  transition: background-color 0.3s ease-in-out;
}

button:hover {
  background-color: var(--lightBlue);
}

.contactMe {
  width: 70%;
  margin: 0 auto;
  line-height: 1.6em;
}

img.portrait {
  margin-bottom: 1em;
  border-radius: 0.5em;
}

div.service {
  margin-bottom: 2.2em;
}

div.service img {
  width: 100%;
  display: block;
  background-color: #ccc;
  margin-bottom: 0.7em;
  border-radius: 0.5em;
  border: solid 0.01em var(--black);
}

.main {
  padding: 2em;
}

.testimonials {
  background: var(--darkBlue);
  padding: 3em;
  color: var(--white);
  border-top: var(--yellow) solid 0.5em;
  border-bottom: var(--yellow) solid 0.5em;
}

.testimonials img {
  width: 100%;
  margin-bottom: 2em;
  border-radius: 15em;
  border: solid 0.1em var(--white);
}

.testimonials h6 {
  text-align: right;
}

.projects {
  display: flex;
  margin-bottom: 5em;
}

.projects div {
  width: 50%;
  border: solid 1px var(--black);
}

.designGallery {
  margin-top: 1em;
}

.nav-tabs {
  margin-bottom: 2em;
}

.nav-tabs .nav-link.active {
  background-color: var(--darkBlue);
  color: var(--white);
}

.nav-tabs .nav-link {
  color: var(--black);
  background-color: #ffc30063;
  border: none;
  border-radius: 15px 15px 0 0 !important;
}

ul {
  margin: 0 0 2.5em 0;
}

ul#myTab {
  border-bottom: solid 0.05em var(--darkBlue);
}

/* grid */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px;
}

.grid-item {
  background-color: var(--backgroundClr);
  padding: 20px;
  text-align: center;
  border: 1px solid #ccc;
}

.modal-body {
  padding: 0;
}

.modal-header,
.modal-footer {
  padding: 0.4em 0.7em;
}

.accordion-button:not(.collapsed) {
  color: var(--white) !important;
  background-color: var(--darkBlue) !important;
  border-radius: 0 !important;
}

h2.accordion-header {
  margin: 0 !important;
  font-family: sans-serif;
  font-size: 1.2em;
  border: 0;
}

/* client list */
#clientList {
  background-color: var(--yellow);
  border-top: solid 0.1em var(--darkBlue);
  border-bottom: solid 0.1em var(--darkBlue);
  padding: 2em;
}

#clientList h2 {
  margin: 0 0 1em 0;
  text-align: center;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-items: center;
  align-items: center;
}

.logo-grid img {
  max-width: 100%;
  width: 120px;
  height: auto;
  object-fit: contain;
}

/* message form */
.message-form-container {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.message-form-container p {
  text-align: center;
}

.message-form-container h2 {
  margin: 0.3em 0 0.6em 0;
  text-align: center;
  color: #333;
  border-bottom: 0;
  line-height: 1.2em;
  font-size: 1.5em;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

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

.form-group button {
  background-color: var(--lightBlue);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.form-group button:hover {
  background-color: var(--lightBlue);
}

/* footer */
footer {
  background-color: var(--darkBlue);
  border-top: var(--yellow) solid 0.5em;
  color: var(--white);
  padding: 2em;
  text-align: center;
}

#footer_copyright {
  background-color: var(--yellow);
  text-align: center;
  padding: 0.5em;
  font-size: 0.8rem;
}

footer h2 {
  margin: 0.7rem 0 0.4em 0;
}

footer img {
  max-width: 10%;
}

footer a svg {
  color: var(--white);
}

/* =================================
  MEDIA QUERIES
  ================================= */
/* Small devices (600px max) */
@media (max-width: 600px) {
  .message-form-container {
    padding: 15px;
  }

  .form-group button {
    font-size: 14px;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .testimonials img {
    float: left;
    max-width: 10%;
    margin-right: 2em;
  }

  img.portrait {
    max-width: 30%;
    float: left;
    margin: 0 2em 0 0;
  }

  .nav-tabs li {
    margin-bottom: 0;
  }

  .hero button {
    margin: 0 auto;
    display: block;
  }

  .hero a {
    margin: 0 auto;
    text-decoration: none;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .birthstone-regular-header {
    font-size: 5.5em;
  }

  p {
    line-height: 2.2rem;
  }

  li {
    line-height: 2rem;
  }

  h2 {
    font-weight: 500;
    font-size: 1.6rem;
    margin: 0.8em 0 0.3em 0;
    padding-bottom: 0.2em;
    border: none;
  }

  .hero {
    text-align: left;
    padding: 4em 8em;
  }

  .main {
    padding: 4em 10em 6em 10em;
  }

  .testimonials {
    padding: 4em 6em;
    font-size: 1.5em;
    min-height: 15em;
  }

  .testimonials img {
    float: left;
    max-width: 8%;
    margin-right: 2em;
  }

  img.portrait {
    max-width: 100%;
    float: left;
    margin: 0 2em 0 0;
  }

  .vignette::before {
    background: radial-gradient(
      circle,
      rgba(0, 0, 0, 0) 87%,
      rgba(0, 0, 0, 0.6) 100%
    );
  }

  .about {
    display: flex;
    column-gap: 3em;
  }

  #clientList {
    padding: 5em 10em 6em 10em;
  }

  .message-form-container {
    border: none;
    box-shadow: none;
    max-width: none;
  }

  .form-group textarea {
    min-height: 160px;
  }

  .contactMe {
    width: 100%;
    margin: 0;
  }
}
