/* Bee Smart Driving School
   Responsive one-page recreation based on the supplied JPG mockup.
*/

:root {
  --yellow: #fdb515;
  --yellow-soft: #ffda91;
  --ink: #211d1e;
  --white: #fff;
  --line: #efb328;
  --max: 1906px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--yellow);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.18;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  background: var(--yellow);
}

.hero__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.pricing__inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero__inner {
  /* Keep the hero in roughly the same proportion as the original artwork.
     A fixed 890px height made medium desktop screens feel too tall. */
  min-height: clamp(680px, 46.7vw, 890px);
  position: relative;
}

.hero__copy {
  position: absolute;
  left: 7%;
  top: 13%;
  width: 47%;
}

.hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero__intro {
  margin: 0;
  font-size: clamp(2rem, 2.3vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.hero__tagline {
  margin: 2.6rem 0 0;
  font-size: clamp(1.55rem, 1.75vw, 2.35rem);
  font-weight: 700;
  font-style: italic;
}

.hero__logo {
  position: absolute;
  top: 6%;
  right: 4%;
  width: 50%;
  max-width: 820px;
}

.hero__logo img {
  width: 100%;
  height: auto;
}

.contact-hex {
  position: absolute;
  left: 4.4%;
  bottom: -7%;
  width: 37%;
  max-width: 720px;
  aspect-ratio: 1.52 / 1;
  background: var(--yellow-soft);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  display: grid;
  place-items: center;
  z-index: 4;
}

.contact-hex__inner {
  text-align: center;
  width: 86%;
  margin-top: -1%;
}

.contact-hex p {
  margin: 0.35rem 0;
  font-size: clamp(1.6rem, 2.2vw, 2.45rem);
}

.contact-hex strong,
.contact-hex a {
  font-weight: 700;
}

.contact-hex .eyebrow {
  margin-bottom: 1.1rem;
  font-size: clamp(1.3rem, 1.55vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-hex__email {
  font-size: clamp(1rem, 1.35vw, 1.55rem) !important;
}

.pricing {
  background: var(--white);
}

.pricing__inner {
  min-height: 875px;
  position: relative;
  display: grid;
  grid-template-columns: 26% 42% 32%;
  overflow: hidden;
}

.booking {
  position: relative;
  min-height: 875px;
  background: var(--yellow-soft);
  clip-path: polygon(0 23%, 72% 23%, 100% 49%, 72% 75%, 0 75%);
}

.booking__logo {
  position: absolute;
  top: 4%;
  left: 17%;
  width: 70%;
  border: 8px solid var(--yellow);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.booking__copy {
  position: absolute;
  left: 11%;
  top: 51%;
  font-size: clamp(1.45rem, 1.75vw, 2rem);
  line-height: 1.28;
}

.booking__copy p {
  margin: 0 0 1.4rem;
}

.booking__name,
.booking__phone {
  margin: 0.2rem 0 !important;
  font-weight: 700;
}

.packages {
  padding: 6.7rem 1.2rem 3rem 2rem;
}

.package {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 2px solid rgba(239, 179, 40, 0.55);
}

.package:last-child {
  border-bottom: 0;
}

.package__text h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 2.25vw, 3rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.package__text p {
  margin: 0;
  font-size: clamp(1.2rem, 1.3vw, 1.55rem);
}

.price-hex {
  width: 190px;
  aspect-ratio: 1.14 / 1;
  margin-inline: auto;
  background: var(--white);
  display: grid;
  place-items: center;
  position: relative;
  font-size: clamp(2.35rem, 2.8vw, 3.5rem);
  font-weight: 700;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.price-hex::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yellow);
  z-index: -2;
}

.price-hex::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--white);
  clip-path: inherit;
  z-index: -1;
}

.package--test {
  grid-template-columns: minmax(0, 1fr) 1.15fr;
}

.test-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  align-items: end;
}

.test-price .price-hex {
  width: 170px;
}

.location {
  width: 190px;
  margin: -8px auto 0;
  padding: 0.5rem 0.6rem 0.4rem;
  background: var(--ink);
  color: var(--yellow);
  text-transform: uppercase;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-align: center;
}

.gift {
  position: relative;
  align-self: stretch;
  overflow: hidden;
}

.gift img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% 48%;
}

.credit-card-note {
  position: absolute;
  right: 3%;
  bottom: 6%;
  margin: 0;
  font-size: clamp(0.9rem, 1vw, 1.15rem);
  background: rgba(255,255,255,0.78);
  padding: 0.35rem 0.5rem;
}

