* {
    box-sizing: border-box
}

:root {
    --green: #174d2c;
    --green-2: #2f7042;
    --ink: #183021;
    --muted: #647168;
    --line: #dce6da;
    --pale: #eef3e8;

    /* new */
    --white: #fff;
    --ivory: #fffff0;
    /* --cream: #f7f5ea; */
    --cream: #FBFAF5;
    --footer: #f2f4ec;

    --hero-image: url("assets/hero-background.png");
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "DM Sans", system-ui, sans-serif;
    line-height: 1.6
}

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

a {
    color: inherit
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto
}

.topbar {
    min-height: 29px;
    padding: 5px 12px;
    background: var(--green);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    letter-spacing: .03em
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line)
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 24px
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: auto
}

.brand img {
    width: 190px;
    height: auto;
    max-height: 64px;
    object-fit: contain
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px
}

.nav-links a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 200;
    padding: 8px 0
}

.nav-links a:hover {
    color: var(--green);
    border-bottom: 1px solid var(--green)
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 25px;
    color: var(--green);
    cursor: pointer
}

.btn {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: transform .2s, background .2s;

    gap: 8px;
}

.btn:hover {
    transform: translateY(-1px)
}

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

.btn-primary:hover {
    background: #103c21
}

.btn-outline {
    background: white;
    color: var(--green)
}

.btn.small {
    min-height: 37px;
    padding: 0 16px
}

.btn i {
    font-size: 20px;
}

.nav-order {
    white-space: nowrap
}

/* Hero Section */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-image: var(--hero-image);
    background-position: center, right center;
    background-repeat: no-repeat;
    background-size: cover, cover;
}

.hero-grid {
    position: relative;
    min-height: 420px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 1;
    align-self: center;
    width: 55%;
    max-width: 600px;
    padding: 60px 0;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .18em;
    font-weight: 800;
    color: var(--green-2);
    display: inline-block;
    border: 1px solid #b8ceb9;
    border-radius: 999px;
    padding: 6px 12px;
    background: #f1f7ed
}

h1,
h2,
h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 300;
    letter-spacing: -.025em;
    color: var(--green)
}

h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.06;
    margin: 18px 0
}

/* Subtle refinement for the headline */
.hero h1 {
    color: #183021;
}

h1 em {
    font-style: normal;
    color: var(--green)
}

.hero h1 em {
    color: #174d2c;
}

h2 {
    font-size: clamp(32px, 3.5vw, 44px);
    line-height: 1.15;
    margin: 8px 0 14px
}

h3 {
    font-size: 21px;
    line-height: 1.2;
    margin: 7px 0 10px
}

.hero-tagline {
    font-family: 'Caveat', cursive;
    font-size: .85em;
    font-weight: 600;
    font-style: normal;
    color: #315d38;
    display: inline-block;
}

.lead {
    max-width: 490px;
    color: var(--muted);
    font-size: 15px
}

.hero-action {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px
}

.preorder-note {
    font-size: 11px;
    color: var(--muted);
    margin-top: 15px
}

/* Benefits */

.benefits {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    /* background: var(--cream) */
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr)
}

.benefit {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid var(--line);
    padding: 16px
}

.benefit:last-child {
    border: 0
}

.benefit-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    margin-bottom: 7px
}

.benefit-text {
    display: flex;
    flex-direction: column;
    align-items: center
}

.benefit-text b {
    font-size: 13px;
    color: var(--green)
}

.benefit-text small {
    font-size: 11px;
    color: var(--muted)
}

/* Generic Sections */

.section {
    padding: 46px 0;
    background: var(--white);
    border-top: 1px solid var(--line);
}

.section.alt {
    background: var(--cream)
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 34px
}

.section-script {
    font-family: "Allura", cursive;
    font-size: 31px;
    color: #607365
}

.section-heading p {
    color: var(--muted);
    font-size: 14px;
    margin: 0 auto;
    max-width: 620px
}

/* Products Section */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px
}

