@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --base-color:#ffffff;
    --text-color:#000000;
    --primary-color: #44e371;
    --secondary-color: #8D8DFF;
    /* subtle neutral box background (cool, not orange) */
    --color-1: #f6f8fa;
    /* lighter panel background when needed */
    --color-2: #ffffff;
    --color-3: #f8fafc;
}

*{
margin: 0;
padding: 0;
box-sizing: border-box; 
}

html {
    font-family: Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color:var(--text-color)
}

body {
padding: 1em;
background-color: var(--base-color);
}

h1, h2, h3 {
    font-family: merriweather, poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

nav {
    margin:1em auto 3em auto;
    width: min(1000px, 100%);
}

nav ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    gap: 2em;
}

nav li:first-child {
    margin-right: auto;
    font-family: merriweather, poppins;
    font-weight: bold;  
}

nav a {
text-decoration: none;
color:var(--text-color)
}

nav a:hover {
    text-decoration: underline;
}

header, section {
margin: 2em auto; 
width: min(75em, 100%);
background-color: var(--color-1); 
padding: min(2em, 15%); 
border-radius: 1em; 
    border: 1px solid rgba(16,24,32,0.04);
    box-shadow: 0 6px 18px rgba(16,24,32,0.04);
}

details {
    margin-top: 1em;
    border-radius: 1em;
    background-color: var(--color-1);
    overflow: hidden;
    border: 1px solid rgba(16,24,32,0.04);
    box-shadow: 0 4px 12px rgba(16,24,32,0.03);
}

details summary {
    padding: 1.25em 1.5em;
    font-size: 1.25rem;
    cursor: pointer;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::before {
    content: '▾ ';
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}

details[open] summary::before {
    transform: rotate(-180deg);
}

details > .flex-container {
    padding: 0 1.5em 1.5em 1.5em;
}

.dropdown-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.dropdown-row details {
    width: 100%;
}

.flex-container {
    display: flex; 
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    gap: 3em; 
}

header img {
    max-width: 100%;
    border-radius:1em;
    object-fit:cover; 
    object-position: bottom; 
}

section img,
details img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
    border-radius: 1em;
}

.text-container {
    flex: 0 1 34em; 
}

h1 {
    font-size: 2.5rem;
}

.text-container p {
margin: 0.75em 0 1em 0;
font-size: 1.25rem;
}

.cta-button {
    display: inline-block;
    text-decoration: none; 
    color: white; 
    background-color: var(--primary-color);
    padding: 0.75em 1.25em;
    border-radius: 0.5em; 
    font-weight: 600; 
}

.secondary {
    background-color: var(--secondary-color)
}

section {
    padding: 3em min(2em, 15%); 
    background-color: var(--color-2);
    text-align: center;
}

h2 {
    font-size: 2rem;
}

section p {
    margin-top: 1em;
    font-size: 1.25rem;
}

footer {
    padding-bottom: 1.5em;
    text-align: center;
}

footer a{ 
    margin: 0 1em;
    text-decoration: none;
    color: var(--text-color);
}

footer a:hover {
    text-decoration: underline;
}

@media(max-width:988px){
    header{
        text-align:center;
    }
    header .text-container{
        padding-top: 0;
    }
}

@media(max-width:640px){
    nav li{
        display: none;
    }

    nav li:first-child,
    nav li:last-child{
        display:block;
    }
    header{
        margin-top: 0;
        margin-bottom: 0;
    }
    section {
        margin-top: 0;
    }
    .cta-button {
        margin-top: 0.5em;
        width:100%; 
        
    }
    .text-container p {
        font-size: 1rem;
    }
    h2 {
        font-size: 1.5rem; 

    }
}

