/* ==========================================================
   Kaderníctvo Silvia – soft & colorful theme (v4)
   Rose + grape as main colors, teal + sun yellow as accents,
   pastel tints for backgrounds. Same class names as your HTML.
   ========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700&family=Manrope:wght@400;500;700&display=swap");

:root {
    --ink: #2a2445;
    --ink-soft: #5d5875;
    --rose: #ee5f8f;
    --rose-light: #ff8fb1;
    --grape: #6e56d8;
    --teal: #35c2b0;
    --sun: #f8c74d;
    --blush: #ffeef3;
    --mist: #e6f8f4;
    --lilac: #efeaff;
    --cream: #fffaf4;
    --white: #ffffff;
    --line: rgba(42, 36, 69, 0.11);
    --shadow: 0 16px 44px rgba(70, 48, 110, 0.13);
    --radius: 20px;
}

/* -------------------- */
/* BASIC RESET */
/* -------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* background: a soft color wash from pink-white through cream to mint,
   plus a violet glow at the top and a teal glow bottom-right (no images) */
body {
    margin: 0;
    font-family: "Manrope", system-ui, Arial, sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background:
        radial-gradient(60rem 28rem at 50% -8%, rgba(110, 86, 216, 0.11), transparent),
        radial-gradient(38rem 26rem at 100% 100%, rgba(53, 194, 176, 0.14), transparent),
        linear-gradient(180deg, #fff5f8 0%, var(--cream) 45%, #f3fbf8 100%);
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

h1, h2, h3, h6 {
    margin-top: 0;
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

a:focus-visible {
    outline: 3px solid rgba(110, 86, 216, 0.45);
    outline-offset: 4px;
}

.row {
    display: flex;
    gap: 22px;
    margin-bottom: 22px;
    justify-content: space-between;
}


/* -------------------- */
/* NAVBAR – floating capsule */
/* -------------------- */

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 16px 0;
}

.navbar {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 8px 26px rgba(70, 48, 110, 0.1);
}

.navbar a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.93rem;
    padding: 9px 20px;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.navbar a:hover {
    background: var(--blush);
    color: var(--rose);
}


/* -------------------- */
/* INTRO – gradient panel, leaf-shaped photo */
/* -------------------- */

.intro-box {
    position: relative;
    width: 80%;
    margin: 50px auto;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 56px;
    background: linear-gradient(135deg, #fff0e8 0%, var(--blush) 45%, var(--lilac) 100%);
    border-radius: 40px;
    overflow: hidden;
}

.intro-box > div,
.main-img {
    position: relative;
    z-index: 2;
}

/* one ring and one dot as decoration */
.intro-box::before,
.intro-box::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.intro-box::before {
    width: 170px;
    height: 170px;
    left: -50px;
    top: -50px;
    border: 3px solid rgba(110, 86, 216, 0.3);
}

.intro-box::after {
    width: 90px;
    height: 90px;
    right: 40px;
    bottom: 30px;
    background: var(--sun);
    opacity: 0.8;
}

.intro-box h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.6rem);
    margin-bottom: 20px;
}

.intro-box p {
    max-width: 50ch;
    color: var(--ink-soft);
    font-size: 1.12rem;
    margin-bottom: 0;
}

.main-img {
    width: 460px;
    height: auto;
    flex: 0 0 auto;
    border-radius: 36px 130px 36px 130px;
    border: 8px solid var(--white);
    box-shadow: var(--shadow);
    background: linear-gradient(145deg, #f7dce7, #efe9ff 55%, #dff7f2);
}


/* -------------------- */
/* HEADINGS */
/* -------------------- */

h2 {
    width: 80%;
    margin: 120px auto 30px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

/* small gradient dot in front of each title */
h2::before {
    content: "";
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--grape));
}


/* -------------------- */
/* offers */
/* -------------------- */

.offers {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}


/* -------------------- */
/* offer boxes – white cards, each with a colored corner glow */
/* -------------------- */

.box {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 190px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(55, 45, 75, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.22s, box-shadow 0.22s;
}

.box::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238, 95, 143, 0.28), transparent 70%);
    pointer-events: none;
}

