@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --primary: #ff4800;
  --secondary: #333;
  --white: #f1f1f1;
  --white-light: #ffffff;
  --black: #000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/** 
  * =======================================================================
  * BODY 
  * =======================================================================
  **/
body {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 100vh 1fr auto;
  grid-template-areas:
    "header" /* 100vh */
    "main" /* 1fr */
    "footer";
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--secondary);
  line-height: 1.6;
}

h1, h2, h3, figcaption, header div span {
  font-family: 'Playfair Display', Georgia, serif;
}

/** 
  * =======================================================================
  * HEADER 
  * =======================================================================
  **/
header {
  grid-area: header;
}
/** 
  * =======================================================================
  * HEADER SLOGAN + TITLE
  * =======================================================================
  **/
header div {
  height: 50vh;
  background-image: url(../../assets/images/city-night-view-g75b82b18a_1920.jpg);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 40px;
}
header div span {
  color: var(--white);
  background-color: var(--secondary);
  padding: 10px 25px;
  opacity: 0.8;
  font-size: calc(18px + 1vmin);
}
header div h1 {
  color: var(--primary);
  font-size: calc(38px + 2vmin);
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 2px var(--black);
}
/** 
  * =======================================================================
  * HEADER PRESENTATION
  * =======================================================================
  **/
header p {
  height: 50vh;
  background-color: var(--secondary);
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-shadow: 0 0 1px var(--secondary);
  border-top: 4px solid var(--primary);
  border-bottom: 4px solid var(--primary);
  font-size: calc(12px + 1vmin);
  letter-spacing: 1.8px;
  box-shadow: inset 0 0 50px var(--black);
}
/** 
  * =======================================================================
  * MAIN 
  * =======================================================================
  **/
main {
  grid-area: main;
  background-color: var(--white);
}
/** 
  * =======================================================================
  * MAIN ACTIVITY
  * =======================================================================
  **/
