/* Base Styles */
:root {
  --brand-text: hsla(203, 100%, 21%, 1);
  --brand-accent: hsla(71, 66%, 46%, 1);
  --subtext-color: hsla(0, 0%, 47%, 1);
  --text-color: hsla(0, 0%, 20%, 1);
}

html {
  box-sizing: border-box;
}

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

@font-face {
  font-family: 'Arboria';
  src: url('fonts/Arboria-Bold.woff2') format('woff2'),
       url('fonts/Arboria-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
  color: var(--text-color);
}

header, footer {
  background: #004080;
  color: white;
}

/* Button Base */
.btn {
  display: inline-block;
  padding: 0.6em 1em;
  min-width: 250px;
  font-size: 1rem;
  text-align: center;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  background: var(--brand-accent);
}

.btn:hover,
.btn:focus {
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
  outline: none;
}

/* Utility: Block-level button */
.btn-block {
  display: block;
  width: 100%;
  padding: 0.6em 2.2em;
}

.btn-inline {
  display: inline-block;
  padding: 0.6em 1em;
  min-width: auto;
}

/* Accent Button (solid brand accent color) */
.btn-accent {
  background: var(--brand-accent);
  color: #fff;
}

/* Gradient Button (brand text gradient, bottom to top, dark to light) */
.btn-gradient {
  background: linear-gradient(
    0deg,
    hsla(203, 100%, 21%, 1) 0%,
    hsla(204, 100%, 25%, 1) 33%,
    hsla(204, 100%, 29%, 1) 66%,
    hsla(204, 100%, 30%, 1) 100%
  );
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* BEM: Header */
.header {
  text-align: center;
  background: #fff;
  color: var(--brand-text);
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}

.header__logo {
  /* Add any logo-specific styles if needed */
}

.header__cta-button {
  display: inline-block;
  padding: 0.8rem 2.4rem;
  background: var(--brand-accent);
  color: white;
  text-decoration: none;
  border-radius: 0;
  position: absolute;
  top: 0;
  right: 0;
  font-size: 26px;
  font-family: 'Arboria', 'Open Sans', Arial, sans-serif;
}

/* Headings use Arboria and brand text color by default */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Arboria', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: var(--brand-text);
}

h1 {
  font-size: 56px;
  margin-block-end: 1.5rem;
}

h2 {
  font-size: 44px;
  margin-block-end: 1.5rem;
}

h3 {
  font-size: 25px;
}

h4 {
  font-size: 18px;
}

/* Hero Section */
.hero {
  background: #f5faff url('images/epicvue-hero.png') center center/cover no-repeat;
  padding: 3rem 1rem 2rem 1rem;
  text-align: center;
  width: 100%;
  min-height: 643px;
  height: 643px;
  display: flex;
  align-items: center;
}

.hero__container {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  /* Optionally add a background for text readability */
  /* background: rgba(255,255,255,0.85); */
  /* border-radius: 12px; */
  /* padding: 2rem; */
}

.hero__heading {
  font-size: 76px;
  margin-bottom: 2rem;
  color: #fff;
  font-family: 'Arboria', 'Open Sans', Arial, sans-serif;
  font-weight: bold;
}

.hero__subheading {
  font-size: 25px;
  color: #fff;
  margin-bottom: 2rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
}

.features {
  padding: 0 1rem;
}

.package-summary {
    display: flex;
    gap: 50px;
    max-width: 1360px;
    margin-inline: auto;
    margin-block-end: 6rem;
    padding: 0 1rem;
}

.package-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid hsla(210, 8%, 85%, 1);
  display: flex;
}

.package-card__icon {
  margin-right: 1.5rem;
  text-align: center;
  flex: 1;
}

.package-card__copy {
  flex: 3;
}

.package-card__title {
    margin: 0;
}

.duration-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