.box:nth-child(3n + 2)::before {
    background: radial-gradient(circle, rgba(53, 194, 176, 0.3), transparent 70%);
}

.box:nth-child(3n + 3)::before {
    background: radial-gradient(circle, rgba(110, 86, 216, 0.28), transparent 70%);
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px rgba(55, 45, 75, 0.13);
}

.box h6 {
    position: relative;
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.box p {
    position: relative;
    margin: 0 0 20px;
    color: var(--ink-soft);
}

.box a {
    position: relative;
    margin-top: auto;
    align-self: flex-start;
    color: var(--grape);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 2px dotted var(--grape);
    padding-bottom: 1px;
}

.box a:hover {
    color: var(--rose);
    border-bottom-color: var(--rose);
}


/* -------------------- */
/* GALLERY */
/* -------------------- */

.gallery {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.gallery h3 {
    display: inline-block;
    margin: 30px 0 14px;
    padding: 6px 18px;
    font-size: 2rem;
    background: var(--lilac);
    color: var(--grape);
    border-radius: 12px;
}

.gallery .row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(255, 238, 243, 0.85), rgba(239, 234, 255, 0.85));
    border-radius: 28px;
}

.hairstyle-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    background: var(--white);
    transition: transform 0.2s;
}

.hairstyle-img:hover {
    transform: scale(1.04);
}


/* -------------------- */
/* REVIEWS – light cards with a gradient top edge */
/* -------------------- */

.reviews {
    width: 80%;
    margin: 40px auto 70px;
    padding: 20px;
}

.review {
    position: relative;
    overflow: hidden;
    flex: 1;
    padding: 40px 28px 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(55, 45, 75, 0.06);
}

.review::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--rose), var(--grape), var(--teal));
}

.review::after {
    content: "\201C";
    position: absolute;
    top: 4px;
    right: 22px;
    font-family: Georgia, serif;
    font-size: 6rem;
    line-height: 1;
    color: var(--lilac);
    pointer-events: none;
}

.review > p:first-child {
    position: relative;
    margin: 0;
    color: var(--ink-soft);
}

.review .icon {
    width: 46px;
    height: 46px;
    margin: 22px 0 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-weight: 700;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--grape));
}

.row:nth-child(even) .review:nth-child(2) .icon {
    background: linear-gradient(135deg, var(--teal), #7fe0d2);
}

[id] {
    scroll-margin-top: 80px;
}


/* -------------------- */
/* FOOTER – gradient band */
/* -------------------- */

footer {
    background: linear-gradient(90deg, var(--rose), var(--grape));
}

.footer {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 44px;
    padding: 36px 20px;
}

.footer a {
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 2px;
    transition: border-color 0.2s;
}

.footer a:hover {
    border-bottom-color: var(--sun);
}


/* ==========================================================
   TABLET + PHONE
   ========================================================== */

@media (max-width: 900px) {
    .intro-box {
        flex-direction: column;
        gap: 36px;
        padding: 40px 32px;
    }

    .main-img {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 1000px) {
    nav {
        padding: 8px 10px 0;
    }

    .navbar {
        flex-wrap: wrap;
        border-radius: 24px;
        gap: 2px;
    }

    .navbar a {
        padding: 7px 13px;
    }

    .intro-box {
        width: calc(100% - 28px);
        margin: 24px auto;
        padding: 30px 22px 36px;
        border-radius: 30px;
    }

    .main-img {
        border-radius: 28px 90px 28px 90px;
    }

    h2, .offers, .gallery, .reviews {
        width: 100%;
    }

    h2 {
        margin-top: 70px;
    }

    .row {
        flex-direction: column;
        gap: 16px;
    }

    .box {
        min-height: 0;
    }

    .gallery .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .footer {
        flex-wrap: wrap;
        gap: 16px 30px;
    }

    [id] {
    scroll-margin-top: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .box, .navbar a, .hairstyle-img, .footer a { transition: none; }
}


