
/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

    /* COLORS */
  
    --oxford-blue_60: hsla(224, 34%, 13%, 0.6);
    --green-pigment: hsl(142, 76%, 36%);
    --oxford-blue: hsl(224, 34%, 13%);
    --maximum-red: hsl(0, 72%, 51%);
    --eerie-black: hsl(0, 0%, 9%);
    --mint-cream: hsl(146, 41%, 97%);
    --cadet-gray: hsl(215, 20%, 65%);
    --light-gray: hsl(216, 12%, 84%);
    --carcoal_20: hsla(214, 19%, 29%, 0.2);
    --carcoal_15: hsla(214, 19%, 29%, 0.15);
    --carcoal_10: hsla(214, 19%, 29%, 0.10);
    --sea-green: hsl(142, 72%, 29%);
    --gainsboro: hsl(220, 13%, 91%);
    --white_70: hsla(0, 0%, 100%, 0.7);
    --gunmetal: hsl(215, 28%, 17%);
    --manatee: hsl(218, 11%, 65%);
    --mango: hsl(43, 96%, 56%);
    --white: hsl(0, 0%, 100%);
    --black: hsl(0, 0%, 0%);
  
    /* TYPO-GRAPHY */
  
    --ff-spartan: 'League Spartan', sans-serif;
  
    --fs-1: 3.6rem;
    --fs-2: 2.4rem;
    --fs-3: 2rem;
    --fs-4: 1.8rem;
    --fs-5: 1.7rem;
  
    --fw-600: 600;
    --fw-500: 500;
  
    /* SECTION */
  
    --section-padding: 35px;
  
    /* SHADOW */
  
    --shadow-1: 0 1px 2px hsla(0, 0%, 0%, 0.2);
    --shadow-2: 0 10px 15px -5px var(--carcoal_20);
    --shadow-3: 0 10px 25px -3px var(--carcoal_20);
    --shadow-4: 0 0 3px var(--carcoal_15);
    --shadow-5: 0 20px 25px -5px var(--carcoal_10),
                0 10px 10px -5px var(--carcoal_10);
  
    /* BORDER RADIUS */
  
    --radius-16: 16px;
    --radius-12: 12px;
    --radius-6: 6px;
    --radius-4: 4px;
  
    /* TRANSITION */
  
    --transition: 0.25s ease;
    --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);
  
  }
  
  /*-----------------------------------*\
    #RESET
  \*-----------------------------------*/
  
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  li { list-style: none; }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  a,
  img,
  span,
  label,
  input,
  select,
  button,
  ion-icon { display: block; }
  
  img { height: auto; }
  
  input,
  select,
  button {
    background: none;
    border: none;
    font: inherit;
  }
  
  input,
  select { width: 100%; }
  
  button { cursor: pointer; }
  
  ion-icon { pointer-events: none; }
  
  address { font-style: normal; }
  
  html {
    font-family: var(--ff-spartan);
    font-size: 10px;
    scroll-behavior: smooth;
  }
  
  body {
    background-color: var(--white);
    font-size: var(--fs-5);
    color: var(--cadet-gray);
  }
  
  /*-----------------------------------*\
    #REUSED STYLE
  \*-----------------------------------*/
  
  .container { padding-inline: 15px; }
  
  .btn {
    background-color: var(--green-pigment);
    color: var(--white);
    font-weight: var(--fw-500);
    max-width: max-content;
    padding: var(--padding, 12px 28px);
  }
  
  .btn:is(:hover, :focus) { background-color: var(--sea-green); }
  
  .btn-secondary { border-radius: 50px; }
  
  .btn-primary { border-radius: var(--radius-6); }
  
  .h1 { font-size: var(--fs-1); }
  
  .h2,
  .h3 {
    color: var(--oxford-blue);
    line-height: 1.5;
  }
  
  .h2 {
    font-size: var(--fs-2);
    font-weight: var(--fw-500);
  }
  
  .h3 {
    font-size: var(--fs-3);
    font-weight: var(--fw-500);
  }
  
  .section { padding-block: var(--section-padding); }
  
  .img-holder {
    aspect-ratio: var(--width) / var(--height);
    background-color: var(--gainsboro);
  }
  
  .img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .section-title { color: var(--oxford-blue); }
  
  .section-text { line-height: 1.6; }
  
  /*-----------------------------------*\
    #HEADER
  \*-----------------------------------*/
  
  .header {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-block: 15px;
    z-index: 4;
  }
  
  .header.active { box-shadow: var(--shadow-1); }
  
  .header > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  
  .logo {
    font-size: 2.2rem;
    font-weight: var(--fw-600);
    color: var(--black);
  }
  
  .logo ion-icon {
    display: inline-block;
    color: var(--sea-green);
    --ionicon-stroke-width: 50px;
  }
  
  .nav-toggle-btn {
    font-size: 35px;
    color: var(--oxford-blue);
  }
  
  .nav-toggle-btn ion-icon { --ionicon-stroke-width: 30px; }
  
  .nav-toggle-btn.active .menu-icon,
  .nav-toggle-btn .close-icon { display: none; }
  
  .nav-toggle-btn .menu-icon,
  .nav-toggle-btn.active .close-icon { display: block; }
  
  .header .btn { margin-inline-start: auto; }
  
  .navbar {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background-color: var(--white);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: 0.25s var(--cubic-out);
  }
  
  .navbar.active {
    max-height: 260px;
    visibility: visible;
    box-shadow: var(--shadow-1);
    transition-duration: 0.5s;
  }
  
  .navbar-list {
    margin-block: 10px;
    opacity: 0;
    transition: var(--transition);
  }
  
  .navbar.active .navbar-list { opacity: 1; }
  
  .navbar-link {
    color: var(--oxford-blue);
    font-weight: var(--fw-500);
    letter-spacing: 1px;
    padding: 12px 25px;
  }
  
  .navbar-link:is(:hover, :focus) { color: var(--green-pigment); }
  
  /*-----------------------------------*\
    #HERO
  \*-----------------------------------*/
  
  .article { position: relative; }
  
  .hero { padding-block-start: 80px; }
  
  .hero-bg {
    background-image: url("./images/hero-bg.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-16);
    overflow: hidden;
  }
  
  .hero-content {
    background-color: var(--oxford-blue_60);
    padding-block: 180px;
    padding-inline: 40px;
    display: grid;
    grid-template-columns: 1fr;
    place-content: center;
    text-align: center;
  }
  
  .hero-title {
    max-width: 16ch;
    margin-inline: auto;
    color: var(--white);
    line-height: 1.5;
    margin-block-end: 20px;
  }
  
  .hero-title .span {
    display: inline-block;
    color: var(--green-pigment);
  }
  
  .hero-text {
    color: var(--white_70);
    font-size: var(--fs-3);
    line-height: 1.4;
  }
  
  .hero-form-wrapper {
    background-color: var(--white);
    margin-block-start: -100px;
    width: calc(100% - 10px);
    margin-inline: auto;
    border-radius: var(--radius-16);
    overflow: hidden;
    box-shadow: var(--shadow-2);
  }
  
  .form-tab {
    padding: 16px;
    border-block-end: 1px solid var(--gainsboro);
    display: flex;
    justify-content: center;
  }
  
  .tab-btn {
    padding: 12px 24px;
    color: var(--oxford-blue);
    font-weight: var(--fw-500);
    border-radius: var(--radius-6);
    transition: var(--transition);
  }
  
  .tab-btn:is(:hover, :focus) { color: var(--green-pigment); }
  
  .tab-btn.active {
    color: var(--white);
    background-color: var(--green-pigment);
  }
  
  .hero-form {
    display: grid;
    gap: 25px;
    padding: 25px;
  }
  
  .hero-form .input-wrapper { position: relative; }
  
  .hero-form :is(.input-label, .input-field) { color: var(--oxford-blue); }
  
  .hero-form .input-label {
    font-weight: var(--fw-500);
    margin-block-end: 10px;
  }
  
  .hero-form :is(.input-field, .dropdown-list) {
    min-height: 40px;
    border: 1px solid var(--gainsboro);
    border-radius: var(--radius-4);
    outline: none;
    transition: var(--transition);
  }
  
  .hero-form :is(.input-field, .dropdown-list):focus { border-color: var(--green-pigment); }
  
  .hero-form .input-wrapper ion-icon {
    position: absolute;
    top: 50%;
    transform: translateY(20%);
    left: 15px;
    color: var(--oxford-blue);
    --ionicon-stroke-width: 40px;
  }
  
  .hero-form .input-field { padding-inline: 45px 15px; }
  
  .hero-form .input-field::placeholder { color: var(--manatee); }
  
  .hero-form .dropdown-list { padding-inline: 15px; }
  
  .hero-form .btn { max-width: 100%; }
  
  /*-----------------------------------*\
    #ABOUT
  \*-----------------------------------*/
  
  .about .section-title { max-width: 20ch; }
  
  .about-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-16);
    margin-block-end: 30px;
  }
  
  .about-banner .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white);
    color: var(--green-pigment);
    padding: 30px;
    font-size: 20px;
    border-radius: 50px;
  }
  
  .about .section-text { margin-block: 20px 25px; }
  
  /*-----------------------------------*\
    #SERVICE
  \*-----------------------------------*/
  
  .service :is(.section-title, .section-text) { text-align: center; }
  
  .service .section-text { margin-block: 15px 60px; }
  
  .service-list {
    display: grid;
    gap: 30px;
  }
  
  .service-card { text-align: center; }
  
  .service-card .card-icon {
    background-color: var(--mint-cream);
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    margin-inline: auto;
  }
  
  .service-card .card-icon ion-icon {
    font-size: 30px;
    color: var(--green-pigment);
    --ionicon-stroke-width: 45px;
  }
  
  .service-card .card-title { margin-block: 25px 12px; }
  
  .service-card .card-text { line-height: 1.6; }
  
  /*-----------------------------------*\
    #PROPERTY
  \*-----------------------------------*/
  
  .property :is(.section-title, .section-text) { text-align: center; }
  
  .property .section-text { margin-block: 15px 60px; }
  
  .property-list {
    display: grid;
    gap: 30px;
  }
  
  .property-card {
    position: relative;
    border-radius: var(--radius-12);
    box-shadow: var(--shadow-4);
    overflow: hidden;
    transition: var(--transition);
  }
  
  .property-card:is(:hover, :focus-within) { box-shadow: var(--shadow-5); }
  
  .property-card .card-action-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--white);
    color: var(--maximum-red);
    padding: 12px;
    border-radius: 50px;
  }
  
  .property-card .card-content {
    color: var(--oxford-blue);
    padding: 25px;
  }
  
  .property-card .card-title {
    font-size: var(--fs-4);
    transition: var(--transition);
  }
  
  .property-card .card-title:is(:hover, :focus) { color: var(--green-pigment); }
  
  .property-card .card-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px 15px;
    padding-block: 30px;
    border-block: 1px solid var(--gainsboro);
    margin-block: 30px;
  }
  
  .property-card .card-item {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .property-card .item-icon {
    color: var(--green-pigment);
    font-size: 24px;
  }
  
  .property-card .item-icon ion-icon { --ionicon-stroke-width: 40px; }
  
  .property-card .card-meta {
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  
  .property-card .meta-title {
    color: var(--cadet-gray);
    margin-block-end: 10px;
  }
  
  .property-card .meta-text {
    font-size: var(--fs-4);
    font-weight: var(--fw-500);
    display: flex;
    gap: 8px;
  }
  
  .property-card .rating-wrapper {
    display: flex;
    gap: 5px;
    color: var(--mango);
    font-size: 16px;
  }
  
  /*-----------------------------------*\
    #CONTACT
  \*-----------------------------------*/
  
  .contact {
    padding-block-end: calc(var(--section-padding) * 2);
    text-align: center;
  }
  
  .contact .section-title { font-weight: var(--fw-500); }
  
  .contact .section-text { margin-block: 25px; }
  
  .contact .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-inline: auto;
  }
  
  .contact .btn ion-icon { --ionicon-stroke-width: 50px; }
  
  /*-----------------------------------*\
    #NEWSLETTER
  \*-----------------------------------*/
  
  .newsletter {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 20px);
    width: 100%;
    background-color: var(--white);
    padding: 40px 24px;
    text-align: center;
    box-shadow: var(--shadow-3);
    border-radius: var(--radius-12);
    z-index: 1;
  }
  
  .newsletter .container {
    display: grid;
    gap: 30px;
  }
  
  .newsletter .section-title { font-weight: var(--fw-500); }
  
  .newsletter-form { position: relative; }
  
  .newsletter .email-field {
    color: var(--oxford-blue);
    padding: 17px;
    padding-inline-end: 130px;
    border: 1px solid var(--gainsboro);
    border-radius: 50px;
    outline: none;
  }
  
  .newsletter .btn {
    position: absolute;
    top: 3px;
    right: 3px;
    bottom: 3px;
  }
  
  /*-----------------------------------*\
    #FOOTER
  \*-----------------------------------*/
  
  .footer {
    background-color: var(--eerie-black);
    color: var(--light-gray);
    margin-block-start: 100px;
    padding-block-start: 190px;
  }
  
  .footer .logo {
    color: var(--white);
    font-weight: var(--fw-500);
    margin-block-end: 25px;
  }
  
  .footer-text { line-height: 1.6; }
  
  .footer-top { padding-block: 60px; }
  
  .footer-top .container {
    display: grid;
    gap: 30px;
  }
  
  .footer-list-title {
    color: var(--mint-cream);
    font-weight: var(--fw-600);
    letter-spacing: 1px;
    margin-block-end: 25px;
  }
  
  .footer-list li:not(:last-child) { margin-block-end: 15px; }
  
  .footer-link {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
  }
  
  .footer-link ion-icon { font-size: 14px; }
  
  .footer-link:is(:hover, :focus) { opacity: 0.8; }
  
  .footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .footer-item:nth-child(2) { align-items: flex-start; }
  
  .footer-list .footer-item:not(:last-child) { margin-block-end: 25px; }
  
  .footer-item ion-icon {
    color: var(--green-pigment);
    font-size: 22px;
    --ionicon-stroke-width: 40px;
  }
  
  .address { line-height: 1.5; }
  
  .address-link {
    color: var(--green-pigment);
    margin-block-start: 10px;
    transition: var(--transition);
  }
  
  .address-link:is(:hover, :focus) { opacity: 0.8; }
  
  .footer-bottom {
    border-block-start: 1px solid var(--gunmetal);
    padding-block: 30px;
    text-align: center;
  }
  
  .copyright {
    line-height: 1.6;
    margin-block-end: 30px;
  }
  
  .copyright-link { display: inline-block; }
  
  .social-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }
  
  .social-link {
    color: var(--manatee);
    border: 1px solid var(--gunmetal);
    padding: 4px;
    border-radius: var(--radius-6);
  }
  
  .social-link:is(:hover, :focus) {
    background-color: var(--green-pigment);
    border-color: var(--green-pigment);
    color: var(--white);
  }
  
  /*-----------------------------------*\
    #BACK TO TOP
  \*-----------------------------------*/
  
  .back-top-btn {
    position: fixed;
    bottom: 10px;
    right: 20px;
    background-color: var(--green-pigment);
    color: var(--white);
    font-size: 14px;
    padding: 12px;
    border-radius: 50px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 4;
  }
  
  .back-top-btn.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(-10px);
  }
  
  /*-----------------------------------*\
    #MEDIA QUERIES
  \*-----------------------------------*/
  
  /**
   * responsive for larger than 640px screen
   */
  
  @media (min-width: 640px) {
  
    /* RE-USED */
  
    .container {
      max-width: 640px;
      width: 100%;
      margin-inline: auto;
    }

    /* HERO */
  
    .hero .container { max-width: unset; }
  
    .hero-form-wrapper {
      max-width: 600px;
      margin-inline: auto;
      background-color: unset;
    }
  
    .hero .form-tab,
    .hero-form { background-color: var(--white); }
  
    .hero .form-tab {
      max-width: max-content;
      border-top-left-radius: var(--radius-16);
      border-top-right-radius: var(--radius-16);
    }
  
    .hero-form { border-top-right-radius: var(--radius-16); }

    /* NEWSLETTER */
  
    .newsletter { width: calc(100% - 130px); }

    /* FOOTER */
  
    .footer { padding-block-start: 130px; }
  
  }
  
  /**
   * responsive for larger than 768px screen
   */
  
  @media (min-width: 768px) {
  
    /* CUSTOM PROPERTY */
  
    :root {
  
      /* TYPO-GRAPHY */
  
      --fs-2: 3rem;
  
    }

    /* RE-USED STYLE */
  
    .container,
    .hero-form-wrapper { max-width: 700px; }
  
    .section-text {
      max-width: 55ch;
      margin-inline: auto;
    }

    /* HERO */
  
    .hero-content {
      text-align: left;
      padding-inline: calc(50% - 350px);
    }
  
    .hero-title { margin-inline: 0; }
  
    .hero-text { max-width: 50ch; }
  
    .hero-form { grid-template-columns: 1fr 1fr; }

    /* ABOUT */
  
    .about .container {
      display: grid;
      grid-template-columns: 0.7fr 1fr;
      align-items: center;
      gap: 30px;
    }
  
    .about-banner { margin-block-end: 0; }

    /* SERVICES */
  
    .service-list,
    .property-list { grid-template-columns: 1fr 1fr; }

    /* NEWSLETTER */
  
    .newsletter { text-align: left; }
  
    .newsletter .container {
      grid-template-columns: 1fr 1fr;
      align-items: center;
    }

    /* FOOTER */
  
    .footer { padding-block-start: 80px; }
  
    .footer-top .container {
      grid-template-columns: repeat(3, 1fr);
      row-gap: 50px;
    }
  
    .footer-brand { grid-column: 1 / 4; }
  
    .footer-bottom .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
  
    .copyright { margin-block-end: 0; }
  
  }
  
  /**
   * responsive for larger than 992px screen
   */
  
  @media (min-width: 992px) {
  
    /* CUSTOM PROPERTY */
  
    :root {
  
      /* TYPO-GRAPHY */
  
      --fs-1: 4.8rem;
  
      /* SPACING */
  
      --section-padding: 40px;
  
    }

    /* RE-USED STYLE */
  
    .container,
    .hero-form-wrapper { max-width: 900px; }

    /* HEADER */
  
    .header > .container { gap: 30px; }
  
    .nav-toggle-btn { display: none; }
  
    .navbar,
    .navbar.active {
      all: unset;
      margin-inline-start: auto;
    }
  
    .navbar-list {
      margin-block: 0;
      opacity: 1;
      display: flex;
    }
  
    .navbar-link { padding-inline: 20px; }
  
    .header .btn { margin-inline-start: 0; }

    /* HERO */
  
    .hero-content { padding-inline: calc(50% - 450px); }
  
    .hero-form { grid-template-columns: repeat(4, 1fr); }

    /* ABOUT */
  
    .about .container { gap: 50px; }

    /* SERVICES */
  
    .service-list,
    .property-list { grid-template-columns: repeat(3, 1fr); }

    /* NEWSLETTER */
  
    .newsletter { width: calc(100% - 220px); }

    /* FOOTER */
  
    .footer-brand { grid-column: auto; }
  
    .footer-top .container {
      grid-template-columns: 1fr 0.5fr 0.6fr 0.7fr;
    }
  
  }
  
  /**
   * responsive for larger than 1200px screen
   */
  
  @media (min-width: 1200px) {
  
    /* RE-USED STYLE */
  
    .container,
    .hero-form-wrapper { max-width: 1120px; }

    /* HERO */
  
    .hero-content { padding-inline: calc(50% - 560px); }

    /* ABOOUT */
  
    .about .section-text { max-width: unset; }
  
  }