/*-----------------------------------*\
  #main.css
\*-----------------------------------*/

/**
 * copyright 2023 Delton Dias
 */


/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/
:root {
 
  /* colors */
  --white: #FFFFFF;
  --yellow: #F6BD26;
  --primary-100: #0280A3;
  --primary-90: #0d4b73;
  --primary-80: #0a4267;
  --primary-70: #104264;
  --primary-40: #0f3158;
  --primary-20: #0E2C4F;
  --secondary-100: #0290a3;
  --secondary-20: #0e3e4f;
  --neutral-100: #FAFCFF;
  --neutral-98: #F2F5FA;
  --neutral-95: #E9ECF2;
  --neutral-90: #DADFE5;
  --neutral-80: #C2C6CC;
  --neutral-60: #919499;
  --neutral-50: #797C80;
  --neutral-40: #616366;
  --neutral-30: #494A4D;
  --neutral-20: #303133;
  --neutral-10: #18191A;
  --neutral-5: #0C0C0D;
  --error-100: #FF2134;

  /* gradient */
  --gradient: linear-gradient(215deg, rgba(2,128,163,1) 0%, rgba(14,44,79,1) 62%);

  /* typography - font family */
  --font-primary: 'Libre Bodoni', serif;

  /* typography - fontsize */
  --fs-base: 62.5%;
  --fs-headline-large: 3.4rem;
  --fs-headline-medium: 2.6rem;
  --fs-headline-small: 2.6rem;
  --fs-title-large: 2.2rem;
  --fs-title-medium: 2rem;
  --fs-title-small: 1.8rem;
  --fs-body-large: 1.6rem;
  --fs-body-medium: 1.6rem;
  --fs-body-medium-2: 1.8rem;
  --fs-label-large: 1.6rem;
  --fs-label-medium: 1.4rem;

  /* typography - line height */
  --lh-headline-large: 44px;
  --lh-headline-medium: 36px;
  --lh-headline-small: 36px;
  --lh-title-large: 28px;
  --lh-title-medium: 24px;
  --lh-title-small: 24px;
  --lh-body-large: 24px;
  --lh-body-medium: 24px;
  --lh-body-medium-2: 28px;
  --lh-label-large: 24px;
  --lh-label-medium: 20px;

  /* typography - font weight */
  --weight-bold: 700;
  --weight-semiBold: 600;
  --weight-regular: 400;

  /* typography - letter spacing */
  --traking-n-025: -0.25px;
  --traking-p-05: 0.5px;

  /* border radius */
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 16px;
  --radius-extra-large: 32px;
  --radius-full: 1000px;
  --radius-circle: 50%;

  /* box shadow */
  --shadow-1: 0px 2px 4px 0px #00000033;
  --shadow-2: 0px 5px 10px 0px #0000000D;
  --shadow-3: 0px 5px 10px 0px #00000033;
  --shadow-4: 0px 10px 20px 0px #0000001A;

  /* transition */
  --transition-easing-quick: cubic-bezier(0, 0.7, 0.3, 1);
  --transition-duration-quick: 200ms;
  --transition-duration-smooth: 500ms;
}


/*-----------------------------------*\
  #RESET
\*-----------------------------------*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {list-style: none;}

a,
img,
span,
input,
select,
textarea,
button {display: block;}

a {
  color: inherit;
  text-decoration: none;
}

img {height: auto;}

input,
button,
textarea,
select {
  background: none;
  border: none;
  font: inherit;
}

button {cursor: pointer;}

input,
select,
textarea {
  width: 100%;
  outline: none;
}

address {font-style: normal;}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

html {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  scroll-behavior: smooth;
}

body {
  background-color: var(--neutral-98);
  color: var(--neutral-5);
  font-size: var(--fs-body-medium);
  line-height: var(--lh-body-medium);
}

::-webkit-scrollbar {width: 12px;}

::-webkit-scrollbar-track {background-color: var(--neutral-90);}

::-webkit-scrollbar-thumb {
  background-color: var(--neutral-60);
  border-radius: 4px;
}





/*-----------------------------------*\
  #CALENDAR STYLE
\*-----------------------------------*/
/* Modify the calendar icon */
input[type="date"]::-webkit-calendar-picker-indicator {
  /* Change the color of the calendar icon */
  color: #0d4b73 !important; /* Replace with your desired color */

  /* Add additional styles to the icon, e.g., font-size, padding, etc. */
}

/* Modify the calendar's popup or panel */
/* Please note that this may vary depending on your browser's default styles */
input[type="date"]::-webkit-calendar-popup {
  /* Change the background color of the calendar */
  background-color: #F2F2F2; /* Replace with your desired color */

  /* Add additional styles to the calendar popup, e.g., border, padding, etc. */
}



/*-----------------------------------*\
  #TYPOGRAPHY
\*-----------------------------------*/
.headline-large {
  font-size: var(--fs-headline-large);
  line-height: var(--lh-headline-large);
  font-weight: var(--weight-bold);
  letter-spacing: var(--traking-n-025);
}

