:root {
    --bg: #f4efe9;
    --bg-strong: #ece3d8;
    --text: #1f1b17;
    --muted: #5c5349;
    --primary: #b2422f;
    --primary-dark: #8f3122;
    --card: #f8f3edcc;
    --line: #d7c8b7;
    --ok: #2e7d32;
    --error: #ad2b1f;
    --shadow: 0 20px 50px rgba(77, 42, 24, 0.15);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 20%, #f8d5b9 0%, transparent 30%),
        radial-gradient(circle at 80% 10%, #edd2c5 0%, transparent 25%),
        linear-gradient(130deg, var(--bg), var(--bg-strong));
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    margin: 0;
}

p {
    margin: 0;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.top-nav {
    padding: 1rem 0 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.top-nav .brand {
    color: var(--text);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
}

.top-nav nav {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.top-nav nav a {
    text-decoration: none;
    color: var(--text);
    padding: 0.45rem 0.82rem;
    border-radius: 999px;
    border: 1px solid #d7c8b7;
    background: #fffaf57a;
}

.top-nav nav a.active {
    background: var(--primary);
    color: #fffaf5;
    border-color: var(--primary);
}

.bg-orb {
    position: fixed;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(45px);
    z-index: -1;
    opacity: 0.45;
}

.orb-a {
    background: #ef9d65;
    top: -70px;
    right: -50px;
}

.orb-b {
    background: #b36f4f;
    bottom: -80px;
    left: -60px;
}

.hero {
    padding: 4.5rem 0 3rem;
}

.eyebrow {
    display: inline-block;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 0.78rem;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.1;
    max-width: 17ch;
}

.lead {
    margin-top: 1rem;
    max-width: 58ch;
    font-size: 1.05rem;
    color: var(--muted);
}

.hero-cta {
    margin-top: 1.8rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.75rem 1.3rem;
    font-weight: 700;
    transition: 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fffaf5;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--text);
    backdrop-filter: blur(8px);
    background: #ffffff66;
}

.btn-ghost:hover {
    transform: translateY(-2px);
    background: #ffffffcc;
}

.stats {
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stats article {
    background: var(--card);
    border: 1px solid #ffffff77;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
}

.stats span {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
}

.stats p {
    color: var(--muted);
    margin-top: 0.4rem;
}

.section {
    padding: 3.3rem 0;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    margin-bottom: 1.2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    background: var(--card);
    border: 1px solid #ffffffaa;
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.card h3 {
    font-size: 1.35rem;
}

.card p {
    margin-top: 0.65rem;
    color: var(--muted);
    min-height: 46px;
}

.card strong {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.portfolio-card {
    margin: 0;
    background: var(--card);
    border: 1px solid #ffffffaa;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.portfolio-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    background: linear-gradient(140deg, #f4d7c3, #ead9d1);
}

.portfolio-card figcaption {
    padding: 0.7rem 0.9rem 0.9rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}

.portfolio-note {
    margin-top: 0.8rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.about-card {
    background: var(--card);
    border: 1px solid #ffffffaa;
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
    display: grid;
    gap: 0.75rem;
}

.about-card p {
    color: var(--muted);
    max-width: 75ch;
}

.about-contact {
    margin-top: 0.35rem;
    display: grid;
    gap: 0.45rem;
}

.about-contact a,
.about-contact span {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.about-contact a:hover {
    color: var(--primary);
}

.about-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 1rem;
    align-items: start;
}

.about-photo-card {
    margin: 0;
    background: var(--card);
    border: 1px solid #ffffffaa;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-photo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.cert-card {
    margin: 0;
    background: var(--card);
    border: 1px solid #ffffffaa;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cert-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: linear-gradient(140deg, #f4d7c3, #ead9d1);
}

.cert-card p {
    padding: 0.75rem 0.9rem;
    font-weight: 700;
}

.booking {
    padding-bottom: 4.5rem;
}

.mini-booking-form {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    background: var(--card);
    border: 1px solid #ffffff99;
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: 1rem;
}

.mini-booking-form label {
    display: grid;
    gap: 0.32rem;
    font-weight: 600;
    font-size: 0.94rem;
}

.mini-booking-form input,
.mini-booking-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fffaf5;
    padding: 0.62rem;
    font: inherit;
}

.mini-booking-form button,
.mini-booking-form .form-message {
    grid-column: 1 / -1;
}

.mini-booking-note {
    margin-top: 0.7rem;
    color: var(--muted);
}

.booking-intro p {
    color: var(--muted);
    max-width: 54ch;
}

.selected-date {
    margin-top: 1rem;
    font-weight: 700;
}

.day-bookings {
    list-style: none;
    margin: 0.7rem 0 0;
    padding: 0;
    color: var(--muted);
}

.day-bookings li {
    margin-bottom: 0.35rem;
}

.booking-panel {
    margin-top: 1.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.calendar-wrap,
.booking-form {
    background: var(--card);
    border: 1px solid #ffffff99;
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: 1rem;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.calendar-header button {
    border: 1px solid var(--line);
    background: #fffaf5;
    border-radius: 10px;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.32rem;
}

.calendar .weekday {
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
    padding: 0.4rem 0;
}

.calendar .day {
    border: 1px solid #eadfd2;
    border-radius: 10px;
    min-height: 47px;
    background: #fffaf6;
    cursor: pointer;
    font-weight: 600;
}

.calendar .day:hover {
    border-color: var(--primary);
}

.calendar .day.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.calendar .day.has-bookings {
    box-shadow: inset 0 -4px 0 #df9f7b;
}

.calendar .day.empty {
    border: none;
    background: transparent;
    cursor: default;
}

.hours-legend {
    margin-top: 0.9rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.legend-item.free {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #9ccc9f;
}

.legend-item.booked {
    background: #fbe9e7;
    color: #8d2418;
    border-color: #e0a59c;
}

.legend-item.blocked {
    background: #eceff1;
    color: #33424e;
    border-color: #b0bec5;
}

.availability-grid {
    margin-top: 0.7rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.availability-slot {
    border-radius: 10px;
    border: 1px solid #d7c8b7;
    padding: 0.42rem 0.4rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.availability-slot.free {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #9ccc9f;
}

.availability-slot.selected {
    box-shadow: 0 0 0 2px #1b5e20 inset;
}

.availability-slot.booked {
    background: #fbe9e7;
    color: #8d2418;
    border-color: #e0a59c;
    text-decoration: line-through;
}

.availability-slot.blocked {
    background: #eceff1;
    color: #33424e;
    border-color: #b0bec5;
    text-decoration: line-through;
}

.availability-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.booking-form {
    display: grid;
    gap: 0.65rem;
}

.booking-form label {
    display: grid;
    gap: 0.32rem;
    font-weight: 600;
    font-size: 0.94rem;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fffaf5;
    padding: 0.62rem;
    font: inherit;
}

.booking-form input[type='hidden'] {
    display: none;
}

.selected-slot {
    margin-top: -0.1rem;
    font-weight: 700;
    color: var(--text);
}

.slot-hint {
    margin-top: -0.1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.form-message {
    min-height: 1.2rem;
    font-weight: 600;
}

.form-message.ok {
    color: var(--ok);
}

.form-message.error {
    color: var(--error);
}

.footer {
    padding-bottom: 2rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #d4c3b2;
    padding-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer a {
    color: inherit;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.75s ease forwards;
}

.reveal:nth-of-type(2) {
    animation-delay: 0.1s;
}

.reveal:nth-of-type(3) {
    animation-delay: 0.2s;
}

.reveal:nth-of-type(4) {
    animation-delay: 0.3s;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .booking-panel {
        grid-template-columns: 1fr;
    }

    .availability-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mini-booking-form {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}