:root {
    --color-primary: #557739;
    --color-secondary: #86BB5A;
    --color-accent: #E6DA57;
    --color-heading: #77582C;
    --color-body: grey;

}

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

body {
    font-family: Merriweather, 'Times New Roman', Helvetica, serif;
    color: var(--color-body);
    font-size: 2.4rem;
    line-height: 1.5;
    margin: 10px;

}

h1, h2, h3 {
    color: var(--color-heading);
    margin-bottom: 1rem;
    
}

@media screen and (min-width: 1024px) {
    body {
        font-size: 1.8rem;
    }

    h1 {
        font-size: 8rem;
    }

    h2 {
        font-size: 4rem;
    }

    h3 {
        font-size: 2.4rem;
    }
}

/* Typography */
html {
    font-size: 62.5%;
}

h1 {
    font-size: 7rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 3rem;
    
}

p {
    margin-top: 0;
}



/* Links */

a {
    text-decoration: none;
}
.link-arrow {
    color: var(--color-primary);
    
    font-size: 2rem;
    font-weight: bold;
}

.link-arrow::after {
    content: '→';
    margin-left: 5px;
    transition: margin 0.15s;
}

.link-arrow:hover::after {
    margin-left: 10px;

}

@media screen and (min-width: 1024px) {
    .link-arrow {
        font-size: 1.5rem;
    }
}
/* Badges */

.badge {
    border-radius: 20px;
    padding: 0.5rem 2rem;
    font-weight: bold;
    white-space: nowrap;
}

.badge--primary {
    background: var(--color-primary);
    color: white;
}

.badge--secondary {
    background: var(--color-secondary);
    color: white;
}

.badge--small {
    font-size: 1.6rem;
    padding: 0.5rem 1.5rem;
}


@media screen and (min-width: 1024px) {
    .badge {
        font-size: 1.5rem;
    }

    .badge--small {
        font-size: 1.2rem;
    }

}


/* Lists */

.list {
    list-style: none;
    padding-left: 0;
    color: var(--color-heading);
}

.list--inline .list__item {
    display: inline-block;
    margin-right: 2rem;


}

.list--tick {
    list-style-image: url(../Images/tick.svg);
    padding-left: 3rem;
}

.list--tick .list__item {
    padding-left: 0.5rem;
    margin-bottom: 1rem;
}

@media screen and (min-width: 1024px) {
    .list--tic .list__item {
        padding-left: 0;
    }
}

.btn {
    border:3px solid transparent;
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 1rem 0;
    padding: 2rem 3rem;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-primary);
    color: white;
    transition: 0.5s;
}
.btn--primary:hover {
    background: white;
    color: var(--color-primary);
    border: 3px solid var(--color-primary);
    transition: 0.5s;
}

.btn--secondary {
    background: var(--color-secondary);
    color: white;
    transition: 0.5s;

}
.btn--secondary:hover {
    background: white;
    color: var(--color-secondary);
    border: 3px solid var(--color-secondary);
    transition: 0.5s;
}
.btn--accent {
    background: var(--color-heading);
    color: white;
    transition: 0.5s;

}

.btn--accent:hover {
    background: white;
    color: var(--color-heading);
    border: 3px solid var(--color-heading);
    transition: 0.5s;
}

.btn--block {
    width: 100%;
    display: inline-block;
}

@media screen and (min-width: 1024px) {
    .btn {
        font-size: 1.5rem;
    }
}

/* Inputs */

.input {
    padding: 1.5rem 2.5rem; 
    border: 3px solid var(--color-heading);
    outline: 0;
    color: var(--color-heading);
}

::placeholder {
    color: grey;
}

@media screen and (min-width: 1024px) {
    .input {
        font-size: 1.5rem;
    }
}

/* Cards */

.card {
    box-shadow: 0 0 20px 10px #f3f3f3;
}

.card__header, .card__body {
    padding: 2rem 3rem;
}

.card--primary .card__header {
    background: var(--color-primary);
    color: white;
}

.card--secondary .card__header {
    background: var(--color-secondary);
    color: white;
}

.card--primary .badge--secondary {
    background: var(--color-secondary);
}

.card--secondary .badge--secondary {
    background: var(--color-primary);
}

/*Plans*/

.plan__name {
    color: white;
    margin: 0;
    font-weight: 500;
    font-size: 2.4rem;
}

.plan__price {
    font-size: 6rem;
}

.plan__billing-cycle {
    font-size: 2.4rem;
    font-weight: 300;
    opacity: 0.8;
    margin-right: 1rem;
}

.plan__description {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
    display: block;
}
.plan:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
}
.plan .list__item {
    margin-bottom: 2rem;
}

.plan{
    transition: transform 0.3s ease-out;
}

@media screen and (min-width: 1024px) {
    .plan__name {
        font-size: 1.4rem;
    }

    .plan__price {
        font-size: 5rem;
    }

    .plan__billing-cycle {
        font-size: 1.6rem;
    }

    .plan__description {
        font-size: 1.7rem;
    }
}

/*Grids*/

