/* ============================================================
   SHARED VARS
   ============================================================ */
:root {
  --ol-blue: #1d4ed8;
  --ol-blue-dk: #1e40af;
  --ol-red: #dc2626;
  --ol-red-dk: #b91c1c;
  --ol-t: 150ms ease;
  --ol-t-slow: 300ms ease;
}

/* ============================================================
   HERO
   ============================================================ */
.ol-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
}

.ol-hero__bg {
  position: absolute;
  inset: 0;
}
.ol-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ol-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgb(17 24 39 / 0.7),
    rgb(17 24 39 / 0.5),
    rgb(17 24 39 / 0.7)
  );
}

.ol-hero__inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: center;
}
@media (min-width: 640px) {
  .ol-hero__inner {
    padding-inline: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .ol-hero__inner {
    padding-inline: 2rem;
  }
}

.ol-hero__content {
  max-width: 56rem;
  margin-inline: auto;
}

.ol-hero__badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: rgb(255 255 255 / 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.9);
}

.ol-hero__heading {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .ol-hero__heading {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) {
  .ol-hero__heading {
    font-size: 3.75rem;
  }
}

.ol-hero__subheading {
  font-size: 1.125rem;
  color: rgb(255 255 255 / 0.9);
  line-height: 1.625;
  margin-bottom: 2.5rem;
  max-width: 48rem;
  margin-inline: auto;
}
@media (min-width: 640px) {
  .ol-hero__subheading {
    font-size: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .ol-hero__subheading {
    font-size: 1.5rem;
  }
}

.ol-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
@media (min-width: 640px) {
  .ol-hero__actions {
    flex-direction: row;
  }
}

.ol-hero__btn {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition:
    background-color var(--ol-t),
    color var(--ol-t),
    box-shadow var(--ol-t),
    transform var(--ol-t);
}
.ol-hero__btn:hover {
  transform: translateY(-2px);
}

.ol-hero__btn--red {
  background-color: var(--ol-red);
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
}
.ol-hero__btn--red:hover {
  background-color: var(--ol-red-dk);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.3);
}
.ol-hero__btn--outline {
  background-color: rgb(255 255 255 / 0.1);
  backdrop-filter: blur(4px);
  border: 2px solid #ffffff;
  color: #ffffff;
}
.ol-hero__btn--outline:hover {
  background-color: #ffffff;
  color: #111827;
}

.ol-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: ol-bounce 1s infinite;
}
@keyframes ol-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}
.ol-hero__scroll-mouse {
  width: 24px;
  height: 40px;
  border-radius: 9999px;
  border: 2px solid rgb(255 255 255 / 0.3);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px;
}
.ol-hero__scroll-dot {
  width: 4px;
  height: 8px;
  background-color: rgb(255 255 255 / 0.6);
  border-radius: 9999px;
}

/* ============================================================
   SHARED SECTION STYLES (feature rows)
   ============================================================ */
.ol-pergolas,
.ol-screen,
.ol-patio-roof {
  padding-block: 3rem 4rem;
}
.ol-pergolas {
  background-color: #eff6ff;
  border-top: 4px solid var(--ol-blue);
}
.ol-screen {
  background-color: #ffffff;
}
.ol-patio-roof {
  background-color: #f9fafb;
}

.ol-pergolas__container,
.ol-screen__container,
.ol-patio-roof__container {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .ol-pergolas__container,
  .ol-screen__container,
  .ol-patio-roof__container {
    padding-inline: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .ol-pergolas__container,
  .ol-screen__container,
  .ol-patio-roof__container {
    padding-inline: 2rem;
  }
}

/* Grids */
.ol-pergolas__grid,
.ol-screen__grid,
.ol-patio-roof__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .ol-pergolas__grid,
  .ol-screen__grid,
  .ol-patio-roof__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Patio roof reverses on desktop */
.ol-patio-roof__img-wrap {
  order: 2;
}
.ol-patio-roof__content {
  order: 1;
}
@media (min-width: 1024px) {
  .ol-patio-roof__img-wrap {
    order: 1;
  }
  .ol-patio-roof__content {
    order: 2;
  }
}

/* ============================================================
   PERGOLAS SPECIFIC
   ============================================================ */
.ol-pergolas__badge {
  display: inline-block;
  background-color: var(--ol-red);
  color: #ffffff;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.ol-pergolas__heading {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}
@media (min-width: 1024px) {
  .ol-pergolas__heading {
    font-size: 2.25rem;
  }
}

.ol-pergolas__tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ol-blue);
  margin-bottom: 1.5rem;
}