.headline-medium {
  font-size: var(--fs-headline-medium);
  line-height: var(--lh-headline-medium);
  font-weight: var(--weight-bold);
}

.headline-small {
  font-size: var(--fs-headline-small);
  line-height: var(--lh-headline-small);
  font-weight: var(--weight-bold);
}

.title-large {
  font-size: var(--fs-headline-large);
  line-height: var(--lh-headline-large);
  font-weight: var(--weight-semiBold);
}

.title-medium {
  font-size: var(--fs-headline-medium);
  line-height: var(--lh-headline-medium);
  font-weight: var(--weight-semiBold);
}

.title-small {
  font-size: var(--fs-headline-small);
  line-height: var(--lh-headline-small);
  font-weight: var(--weight-semiBold);
}

.body-large {
  font-size: var(--fs-body-large);
  line-height: var(--lh-body-large);
  font-weight: var(--weight-regular);
}

.body-medium {
  font-size: var(--fs-body-medium);
  line-height: var(--lh-body-medium);
  font-weight: var(--weight-regular);
}

.body-medium-2 {
  font-size: var(--fs-body-medium-2);
  line-height: var(--lh-body-medium-2);
  font-weight: var(--weight-regular);
}

.label-medium {
  font-size: var(--fs-label-medium);
  line-height: var(--lh-label-medium);
  font-weight: var(--weight-semiBold);
  letter-spacing: var(--traking-p-05);
}


/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/
.material-symbols-rounded {
  display: block;
  width: 1em;
  height: 1em;
  overflow: hidden;
  font-variation-settings:
  'FILL' 0,
  'wight' 400,
  'GRAD' 0,
  'opsz' 24;
}

.container {
  padding-inline: 16px;
  max-width: 580px;
  width: 100%;
  margin-inline: auto;
}

.section {padding-block-end: 60px;}

.title-wrapper {margin-block-end: 32px;}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--neutral-80);
  overflow: hidden;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/*-----------------------------------*\
  #COMPONENT
\*-----------------------------------*/
/* button */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding-inline: 24px;
  border-radius: var(--radius-medium);
  max-width: max-content;
  transition: var(--transition-duration-quick) var(--transition-easing-quick);
}

.btn-outline {
  color: var(--primary-100);
  box-shadow: inset 0 0 0 2px var(--primary-100);
}

.btn-outline:where(:hover, :focus, :focus-visible) {color: var(--neutral-100);}

.btn-outline:hover {background-color: var(--primary-100);}

.btn-outline:focus {background-color: var(--primary-90);}

.btn-outline:where(:active, :focus-visible) {background-color: var(--primary-80);}



/* icon btn */
.icon-btn {
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
  background-color: var(--neutral-100);
  color: var(--neutral-10);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-3);
  transition: var(--transition-duration-quick) var(--transition-easing-quick);
}
.icon-btn:where(:hover, :focus-visible) {background-color: var(--neutral-90);}


/* badge */
.badge {
  height: 32px;
  max-width: max-content;
  display: grid;
  place-items: center;
  padding-inline: 16px;
  background-color: var(--secondary-100);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-3);
}


/* card */
.card {
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: var(--transition-duration-quick) var(--transition-easing-quick);
}

.card:where(:hover, :focus-within) {box-shadow: var(--shadow-4);}

.card-banner {position: relative;}

.card-banner .img-cover {
  transition: var(--transition-duration-smooth) var(--transition-easing-quick);
}

.card:where(:hover, :focus-within) .img-cover {
  scale: 1.05;
  rotate: 2deg;
}

.card :where(.badge, .icon-btn) {
  position: absolute;
  top: 20px;
}

.card .badge {left: 20px;}

.card .badge {
  right: 20px;
  opacity: 0;
  visibility: hidden;
  scale: 0.8;
  transition: var(--transition-duration-quick) var(--transition-easing-quick);
}

.card:where(:hover, :focus-within) .badge {
  scale: 1;
  opacity: 1;
  visibility: visible;
}

.card-content {padding: 20px 20px 24px;}

.card-title {
  margin-block: 8px;
  color: var(--primary-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition-duration-quick) var(--transition-easing-quick);
}

.card-text {color: var(--neutral-40);}

.card-meta-list {
  padding-block-start: 16px;
  margin-block-start: 16px;
  border-block-start: 1px solid var(--neutral-90);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.card .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--neutral-20);
}



/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 4;
}

.header.active {
  animation: slide_in 500ms ease forwards;
  height: 72px;
  background-color: var(--primary-40);
}

@keyframes slide_in {
  0% {transform: translateY(-100%);}
  100% {transform: translateY(0%);}
}

.header .container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-toggle-btn .close,
.nav-toggle-btn.active .open { display: none;}

.nav-toggle-btn .open,
.nav-toggle-btn.active .close{ display: block;}

