/* Pre-made package page — shared navigation/footer styles live in template.css. */
/* Colour tokens are inherited from global.css. */

body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "announcement"
    "nav"
    "main"
    "footer";
}

main {
  grid-area: main;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "hero" "overview" "whats-included" "optionals" "process";
}

.hero__eyebrow {
  color: #8acaff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

/* Accessible keyboard shortcut to the main content. */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #1e293b;
}
.skip-link:focus {
  top: 1rem;
}

/* Reusable headings and icon treatment. */
.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.094rem;
  margin-bottom: 0.625rem;
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #d6e9ff;
}
.feature-icon .ti {
  font-size: 1.875rem;
}

/* Hero: page title, starting price and launch status. */
.package-hero {
  grid-area: hero;
  display: flex;
  align-items: center;
  padding-inline: clamp(20px, 5vw, 100px);
  background-image:
    linear-gradient(90deg, rgba(8, 27, 48, 0.8), rgba(8, 27, 48, 0.1)),
    url("../resources/martin-bennie.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto;
  color: #fff;
}
.package-hero__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  padding-block: 50px;
}
.package-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}
.package-hero .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: #fff;
}
.package-hero__description {
  font-weight: 400;
  color: #fff;
}
.package-hero__price {
  font-size: 1.5rem;
  color: var(--accent-color);
}
#package-starting-price {
  padding-left: 10px;
  font-size: 2.25rem;
  color: #fff;
}
.package-hero__availability-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid #fff;
  border-radius: 15px;
  font-size: 0.875rem;
  color: #fff;
}
.package-hero__availability-notice .ti {
  color: #ff7070;
}

/* Overview: illustration on the left, package explanation on the right. */
.package-overview {
  grid-area: overview;
  display: flex;
  justify-content: space-between;
  gap: 50px;
  padding: 20px clamp(20px, 5vw, 100px);
}
.package-overview__image {
  flex: 1 1 50%;
  min-width: 0;
  border-radius: 10px;
  background: url("../resources/howard-bouchevereau-RSCirJ70NDM-unsplash.jpg")
    center / cover no-repeat;
}
.package-overview__content {
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.package-overview h2 {
  font-weight: 700;
}
.package-overview__description,
.package-overview__feature-description {
  font-weight: 300;
}
.package-overview__feature {
  display: flex;
  gap: 30px;
  padding: 10px;
}
.package-overview__feature-description {
  padding-top: 5px;
}
.package-overview__feature .ti {
  color: var(--accent-color);
}

/* Inclusions: responsive card grid with shared icon treatment. */
.package-inclusions {
  grid-area: whats-included;
  padding: 20px clamp(20px, 5vw, 100px);
  background-color: var(--bg-section-color);
}
.package-inclusions h2 {
  padding-bottom: 10px;
  font-weight: 700;
}
.package-inclusions__description {
  max-width: 550px;
  font-weight: 300;
}
.package-inclusions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 20px;
  margin-top: 20px;
}
.package-inclusions__card {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 100px;
  padding: 12px;
  border-radius: 15px;
  background-color: #fff;
  box-sizing: border-box;
}
.package-inclusions__card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.package-inclusions__card h3 {
  font-size: 1rem;
  font-weight: 600;
}
.package-inclusions__card-description {
  font-weight: 300;
}

/* Extras: three flexible cards and a photographic panel. */
.package-extras {
  grid-area: optionals;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 20px clamp(20px, 5vw, 100px);
}
.package-extras__content {
  flex: 1 1 60%;
  min-width: 0;
}
.package-extras h2 {
  padding-bottom: 10px;
  font-weight: 700;
}
.package-extras__description {
  max-width: 550px;
  font-weight: 300;
}
.package-extras__grid {
  display: flex;
  gap: 20px;
  padding-top: 15px;
}
.package-extras__card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 150px;
  padding: 12px;
  border-radius: 15px;
  background-color: var(--bg-section-color);
  box-sizing: border-box;
}
.package-extras__card h3 {
  font-size: 1rem;
  font-weight: 600;
}
.package-extras__card-description {
  font-weight: 300;
}
.package-extras__image {
  flex: 1 1 30%;
  min-width: 0;
  min-height: 250px;
  border-radius: 10px;
  background: url("../resources/denise-jans-p0QUpDUX8X8-unsplash.jpg") center /
    cover no-repeat;
}

