@import url("https://fonts.googleapis.com/css?family=Raleway:200,300,400,500,600");
@import url("https://fonts.googleapis.com/css2?family=Port+Lligat+Slab&family=Swanky+and+Moo+Moo&display=swap");

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

body {
  background-color: #eee;
  color: #333;
  font-family: "Raleway", Arial, Helvetica, sans-serif;
  font-size: 1em;
  width: 100svw;
  padding: 0 1rem 1rem 1rem;
}

header {
  position: fixed;
  z-index: 3;
  width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 0.5rem 1rem;
  color: white;
  background-color: black;
  opacity: 1;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-products {
  display: inline-block;
  padding: 8px 16px;
  background-color: #b00000;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-products:hover {
  background-color: #800000;
}

main {
  width: 100%;
}

#frontPage {
  position: relative;
  width: 100%;
  height: 60svh;
}
#frontPage .curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(90deg, rgba(128, 0, 0, 0.5), rgba(128, 0, 0, 0.9));
}
#frontPage video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: cover;
  background-size: cover;
  z-index: 0;
  overflow: hidden;
}
#frontPage .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#frontPage .overlay h1 {
  font-family: "Swanky and Moo Moo";
  margin: 0 2rem;
  text-align: center;
  color: white;
}
#frontPage .overlay h2 {
  margin: 1rem 2rem;
  text-align: center;
  color: white;
  font-weight: 300;
}
#frontPage .overlay h2 .wedo {
  font-weight: 800;
}

#capability {
  margin-top: 1rem;
  position: relative;
  display: block;
  width: 100%;
  height: fit-content;
}
#capability .heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0.2rem 1rem;
}
#capability .heading h2 {
  color: #b00000;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
#capability .heading p {
  text-align: center;
  margin-bottom: 1rem;
}
#capability .cards {
  display: grid;
  margin: 0 auto;
  grid-gap: 0.5rem;
}
#capability .cards .card {
  width: 100%;
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 0.5rem;
  display: grid;
  margin: 0 auto;
  grid-gap: 1rem;
  grid-template-areas: "a1" "a2" "a3";
  grid-template-rows: 30% 10% 60%;
  justify-items: center;
}
#capability .cards .card svg {
  grid-area: a1;
  width: 10%;
  stroke: #b20000;
  fill: #b20000;
  margin: 0.5rem 0;
}
#capability .cards .card h3 {
  grid-area: a2;
  margin-bottom: 1rem;
  font-weight: 900;
  text-align: center;
}
#capability .cards .card p {
  grid-area: a3;
  text-align: center;
}

#mission {
  margin-top: 1rem;
  border-radius: 1rem;
  position: relative;
  display: flex;
  width: 100%;
  height: 50svh;
  background-attachment: fixed;
  background-image: linear-gradient(rgba(255, 0, 0, 0.3), rgba(255, 0, 0, 0.7)), url(../images/23025-D-01G.jpg);
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  z-index: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
}

#testimonials {
  margin-top: 1rem;
  padding: 1rem;
  position: relative;
  display: block;
  width: 100%;
  height: fit-content;
  background-color: #fff;
  border-radius: 1rem;
}
#testimonials .heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0.2rem 1rem;
}
#testimonials .heading h2 {
  color: #b00000;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
#testimonials .heading p {
  text-align: center;
  margin-bottom: 1rem;
}
#testimonials .cards {
  display: grid;
  margin: 0 auto;
  grid-gap: 0.5rem;
}
#testimonials .cards .card {
  width: 100%;
  display: flex;
  background-color: #eee;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
}
#testimonials .cards .card p {
  border-left: #777 solid 5px;
  padding-left: 0.5rem;
  text-align: left;
  margin-bottom: 0.5rem;
}
#testimonials .cards .card div {
  width: 100%;
  padding-left: 0.5rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
#testimonials .cards .card div svg {
  width: 1rem;
  height: 1rem;
}
#testimonials .cards .card div span.function {
  margin-left: 0.4rem;
  color: #b00000;
  font-weight: 700;
}
#testimonials .cards .card div span.name {
  margin-left: 0.4rem;
  font-weight: 900;
  font-style: italic;
}

#footer {
  margin-top: 1rem;
  padding: 1rem;
  position: relative;
  display: grid;
  grid-template-areas: "a1 a2" "a3 a3";
  grid-template-columns: 50% 50%;
  grid-template-rows: 90% 10%;
  width: 100%;
  height: fit-content;
  background-color: #111;
  color: #ddd;
  border-radius: 1rem;
}
#footer .contact {
  grid-area: a1;
}
#footer .contact span {
  display: block;
}
#footer .contact .contactUs {
  color: #b00000;
}
#footer .contact .details {
  margin-top: 1rem;
  font-weight: 300;
}
#footer .contact .company {
  margin-top: 1rem;
  font-weight: 900;
}
#footer .contact .address {
  margin-top: 0.5rem;
  font-weight: 300;
}
#footer .summary {
  grid-area: a2;
  display: flex;
  justify-content: flex-end;
}
#footer .summary .welove {
  color: #b00000;
  text-align: right;
}
#footer .summary ul {
  list-style: none;
  text-align: right;
}
#footer .summary ul li {
  margin-top: 1rem;
  font-weight: 300;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #777;
}
#footer .copyright {
  grid-area: a3;
  width: 100%;
  padding: 1rem 0;
  font-weight: 300;
  color: #777;
  border-top: 1px solid #777;
  margin-top: 1rem;
  text-align: center;
}

@media screen and (min-width: 1001px) {
  h1 { font-size: 8rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 0.9rem; }
  h4 { font-size: 0.7rem; }
  p { font-size: 0.9rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (min-width: 801px) and (max-width: 1000px) {
  h1 { font-size: 7rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
  h4 { font-size: 0.9rem; }
  p { font-size: 1.1rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (min-width: 601px) and (max-width: 800px) {
  h1 { font-size: 6rem; }
  h2 { font-size: 1rem; }
  h3 { font-size: 1.2rem; }
  h4 { font-size: 0.6rem; }
  p { font-size: 1rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (min-width: 401px) and (max-width: 600px) {
  h1 { font-size: 3.8rem; }
  h2 { font-size: 1rem; }
  h3 { font-size: 0.8rem; }
  h4 { font-size: 0.8rem; }
  p { font-size: 0.9rem; }
}
@media screen and (min-width: 301px) and (max-width: 400px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 0.9rem; }
  h3 { font-size: 0.6rem; }
  h4 { font-size: 0.5rem; }
  p { font-size: 0.8rem; }
}
@media screen and (max-width: 300px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 0.9rem; }
  h3 { font-size: 0.6rem; }
  h4 { font-size: 0.5rem; }
  p { font-size: 0.8rem; }
}

/* --- Product card hover effect --- */
.cards .card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
