@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

/* Regular */
@font-face {
  font-family: "Rebond";
  src: url("./assets/font/ESRebondGrotesque-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

/* Italic */
@font-face {
  font-family: "Rebond";
  src: url("./assets/font/ESRebondGrotesque-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
}

/* Bold */
@font-face {
  font-family: "ES Rebond Grotesque";
  src: url("./assets/font/ESRebondGrotesque-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

/* Bold Italic */
@font-face {
  font-family: "Rebond";
  src: url("./assets/font/ESRebondGrotesque-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
}

/* Light */
@font-face {
  font-family: "Rebond";
  src: url("./assets/font/ESRebondGrotesque-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}

/* Light Italic */
@font-face {
  font-family: "Rebond";
  src: url("./assets/font/ESRebondGrotesque-Regular.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
}

/* Medium */
@font-face {
  font-family: "Rebond";
  src: url("./assets/font/ESRebondGrotesque-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}

/* Medium Italic */
@font-face {
  font-family: "Rebond";
  src: url("./assets/font/ESRebondGrotesque-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
}

/* === COLORS === */

:root {
  --color-primary: #321134;
  --color-primary-light: #f4b0f9;

  --color-beige: #f5f3f0;
  --color-accent: #f6e9fe;

  --color-bg: #fef7fe;
  --color-bg-gray: #f4f4f5;
  --color-bg-secondary-default: #f5f3f0;
  --color-text-gray: #534d56;
  --color-text-gray-dark: #28212c;
  --color-base-foreground-primary-light: #f4b0f9;
  --color-base-foreground-primary-dark: #321134;

  --color-border: #e4e4e7;
  --border: 1px solid var(--color-border);

  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius: 24px;
  --border-radius-round: 999px;

  --box-shadow: 0px 1px 2px 0px rgba(18, 18, 23, 0.05);
}

/* === TYPOGRAPHY === */
:root {
  --font-display-lg: clamp(2.75rem, 1.5rem + 4vw, 4.375rem);
  --font-block-h1: clamp(2.5rem, 1.67rem + 2.08vw, 3.5rem);
  /* 40px → 56px */
  --font-h2: clamp(2.25rem, 1.58rem + 1.67vw, 3rem);
  /* 36px → 48px */
  --font-h3: clamp(1.375rem, 1.15rem + 0.83vw, 1.75rem);
  /* 22px → 28px */
  --font-h4: clamp(1.25rem, 1.05rem + 0.56vw, 1.5rem);
  /* 20px → 24px */
  --font-h5: clamp(1.125rem, 1.03rem + 0.28vw, 1.25rem);
  /* 18px → 20px */

  --font-block-body: 18px;
  /* 14px → 18px */

  --font-h1: clamp(1.8rem, 3vw + 1rem, 2.5rem);
  /* 40px max */
  --font-body: clamp(1rem, 1.5vw + 0.25rem, 1rem);
  /* 16px fixed */
  --font-body-small: clamp(0.875rem, 1vw + 0.2rem, 0.875rem);
  /* 14px */
}

/**** FONT ***/

body {
  font-family: "Rebond", sans-serif;
  font-weight: 400;
  font-style: normal;
}

strong {
  font-weight: 700;
  font-style: normal;
}

h1 {
  font-size: var(--font-h1);
  font-weight: 500;
}

.hero-content p:last-of-type {
  margin-bottom: 0px;
}

/**** HEADER ***/

.home header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 140px;
}

.home header video,
.home header img {
  max-width: 95px;
  height: auto;
}

/**** GENERAL ***/

.page-container {
  flex-direction: column;
  height: 100%;
  min-height: 100vh;
  padding: 0;
}

.btn {
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: 16px 32px;
  border-radius: var(--border-radius-round);
  transition: 0.4s ease;
}

.btn:hover {
  color: white;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.centered {
  text-align: center;
}

/* ---------------------------------- */
/*   HEADER NAViGATION (CONTENT PAGES)*/
/* ---------------------------------- */

header.header-nav {
  position: fixed;
  width: 100%;
  z-index: 10;
}

header.header-nav .navbar {
  padding-top: 20px;
  width: 100%;
}

.header-columns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  border-radius: 16px;
  padding: 40px;
  padding: 20px 40px;
  border: var(--border);
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.header-columns .btn.btn-round {
  font-size: 14px;
  padding: 16px 24px;
}

.header-columns .mobile-only {
  display: none;
}

header.header-nav .navbar > .container {
  display: block;
}

header.header-nav .navbar-toggler {
  margin: 0;
}

#menu-header-menu {
  align-items: center;
  grid-gap: 32px;
}

#menu-header-menu a.nav-link {
  padding: 0;
}

#menu-header-menu .btn {
  padding: 16px 24px;
  margin-left: 8px;
}

#menu-header-menu .btn a {
  padding: 0;
  color: white;
  font-size: 14px;
}

#menu-header-menu a {
  font-size: var(--font-body-large);
  color: var(--color-primary);
}

#menu-header-menu a:hover {
  color: #301e4e;
}

#main-menu {
  justify-content: flex-end;
  column-gap: 40px;
}

/*** Mobile menu custom toggle ***/

.menu-toggle {
  position: relative;
  width: 32px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
}

.menu-toggle .bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: top 0.25s ease, transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle .b1 {
  top: 4px;
}

.menu-toggle .b2 {
  top: 11px;
}

.menu-toggle .b3 {
  top: 18px;
}

.menu-toggle[aria-expanded="true"] .b1 {
  top: 11px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .b2 {
  opacity: 0;
  transform: scaleX(0.6);
}

.menu-toggle[aria-expanded="true"] .b3 {
  top: 11px;
  transform: rotate(-45deg);
}

/* Optional: spacing/alignment tweaks */
.header-columns {
  gap: 0.75rem;
}

@media (min-width: 768px) {
  /* md */
  .header-columns {
    gap: 1rem;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .menu-toggle .bar {
    transition: none;
  }
}

@media screen and (max-width: 992px) {
  .header-columns {
    flex-wrap: wrap;
    row-gap: 24px;
  }
}

@media screen and (min-width: 992px) {
  .menu-toggle {
    display: none;
  }

  header.header-nav .navbar {
    padding-top: 32px;
  }
}

/* ---------------------------------- */
/*   GENERAL                          */
/* ---------------------------------- */

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------------------------------- */
/*   HERO                             */
/* ---------------------------------- */

.hero {
  position: relative;
  padding-top: 115px;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.hero.image-hero {
  min-height: 930px;
  max-width: 2000px;
}

.hero.text-hero.bg-beige {
  background-color: var(--color-beige);
}

.hero.text-hero.bg-purple {
  background-color: #fee6fe;
}

.hero.text-hero .hero-content {
  padding: 100px 0px;
  text-align: center;
}

.hero.text-hero .description p {
  font-weight: 300;
  font-size: var(--font-h3);
  color: var(--color-text-gray-dark);
}

.text-hero-wrapper {
  display: flex;
  flex-direction: column;
  row-gap: 32px;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.text-hero-wrapper h1,
.text-hero-wrapper p {
  max-width: 900px;
}

/* .home .hero {
  min-height: 900px;
} */

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 87px;
}

.hero-content-col {
  display: flex;
  justify-content: center;
}

.hero h1 {
  font-size: var(--font-block-h1);
  max-width: 870px;
  font-weight: 700;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .hero.image-hero {
    min-height: 700px;
  }

  .hero.image-hero img {
    display: none;
  }

  .hero.image-hero .hero-image-mobile img,
  .hero.image-hero .hero-image-mobile {
    display: block;
  }
}

@media screen and (min-width: 2000px) {
  .hero.image-hero {
    border-radius: 0px 0px 16px 16px;
  }
}

/* ---------------------------------- */
/*  GENERAL ELEMENTS                   */
/* ---------------------------------- */

.tag {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  padding: 8px 12px;
  border-radius: 8px;
  width: fit-content;
}

/**** INDBO STYLING ****/

section.indbo {
  padding: 80px 0px;
  width: 100%;
}

.form-card {
  background-color: var(--color-beige);
  padding: 40px;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
}

section.indbo form {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  align-items: center;
}

#overview-hero {
  background-color: var(--color-accent);
  width: 100%;
  padding: 200px 0px 80px 0px;
}

#overview-hero h2 {
  font-size: var(--font-block-body);
}

#overview-hero .offer-card {
  background-color: #ebdbf4;
  padding: 32px;
  border-radius: 12px;
}

.offer-price {
  font-size: var(--font-display-lg);
  font-weight: 500;
}

.offer-price span {
  font-size: var(--font-h3);
}

/* ---------------------------------- */
/*   CHECKOUT STYLING                  */
/* ---------------------------------- */

/* header */

@media screen and (min-width: 992px) {
  header.checkout.header-nav .navbar {
    padding-top: 0;
  }
}

header.checkout.header-nav .navbar {
  background-color: white;
}

.checkout .header-columns {
  box-shadow: none;
  border: none;
}

/*main*/

.checkout-main {
  margin-top: 115px;
}

.checkout.hero {
  align-items: flex-start;
  padding-top: 0;
}

.checkout.hero h2 {
  font-size: var(--font-h3);
  max-width: 870px;
  font-weight: 700;
  text-align: center;
  text-align: left;
}

.checkout h3 {
  font-size: 1rem;
}

.bg-beige {
  background-color: var(--color-beige);
}

.checkout-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.checkout-main section.checkout .section-content {
  max-width: 610px;
  padding-top: 40px;
}

.checkout-main section.checkout {
  height: 100%;
}

.checkout-main section.checkout.left .section-content {
  margin-left: auto;
  padding-right: 40px;
}

.checkout-main section.checkout.right .section-content {
  margin-right: auto;
  padding-left: 40px;
}

.checkout-main .section-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/*form*/

label {
  display: block;
}

legend {
  margin-bottom: 0;
}

legend p {
  font-size: 1rem;
  margin-bottom: 0;
}

p.small {
  font-size: 0.8rem;
}

input,
select {
  max-width: 100%;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 17px 8px;
}

input[type="checkbox" i] {
  width: auto;
  display: inline;
}

#full-name,
#prefix {
  background-color: var(--color-bg-gray);
}

.checkbox-and-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}

.checkbox-and-label p {
  margin-bottom: 0;
}

.cpr-field-group {
  display: flex;
  flex-direction: row;
  gap: 9px;
  align-items: center;
}

.previous-insurance-fieldset .options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.checkout-form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 49px;
}

.question,
fieldset {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yes-no-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-bg-gray);
  display: flex;
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
}

.yes-no-option.selected {
  background-color: #fbf6fd;
  border: solid 1px #e1aef7;
}

#previous-insurance-no,
#previous-insurance-yes {
  width: auto;
}

/* Basket */

.checkout .product {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.product .icon-and-details {
  display: flex;
  justify-content: flex-start;
}

.product .product-icon {
  width: 40px;
  height: 40px;
  margin-right: 10.5px;
}

.product .price {
  justify-self: flex-end;
}