.mobile-contact {
  display: none;
}

@media (max-width: 1100px) {
  .hero__inner {
    min-height: 650px;
  }

  .contact-hex {
    bottom: -5%;
  }

  .pricing__inner {
    grid-template-columns: 27% 46% 27%;
  }

  .package {
    grid-template-columns: minmax(0, 1fr) 160px;
  }

  .price-hex {
    width: 145px;
  }

  .package--test {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }

  .test-price .price-hex {
    width: 135px;
  }

  .location {
    width: 145px;
    font-size: 0.95rem;
  }
}

@media (max-width: 760px) {
  body {
    background: var(--white);
  }

  .hero__inner {
    min-height: auto;
    padding: 2.3rem 1.25rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .hero__copy,
  .hero__logo,
  .contact-hex {
    position: static;
    width: 100%;
    max-width: none;
  }

  .hero__copy {
    order: 2;
  }

  .hero__logo {
    order: 1;
    width: min(82%, 430px);
    align-self: center;
  }

  .hero__intro {
    font-size: 1.85rem;
  }

  .hero__intro br {
    display: none;
  }

  .hero__tagline {
    margin-top: 1.6rem;
    font-size: 1.35rem;
  }

  .contact-hex {
    order: 3;
    aspect-ratio: auto;
    clip-path: none;
    padding: 1.75rem 1rem;
    border-radius: 12px;
  }

  .contact-hex__inner {
    width: 100%;
  }

  .contact-hex p {
    font-size: 1.25rem;
  }

  .contact-hex__email {
    font-size: 0.97rem !important;
  }

  .pricing__inner {
    min-height: auto;
    display: block;
    overflow: visible;
  }

  .booking {
    display: none;
  }

  .packages {
    padding: 2rem 1.25rem;
  }

  .package,
  .package--test {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 1.8rem 0;
    text-align: center;
  }

  .package__text h2 {
    font-size: 2rem;
  }

  .package__text p {
    font-size: 1.05rem;
  }

  .price-hex {
    width: 150px;
  }

  .test-prices {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
  }

  .test-price .price-hex {
    width: 135px;
  }

  .location {
    width: 145px;
  }

  .gift {
    width: min(100%, 620px);
    margin: 0 auto;
  }

  .gift img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .credit-card-note {
    display: none;
  }

  .mobile-contact {
    display: block;
    padding: 2.8rem 1.25rem 3.5rem;
    text-align: center;
    background: var(--yellow);
  }

  .mobile-contact h2 {
    margin: 0 0 0.7rem;
    font-size: 2rem;
  }

  .mobile-contact p {
    margin: 0 0 1.5rem;
    font-size: 1.08rem;
  }

  .mobile-contact__actions {
    display: grid;
    gap: 0.8rem;
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .button {
    display: block;
    padding: 0.95rem 1.2rem;
    border: 2px solid var(--ink);
    background: var(--white);
    font-weight: 700;
    border-radius: 4px;
  }

  .button--dark {
    background: var(--ink);
    color: var(--white);
  }
}


/* =========================================================
   V2 — desktop pricing composition
   Rebuilt to behave more like the supplied poster artwork.
   ========================================================= */

@media (min-width: 761px) {

  .pricing__inner {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    height: clamp(650px, 46vw, 875px);
    min-height: 0;
    overflow: hidden;
    background: var(--white);
  }

  /* Left-hand booking panel:
     keep the logo separate from the beige arrow shape so it
     can no longer be clipped by the panel polygon. */
  .booking {
    position: absolute;
    inset: 0 auto 0 0;
    width: 28%;
    min-height: 0;
    background: transparent;
    clip-path: none;
    overflow: visible;
    z-index: 3;
  }

  .booking::before {
    content: "";
    position: absolute;
    left: 0;
    top: 28%;
    width: 100%;
    height: 68%;
    background: var(--yellow-soft);
    clip-path: polygon(0 0, 72% 0, 100% 50%, 72% 100%, 0 100%);
    z-index: -1;
  }

  .booking__logo {
    position: absolute;
    top: 4%;
    left: 7%;
    width: 72%;
    max-width: 330px;
    border: 0;
    clip-path: none;
    background: transparent;
    object-fit: contain;
  }

  .booking__copy {
    position: absolute;
    left: 9%;
    top: 51%;
    width: 68%;
    font-size: clamp(1.2rem, 1.55vw, 1.9rem);
    line-height: 1.25;
  }

  .booking__copy p {
    margin: 0 0 1rem;
  }

  /* Central price list */
  .packages {
    position: absolute;
    left: 27%;
    top: 18%;
    width: 41%;
    height: 90%;
    padding: 0;
    z-index: 4;
  }

  .package {
    height: 33.333%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 31%;
    gap: 1rem;
    align-items: center;
    border-bottom: 2px solid rgba(239, 179, 40, 0.55);
  }

  .package:last-child {
    border-bottom: 0;
  }

  .package__text h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.65rem, 2vw, 2.8rem);
    line-height: 1.08;
  }

  .package__text p {
    font-size: clamp(1rem, 1.18vw, 1.45rem);
  }

  .price-hex {
    width: clamp(132px, 10vw, 190px);
    font-size: clamp(2rem, 2.55vw, 3.35rem);
  }

  /* Third row needs two prices beside the copy. */
  .package--test {
    grid-template-columns: 38% 62%;
    gap: 0.6rem;
    padding: 0;
  }

  .test-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.4rem, 1vw, 1rem);
    align-items: end;
  }

  .test-price .price-hex {
    width: clamp(112px, 8.7vw, 165px);
  }

  .location {
    width: clamp(125px, 9.7vw, 185px);
    margin-top: -4px;
    padding: 0.4rem 0.35rem 0.32rem;
    font-size: clamp(0.82rem, 1vw, 1.2rem);
  }

  /* Right artwork is now an overlay/composition rather than
     a rigid third grid column. This is much closer to the JPG. */
  .gift {
    position: absolute;
    right: 0;
    top: 0;
    width: 36%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
  }

  .gift img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  .credit-card-note {
    right: 2.5%;
    bottom: 4%;
    font-size: clamp(0.75rem, 0.85vw, 1rem);
    background: rgba(255,255,255,0.82);
  }
}