.navbar {
  position: absolute;
  top: 85%;
  right: 16px;
  background-color: var(--neutral-100);
  min-width: 260px;
  padding: 10px;
  border-radius: var(--radius-large);
  visibility: hidden;
  opacity: 0;
  scale: 0.4;
  transition: var(--transition-duration-quick) var(--transition-easing-quick);
  box-shadow: var(--shadow-1);
  transform-origin: top right;
  z-index: 4;
}

.navbar.active {
  visibility: visible;
  opacity: 1;
  scale: 1;
}

.navbar,
.navbar-list,
.navbar-wrapper {
  display: grid;
  gap: 8px;
}

.navbar-link,
.btn-link {
  color: var(--neutral-30);
  padding: 6px 12px;
  transition: var(--transition-duration-quick) var(--transition-easing-quick);
}

.btn-link {
  border-block-start: 1px solid var(--neutral-90);
  border-block-end: 1px solid var(--neutral-90);
  padding-block-start: 14px;
  padding-block-end: 14px;
}

:is(.navbar-link, .btn-link):is(:hover, :focus-visible),
.navbar-link.active {color: var(--primary-100);}


.islandicons-list-mobile {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.islandicons-list-desktop {
  display: none;
}

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/
.footer {
  background-color: var(--primary-20);
  color: var(--neutral-90);
}

.footer-top .container {
  padding-block: 60px;
  display: grid;
  gap: 24px;
}

.footer-text {margin-block: 16px;}

.footer-list-title {margin-block-end: 16px;}

.footer-list {
  display: grid;
  gap: 16px;
}

.footer-link {transition: var(--transition-duration-quick) var(--transition-easing-quick);}

.footer-link:where(:hover, :focus-visible) {color: var(--primary-100);}

.social-list {
  display: flex;
  gap: 16px;
}

.footer-bottom {border-block-start: .5px solid var(--neutral-90);}

.footer-bottom .container {
  padding-block: 20px;
  display: grid;
  justify-content: center;
}


/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/* RESPONSIVE FOR LARGER THAN 768PX SCREEN */
@media (min-width: 768px) {

  /* CUSTOM PROPERTY */
  :root {

    /* typography - font size */
    --fs-headline-large: 5.2rem;
    --fs-headline-medium: 2.6rem;
    --fs-headline-small: 2rem;

    /* typography - line height */
    --lh-headline-large: 64px;
    --lh-headline-medium: 38px;
    --lh-headline-small: 22px;
  }


  /* REAUSED STYLE */
  .container {max-width: 720px;}

  .section {padding-block-end: 80px;}

  .title-wrapper,
  .location .title-wrapper {
    display: grid;
    grid-template-columns: 1fr max-content;
    align-items: center;
    gap: 40px;
    margin-block-end: 48px;
  }

  /* FOOTER */
  .footer-top .container {
    padding-block: 80px;
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {grid-column: 1 / 4;}


  
}



/* RESPONSIVE FOR LARGER THAN 992PX SCREEN */
@media (min-width: 992px) {

  /* CUSTOM PROPERTY */
  :root {

    /* typography - font size */
    --fs-body-large: 1.8rem;

    /* typography - line height */
    --lh-body-large: 32px;

  }


  /* REAUSED STYLE */
  .container {max-width: 980px;}

  /* HEADER */
  .islandicons-list-mobile {
    display: none;
  }
  
  .islandicons-list-desktop {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }

  .nav-toggle-btn {display: none;}

  .navbar,
  .navbar-list,
  .navbar-wrapper {
    all: unset;
    display: flex;
    align-items: center;
  }

  .navbar,
  .navbar-list {flex-grow: 1;}

  .navbar-list {justify-content: center;}

  .navbar-link,
  .btn-link {
    color: var(--neutral-80);
    line-height: 48px;
  }

  .navbar-link{padding: 0 24px;}

  :is(.navbar-link, .btn-link):is(:hover, :focus-visible),
  .navbar-link.active {color: var(--neutral-100);}

  .navbar-link.active {position: relative;}

  .navbar-link.active::before {
    content: "";
    position: absolute;
    left: 50%;
    translate: -50% 0;
    bottom: 8px;
    width: 10px;
    height: 4px;
    border-radius: var(--radius-extra-large);
    background-color: var(--neutral-100);
  }

  .btn-link {
    color: var(--neutral-100);
    border: none;
    padding: 0;
  }

}



/* RESPONSIVE FOR LARGER THAN 1440PX SCREEN */
@media (min-width: 1440px) {

  /* CUSTOM PROPERTY */
  :root {

    /* typography - font size */
    --fs-headline-large: 6.2rem;
    --fs-headline-medium: 3rem;

    /* typography - line height */
    --lh-headline-large: 72px;
    --lh-headline-medium: 52px;
  }


  /* REAUSED STYLE */
  .container {max-width: 1180px;}


  /* FOOTER */
  .footer-brand {grid-column: auto;}

  .footer-top .container {
    grid-template-columns: 580px repeat(3, 1fr);
  }

}