:root {
    --cream: #fffaf4;
    --paper: #fffdf9;
    --pink: #ce0067;
    --pink-soft: #f6dce8;
    --brown: #3d2924;
    --brown-light: #725951;
    --border: #eadbd2;
    --shadow: 0 8px 30px rgba(61, 41, 36, 0.08);

    --max-width: 1150px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--brown);

    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    line-height: 1.2;
    font-weight: normal;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: 2.3rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--brown-light);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}

.site-header {
    padding: 22px 0;
    background: rgba(255, 250, 244, 0.94);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-family: cursive;
    font-size: 2rem;
    color: var(--pink);
}

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

.nav-links a {
    position: relative;
    color: var(--brown);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;

    width: 100%;
    height: 2px;

    background: var(--pink);

    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.hero {
    padding: 90px 0 100px;
    text-align: center;
}

.hero h1 {
    max-width: 800px;
    margin-inline: auto;
    color: var(--brown);
}

.hero h1 span {
    color: var(--pink);
    font-family: cursive;
}

.hero p {
    max-width: 600px;
    margin: 25px auto 35px;
    font-size: 1.15rem;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto 60px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.hero-gallery img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.hero-gallery-admin {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hero-gallery-admin-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-gallery-admin-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.hero-gallery-admin-item form {
    width: 100%;
}

.hero-gallery-admin-item button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.error-image {
    display: block;
    width: 150px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin: 0 auto 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.button {
    display: inline-block;

    padding: 12px 24px;

    border: 1px solid var(--pink);
    border-radius: 999px;

    background: var(--pink);
    color: white;

    font-family: inherit;
    font-size: 1rem;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(206, 0, 103, 0.2);
}

.button.secondary {
    background: transparent;
    color: var(--pink);
}

.button.secondary:hover {
    background: var(--pink-soft);
    box-shadow: none;
}

.dogs-section {
    padding: 70px 0;
}

.section-heading {
    margin-bottom: 35px;
}

.section-heading p {
    max-width: 600px;
}

.dog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.dog-card {
    overflow: hidden;

    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow: var(--shadow);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.dog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(61, 41, 36, 0.12);
}

.dog-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.dog-card-content {
    padding: 22px;
}

.dog-card h3 {
    margin-bottom: 5px;
}

.dog-card .breed {
    color: var(--pink);
    font-style: italic;
}

.dog-card .details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.dog-detail {
    padding: 10px 20px;
    margin: 10px 0;

    background: var(--pink-soft);
    border-radius: 999px;

    font-size: 0.85rem;
}

.dog-page {
    padding: 70px 0;
}

.dog-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: start;
}

.dog-profile-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.dog-profile-info {
    padding-top: 10px;
}

.dog-profile-info .breed {
    color: var(--pink);
    font-style: italic;
    font-size: 1.2rem;
}

.price {
    margin: 25px 0;
    font-size: 2rem;
    color: var(--pink);
}

.flourish {
    display: flex;
    align-items: center;
    gap: 15px;

    margin: 50px auto;

    max-width: 500px;

    color: var(--pink);
    text-align: center;
}

.flourish::before,
.flourish::after {
    content: "";

    height: 1px;
    flex: 1;

    background: var(--border);
}

.form {
    max-width: 650px;
}

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

.form-group label {
    display: block;
    margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--paper);
    color: var(--brown);

    font: inherit;

    outline: none;

    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px var(--pink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
    margin-top: 80px;
    padding: 45px 0;

    border-top: 1px solid var(--border);

    text-align: center;
}

.site-footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

@media (max-width: 800px) {
    .dog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dog-profile {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 550px) {
    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .nav {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        gap: 18px;
        font-size: 0.95rem;
    }

    .hero {
        padding: 60px 0 70px;
    }

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

.puppy-profile {
    display: grid;
    grid-template-columns: 55% 45%;
    max-width: 1200px;
    margin: 0 auto 90px;

    background: #fff;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);


}

.puppy-profile-image-wrapper {
    min-height: 600px;
}

.puppy-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.puppy-profile-content {
    padding: 60px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.puppy-profile-breed {
    margin: 0 0 5px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8a7565;
}

.puppy-profile-content h2 {
    margin: 0;
    font-size: 52px;
    line-height: 1.1;
}

.puppy-profile-price {
    margin-top: 18px;
    font-size: 30px;
    font-weight: 600;
}

.puppy-profile-status {
    display: inline-block;
    width: fit-content;
    margin-top: 15px;
    padding: 7px 15px;
    border-radius: 50px;
    background: #eee8e1;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.puppy-profile-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 45px;
    border-top: 1px solid #e5e0db;
}

.puppy-profile-details div {
    padding: 18px 10px 18px 0;
    border-bottom: 1px solid #e5e0db;
}

.puppy-profile-details span,
.puppy-profile-go-home span {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8a8a8a;
}

.puppy-profile-details strong,
.puppy-profile-go-home strong {
    font-size: 17px;
    font-weight: 500;
}

.puppy-profile-go-home {
    margin-top: 30px;
    padding: 20px;
    background: #f7f4f1;
    border-radius: 12px;
}

@media (max-width: 700px) {

    .puppy-profile {
        grid-template-columns: 1fr;
        margin-bottom: 50px;
        border-radius: 15px;
    }

    .puppy-profile-image-wrapper {
        min-height: auto;
        aspect-ratio: 1 / 1;
    }

    .puppy-profile-content {
        padding: 35px 25px;
    }

    .puppy-profile-content h2 {
        font-size: 40px;
    }

    .puppy-profile-details {
        grid-template-columns: 1fr 1fr;
        margin-top: 30px;
    }


}

.puppy-extra-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 1200px;
    margin: -55px auto 90px;
}

.puppy-extra-photo {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.puppy-extra-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.puppy-extra-photo:hover img {
    transform: scale(1.04);
}

@media (max-width: 800px) {
    .puppy-extra-gallery {
        grid-template-columns: repeat(2, 1fr);
        margin: -25px auto 60px;
    }
}

@media (max-width: 550px) {
    .puppy-extra-gallery {
        grid-template-columns: 1fr;
        margin: -15px auto 50px;
    }
}

.contact-section {
    padding: 70px 0 100px;
}

.contact-form-card {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;

    padding: 45px;

    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow: var(--shadow);
}

.contact-form-card .form {
    max-width: none;
    width: 100%;
}

@media (max-width: 550px) {
    .contact-section {
        padding: 50px 0 70px;
    }

    .contact-form-card {
        padding: 25px 20px;
    }
}
