/* =====================================================
   MM & CO INSTALACION S.L.
   LUXURY CONSTRUCTION WEBSITE
===================================================== */


/* =========================
   GLOBAL RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0b0b0b;
  color: #eeeeee;
  font-family: "DM Sans", sans-serif;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}


/* =========================
   LOADER
========================= */

.loader {
  position: fixed;
  inset: 0;
  background: #0b0b0b;

  display: grid;
  place-items: center;

  z-index: 9999;

  animation: hideLoader 1.5s forwards;
}

.loader span {
  font-family: "Cormorant Garamond", serif;
  font-size: 42px;

  color: #c9a45c;

  letter-spacing: 8px;
}

@keyframes hideLoader {

  0%,
  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }

}


/* =========================
   HEADER
========================= */

.header {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 6%;

  background: rgba(8, 8, 8, 0.88);

  backdrop-filter: blur(14px);

  border-bottom: 1px solid #29251f;
}


/* LOGO */

.brand img {
  width: 180px;
  height: 75px;
  object-fit: contain;
  background: transparent;
}

/* NAVIGATION */

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  font-size: 12px;

  text-transform: uppercase;

  letter-spacing: 1.5px;

  color: #dddddd;

  transition: 0.3s;
}

nav a:hover {
  color: #c9a45c;
}


/* CONTACT BUTTON */

.nav-cta {
  border: 1px solid #c9a45c;

  padding: 9px 16px;

  color: #c9a45c;
}

.nav-cta:hover {
  background: #c9a45c;
  color: #101010;
}


/* MOBILE MENU */

.menu-toggle {
  display: none;

  background: none;

  border: none;

  color: #c9a45c;

  font-size: 28px;

  cursor: pointer;
}


/* =========================
   HERO SECTION
========================= */

.hero {
  min-height: 100vh;

  position: relative;

  display: flex;
  align-items: center;

  padding: 150px 9% 70px;

  background-image:

    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.88),
      rgba(0, 0, 0, 0.35)
    ),

    url("https://images.unsplash.com/photo-1503387762-5928c7f0f5d8?auto=format&fit=crop&w=2000&q=85");

  background-size: cover;

  background-position: center;
}


/* HERO CONTENT */

.hero-content {
  max-width: 720px;
}

.eyebrow {
  font-size: 11px;

  letter-spacing: 3px;

  color: #c9a45c;

  font-weight: 700;

  margin-bottom: 20px;
}


/* HEADINGS */

.hero h1,
h2 {
  font-family: "Cormorant Garamond", serif;

  font-weight: 600;

  line-height: 1.02;

  font-size: clamp(48px, 7vw, 94px);
}

em {
  color: #c9a45c;

  font-style: normal;
}


/* HERO TEXT */

.hero-text {
  max-width: 510px;

  color: #c6c6c6;

  margin: 28px 0;

  font-size: 15px;
}


/* BUTTONS */

.hero-buttons {
  display: flex;

  gap: 15px;

  flex-wrap: wrap;
}

.btn {
  display: inline-block;

  padding: 13px 25px;

  border: 1px solid #c9a45c;

  font-size: 11px;

  letter-spacing: 1.5px;

  text-transform: uppercase;

  font-weight: 700;

  cursor: pointer;

  transition: 0.3s;
}


/* GOLD BUTTON */

.btn-gold {
  background: #c9a45c;

  color: #101010;
}

.btn-gold:hover {
  background: #e1c58b;

  transform: translateY(-3px);
}


/* OUTLINE BUTTON */

.btn-outline {
  color: #c9a45c;

  background: transparent;
}

.btn-outline:hover {
  background: #c9a45c;

  color: #101010;
}


/* HERO BOTTOM */

.hero-bottom {
  position: absolute;

  bottom: 25px;

  left: 9%;
  right: 9%;

  display: flex;

  justify-content: space-between;

  color: #c9a45c;

  font-size: 10px;

  letter-spacing: 2px;
}

.hero-bottom span {
  color: #aaa;
}


/* =========================
   SECTIONS
========================= */

.section {
  padding: 110px 9%;
}


/* =========================
   INTRO
========================= */

.intro {
  text-align: center;

  max-width: 1000px;

  margin: auto;
}

.intro h2 {
  font-size: clamp(42px, 5vw, 70px);
}

.intro > p:last-child {
  max-width: 650px;

  margin: 28px auto;

  color: #aaa;
}


/* =========================
   ABOUT SECTION
========================= */

.about {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 70px;

  align-items: center;

  background: #111111;
}


/* ABOUT IMAGE */

.image-panel {
  min-height: 540px;

  background:

    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.3),
      transparent
    ),

    url("https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1000&q=85");

  background-size: cover;

  background-position: center;
}


/* ABOUT CONTENT */

.about-content h2 {
  font-size: clamp(45px, 5vw, 70px);
}

.about-content > p {
  color: #aaa;

  margin: 25px 0;
}


/* STATS */

.stats {
  display: flex;

  gap: 35px;

  border-top: 1px solid #39342b;

  padding-top: 25px;
}

.stats strong {
  display: block;

  color: #c9a45c;

  font-family: "Cormorant Garamond", serif;

  font-size: 35px;
}

.stats span {
  font-size: 11px;

  color: #aaa;
}


/* =========================
   SERVICES
========================= */

.services {
  background: #0b0b0b;
}

.section-heading {
  text-align: center;

  margin-bottom: 50px;
}

.section-heading h2 {
  font-size: 65px;
}


/* SERVICE GRID */

.service-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 18px;
}


/* SERVICE CARD */