/* Four-stage process, with arrows between stages. */
.package-process {
  grid-area: process;
  padding: 20px clamp(20px, 5vw, 100px);
  background-color: var(--bg-section-color);
}
.package-process h2 {
  padding-bottom: 10px;
  font-weight: 700;
}
.package-process__description {
  max-width: 550px;
  font-weight: 300;
}
.package-process__steps {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 15px;
}
.package-process__step {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 150px;
  padding: 12px;
  border-radius: 15px;
  background-color: #fff;
  text-align: center;
  box-sizing: border-box;
}
.package-process__step h3 {
  font-size: 1rem;
  font-weight: 600;
}
.package-process__step-description {
  font-weight: 300;
}
.package-process__step-icon {
  background-color: #155eef;
  color: #fff;
}
.package-process__step-icon .ti {
  color: #fff;
}
.package-process__arrow {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

/* Responsive refinements can be expanded when the desktop design is final. */
/* =========================================
   TABLET — 601px to 900px
   ========================================= */

@media (min-width: 601px) and (max-width: 900px) {
  /* General section spacing */
  .package-hero,
  .package-overview,
  .package-inclusions,
  .package-extras,
  .package-process {
    padding-inline: 32px;
  }

  .package-overview,
  .package-inclusions,
  .package-extras,
  .package-process {
    padding-block: 40px;
  }

  /* Hero */
  .package-hero {
    background-size: cover;
    background-position: center;
  }

  .package-hero__content {
    max-width: 480px;
    padding-block: 65px;
  }

  .package-hero h1 {
    font-size: 2.25rem;
  }

  /* Overview: image above text */
  .package-overview {
    flex-direction: column;
    gap: 30px;
  }

  .package-overview__image {
    flex: none;
    width: 100%;
    min-height: 300px;
  }

  .package-overview__content {
    flex: none;
    width: 100%;
  }

  /* What's Included: two columns */
  .package-inclusions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  /* Optional Extras */
  .package-extras {
    flex-direction: column;
    gap: 30px;
  }

  .package-extras__content {
    flex: none;
    width: 100%;
  }

  .package-extras__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .package-extras__image {
    flex: none;
    width: 100%;
    min-height: 300px;
  }

  /* Process: two columns */
  .package-process__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .package-process__arrow {
    display: none;
  }

  .package-process__step {
    min-height: 170px;
  }
}

/* =========================================
   MOBILE — up to 600px
   ========================================= */

@media (max-width: 600px) {
  /* General section spacing */
  .package-hero,
  .package-overview,
  .package-inclusions,
  .package-extras,
  .package-process {
    padding-inline: 20px;
  }

  .package-overview,
  .package-inclusions,
  .package-extras,
  .package-process {
    padding-block: 32px;
  }

  /* Hero */
  .package-hero {
    background-size: cover;
    background-position: center;
  }

  .package-hero__content {
    max-width: 100%;
    padding-block: 50px;
  }

  .package-hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .package-hero__price {
    font-size: 1.25rem;
  }

  #package-starting-price {
    font-size: 2rem;
  }

  .package-hero__availability-notice {
    align-items: flex-start;
    font-size: 0.8125rem;
  }

  /* Overview: single column */
  .package-overview {
    flex-direction: column;
    gap: 24px;
  }

  .package-overview__image {
    flex: none;
    width: 100%;
    min-height: 220px;
  }

  .package-overview__content {
    flex: none;
    width: 100%;
  }

  .package-overview__feature {
    gap: 16px;
    padding: 10px 0;
  }

  /* What's Included: single column */
  .package-inclusions__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .package-inclusions__card {
    min-height: 100px;
    gap: 14px;
  }

  /* Optional Extras: single column */
  .package-extras {
    flex-direction: column;
    gap: 24px;
  }

  .package-extras__content {
    flex: none;
    width: 100%;
  }

  .package-extras__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .package-extras__card {
    min-height: 140px;
  }

  .package-extras__image {
    flex: none;
    width: 100%;
    min-height: 230px;
  }

  .package-extras__hosting-note {
    margin-top: 20px;
    line-height: 1.6;
  }

  /* Process: vertical steps */
  .package-process__steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .package-process__step {
    min-height: 150px;
    justify-content: center;
  }

  .package-process__arrow {
    display: none;
  }

  /* Shared icon sizing */
  .feature-icon {
    width: 46px;
    height: 46px;
  }

  .feature-icon .ti {
    font-size: 1.625rem;
  }
}
