/* The Williamsburg Cat Sitter — static rebuild of the original Divi design */

:root {
  --pink: #fbdcdc;
  --salmon: #f98181;
  --navy: #34495e;
  --gray: #95a5a6;
  --charcoal: #333;
  --light: #fafafa;
  --sans: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
  --serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --script: 'Dancing Script', cursive;
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--gray);
  font: 500 15px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: bottom; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  padding-bottom: 10px;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1em;
}

p { margin: 0; padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }

ul { margin: 0; padding: 0 0 23px 1em; line-height: 26px; list-style: disc; }

strong { font-weight: 700; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: var(--pink);
  transition: background-color .4s ease-in-out, height .4s ease-in-out;
}

.header-inner {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: height .4s ease-in-out;
}

.logo img {
  display: block;
  width: 135px;
  margin-top: 6px;
  transition: width .4s ease-in-out;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li { padding-right: 22px; }
.main-nav li:last-child { padding-right: 0; }

.main-nav a {
  display: block;
  padding: 33px 0 17px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  transition: opacity .4s ease-in-out, padding .4s ease-in-out, color .4s;
}

.main-nav a:hover { opacity: .7; }
.main-nav a.is-current { color: var(--gray); }

.menu-toggle {
  display: none;
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--salmon);
  cursor: pointer;
}

/* Shrunk header after scrolling */
.site-header.is-scrolled { background: rgba(255, 255, 255, .8); }
.site-header.is-scrolled .header-inner { height: 48px; }
.site-header.is-scrolled .logo img { width: 80px; }
.site-header.is-scrolled .main-nav a { padding: 17px 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  border-radius: 3px;
  background: var(--pink);
  color: var(--navy);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  transition: background-color .3s, padding .3s;
}

.btn:hover { background: #f5c9c9; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
  overflow: hidden;
  background: var(--salmon);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 133%;
  background-size: cover;
  background-position: top right;
  will-change: transform;
}

.hero-container {
  position: relative;
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 50px 0;
}

.hero-content {
  max-width: 40%;
  text-shadow: .08em .08em 0 #333;
}

.hero h1 {
  color: #fff;
  font-size: 50px;
  text-shadow: 0 .08em 0 rgba(0, 0, 0, .4);
}

.hero-subhead {
  display: block;
  padding-bottom: 20px;
  color: var(--pink);
  font-size: 21px;
  font-weight: 300;
  line-height: 1.2;
  text-shadow: 0 .08em 2em var(--pink);
}

.hero .btn { text-shadow: none; }

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  color: #fff;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Sections and grid ---------- */

.section {
  position: relative;
  padding: 4% 0;
  background-color: #fff;
  background-repeat: no-repeat;
  background-size: contain;
}

.section.pink { background-color: var(--pink); }
.section.light { background-color: var(--light); }
.section.bg-left { background-image: var(--bg); background-position: center left; }
.section.bg-right { background-image: var(--bg); background-position: center right; }

.section { scroll-margin-top: 48px; }

.row {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2% 0;
}

.row-wide { max-width: 1280px; }
.row-xwide { width: 94%; max-width: 94%; }

.row[class*="cols-"] {
  display: grid;
  column-gap: 5.5%;
}

.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-1-3-1 { grid-template-columns: 1fr 3fr 1fr; }
.cols-footer { grid-template-columns: 1fr 1fr 2fr; }

.text, .image, .divider, .blurb { margin-bottom: 2.75%; }
.col > :last-child { margin-bottom: 0; }

.center { text-align: center; }
.image { text-align: center; }
.divider { text-align: center; }
.divider.left { text-align: left; }

/* ---------- Typography by section ---------- */