.ol-pergolas__body {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  font-size: 1.0625rem;
  color: #374151;
  line-height: 1.625;
}
.ol-pergolas__body-bold {
  font-weight: 600;
  color: #111827;
}

.ol-pergolas__btn {
  margin-top: 1.5rem;
  display: inline-block;
  background-color: var(--ol-blue);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  transition: background-color var(--ol-t);
}
.ol-pergolas__btn:hover {
  background-color: var(--ol-blue-dk);
}

/* ============================================================
   SHARED FEATURE ROW: content + image
   ============================================================ */
.ol-screen__heading,
.ol-patio-roof__heading {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}
@media (min-width: 1024px) {
  .ol-screen__heading,
  .ol-patio-roof__heading {
    font-size: 2.25rem;
  }
}

.ol-screen__desc,
.ol-patio-roof__desc {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

.ol-screen__list,
.ol-patio-roof__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ol-screen__item,
.ol-patio-roof__item {
  display: flex;
  align-items: flex-start;
  font-size: 1rem;
  color: #374151;
}

.ol-screen__bullet,
.ol-patio-roof__bullet {
  color: var(--ol-red);
  margin-right: 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.ol-screen__btn,
.ol-patio-roof__btn {
  display: inline-block;
  background-color: var(--ol-blue);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  transition: background-color var(--ol-t);
}
.ol-screen__btn:hover,
.ol-patio-roof__btn:hover {
  background-color: var(--ol-blue-dk);
}

/* Image wraps */
.ol-pergolas__img-wrap,
.ol-screen__img-wrap,
.ol-patio-roof__img-wrap {
  position: relative;
  height: 300px;
}
@media (min-width: 1024px) {
  .ol-pergolas__img-wrap,
  .ol-screen__img-wrap,
  .ol-patio-roof__img-wrap {
    height: 400px;
  }
}

.ol-pergolas__img,
.ol-screen__img,
.ol-patio-roof__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
  display: block;
}

/* ============================================================
   COMPLETE SECTION
   ============================================================ */
.ol-complete {
  padding-block: 3rem 4rem;
  background-color: #ffffff;
}

.ol-complete__container {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .ol-complete__container {
    padding-inline: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .ol-complete__container {
    padding-inline: 2rem;
  }
}

.ol-complete__header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
}
.ol-complete__heading {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}
@media (min-width: 1024px) {
  .ol-complete__heading {
    font-size: 2.25rem;
  }
}
.ol-complete__subheading {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.625;
}

.ol-complete__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .ol-complete__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ol-complete__card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08);
  transition:
    box-shadow var(--ol-t-slow),
    transform var(--ol-t-slow);
}
.ol-complete__card:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
  transform: translateY(-4px);
}
.ol-complete__card:hover .ol-complete__card-img {
  transform: scale(1.05);
}

.ol-complete__card-media {
  position: relative;
  height: 192px;
  overflow: hidden;
}
.ol-complete__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}

.ol-complete__card-body {
  padding: 1.5rem;
}
.ol-complete__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}
.ol-complete__card-desc {
  font-size: 1rem;
  color: #374151;
  line-height: 1.625;
  margin-bottom: 1rem;
}

.ol-complete__card-link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ol-blue);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color var(--ol-t);
}
.ol-complete__card-link:hover {
  color: var(--ol-blue-dk);
}

/* ============================================================
   FAQ
   ============================================================ */
.ol-faq {
  padding-block: 4rem 6rem;
  background-color: #ffffff;
}

