/* CSS Variables */
:root {
  --brand-black: #1a1a1a;
  --white: #ffffff;
  --brand-green: #d1ff75;
  --text-dark: #333333;
  --text-mid: #666666;
  --text-light: #999999;
  --light-gray: #f4f4f4;

  --container-width: 1200px;
  --radius-medium: 6px;

  --font-extrabold: 800;
  --font-semibold: 600;
  --font-medium: 500;

  --transition-fast: all 0.2s ease;
}

/* Global Resets and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Switzer", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Page Hero Section */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 600px;
  height: auto;
  padding: 2rem 1rem;
  background-color: var(--brand-black);
  overflow: hidden;
  margin-bottom: 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.9;
  filter: brightness(1) contrast(1);
  z-index: 1;
  animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.9;
  }
}
.webp .page-hero::before {
  background-image: url("/images/before-after/storage-unit-before.webp");
}

.no-webp .page-hero::before {
  background-image: url("/images/before-after/storage-unit-before.png");
}

.page-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 2;
}

.page-hero__container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 0 1rem;
  height: 100%;
  margin-bottom: 6rem;
}

.page-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  text-align: center;
  gap: 0.75rem;
  width: 100%;
}

.page-hero__content h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: var(--font-extrabold);
  color: var(--white);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

.page-hero__subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: white;
  max-width: 700px;
  margin: 0;
  line-height: 1.6;
  opacity: 0.9;
}

.hero-hook {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: var(--font-semibold);
  color: var(--brand-green);
  background: rgba(209, 255, 117, 0.15);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-medium);
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Hero Bottom CTA */
.hero-bottom-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: fit-content;
  background-color: rgba(26, 26, 26, 0.8);
  padding: 2.5rem 0;
  z-index: 10;
}

.hero-bottom-cta__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.hero-bottom-cta__input-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.hero-bottom-cta__location-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.hero-bottom-cta__input {
  width: 100%;
  height: 50px;
  padding: 0 0.75rem 0 2.25rem;
  font-size: 0.95rem;
  background-color: var(--white);
  border: none;
  border-radius: var(--radius-medium);
}
.hero-bottom-cta p {
  color: rgb(205, 205, 205);
}
.hero-bottom-cta__button {
  height: 50px;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  font-weight: var(--font-semibold);
  color: var(--text-dark);
  background-color: var(--brand-green);
  border: none;
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: "Switzer", sans-serif;
  white-space: nowrap;
  box-shadow: 3px 3px 0px 0px #8cb340;
  margin-right: 16px;
}

.hero-bottom-cta__button:hover {
  transform: translateY(-2px) translateX(-2px);
  box-shadow: 4px 4px 0px 0px #8cb340;
}

.hero-bottom-cta__button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: 3px 3px 0px 0px #8cb340;
}

/* Items Section */
.items-section {
  padding: 2rem 1rem 4rem;
  background-color: var(--white);
}

.section-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Accordion Styles */
.items-accordion {
  max-width: 1000px;
  width: 100%;
  margin: auto;
}

.accordion-item {
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 0.5rem;
}

.accordion-header {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accordion-icon {
  margin-right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background-color: var(--light-gray);
  border-radius: 50%;
}

.accordion-icon svg {
  stroke: var(--text-dark);
  width: 32px;
  height: 32px;
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: var(--font-semibold);
  color: var(--text-dark);
  flex-grow: 1;
}

.accordion-arrow {
  transition: transform 0.3s ease;
}

.accordion-arrow svg {
  stroke: var(--text-mid);
  width: 28px;
  height: 28px;
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
  width: 100%;
}

.accordion-item.active .accordion-content {
  max-height: 1200px;
  padding-bottom: 2rem;
}

/* List Styles */
.simple-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1rem;
  margin: 0;
  list-style: none;
}

.simple-list > li {
  font-size: 1.3rem;
  font-weight: var(--font-semibold);
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
}

.subcategory-list {
  margin-top: 0.5rem;
  list-style: none;
  padding: 0;
}

