@import "base.css";
@import "components.css";


/* ---------------------------------------- */
/* ------ HEADER ------ */
.header {
  position: sticky;
  top: 0;
  overflow: hidden;
  background: white;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 7rem;
}
.header-logo {
  padding: 10px 0;
}
.header-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.header-nav a {
  text-decoration: none;
  position: relative;
}
.header-topbar {
  position: relative;
  padding: 12px 0;
}
.header-topbar a {
  color: var(--secondary-yellow);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.header-topbar a:hover {
  color: var(--light-red);
}
.header-topbar span {
  font-size: 14px;
}
.header-topbar::before {
  background-color: var(--primary-color);
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10000px;
  transform: skew(45deg);
  height: 100%;
}
.topbar-items, .nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: flex-end;
  gap: 3rem;
}
.header-nav-menu-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8rem;
  padding: 20px 0;
}
.header-nav-menu a {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.header-nav-menu a:hover {
  color: var(--tertiary-red);
}


/* ---------------------------------------- */
/* ------ HERO ------ */
.hero {
  height: 500px;
  background: var(--primary-color);
  padding: 0;
}
.hero-container {
  display: flex;
  align-items: center;
  height: 100%;
}
.hero-img {
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image {
  width: 100%;
  height: 850px;
  object-fit: cover;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 500px;
  padding: 1rem;
}
.hero-content h1 {
  font-family: "Fraunces", serif;
  font-size: 64px;
  font-style: italic;
  color: var(--primary-yellow);
  line-height: 1;
}
.hero-content p {
  color: white;
  font-size: 18px;
}
.hero-image-2 {
  display: none;
  height: 100%;
  object-fit: cover;
}


/* ---------------------------------------- */
/* ------ SERVICES ------ */
.title-2 {
  font-size: 32px;
  font-weight: bold;
  font-style: italic;
  color: var(--tertiary-red);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3rem;
}
.card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.card-content h3 {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}
.card-content p {
  text-align: center;
}
.service-img {
  width: 110px;
}


/* ---------------------------------------- */
/* ------ COLLAB ------ */
.collab {
  background-color: var(--background-light);
}
.collab-content {
  max-width: 900px;
  align-self: center;
}
.collab-item {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.collab-item p {
  font-size: 18px;
  width: fit-content;
}
.collab-item span {
  font-size: 18px;
  font-weight: 600;
}
.collab-item i {
  width: 20px;
}
.collab-text {
  text-align: center;
}
.text-2 {
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: var(--tertiary-red);
}
.text-3 {
  font-size: 18px;
}


/* ---------------------------------------- */
/* ------ CONTACT FORM ------ */
.contact {
  background-image: url(../img/contact-form.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.contact-form-content {
  max-width: 700px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(4, auto);
  gap: 1rem;
  grid-template-areas: 
    "name name"
    "email phone"
    "message message"
    ". .";
}
.contact-form input, textarea {
  font-size: 14px;
  padding: 8px 18px;
  border: none;
  background-color: white;
}
.contact-form #name {
  grid-area: name;
}
.contact-form #email {
  grid-area: email;
}
.contact-form #phone {
  grid-area: phone;
}
.contact-form #message {
  grid-area: message;
}


/* ---------------------------------------- */
/* ------ CONTACT INFO ------ */
.contacts-content {
  display: flex;
  justify-content: space-evenly;

}
.contact-card {
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.contact-info {
  text-align: center;
}
.contact-info p {
  white-space: nowrap;
}


/* ---------------------------------------- */
/* ------ FOOTER ------ */
.footer {
  background: var(--primary-color);
  color: var(--secondary-yellow);
  padding: 8px 0;
}
.footer p {
  font-size: 13px;
  text-align: center;
}



/* ---------------------------------------- */
/* ------ MEDIA QUERIES ------ */

@media (max-width: 1185px) {
    .hero-image {
        display: none;
    }
    .hero-image-2 {
        display: block;
    }
}

@media (max-width: 991px) {
    .header-topbar {
        display: none;
    }
}

@media (max-width: 850px) {
    .hero {
        height: auto;
    }
    .hero-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0;
    }
    .hero-image-2 {
        height: 400px;
        width: 100%;
    }
    .hero-content {
        padding-top: 60px;
        align-items: center;
    }
    .hero-content h1 {
        text-align: center;
    }
    .hero-content p {
        text-align: center;
    }
}

@media (max-width: 645px) {
    .hero-image-2 {
        height: 300px;
    }
    .services-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .header-inner {
        flex-direction: column;
        gap: 0;
    }
    .header-nav {
        align-items: center;
    }
    .contacts-content {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .contact-form-content {
        grid-template-areas: 
            "name name"
            "email email"
            "phone phone"
            "message message"; 
    }
}