/* =========================================
   D1 DOG MOM
   Global Stylesheet
   ========================================= */


/* ---------- RESET / GLOBAL ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;

    color: #222;
    background-color: #fff;
}


/* ---------- TYPOGRAPHY ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    line-height: 1.2;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}


/* ---------- PAGE LAYOUT ---------- */

main {
    width: 100%;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

section {
    padding: 60px 0;
}


/* ---------- NAVIGATION ---------- */

nav {
    width: 100%;
}

.nav-container {
    width: min(1200px, 90%);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 70px;
}

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

nav a {
    text-decoration: none;
}


/* ---------- BUTTONS ---------- */

button,
.button {
    display: inline-block;

    padding: 10px 20px;

    font: inherit;
    text-decoration: none;

    border: 1px solid #222;
    border-radius: 4px;

    background: none;
    color: inherit;

    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}


/* ---------- FORMS ---------- */

form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
}

input,
textarea,
select {
    width: 100%;

    padding: 10px;

    font: inherit;
    color: inherit;

    background-color: #fff;

    border: 1px solid #aaa;
    border-radius: 4px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}


/* ---------- AUTHENTICATION PAGES ---------- */

.auth-container {
    width: min(450px, 90%);
    margin: 60px auto;
}

.auth-container h1 {
    margin-bottom: 30px;
}


/* ---------- CARDS ---------- */

.card {
    padding: 25px;

    border: 1px solid #ddd;
    border-radius: 6px;
}


/* ---------- FLEX UTILITIES ---------- */

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gap-small {
    gap: 10px;
}

.gap-medium {
    gap: 20px;
}

.gap-large {
    gap: 40px;
}


/* ---------- SPACING UTILITIES ---------- */

.text-center {
    text-align: center;
}

.margin-top-small {
    margin-top: 10px;
}

.margin-top-medium {
    margin-top: 20px;
}

.margin-top-large {
    margin-top: 40px;
}

.margin-bottom-small {
    margin-bottom: 10px;
}

.margin-bottom-medium {
    margin-bottom: 20px;
}

.margin-bottom-large {
    margin-bottom: 40px;
}


/* ---------- FOOTER ---------- */

footer {
    width: 100%;
    padding: 30px 0;
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {

    .nav-container {
        flex-direction: column;
        justify-content: center;
        padding: 15px 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    section {
        padding: 40px 0;
    }

}