/* ==================================
   BASE PROPERTIES
   ================================== */

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

:root {
    --font-sans: 'Inter', system-ui, sans-serif;
    /* base text and headings */
    --fs-massive: 5rem;     
    --fs-h1: 3rem;          /* 48px */
    --fs-h2: 2.25rem;       /* 36px */
    --fs-h3: 1.5rem;        /* 24px */
    --fs-h4: 1.25rem;       /* 20px */

    --fs-body: 1rem;        /* 16px */

    --fs-small: 0.875rem;   /* 14px */
    --fs-xs: 0.75rem;       /* 12px */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;


    /* margins*/
    --space-xxs: .25rem;
    --space-xs: .5rem;
    --space-s: .75rem;
    --space-m: 1rem;
    --space-l: 1.25rem;
    --space-xl: 1.5rem;
    --space-xxl: 2.5rem;
    --space-section: 4rem;

    /* line height */
    --lh-body: 1.6;
    --lh-heading: 1.3;  

    /* colors */
    --color-primary: #3B9A8D;
    --color-primary-rgb: 59, 154, 141;
    --color-primary-bg-20: rgba(var(--color-primary-rgb), 0.2);
    --color-secondary: #D9E76C;
    --color-text: #26413C;
    --color-text-muted: #6f6f6f;
    --color-text-muted-20: rgba(111, 111, 111, 0.2);

    --color-border: #cee3e0;
    --color-bg: #ffffff;

    --color-red: #ff3333;
    --color-red-hover: #e62e2e;

    --border-primary: 1px solid var(--color-border);
    --border-big: 2px solid var(--color-border);
    --border-grey: 1px solid var(--color-text-muted-20);

    /* background colors */
    --gradient-1: linear-gradient(318deg,rgba(58, 99, 93, 1) 0%, rgba(38, 65, 60, 1) 100%);
    --color-background-grey: #F9FAFB;

    /* border-radius */
    --border-radius: 4px;
}

section{
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}

section:first-of-type{
    padding: 0;
}

section .section-button{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-section);
    margin-bottom: var(--space-l);
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

body {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-sans);
    line-height: var(--lh-heading);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-s);
}

h1, .h1 {
    font-weight: var(--fw-bold);
    font-size: var(--fs-h1); 
}

h2, .h2 {
    font-weight: var(--fw-semibold);
    font-size: var(--fs-h2); 
}

h3, .h3 { 
    font-size: var(--fs-h3); 
}

h4, .h4 { 
    font-size: var(--fs-h4); 
}

p {
    margin-bottom: var(--space-m);
}

a {
    color: var(--color-primary);
    font-weight: var(--fw-medium);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

small, .text-muted {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
}

strong{
    font-weight: var(--fw-semibold);
}

.medium{
    font-weight: var(--fw-medium);
}

.bold{
    font-weight: var(--fw-bold);
}

.container {
    max-width: 1100px;
    padding-left: var(--space-m);
    padding-right: var(--space-m);
    margin-left: auto;
    margin-right: auto;
}

.container p{
    color: var(--color-text-muted);
}

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

hr{
    color: var(--color-border);
    opacity: 0.2;
}

.title-description{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: var(--space-xl);
    text-align: center;
}

.title-description p{
   color: var(--color-text-muted);
   font-size: var(--fs-h3);
}

.title-description :first-child{
    margin-top: var(--space-xl);
}

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

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

.visually-hidden{
    display: none;
}

address{
    color: var(--color-text-muted);
    font-style: normal;
}

address h3{
    color: var(--color-text);
    font-size: var(--fs-h4);
}

form h2{
    font-size: var(--fs-h4);
}

.red{
    color: var(--color-red) !important;
    font-weight: var(--fw-bold) !important;
}

.primary-list, .secondary-list {
    list-style: none;
    padding-left: 0;
}

.primary-list li, .secondary-list li {
    position: relative;
    padding-left: 1.5rem;
}

.primary-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1rem;
    height: 1rem;
    background: url("/svgs/checkmark-1.svg") no-repeat center / contain;
}

.secondary-list li::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1rem;
    height: 1rem;
    background: url("/svgs/checkmark-2.svg") no-repeat center / contain;
}

ol li {
    color: var(--color-text-muted);
}

.centered{
    text-align: center;
}

.no-padding-top{
    padding-top: 0;
}

/* ========= MEDIA QUERIES ========= */

/* Extra small devices (phones) */
@media (max-width: 480px) {
    h1, .h1 {
        font-weight: var(--fw-bold);
        font-size: var(--fs-h2); 
    }

    h2, .h2 {
        font-weight: var(--fw-semibold);
        font-size: var(--fs-h3); 
    }

    h3, .h3 { 
        font-size: var(--fs-h4); 
    }

    h4, .h4 { 
        font-size: var(--fs-base); 
    }

    p{
        font-size: var(--fs-base);
    }

    .title-description p{
        font-size: var(--fs-base) !important;
    }
}

/* Small devices (large phones) */
@media (max-width: 640px) {}

/* Tablets */
@media (max-width: 768px) {
    section{
        padding-top: var(--space-l);
    }

}

/* Small laptops */
@media (max-width: 1024px) {
    .container {
        max-width: 900px;
    }
}

/* Desktops */
@media (max-width: 1280px) {}

/* Large screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1200px;
  }
}