.product-card {
    background: white;
    border: 1px solid #e4e9df;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px #173e1710;
    display: flex;
    flex-direction: column;
    min-width: 0
}

.product-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-decoration: none
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s
}

.product-image:hover img {
    transform: scale(1.04)
}

.image-fallback-icon {
    display: none;
    font-size: 42px
}

.image-fallback .image-fallback-icon {
    display: block
}

.product-copy {
    padding: 21px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1
}

.product-availability {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-2);
    background: #eef5e9;
    border-radius: 99px;
    padding: 5px 9px
}

.product-copy h3 {
    margin: 12px 0 8px
}

.product-copy p {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 18px;
    flex: 1
}

.product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.size-option {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #d7dfcf;
  border-radius: 8px;
  background: #f5f5e9;
  color: #315d38;
  font-size: 14px;
  font-weight: 600;
}

.product-loading {
    grid-column: 1/-1;
    text-align: center;
    padding: 24px;
    color: var(--muted)
}

.delivery-note {
    font-size: 12px;
    color: #777;
    margin: 8px 0 0;
    font-style: italic;
}

.center-note {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin: 24px 0 0
}

/* How To Order Section */

.steps-wrap {
    position: relative;
    max-width: 1120px;
    margin: auto;
    min-height: 350px
}

.steps-line {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 60px;
    height: 155px;
    overflow: visible;
    z-index: 0;
}

.steps-line path {
    fill: none;
    stroke: #18bd73;
    stroke-width: 4;
    stroke-dasharray: 10 10
}

.steps {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: start;
    gap: 20px
}

.step {
    position: relative;
    text-align: center
}

.step:nth-child(1),
.step:nth-child(5) {
    padding-top: 95px
}

.step:nth-child(2),
.step:nth-child(4) {
    padding-top: 0
}

.step:nth-child(3) {
    padding-top: 110px
}

.step-card {
    background: rgba(255, 255, 255, .96);
    border: 1px solid #dfe5e2;
    border-radius: 15px;
    padding: 17px 15px 18px;
    box-shadow: 0 5px 12px rgba(28, 50, 36, .12);
    min-height: 148px
}

.step-icon {
    font-size: 27px;
    line-height: 1;
    color: #05a94f;
    margin-bottom: 10px
}

.step h3 {
    font-size: 1rem;
    margin: 0 0 7px;
    letter-spacing: -.02em
}

.step p {
    font-size: .83rem;
    line-height: 1.45;
    color: #68756d;
    margin: 0
}

.center-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px
}

/* Story Section */

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center
}

.story-image {
    height: 390px;
    border-radius: 18px 80px 18px 18px;
    overflow: hidden
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.story-copy p {
    font-size: 14px;
    color: var(--muted)
}

.text-link {
    display: inline-block;
    color: var(--green);
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid #a7bca8;
    padding-bottom: 3px;
    margin-top: 8px
}

/* Footer Section */

.footer {
    background: var(--footer);;
    border-top: 1px solid var(--line);
    padding: 42px 0 0
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr 1.2fr .9fr;
    gap: 25px
}

.footer-logo {
    width: 135px
}

.footer h4 {
    margin: 0;
    font-size: 16px
}

.footer a {
    display: block;
    width: fit-content;
    text-decoration: none;
    font-size: 14px;
    color: #526057;
    margin: 6px 0;
}

.footer p {
    font-size: 14px;
    color: #657066
}

.footer a.footer-contact-item {
    display: flex;
    width: fit-content;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    text-decoration: none;
    color: inherit;
    line-height: 1.6;
    cursor: default;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    text-decoration: none;
    color: inherit;
    line-height: 1.6;
}

.footer-contact-item span {
    cursor: pointer;
}

.footer-contact-item i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    cursor: default;
}

.footer-contact-item:hover {
    color: #315d38;
}

.footer-contact-item .fa-whatsapp,
.footer-contact-item .fa-instagram {
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    margin-top: 30px;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #6c776e
}

