/*
==========================================================================
Lauren Douglas Fitness — Global Stylesheet
==========================================================================
TABLE OF CONTENTS
  1. Base Reset (fonts are loaded in index.html <head>)
  2. Root / Globals
  3. Layout: Hero
  4. Layout: About
  5. Layout: Bike (Services + Contact)
  6. Components: Service Cards
  7. Components: Contact Row
  8. Components: Buttons (Hero CTA)
  9. Components: Scroll To Top
 10. Layout: Get In Touch
 11. Footer
 12. Responsive
==========================================================================
*/

/* 1. Base Reset */
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}

/* 2. Root / Globals */
:root {
  --brand: #9a6197;
  --brand-light: #ffbcbc;
  --ink: #3f3f3f;
  --ink-muted: #7f7f7f;
  --paper: #ffffff;
  --contact-bg: #1b1b1e;
  --footer-bg: #333333;
  --overhang: 2.7rem; /* how far the services block hangs over About (top) and Get In Touch (bottom) */
}
body {
  color: var(--ink);
  background: var(--paper);
}

/* 3. Layout: Hero */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* fits under the mobile browser toolbar where supported */
  background: url("images/Raise-Hero-4.jpg") no-repeat center top / cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.site-logo {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 299px;
  width: 100%;
  height: auto;
}
.hero h1 {
  font-family: "Lora", serif;
  font-weight: 400;
  color: #fff;
  line-height: 1.4;
  font-size: 70px;
  margin: 1em 0 1rem;
}

/* 4. Layout: About */
.about-section {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.text-col,
.image-col {
  flex: 1;
  min-width: 300px;
  min-height: 575px;
}
.image-col {
  background: url("images/about-2.jpg") no-repeat center / cover;
}
.text-col {
  background: #fff;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.text-col h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  text-align: center;
  line-height: 1.4em;
  margin: 0 0 0.5em;
  color: #ae8f65;
  font-size: 48px;
}
.text-col .sub-headline {
  font-family: Georgia, serif;
  font-weight: 400;
  text-align: center;
  line-height: 1.4em;
  color: var(--ink);
  font-size: 36px;
  margin: 0 0 0.5em;
}
.text-col p {
  font-family: "Open Sans", sans-serif;
  color: var(--ink-muted);
  line-height: 1.9;
  font-size: 1em;
  margin: 0 0 25px;
}

/* 5. Layout: Bike (Services + Contact) */
.bike-section {
  background: url("images/fitness_bike_bkg-1.jpg") no-repeat center top / cover;
  width: 100%;
}
.services-wrapper {
  position: relative;
  z-index: 1; /* sit on top of the sections it overlaps, above and below */
  padding-left: 10%;
  padding-right: 10%;
}
.services-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--overhang));
}

/* 6. Components: Service Cards */
.service-card {
  flex: 1 1 50%;
  padding: 4em 2em;
  background: var(--brand);
  color: #fff;
}
.service-card .sow-headline {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  text-align: left;
  color: var(--brand-light);
  line-height: 65px;
  font-size: 55px;
  margin: 0;
}
.service-card .sow-sub-headline {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  text-align: left;
  color: #fff;
  line-height: 24px;
  font-size: 24px;
  margin: 0 0 10px;
  padding: 0 0 25px;
}
.service-card p {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  margin: 0;
  padding-bottom: 25px;
  line-height: 1.9em;
  font-size: 0.9em;
  color: #fff;
}

/* 7. Components: Contact Row */
.contact-row {
  width: 100%;
  background: var(--contact-bg);
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.contact-item {
  flex: 1;
  max-width: 300px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 25px;
  color: inherit;
  text-decoration: none;
}
.contact-item svg {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}
.contact-item div {
  font-family: "Raleway", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}
a.contact-item:hover svg,
a.contact-item:hover div,
a.contact-item:focus-visible svg,
a.contact-item:focus-visible div {
  color: #fff;
}
a.contact-item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

/* 8. Components: Buttons (Hero CTA) */
.hero-btn {
  border-radius: 0;
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  font-size: 1em;
  padding: 1em 2em;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  font-family: "Raleway", sans-serif;
  font-weight: 400;
}

/* 9. Components: Scroll To Top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 9999;
}
.to-top:hover {
  filter: brightness(1.05);
}
.to-top.is-visible {
  opacity: 0.92;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
.to-top:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .to-top {
    transition: none;
  }
}

/* 10. Layout: Get In Touch */
.get-in-touch-section {
  background: #fff;
  /* pull up under the contact strip so it hangs over this section */
  margin-top: calc(-1 * var(--overhang));
  /* "Request a Consultation" lands just below the strip, not on its cut-off edge */
  scroll-margin-top: calc(-1 * var(--overhang));
}
.contact-columns {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.touch-text,
.touch-image {
  flex: 1;
  min-width: 300px;
  min-height: calc(575px + var(--overhang)); /* same visible height as before */
}
.touch-text {
  background: #fff;
  padding: calc(150px + var(--overhang)) 50px 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.touch-text h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #ae8f65;
  font-size: 48px;
  margin: 0 0 10px;
}
.touch-text .cta-subheadline {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.4;
  margin: 0 0 40px;
}
.cta-button {
  border-radius: 0.25em;
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  font-size: 1em;
  padding: 1em 2em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  text-decoration: none;
  font-family: "Raleway", sans-serif;
}
.touch-image {
  background: url("images/lauren_douglas-contact.jpg") no-repeat center / cover;
}

/* 11. Footer */
footer .secondary {
  font-family: "Raleway", sans-serif;
  padding: 20px 50px;
  text-align: center;
  color: #fff;
  background: var(--footer-bg);
  font-size: 0.9em;
}

/* 12. Responsive */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 56px;
  }
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 48px;
  }
  .services-wrapper {
    padding-left: 5%;
    padding-right: 5%;
  }
  .about-section {
    flex-direction: column;
  }
  .text-col {
    padding: 48px 24px;
  }
  .service-card {
    flex: 1 1 100%;
  }
  .contact-row {
    flex-direction: column;
  }
  .contact-item {
    max-width: none;
    width: 100%;
    margin: 0 0 30px 0;
  }
  .contact-columns {
    flex-direction: column;
  }
  .touch-text,
  .touch-image {
    width: 100%;
  }
  .touch-text {
    min-height: 0;
    padding: calc(72px + var(--overhang)) 24px 72px;
  }
}
/* Short screens (e.g. phones held sideways): put the logo in the normal flow
   so it can't sit on top of the headline */
@media (max-height: 560px) {
  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: 20px 20px 48px;
  }
  .site-logo {
    position: static;
    transform: none;
    max-width: 200px;
  }
  .hero h1 {
    margin-top: 0.4em;
  }
}