.service-card {
  border: 1px solid #302b24;

  padding: 30px 24px;

  min-height: 280px;

  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);

  border-color: #c9a45c;

  background: #111111;
}

.service-card > span {
  color: #c9a45c;

  font-size: 12px;
}


/* SERVICE ICON */

.service-icon {
  font-size: 42px;

  color: #c9a45c;

  margin: 25px 0;
}


/* SERVICE TITLE */

.service-card h3 {
  font-family: "Cormorant Garamond", serif;

  font-size: 27px;

  line-height: 1.1;
}


/* SERVICE DESCRIPTION */

.service-card p {
  font-size: 12px;

  color: #999;

  margin-top: 15px;
}


/* =========================
   PROJECTS
========================= */

.projects {
  background: #111111;
}


/* PROJECT GRID */

.project-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
}


/* PROJECT CARD */

.project {
  height: 430px;

  display: flex;

  align-items: end;

  padding: 28px;

  background-size: cover;

  background-position: center;

  position: relative;

  overflow: hidden;

  transition: 0.3s;
}

.project:hover {
  transform: translateY(-5px);
}


/* PROJECT OVERLAY */

.project::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    transparent,
    rgba(0, 0, 0, 0.9)
  );
}


/* PROJECT TEXT */

.project > div {
  position: relative;
}

.project span {
  color: #c9a45c;

  font-size: 12px;
}

.project h3 {
  font-family: "Cormorant Garamond", serif;

  font-size: 30px;
}


/* PROJECT IMAGES */

.project-one {
  background-image: url(
    "https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=900&q=85"
  );
}

.project-two {
  background-image: url(
    "https://images.unsplash.com/photo-1484101403633-562f891dc89a?auto=format&fit=crop&w=900&q=85"
  );
}

.project-three {
  background-image: url(
    "https://images.unsplash.com/photo-1621905252507-b35492cc74b4?auto=format&fit=crop&w=900&q=85"
  );
}


/* PROJECT NOTE */

.note {
  text-align: center;

  color: #777;

  font-size: 12px;

  margin-top: 20px;
}


/* =========================
   CONTACT SECTION
========================= */

.contact {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 80px;

  background: #0b0b0b;
}


/* CONTACT HEADING */

.contact-copy h2 {
  font-size: 70px;
}

.contact-copy > p:not(.eyebrow) {
  color: #aaa;

  margin: 25px 0;
}


/* CONTACT DETAILS */

.contact-details p {
  margin: 13px 0;

  color: #c9a45c;

  font-size: 14px;
}

.contact-details a:hover {
  text-decoration: underline;
}


/* =========================
   CONTACT FORM
========================= */

.contact-form {
  display: flex;

  flex-direction: column;

  gap: 18px;
}

.contact-form label {
  font-size: 11px;

  letter-spacing: 1px;

  text-transform: uppercase;

  color: #c9a45c;
}


/* INPUTS */

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;

  width: 100%;

  margin-top: 7px;

  background: #141414;

  border: 1px solid #39342b;

  color: white;

  padding: 14px;

  font: inherit;

  font-size: 13px;

  outline: none;

  border-radius: 0;
}


/* INPUT FOCUS */

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #c9a45c;
}


/* FORM MESSAGE */

.form-message {
  font-size: 12px;

  color: #c9a45c;
}


/* =========================
   FOOTER
========================= */

footer {
  padding: 35px 9%;

  border-top: 1px solid #302b24;

  text-align: center;

  color: #777;

  font-size: 11px;
}

footer img {
  width: 125px;

  max-height: 55px;

  object-fit: contain;

  margin: 0 auto 12px;
}


/* =========================
   ANIMATIONS
========================= */

.reveal {
  opacity: 0;

  transform: translateY(25px);

  transition:
    opacity 0.8s,
    transform 0.8s;
}

.reveal.visible {
  opacity: 1;

  transform: none;
}


/* =========================
   TABLET RESPONSIVE
========================= */

@media (max-width: 900px) {

  nav {
    gap: 16px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about,
  .contact {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project {
    height: 300px;
  }

  .image-panel {
    min-height: 350px;
  }

}


/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 650px) {

  .header {
    padding: 12px 5%;
  }


  /* MOBILE MENU BUTTON */

  .menu-toggle {
    display: block;
  }


  /* MOBILE NAV */

  nav {
    display: none;

    position: absolute;

    top: 88px;

    left: 0;
    right: 0;

    background: #111111;

    flex-direction: column;

    padding: 25px;
  }

  nav.open {
    display: flex;
  }


  /* MOBILE LOGO */

  .brand img {
    width: 120px;
  }


  /* MOBILE HERO */

  .hero {
    padding: 150px 7% 70px;
  }

  .hero h1 {
    font-size: 57px;
  }


  /* HERO BOTTOM */

  .hero-bottom {
    left: 7%;
    right: 7%;

    font-size: 8px;
  }

  .hero-bottom span {
    display: none;
  }


  /* SECTIONS */

  .section {
    padding: 75px 7%;
  }


  /* SERVICES */

  .service-grid {
    grid-template-columns: 1fr;
  }


  /* SECTION HEADING */

  .section-heading h2 {
    font-size: 52px;
  }


  /* CONTACT */

  .contact-copy h2 {
    font-size: 57px;
  }


  /* STATS */

  .stats {
    gap: 15px;
  }

}


/* =========================
   EXTRA MOBILE FIXES
========================= */

@media (max-width: 400px) {

  .hero h1 {
    font-size: 45px;
  }

  .contact-copy h2 {
    font-size: 45px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

}