/* Tablet */
@media(max-width:1000px) {
    .nav {
        gap: 15px
    }

    .nav-links {
        gap: 14px
    }

    .nav-links a {
        font-size: 12px
    }

    .brand img {
        width: 160px
    }

    .hero {
        background-position: center, 58% center;
    }

    .hero-grid {
        min-height: 480px;
        grid-template-columns: 1fr 1fr
    }

    .hero-copy {
        width: 58%;
        padding: 48px 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .steps-wrap {
        min-height: 0
    }

    .steps-line {
        display: none
    }

    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .step,
    .step:nth-child(1),
    .step:nth-child(2),
    .step:nth-child(3),
    .step:nth-child(4),
    .step:nth-child(5) {
        padding-top: 0
    }

    .step {
        text-align: center;
    }

    .step-card {
        height: 100%;
        min-height: 175px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Centre the fifth card */
    .step:nth-child(5) {
        grid-column: 1 / -1;
        width: calc(50% - 11px);
        justify-self: center;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

/* Mobile */
@media(max-width:760px) {
    .container {
        width: min(100% - 32px, 600px)
    }

    .nav {
        min-height: 70px;
        gap: 12px
    }

    .brand img {
        width: 150px
    }

    .menu-toggle {
        display: block;
        margin-left: auto
    }

    .nav-order {
        display: none
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--line);
        padding: 16px 24px 20px;
        box-shadow: 0 12px 18px #12301a12;
        align-items: stretch;
        gap: 0;
        flex-direction: column
    }

    .nav-links.open {
        display: flex
    }

    .nav-links a {
        font-size: 14px;
        padding: 11px 0;
        border-bottom: 1px solid #eef1eb
    }

    .nav-links a:last-child {
        border-bottom: 0
    }

    .hero {
        background-image:
            linear-gradient(
                180deg,
                rgba(251, 250, 245, 0.97) 0%,
                rgba(251, 250, 245, 0.95) 45%,
                rgba(251, 250, 245, 0.60) 70%,
                rgba(238, 243, 232, 0.12) 100%
            ),
            var(--hero-image);

        background-position: center, 65% center;
        background-size: cover, cover;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        min-height: 570px;
    }

    .hero-copy {
        width: 100%;
        max-width: 520px;
        padding: 42px 0 48px;
    }

    .benefit-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .benefit:nth-child(2) {
        border-right: 0
    }

    .benefit:nth-child(-n+2) {
        border-bottom: 1px solid var(--line)
    }

    .section {
        padding: 56px 0
    }

    .product-grid {
        gap: 14px
    }

    .product-image {
        height: 180px
    }

    .product-copy {
        padding: 16px
    }

    .product-copy h3 {
        font-size: 19px
    }

    .steps-wrap {
        min-height: 0;
    }

    .steps-line {
        display: none;
    }

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

    .steps {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 16px;
    }

    .step,
    .step:nth-child(1),
    .step:nth-child(2),
    .step:nth-child(3),
    .step:nth-child(4),
    .step:nth-child(5) {
        grid-column: auto;
        width: 100%;
        max-width: 100%;
        justify-self: stretch;
        padding-top: 0;
        display: block;
        text-align: left;
    }

    .step-card {
        width: 100%;
        min-height: auto;
        height: auto;
        box-sizing: border-box;
    }

    .story-grid,
    .feature-row {
        grid-template-columns: 1fr;
        gap: 26px
    }

    .story-image {
        height: 280px
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .footer-grid>div:first-child,
    .footer-grid>div:last-child {
        grid-column: 1/-1
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px
    }
}

@media(max-width:440px) {
    h1 {
        font-size: 42px
    }

    .actions .btn {
        width: 100%
    }

    .product-grid {
        grid-template-columns: 1fr
    }

    .product-image {
        height: 230px
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .footer-brand .brand img {
        width: 170px
    }

    .section-heading {
        margin-bottom: 26px
    }
}