@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  --blue: #576e93;
  --text: #666;
  --heading: #333;
  --grey: #efefef;
  --white: #fff;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 14px/1.7 "Open Sans", Arial, sans-serif;
}

h1, h2, h3, h4 { margin: 0; padding-bottom: 10px; color: var(--heading); line-height: 1.4; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.container { width: 80%; max-width: 1080px; margin: 0 auto; }

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .2s;
}
.btn:hover, .btn:focus-visible { opacity: .85; }
.btn-blue { background: var(--blue); color: var(--white); padding: .3em 1em; }
.btn-white { background: var(--white); color: var(--blue); padding: 20px; }

/* Hero */
.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px;
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(33, 11, 0, .55) 38%, rgba(33, 25, 21, 0) 100%),
    url("../img/hero.jpg") center / cover no-repeat;
}

.hero-cta {
  position: absolute;
  top: 0;
  right: 0;
  width: 33.333%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.hero-cta-box {
  width: 100%;
  padding: 26px 40px;
  text-align: center;
  background:
    url("../img/pierre-bleue.jpg") center / cover,
    radial-gradient(circle, rgba(0, 0, 0, .21) 0%, rgba(255, 255, 255, 0) 100%);
  background-blend-mode: overlay;
  background-color: #6e7a86;
}
.hero-cta-box h2 {
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  text-transform: uppercase;
  text-shadow: 0 .1em .1em rgba(0, 0, 0, .4);
  padding-bottom: 16px;
}

.hero-text { max-width: 1080px; }
.hero-text h1 {
  color: var(--white);
  font-size: 58px;
  font-weight: 800;
  text-transform: uppercase;
  max-width: 900px;
}
.hero-text p { max-width: 700px; font-size: 20px; line-height: 2; }

.mobile-actions { display: none; }

/* Services */
.services { padding: 0 0 54px; }
.services-intro {
  width: 66.666%;
  background: var(--grey);
  padding: 30px 50px;
}
.services-intro h4 { font-size: 16px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.services-intro h2 { font-size: 24px; font-weight: 800; line-height: 1.8; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px 5.5%;
  margin-top: 80px;
}
.service {
  padding: 24px 0 0 24px;
  background: url("../img/angle.png") left top no-repeat;
}
.service h3 { font-size: 16px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; line-height: 1.7; }
.service p { line-height: 2; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
}
.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-main { grid-row: span 2; }

/* Footer */
.footer { background: var(--blue); color: var(--white); padding: 60px 0 30px; }
.footer h2, .footer h4 { color: var(--white); }
.footer h4 { font-size: 16px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.footer h2 { font-size: 24px; font-weight: 800; line-height: 1.6; }
.footer a { text-decoration: none; }
.footer a:hover, .footer a:focus-visible { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-right { text-align: right; }
.copyright { margin-top: 40px; }

/* Tablet */
@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: 40px; padding-bottom: 40px; }
  .hero-cta { display: none; }
  .hero-text h1 { font-size: 44px; }
  .mobile-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .mobile-actions a {
    padding: 18px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    background: var(--blue);
  }
  .mobile-actions a + a { border-left: 1px solid rgba(255, 255, 255, .3); }
  .services-intro { width: 100%; }
  .services-grid { gap: 40px 5.5%; margin-top: 40px; }
}

/* Phone */
@media (max-width: 767px) {
  .container { width: auto; margin: 0 16px; }
  .hero { padding-top: 160px; }
  .hero-text h1 { font-size: 29px; }
  .hero-text p { font-size: 16px; }
  .services-intro { padding: 24px; }
  .services-intro h2 { font-size: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-main { grid-column: span 2; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
  .footer h2 { font-size: 20px; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