main section.activity .card {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}
main section.activity .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
main section.activity .card img {
  width: 100%;
  background-size: cover;
  filter: sepia(20%);
  height: 350px;
  transition: filter 0.4s ease;
}
main section.activity .card:hover img {
  filter: sepia(0%);
}
main section.activity .card div {
  padding: 50px;
}
main section.activity .card div h2 {
  color: var(--primary);
  font-size: calc(36px + 1vmin);
  margin-bottom: 25px;
}
main section.activity .card div p {
  margin-bottom: 10px;
}
main section.activity .card div .btn {
  display: inline-flex;
  align-items: center;
  border-radius: 24px;
  padding: 10px 22px;
  background-color: var(--primary);
  color: var(--white-light);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.8px;
  outline: none;
  border: none;
  cursor: pointer;
  margin-top: 25px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
main section.activity .card div .btn:hover {
  background-color: #e03f00;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 72, 0, 0.3);
}
/** 
  * =======================================================================
  * MAIN GALLERY 
  * =======================================================================
  **/
main section:last-child {
  background-color: var(--white-light);
  padding: 100px 50px 25px;
}
main section:last-child h2 {
  font-size: calc(28px + 2vmin);
  text-align: center;
  margin-bottom: 25px;
}
main section:last-child p {
  letter-spacing: 1.8px;
  width: 90%;
  margin: 25px auto;
}
main section:last-child .gallery {
  padding: 50px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  row-gap: 25px;
}
main section:last-child .gallery figure {
  height: 350px;
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
main section:last-child .gallery figure:hover {
  transform: translateY(-8px);
}
main section:last-child .gallery figure img {
  width: 100%;
  height: 300px;
  background-size: cover;
  border: 6px solid var(--secondary);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
main section:last-child .gallery figure:hover img {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
main section:last-child .gallery figure figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  font-size: 20px;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 700;
  color: var(--secondary);
  transition: color 0.3s ease;
}
main section:last-child .gallery figure:hover figcaption {
  color: var(--primary);
}

/** 
  * =======================================================================
  * FOOTER 
  * =======================================================================
  **/
footer {
  grid-area: footer;
  width: 100%;
}
footer .emergency {
  background-color: var(--primary);
  height: 350px;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
footer .emergency h3 {
  font-size: 28px;
  align-self: center;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  text-transform: uppercase;
}
footer .emergency ul {
  border-top: 3px solid rgba(255,255,255,0.4);
  padding-top: 25px;
  padding-left: 20px;
  color: var(--white);
  font-size: 18px;
  list-style-type: square;
}
footer .emergency ul li {
  margin-bottom: 8px;
}
footer .nav {
  background-color: var(--secondary);
  padding: 30px;
  height: auto;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  row-gap: 20px;
}
footer .nav nav {
  width: 100%;
}
footer .nav nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: var(--white);
  font-size: 18px;
  list-style: none;
}
.footer-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: var(--primary);
}
.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 15px;
}
.social-icons a {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-icons a:hover {
  transform: scale(1.2);
}
.social-icons img {
  height: 36px;
  margin: 0;
}

/** 
  * =======================================================================
  * TABLETTE 
  * =======================================================================
  **/
@media (min-width: 577px) {
  /** 
  * =======================================================================
  * BODY 
  * =======================================================================
  **/
  body {
    grid-template-rows: 100vh 1fr auto;
  }

  /** 
    * =======================================================================
    * HEADER 
    * =======================================================================
    **/
  header div {
    height: 60vh;
    row-gap: 40px;
  }
  header div span {
    padding: 12px 27px;
    font-size: calc(20px + 1vmin);
  }
  header div h1 {
    font-size: calc(48px + 2vmin);
  }
  header p {
    height: 40vh;
    padding: 40px;
  }
  /** 
    * =======================================================================
    * MAIN ACTIVITY
    * =======================================================================
    **/
  main section.activity .card {
    display: flex;
    flex-direction: row;
  }
  main section.activity .card img {
    width: 50vw;
    height: 450px;
  }
  main section.activity .card div {
    width: 50vw;
    padding: 50px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  main section.activity .card div h2 {
    color: var(--primary);
    font-size: calc(28px + 1vmin);
    margin-bottom: 25px;
  }
  main section.activity .card div p {
    margin-bottom: 10px;
  }
  main section.activity .card div .btn {
    display: inline-flex;
    align-items: center;
    border-radius: 24px;
    padding: 10px 22px;
    background-color: var(--primary);
    color: var(--white-light);
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    margin-top: 25px;
  }
  main section.activity .card:nth-child(even) {
    display: flex;
    flex-direction: row-reverse;
  }
  /** 
  * =======================================================================
  * MAIN GALLERY 
  * =======================================================================
  **/
  main section:last-child h2 {
    font-size: calc(32px + 2vmin);
  }
  main section:last-child .gallery {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    row-gap: 25px;
    column-gap: 25px;
  }

  /** 
  * =======================================================================
  * FOOTER 
  * =======================================================================
  **/
  footer .emergency h3 {
    font-size: 32px;
  }
}

/** 
  * =======================================================================
  * DESKTOP
  * =======================================================================
  **/
@media (min-width: 777px) {
  /** 
  * =======================================================================
  * BODY 
  * =======================================================================
  **/
  body {
    grid-template-rows: 100vh 1fr auto;
  }

  /** 
    * =======================================================================
    * HEADER 
    * =======================================================================
    **/
  header div {
    height: 70vh;
    row-gap: 50px;
  }
  header div span {
    padding: 14px 29px;
    font-size: calc(22px + 1vmin);
  }
  header div h1 {
    font-size: calc(56px + 2vmin);
  }
  header p {
    height: 30vh;
    padding: 40px;
  }
  /** 
  * =======================================================================
  * MAIN GALLERY 
  * =======================================================================
  **/
  main section:last-child h2 {
    font-size: calc(38px + 2vmin);
  }
  main section:last-child .gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  main section:last-child .gallery figure {
    height: 300px;
  }
  main section:last-child .gallery figure img {
    width: 100%;
    height: 250px;
  }
  /** 
  * =======================================================================
  * FOOTER 
  * =======================================================================
  **/
  footer .emergency h3 {
    font-size: 44px;
  }
  footer .nav {
    height: 100px;
    display: flex;
    flex-direction: row;
  }
  footer .nav nav {
    width: 50%;
  }
}

/** 
  * =======================================================================
  * DESKTOP XL
  * =======================================================================
  **/
@media (min-width: 997px) {
  /** 
  * =======================================================================
  * BODY 
  * =======================================================================
  **/
  body {
    grid-template-rows: 100vh 1fr auto;
    background-color: var(--secondary);
  }

  /** 
    * =======================================================================
    * HEADER 
    * =======================================================================
    **/
  header {
    max-width: 1200px;
    margin: 0 auto;
  }
  header div {
    height: 70vh;
  }
  header div span {
    padding: 16px 32px;
    font-size: calc(24px + 1vmin);
  }
  header div h1 {
    font-size: calc(69px + 2vmin);
  }
  header p {
    height: 30vh;
    padding: 40px 50px;
  }
  /** 
  * =======================================================================
  * MAIN 
  * =======================================================================
  **/
  main {
    max-width: 1200px;
    margin: 0 auto;
  }
  /** 
    * =======================================================================
    * MAIN ACTIVITY
    * =======================================================================
    **/
  main section.activity .card img {
    width: 50%;
    height: 500px;
  }
  main section.activity .card div {
    width: 50%;
    padding: 60px;
    height: 500px;
  }
  main section.activity .card div h2 {
    font-size: calc(32px + 1vmin);
  }
  main section.activity .card div .btn {
    padding: 12px 18px;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 0 1.5px var(--black);
  }
  /** 
  * =======================================================================
  * MAIN GALLERY 
  * =======================================================================
  **/
  main section:last-child h2 {
    font-size: calc(46px + 2vmin);
  }
  main section:last-child .gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  main section:last-child .gallery figure {
    height: 250px;
  }
  main section:last-child .gallery figure img {
    height: 200px;
  }
  /** 
  * =======================================================================
  * FOOTER 
  * =======================================================================
  **/
  footer {
    max-width: 1200px;
    margin: 0 auto;
  }
}