.ol-faq__container {
  max-width: 56rem;
  margin: 0 auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .ol-faq__container {
    padding-inline: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .ol-faq__container {
    padding-inline: 2rem;
  }
}

.ol-faq__header {
  text-align: center;
  margin-bottom: 3rem;
}
.ol-faq__eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ol-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.ol-faq__heading {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}
@media (min-width: 1024px) {
  .ol-faq__heading {
    font-size: 2.25rem;
  }
}
.ol-faq__subheading {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.625;
  max-width: 48rem;
  margin-inline: auto;
}

/* Filters */
.ol-faq__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.ol-faq__filter {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  background-color: #f3f4f6;
  color: #374151;
  transition:
    background-color var(--ol-t),
    color var(--ol-t);
}
.ol-faq__filter:hover {
  background-color: #e5e7eb;
}
.ol-faq__filter--active {
  background-color: var(--ol-blue);
  color: #ffffff;
}

/* List */
.ol-faq__list {
  border-top: 1px solid #e5e7eb;
}

.ol-faq__item {
  border-bottom: 1px solid #e5e7eb;
}
.ol-faq__item--hidden {
  display: none;
}

.ol-faq__trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.ol-faq__question {
  font-weight: 600;
  color: #111827;
  flex: 1;
  padding-right: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  transition: color var(--ol-t);
}

.ol-faq__icon-wrap {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ol-blue);
  transition:
    transform var(--ol-t),
    border-color var(--ol-t);
}
.ol-faq__item--open .ol-faq__icon-wrap {
  transform: rotate(45deg);
  border-color: var(--ol-blue);
}
.ol-faq__icon {
  width: 16px;
  height: 16px;
}

.ol-faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 300ms ease;
}
.ol-faq__item--open .ol-faq__answer {
  max-height: 1000px;
}

.ol-faq__answer-inner {
  padding-bottom: 1.25rem;
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.625;
}
.ol-faq__answer-inner p {
  margin-bottom: 0.75rem;
}
.ol-faq__answer-inner p:last-child {
  margin-bottom: 0;
}
.ol-faq__answer-inner ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ol-faq__answer-inner li {
  list-style: disc;
}
.ol-faq__answer-inner strong {
  color: #111827;
  font-weight: 600;
}

/* CTA card */
.ol-faq__cta-card {
  margin-top: 3rem;
  background: linear-gradient(
    to bottom right,
    var(--ol-blue),
    var(--ol-blue-dk)
  );
  border-radius: 0.75rem;
  padding: 2rem 2.5rem;
  color: #ffffff;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .ol-faq__cta-card {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}
.ol-faq__cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.ol-faq__cta-desc {
  color: #bfdbfe;
  font-size: 1rem;
}
.ol-faq__cta-btn {
  flex-shrink: 0;
  background-color: var(--ol-red);
  color: #ffffff;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
  transition:
    background-color var(--ol-t),
    transform var(--ol-t);
}
.ol-faq__cta-btn:hover {
  background-color: var(--ol-red-dk);
  transform: translateY(-2px);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.ol-final-cta {
  padding-block: 4rem 5rem;
  background-color: var(--ol-red);
  color: #ffffff;
  text-align: center;
}

.ol-final-cta__container {
  max-width: 56rem;
  margin: 0 auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .ol-final-cta__container {
    padding-inline: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .ol-final-cta__container {
    padding-inline: 2rem;
  }
}

.ol-final-cta__heading {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .ol-final-cta__heading {
    font-size: 3rem;
  }
}

.ol-final-cta__subheading {
  font-size: 1.25rem;
  color: #fecaca;
  line-height: 1.625;
  max-width: 48rem;
  margin: 0 auto 2rem;
}
@media (min-width: 1024px) {
  .ol-final-cta__subheading {
    font-size: 1.5rem;
  }
}

.ol-final-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
@media (min-width: 640px) {
  .ol-final-cta__actions {
    flex-direction: row;
  }
}

.ol-final-cta__btn {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.25rem;
  cursor: pointer;
  transition:
    background-color var(--ol-t),
    color var(--ol-t),
    transform var(--ol-t);
}
.ol-final-cta__btn:hover {
  transform: translateY(-2px);
}

.ol-final-cta__btn--white {
  background-color: #ffffff;
  color: var(--ol-red);
  border: none;
}
.ol-final-cta__btn--white:hover {
  background-color: #f3f4f6;
}

.ol-final-cta__btn--outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}
.ol-final-cta__btn--outline:hover {
  background-color: #ffffff;
  color: var(--ol-red);
}