.subcategory-list li {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

/* Hazardous Materials Styling */
.hazardous-warning {
  background-color: #fff3f3;
  border-left: 4px solid #e53e3e;
  padding: 1rem;
  margin: 1rem 0;
}

.hazardous-warning p {
  color: var(--text-dark);
  font-size: 1rem;
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .simple-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 500px;
    padding: 1rem;
  }

  .page-hero__content {
    max-width: 100%;
    padding: 0 1rem;
    margin-bottom: 4rem;
  }

  .page-hero__content h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  .simple-list {
    grid-template-columns: 1fr;
  }

  .accordion-header h3 {
    font-size: 1.2rem;
  }

  .accordion-icon {
    width: 42px;
    height: 42px;
  }

  .accordion-icon svg {
    width: 30px;
    height: 30px;
  }

  .hero-bottom-cta__container {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero-bottom-cta__button {
    margin-right: 0;
  }
  .hero-bottom-cta__input-wrapper,
  .hero-bottom-cta__button {
    width: 100%;
    max-width: none;
  }
  .accordion-arrow svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 640px) {
  .page-hero__container {
    align-items: flex-start;
  }

  .page-hero__content {
    text-align: left;
    align-items: flex-start;
  }

  .page-hero__content h1,
  .page-hero__subtitle {
    text-align: left;
  }
  .accordion-arrow svg {
    width: 20px;
    height: 20px;
  }
  .accordion-header {
    padding: 1.2rem 0;
  }
}

@media (max-width: 480px) {
  .page-hero {
    min-height: 500px;
    padding: 1.5rem 1rem;
  }

  .page-hero__content h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  .page-hero__subtitle {
    font-size: 0.95rem;
  }

  .hero-hook {
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
  }

  .simple-list > li {
    font-size: 1.2rem;
  }
  .accordion-header h3 {
    font-size: 1.1rem;
  }

  .accordion-icon {
    width: 38px;
    height: 38px;
    margin-right: 1rem;
  }

  .accordion-icon svg {
    width: 24px;
    height: 24px;
  }

  .accordion-header {
    padding: 1.2rem 0;
  }
  .subcategory-list li {
    font-size: 1rem;
  }
}
@media (max-width: 375px) {
  .accordion-header h3 {
    font-size: 1rem;
  }

  .accordion-icon {
    width: 34px;
    height: 34px;
    margin-right: 0.75rem;
  }
  .accordion-arrow svg {
    width: 18px;
    height: 18px;
  }
}

/* Style for h2 heading between hero and accordion */
.items-section .section-heading {
  position: relative;
  display: block;
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: var(--font-extrabold);
  color: var(--text-dark);
  margin-bottom: 3rem;

  margin-top: 1rem;

  padding-left: 0;
}

/* Banner CTA Section */
.banner-cta {
  padding: 5rem 1rem;
  background-color: var(--brand-black);
  position: relative;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 15px 15px;
}

.banner-cta__container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.banner-cta__header {
  flex: 1;
  text-align: left;
  margin-bottom: 0;
}

.banner-cta__hook {
  color: var(--brand-green);
}

.banner-cta__heading {
  color: var(--white);
}

.banner-cta__subtitle {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin: 0 0 1.5rem 0;
}

.banner-cta__trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.banner-cta__trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-medium);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.banner-cta__trust-badge svg {
  stroke: var(--brand-green);
  width: 16px;
  height: 16px;
}

.banner-cta__quote-box {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-large);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 320px;
  flex-shrink: 0;
  position: relative;
}

.banner-cta__step-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--brand-green);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: var(--font-semibold);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.banner-cta__quote-box h3 {
  font-size: 1.2rem;
  font-weight: var(--font-semibold);
  margin-bottom: 1.25rem;
  text-align: center;
  color: var(--text-dark);
}

.banner-cta__input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.banner-cta__location-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mid);
}

.banner-cta__input {
  width: 100%;
  height: 50px;
  padding: 0 0.75rem 0 2.25rem;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-medium);
}

.banner-cta__input:focus {
  outline: none;
  border-color: var(--brand-green);
}

.banner-cta__button {
  width: 100%;
  height: 50px;
  font-size: 0.95rem;
  font-weight: var(--font-semibold);
  color: var(--text-dark);
  background-color: var(--brand-green);
  border: none;
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: var(--transition-fast);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-button);
  font-family: "Switzer", sans-serif;
}

.banner-cta__button:hover {
  transform: translateY(-2px) translateX(-2px);
  box-shadow: 4px 4px 0px 0px #8cb340;
}

.banner-cta__button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-button);
}

.banner-cta__no-card {
  font-size: 0.85rem;
  color: var(--text-mid);
  text-align: center;
}

@media (max-width: 1200px) {
  .banner-cta__container {
    flex-direction: column;
  }

  .banner-cta__header {
    text-align: center;
  }

  .banner-cta__subtitle {
    text-align: center;
    margin: 0 auto 1.5rem;
  }

  .banner-cta__trust-badges {
    justify-content: center;
  }

  .banner-cta__quote-box {
    width: 100%;
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .items-section .section-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
  }
}

@media (max-width: 640px) {
  .items-section .section-heading {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .items-section .section-heading {
    font-size: 1.6rem;
  }
}