.section h2 { font-size: 50px; color: var(--gray); }
.section h2.white { color: #fff; }
.section h2.dark { color: var(--navy); }
.section h2.charcoal { color: var(--charcoal); }
.section h2.script { font-family: var(--script); }

.intro h1 { font-size: 50px; color: var(--navy); }

.text.dark { color: var(--navy); }

.highlight {
  font-family: var(--script);
  font-size: 2em;
  font-weight: 400;
}

p.large { font-size: large; }

/* ---------- Services ---------- */

.box { border-bottom: 1px dashed #efefef; }

.blurb { text-align: center; }

.blurb-icon {
  display: block;
  width: 200px;
  margin: 0 auto 30px;
}

.blurb-title {
  font-family: var(--script) !important;
  font-size: 45px !important;
  color: var(--gray);
}

.price {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 20px;
}

.divider-small { display: block; margin: 0 auto; }

ul.desc-service {
  margin-top: 20px;
  text-align: left;
}

.hours { text-align: center; }

.hours h3 {
  font-size: 40px;
  color: var(--gray);
}

.hours ul {
  text-align: left;
  color: var(--gray);
  font-size: large;
}

/* ---------- Area ---------- */

.map { margin-top: 40px; }

/* ---------- Testimonials slider ---------- */

.slider {
  position: relative;
  overflow: hidden;
  border: 1px dotted var(--light);
  border-bottom-style: dashed;
  background: rgba(251, 220, 220, .58);
  color: var(--navy);
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
}

.slides { display: grid; }

.slide {
  grid-area: 1 / 1;
  padding: 16% 8%;
  font-size: 12px;
  line-height: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease-in-out, visibility .5s;
  align-self: center;
}

.slide.is-active { opacity: 1; visibility: visible; }

.slide p { font-size: 20px; line-height: 2em; }

.slide p.txt-testimonial { padding-bottom: 20px; }

.slide .name-testimonial { color: #fff; }

.caption {
  width: 310px;
  max-width: 100%;
  margin: 0 auto 20px;
}

.caption img { width: 300px; }

.caption figcaption {
  padding-top: 6px;
  font-size: 12px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  margin-top: -24px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: all .2s ease-in-out;
}

.slider-arrow.prev { left: -22px; }
.slider-arrow.next { right: -22px; }

.slider:hover .slider-arrow { opacity: 1; }
.slider:hover .slider-arrow.prev { left: 22px; }
.slider:hover .slider-arrow.next { right: 22px; }

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slider-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
}

.slider-dots button.is-active { background: #fff; }

/* ---------- Contact ---------- */

.policies { font-size: 43px !important; color: var(--navy) !important; }

.section h4 {
  font-size: 28px;
  line-height: 2em;
  color: var(--navy);
}

#contact .text p { font-size: medium; }

.button-wrap { text-align: center; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 4% 0;
  background: var(--navy);
  color: var(--pink);
}

.site-footer .row { align-items: start; }

.footer-links { text-align: center; }
.footer-links a { color: var(--pink); }
.footer-links a:hover { color: #fff; }

.social {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  transition: background-color .3s ease-in-out;
}

.social a:hover { background: var(--gray); }

/* ---------- Scroll animations (Divi equivalents) ---------- */

.js [data-anim] {
  opacity: 0;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: both;
}

.js [data-anim].is-visible { animation-name: anim-in; }

.js [data-anim="slideLeft"] { transform: translate3d(-100%, 0, 0); }
.js [data-anim="slideRight"] { transform: translate3d(100%, 0, 0); }
.js [data-anim="slideBottom"] { transform: translate3d(0, 100%, 0); }

@keyframes anim-in {
  to { opacity: 1; transform: none; }
}

/* Keep off-screen slide starts from widening the page */
main { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-anim] { opacity: 1; transform: none; animation: none !important; }
  .scroll-down { animation: none; }
}

/* ---------- Large screens ---------- */

@media (min-width: 1350px) {
  .section { padding: 54px 0; }
  .row { padding: 27px 0; }
}

/* ---------- Tablet ---------- */

@media (max-width: 980px) {
  :root { --header-h: 80px; }

  .site-header.is-scrolled .header-inner { height: var(--header-h); }

  .logo img, .site-header.is-scrolled .logo img { width: 70px; margin-top: 5px; }

  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 10%;
    right: 10%;
    padding: 5% 5% 0;
    border-top: 3px solid var(--salmon);
    background: var(--pink);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    display: none;
  }

  .main-nav.is-open { display: block; }

  .main-nav ul { display: block; }
  .main-nav li { padding: 0; }

  .main-nav a,
  .site-header.is-scrolled .main-nav a {
    padding: 10px 5%;
    border-bottom: 1px solid rgba(0, 0, 0, .03);
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
  }

  .hero h1 { font-size: 40px; }
  .hero-content { max-width: 60%; }
  /* Parallax is off on touch-size screens, as in Divi, so the photo isn't oversized */
  .hero-bg { height: 100%; transform: none !important; }

  .section { padding: 50px 0; scroll-margin-top: var(--header-h); }

  .section h2 { font-size: 40px; }

  .row[class*="cols-"] { display: block; }
  .row[class*="cols-"] > .col { margin-bottom: 30px; }
  .row[class*="cols-"] > .col:last-child { margin-bottom: 0; }
  .row[class*="cols-"] > .col:empty { display: none; }

  .row-xwide { width: 80%; max-width: 80%; }

  .divider.left { text-align: center; }

  .hours h3 { font-size: 30px; }

  .cols-footer { text-align: center; }
}

/* ---------- Phone ---------- */

@media (max-width: 767px) {
  .hero h1 { font-size: 35px; }

  .hero-content {
    max-width: none;
    padding: 40px 35px;
    background: rgba(0, 0, 0, .2);
  }

  .hero-content > :not(.btn) { max-width: 80%; }

  .slide { padding: 50px 8% 60px; }
  .slide p { font-size: 16px; line-height: 1.8em; }

  .slider-arrow { opacity: 1; }
  .slider-arrow.prev { left: 0; }
  .slider-arrow.next { right: 0; }
}

@media (max-width: 479px) {
  .hero .btn { display: inline-flex; }
}