/* Slightly narrower desktop/tablet tuning */
@media (min-width: 761px) and (max-width: 1100px) {
  .pricing__inner {
    height: clamp(610px, 54vw, 700px);
  }

  .booking {
    width: 29%;
  }

  .packages {
    left: 28%;
    width: 44%;
  }

  .gift {
    width: 34%;
  }

  .package {
    grid-template-columns: minmax(0, 1fr) 29%;
  }

  .package--test {
    grid-template-columns: 40% 60%;
  }

  .booking__copy {
    top: 50%;
    font-size: 1.2rem;
  }
}


/* =========================================================
   V3 — targeted fixes from screenshot review
   ========================================================= */

@media (min-width: 761px) {

  /* Full-bleed lower composition:
     booking stays flush to the viewport left and gift stays flush right. */
  .pricing__inner {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  /* The contact hex should finish at the hero/white transition,
     rather than hanging well down into the pricing section. */
  .contact-hex {
    bottom: 0;
  }

  /* Lower-left booking panel: use the actual small outlined logo
     from the supplied artwork and restore its lighter, floating look. */
  .booking {
    width: 26.5%;
  }

  .booking::before {
    top: 27%;
    width: 100%;
    height: 69%;
    clip-path: polygon(0 0, 72% 0, 100% 50%, 72% 100%, 0 100%);
  }

  .booking__logo {
    top: 2.5%;
    left: 8.5%;
    width: 69%;
    max-width: none;
    border: 0;
    clip-path: none;
    object-fit: contain;
  }

  .booking__copy {
    left: 10%;
    top: 50%;
    width: 66%;
  }

  /* Keep the accepted central pricing layout, only reclaim the
     small amount of space released by the narrower left panel. */
  .packages {
    left: 26.5%;
    width: 42.5%;
  }

  /* The original artwork is one composed sign+bee+car image.
     Let that image determine its own proportions instead of stretching
     it to the full pricing-section height. */
  .gift {
    right: 0;
    top: 1.5%;
    width: 32.5%;
    height: auto;
    overflow: visible;
  }

  .gift img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top right;
  }

  .credit-card-note {
    right: 2%;
    bottom: 3%;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .booking {
    width: 27%;
  }

  .packages {
    left: 27%;
    width: 44%;
  }

  .gift {
    width: 31%;
  }
}


/* =========================================================
   V6 — lower-left booking panel correction
   The transparent PNG logo overlays the beige polygon.
   No cutout/blank area is required behind the logo.
   ========================================================= */

@media (min-width: 761px) {
  .booking::before {
    top: 0;
    height: 96%;
    clip-path: polygon(
      0 0,
      72% 0,
      100% 50%,
      72% 100%,
      0 100%
    );
  }

  .booking__logo {
    z-index: 2;
  }

  .booking__copy {
    z-index: 2;
  }
}