/* Reusable subheading class for body sections */
.subheading {
  font-size: 20px;
  color: var(--subtext-color);
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.heading-group {
    text-align: center;
    max-width: 1080px;
    margin-block: 3rem;
    margin-inline: auto;
}

/* Utility: Horizontally center items with flex */
.u-center-x {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Duration Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 316px;
  height: 47px;
  margin: 1rem 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: hsla(210, 8%, 85%, 1);
  border-radius: 999px;
  transition: background 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 41px;
  width: 158px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: transform 0.3s;
  border-radius: 999px;
}

.switch input:checked + .slider:before {
  transform: translateX(152px);
}

.switch-labels {
  position: absolute;
  width: 100%;
  top: 18%;
  left: 0;
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-top: 0.3rem;
  color: var(--brand-text);
  pointer-events: none;
}

.label-monthly,
.label-yearly {
  width: 50%;
  text-align: center;
  font-weight: 400;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.switch input:not(:checked) ~ .switch-labels .label-monthly {
  opacity: 1;
  font-weight: 600;
}

.switch input:checked ~ .switch-labels .label-yearly {
  opacity: 1;
  font-weight: 600;
}

/* Plans Section */
.plans {
  padding: 2rem 1rem 3rem;
}

.plan-options {
  display: flex;
  gap: 2rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-option {
  background: #fff;
  border: 1px solid hsla(210, 8%, 85%, 1);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  min-width: 306px;
  max-width: 306px;
}

.plan-option__header {
  padding: 2rem 1.5rem 0;
  border-bottom: 1px solid hsla(210, 8%, 85%, 0.3);
  height: 132px;
}

.plan-option__title {
  font-family: 'Arboria', 'Open Sans', Arial, sans-serif;
  color: var(--brand-text);
  margin: 0;
  font-weight: 700;
}

.plan-option__price {
  font-size: 3.7rem;
  color: var(--brand-text);
  margin: 0;
  font-weight: 700;
}

.plan-option__price span {
    font-size: 12px;
    color: hsla(200, 2%, 61%, 1);
}

.plan-option__duration {
  font-size: 1rem;
  color: var(--subtext-color);
  font-weight: 400;
  margin-left: 0.25rem;
}

.plan-option__details {
  padding: 1.5rem;
  display: grid;
  grid-template-rows: 250px 170px;
}

/* Plan option list with checkmarks */
.plan-option__list {
  list-style: none;
  margin: 0;
  padding-left: 1.5rem;
}

.plan-option__list li {
  position: relative;
  margin-bottom: 1em;
  font-size: 0.9rem;
  list-style-image: url('images/checkmark.svg');
}

.plan-option__form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.setup {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  padding: 3rem 0;
}

.setup-steps {
  font-size: 1rem;
  padding-left: 0.4rem;
  padding-right: 6rem;
  counter-reset: step;
  list-style: none;
}

.setup-steps li {
  position: relative;
  margin-bottom: 1.2em;
  padding-left: 2em;
}

.setup-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.5em;
  height: 1.5em;
  background: var(--brand-text);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.questions {
  padding: 3rem 1rem;
}

.contact {
  max-width: 742px;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: flex;
}

.contact__icon {
  margin: 0 1rem;
}

.contact__info {
  flex: 1;
  padding-right: 2rem;
}

.contact__info h3 {
  margin: 0;
  font-size: 2rem;
}

.contact__info p {
  margin: 0.5rem 0 2rem;
}

/* Bottom Container */
.bottom-container {
  background: linear-gradient(
    180deg,
    hsla(210, 8%, 85%, 0.3) 0,
    hsla(210, 8%, 85%, 0) 100px
  );
  min-height: 500px;
  background-repeat: no-repeat;
  background-position: 0 164px;
  width: 100%;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
}

.footer__column {
  display: grid;
  grid-template-rows: auto 200px auto;
  padding-right: 2rem;
}

.footer__column .btn {
  width: auto;
  justify-self: start;
}

.footer__container h4 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}

.footer__container a {
  color: #fff;
  text-decoration: none;
}

.footer__logo img {
  max-width: 165px;
  height: auto;
}

.footer__socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.footer__socials img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s;
}

.footer__links {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 100;
}

.product-image {
  display: flex;
  justify-content: center;
}

.package-card__icon img,
.product-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.quantity-field {
  padding: 0;
}

.quantity-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.quantity-field select {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid hsla(210, 8%, 85%, 1);
  font-size: 1rem;
}

.addon-field {
  display: flex;
  align-items: center;
  margin-bottom: 0.5em;
  font-size: 1rem;
  padding: 0 1em;
}

.addon-field input[type="checkbox"] {
  accent-color: #1e90ff;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.5em;
  cursor: pointer;
}

.addon-field label {
  cursor: pointer;
  font-weight: 500;
  color: #222;
}

@media (max-width: 1320px) {
  .package-card__copy {
    flex: 2;
  }
}

@media (max-width: 1200px) {
  .package-summary {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .package-card {
    width: 100%;
    max-width: 600px;
  }
}

/* Responsive for mobile */
@media (max-width: 1000px) {
  .options {
    padding: 0 1rem;
  }

  .plan-options {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .plan-option {
    width: 90%;
    max-width: 350px;
  }

  .setup {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 1rem;
  }

  .steps {
    max-width: 480px;
    margin: 0 auto;
  }

  .steps h2 {
    margin-top: 0;
  }

  .product-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .footer__container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem 0;
  }

  .footer__column {
    grid-template-rows: auto auto 1fr;
  }
}

@media (max-width: 640px) {
  h2 {
    font-size: 28px;
  }

  .header__cta-button {
    position: static;
    font-size: 1rem;
  }

  .header__logo {
    max-width: 140px;
  }

  .hero {
    padding: 2rem 1rem;
    height: auto;
    min-height: 400px;
  }

  .hero__heading {
    font-size: 36px;
  }

  .steps {
    padding: 0 2rem;
  }

  .setup-steps {
    padding-right: 0;
  }

  .package-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .package-card__icon {
    margin-bottom: 1rem;
    text-align: center;
  }

  .contact {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}

.container {
  max-width: 700px;
  margin: 5rem auto;
  padding: 0 1rem;
}

.next-steps {
  margin-bottom: 2rem;
}

.next-steps li {
  margin-top: 1rem;
}
