/*
Theme Name: Briggs Brothers Lighting
Theme URI: https://example.com/bblighting
Author: Cameron Montesano
Description: Custom theme for Briggs Brothers Lighting - Holiday, Bistro, and Landscape lighting services in Phoenix, AZ.
Version: 1.0.0
Text Domain: bblighting
*/

html, body {
  min-height: 100vh;
  background-color: #0d0d0d;
}

body {
  margin: 0;
  padding: 0;
  color: #e5e5e5;
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

:root {
  --accent: #002754;
  --accent-hover: #002147;
  --accent-rgb: 0, 39, 84;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

.btn-accent {
  background-color: var(--accent) !important;
  color: #fff !important;
}

.btn-accent:hover {
  color: #fff !important;
  filter: brightness(1.08);
}

@media (min-width: 768px) {
  body {
    font-size: 18px;
  }

}

* {
  box-sizing: border-box;
}

.site-shell {
  background-color: #0d0d0d;
  padding-top: var(--nav-offset, 7rem);
}

body.admin-bar .site-shell {
  padding-top: calc(var(--nav-offset, 7rem) - 46px);
}

@media (min-width: 768px) {
  body.admin-bar .site-shell {
    padding-top: calc(var(--nav-offset, 7rem) - 32px);
  }
}

.btn-brighten {
  transition: filter 0.2s ease;
}

.btn-brighten:hover,
.btn-brighten:focus-visible {
  filter: brightness(1.08);
}

.blog-masonry {
  column-count: 1;
  column-gap: 1.5rem;
}

.blog-masonry__item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .blog-masonry {
    column-count: 2;
  }
}

.page-content .wp-block-gallery {
  position: relative;
  max-width: 80rem;
  margin: 2.5rem auto;
  height: 280px;
  background-color: #151515;
  overflow: hidden;
}


.page-content .wp-block-gallery:before,
.page-content .wp-block-gallery:after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.page-content .wp-block-gallery:before {
  left: 0;
  background: linear-gradient(to right, #151515, transparent);
}

.page-content .wp-block-gallery:after {
  right: 0;
  background: linear-gradient(to left, #151515, transparent);
}

.page-content .wp-block-gallery .marquee-row {
  display: flex;
  gap: 1.5rem;
  height: 260px;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.page-content .wp-block-gallery .marquee-row-1 {
  animation-name: marquee-left;
  animation-duration: 60s;
}

@keyframes marquee-left {
  0% {
    transform: translate(0);
  }
  100% {
    transform: translate(-50%);
  }
}

.page-content .wp-block-gallery .photo {
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
}

.page-content .wp-block-gallery .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(100%);
}

.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00000080;
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.gallery-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-modal.active .modal-content {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #000000b3;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  line-height: 40px;
  z-index: 10001;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 1;
}

.gallery-modal img {
  max-width: 85vw;
  max-height: 60vh;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  display: block;
}

@media (max-width: 768px) {
  .page-content .wp-block-gallery {
    overflow: visible;
    height: auto;
    margin: 2.5rem auto 0;
    padding: 0 20px;
  }

  .page-content .wp-block-gallery:before,
  .page-content .wp-block-gallery:after {
    display: none;
  }

  .page-content .wp-block-gallery .marquee-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: none;
    height: auto;
    max-width: 600px;
    margin: 0 auto;
    justify-content: center;
  }

  .page-content .wp-block-gallery .photo {
    width: calc(33.333% - 0.5rem);
    height: auto;
    aspect-ratio: 1;
  }

  .page-content .wp-block-gallery .photo:nth-child(n + 6) {
    display: none;
  }
}

iframe {
  margin: 2rem 0;
}

.page-content .wp-block-mytheme-google-maps-embed {
  display: flex;
  justify-content: center;
  width: 100%;
}

.page-content .wp-block-mytheme-google-maps-embed iframe {
  max-width: 100%;
  outline: 4px solid #0d0d0d;
  outline-offset: 0;
}

.page-content iframe.wp-block-mytheme-google-maps-embed {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  width: min(800px, 100%);
}

.page-content .wp-block-buttons {
  display: flex;
  justify-content: center;
}

.page-content .wp-block-button {
  display: inline-flex;
}

.page-content .wp-block-button__link {
  font-size: 0.95rem;
  padding: 0.65rem 1.6rem;
  color: #ffffff;
  font-weight: 700;
  transition: filter 0.2s ease;
}

.page-content .wp-block-button__link:hover,
.page-content .wp-block-button__link:focus {
  filter: brightness(1.08);
  color: #ffffff;
}

/* Review quote marks */
.review-quote {
  margin: 0;
  padding: 0;
  border: none;
}

.review-quote p:first-child::before {
  content: "\201C";
  font-style: normal;
}

.review-quote p:last-child::after {
  content: "\201D";
  font-style: normal;
}

/* Reviews carousel - pagination & cursor */
.reviews-splide .splide__track {
  cursor: grab;
}

.reviews-splide .splide__track:active {
  cursor: grabbing;
}

.reviews-splide .splide__pagination__page {
  background: #cbd5e1; /* slate-300 */
  opacity: 1;
}

.reviews-splide .splide__pagination__page.is-active {
  background: var(--accent, #2563eb);
  transform: scale(1.2);
}

.reviews-splide .splide__arrows .splide__arrow {
  background: #e2e8f0;
  opacity: 0.9;
}

.reviews-splide .splide__arrows .splide__arrow:hover {
  background: #cbd5e1;
  opacity: 1;
}

@media (max-width: 768px) {
  .reviews-splide .splide__arrows {
    display: none;
  }
}

.wpcf7 form {
  color: #0f172a;
}

.wpcf7 form label {
  color: #334155;
  font-weight: 600;
}

.wpcf7 form input[type="text"],
.wpcf7 form input[type="email"],
.wpcf7 form input[type="tel"],
.wpcf7 form textarea,
.wpcf7 form select {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.125rem;
  color: #0f172a;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
}

.wpcf7 form textarea {
  border-radius: 0.125rem;
  min-height: 150px;
  padding-top: 0.9rem;
}

.wpcf7 form p {
  margin-bottom: 1rem;
}

.wpcf7 form input[type="text"]::placeholder,
.wpcf7 form input[type="email"]::placeholder,
.wpcf7 form input[type="tel"]::placeholder,
.wpcf7 form textarea::placeholder {
  color: #94a3b8;
}

.wpcf7 form input[type="text"]:focus,
.wpcf7 form input[type="email"]:focus,
.wpcf7 form input[type="tel"]:focus,
.wpcf7 form textarea:focus,
.wpcf7 form select:focus {
  border-color: var(--accent, #3b82f6);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb, 59, 130, 246), 0.2);
  outline: none;
}

.wpcf7 form input[type="submit"],
.wpcf7 form button[type="submit"] {
  background-color: var(--accent, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-weight: 700;
  padding: 0.85rem 2.2rem;
  transition: filter 0.2s ease;
  display: block;
  margin: 1.5rem auto 0;
}

.wpcf7 form input[type="submit"]:hover,
.wpcf7 form button[type="submit"]:hover {
  filter: brightness(1.08);
}

.footer-contact .wpcf7 form {
  color: #0f172a;
}

.footer-contact .wpcf7 form label {
  color: #334155;
}

.footer-contact .wpcf7 form input[type="text"],
.footer-contact .wpcf7 form input[type="email"],
.footer-contact .wpcf7 form input[type="tel"],
.footer-contact .wpcf7 form textarea,
.footer-contact .wpcf7 form select {
  background-color: #ffffff;
  border: 1px solid #dbe3ee;
  color: #0f172a;
}

.footer-contact .wpcf7 form input[type="text"]::placeholder,
.footer-contact .wpcf7 form input[type="email"]::placeholder,
.footer-contact .wpcf7 form input[type="tel"]::placeholder,
.footer-contact .wpcf7 form textarea::placeholder {
  color: #94a3b8;
}

.footer-contact .wpcf7 form textarea {
  min-height: 130px;
}

.footer-contact .wpcf7-response-output,
.footer-contact .wpcf7-not-valid-tip {
  color: #0f172a;
}