.grid {
    display: grid;
    
}

@media screen and (min-width: 768px) {
    .grid--1x2 {
        grid-template-columns: 2fr 3fr;
    }
    .grid--1x2-1 {
        grid-template-columns: 1fr 1fr;
    }

    .grid--1x3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/*Testimonial*/

.testimonial {
    padding: 3rem;

}

.testimonial__image {
    width: 100%;
}

/* Icons */
.icon {
  width: 40px;
  height: 40px;
}

.icon--small {
  width: 30px;
  height: 30px;
}

.icon--primary {
  fill: var(--color-primary);
}

.icon--white {
  fill: #fff;
}

.icon-container {
  background: #f3f9fa;
  width: 64px;
  height: 64px;
  border-radius: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.icon-container--accent {
  background: var(--color-secondary);
}

/*Collapsible*/

.collapsible__header {
    display: flex;
    justify-content: space-between;
}

.collapsible__heading {
    margin-top: 0;
    font-size: 3rem;
    color: white;
}

.collapsible__chevron {
    transform: rotate(-90deg);
    transition: 0.3s;
}

.collapsible__content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s, opacity 0.3s;
    opacity: 0;
}

.collapsible--expanded .collapsible__chevron {
    transform: rotate(0);
    
}

.collapsible--expanded .collapsible__content {
    max-height: 100vh;
    opacity: 1;
}

/*Blocks*/

.block {
    --padding-vertical: 6rem;
    padding: var(--padding-vertical) 0rem var(--padding-vertical) 2rem;
    

}

.block__heading {
    margin-top: 0;
    color: var(--color-heading)
}

.block--dark {
    background: var(--color-heading);
    color: white;
}

.block--dark .block__heading {
    color: white;
}

.block--skewed-right {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
    padding-bottom: calc(var(--padding-vertical) + 4rem);
}

.block--skewed-left {
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    padding-bottom: calc(var(--padding-vertical) + 4rem);
}

.block__header {
    text-align: center;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

/* Navigation */

.nav {
    background: white;
    top: 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 1rem;
    position: sticky;
    align-items: center;
    z-index: 1000;

}

.nav__list {
    margin: 0;
    width: 100%;
}

.nav__item {
    padding: 0.5rem 2rem;
    border-bottom: 1px solid #222;
    color: var(--color-heading);
}

.nav__item > a {
    color: var(--color-heading);
}

.nav__item > a:hover {
    color: black;
}

.nav__toggler {
    opacity: 0.7;
    transition: box-shadow 0.15s;
    cursor: pointer;
}

.nav.collapsible--expanded .nav__toggler {
    opacity: 1;
    box-shadow: 0 0 0 3px #666;
    border-radius: 5px;
    
}

@media screen and (min-width: 768px) {
    .nav__toggler {
        display: none;
    }

    .nav__list {
        width: auto;
        display: flex;
        font-size: 2rem;
        max-height: 100%;
        opacity: 1;
        position: sticky;
        top: 0;
    }

    .nav__item {
        border: 0;
    }
}

.hero__tagline {
    font-size: 2rem;
    letter-spacing: 1px;
    margin: 2rem 0rem 5rem;
}

.hero__image {
    width: 100%;
    margin-top: 3rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}

@media screen and (min-width: 768px) {
    .hero {
        padding-top: 0;
    }

    .hero__content {
        text-align: left;
        align-self: center;
    }
}


/* Plans Block */
.block-plans .grid {
    gap: 8rem 4rem;
}

.block-plans .card {
    max-width: 450px;
    margin: 0 auto;
}



/* Feature */
.feature {
    gap: 4rem;
    margin: 12rem 0;
}
.feature__heading {
    margin: 5rem 0rem;
    
}

.feature__image {
    width: 100%;

}

@media screen and (min-width: 768px) {
    .feature:nth-of-type(even) .feature__content {
        order: 2;
    }
}

/* Footer */
.footer {

}

.footer__section {
    padding: 2rem;
    border-bottom: 1px solid white;
}

.footer__heading {
    text-transform: uppercase;
    font-weight: 600;

}

/* Gallery */
.gallery__header {
    text-align: center;
    margin: 4rem 0;
}

.gallery--categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: auto;
    padding: 4rem 2rem;
}

.category-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.category-card img {
    width: 100%;
    
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card h2 {
    text-align: center;
    bottom: 20px;
    left: 20px;
    
}

.category-card:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery--categories {
    grid-template-columns: 1fr 1fr;
  }
}


/* Gallery Grid */
.masonry--gallery {
    column-count: 3;
    column-gap: 1.5rem;
    max-width: 1200px;
    margin: auto;
    padding: 4rem 2rem;
}

.masonry--gallery img {
    width: 100%;
    margin-bottom: 1.5rem;
    
    break-inside: avoid;
    transition: transform 0.3s;
}

.masonry--gallery img:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
}

@media screen and (max-width: 1024px) {
    .masonry--gallery {
        column-count: 2;
    }
}

@media screen and (max-width: 768px) {
    .masonry--gallery {
        column-count: 1;
    }
}