/* Explain: Styling for certificate cards and badges. */
/* ---------- Buttons ---------- */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 14px 26px -14px rgba(20, 120, 196, 0.85);
}
.btn-primary-custom:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}
.btn-primary-custom:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
.btn-ghost-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}
.btn-ghost-custom:hover {
    border-color: var(--primary-color);
    background: var(--surface-color);
}
.btn-soft-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--primary-dark);
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-soft-custom:hover {
    background: var(--primary-color);
    color: #ffffff;
}
.btn-sm-custom {
    padding: 0.55rem 1.15rem;
    font-size: 0.9rem;
}

/* ---------- Header ---------- */
.site-header {
    transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled {
    box-shadow: 0 10px 30px -20px rgba(15, 23, 42, 0.45);
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    font-size: 1rem;
    box-shadow: var(--shadow-soft);
}
.nav-link {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.25s ease;
}
.nav-link:hover {
    background: var(--surface-color);
    color: var(--primary-color);
}
.mobile-link {
    padding: 0.75rem 0.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}
.mobile-link:hover {
    background: var(--surface-color);
    color: var(--primary-color);
}
.mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 1.1rem;
}
.social-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    color: #ffffff;
    font-size: 1rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.social-chip:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.social-wa { background: #25d366; }
.social-ig { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.social-fb { background: #1877f2; }

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, var(--surface-color) 100%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 88% 0%, var(--surface-alt) 0%, rgba(255, 255, 255, 0) 55%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: var(--shadow-card);
}
.hero-media {
    position: relative;
}
.hero-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.hero-float {
    position: absolute;
    bottom: -1rem;
    left: -0.5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}
.hero-float-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--primary-color);
}
.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Service cards ---------- */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 22px 40px -26px rgba(20, 120, 196, 0.6);
}
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: var(--surface-alt);
    color: var(--primary-color);
    font-size: 1.2rem;
}
.service-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.service-price small {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 0.35rem;
}
.service-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ---------- Booking ---------- */
.booking-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}
.form-step + .form-step {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-neutral);
}
.step-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.85rem;
}
.field-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}
.field-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-neutral);
    background: #ffffff;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(20, 120, 196, 0.15);
}
.form-status {
    margin-top: 1rem;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
    padding: 0;
}
.form-status.is-success {
    padding: 0.85rem 1rem;
    background: var(--surface-alt);
    color: var(--primary-dark);
    font-weight: 600;
}
.form-status.is-error {
    padding: 0.85rem 1rem;
    background: #fef2f2;
    color: #b91c1c;
    font-weight: 600;
}

/* ---------- Calendar ---------- */
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.cal-label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-color);
}
.cal-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.25s ease;
}
.cal-nav:hover:not(:disabled) {
    background: var(--surface-color);
    border-color: var(--primary-light);
}
.cal-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.3rem;
}
.cal-dow {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-bottom: 0.25rem;
}
.cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 0.7rem;
    border: 1px solid transparent;
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
}
.cal-day:hover:not(.is-disabled):not(.is-empty) {
    border-color: var(--primary-light);
}
.cal-day.is-empty {
    background: transparent;
    cursor: default;
}
.cal-day.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.cal-day.is-today {
    border-color: var(--primary-light);
    font-weight: 700;
}
.cal-sel {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
}
.cal-day.is-selected {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
}
.slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.slot {
    padding: 0.55rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-neutral);
    background: #ffffff;
    color: var(--text-color);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.slot:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.slot.is-selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
}
.slot-hint {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ---------- Booking side summary ---------- */
.summary-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--primary-dark), var(--primary-color));
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}
.summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.92rem;
}
.summary-row:last-of-type {
    border-bottom: none;
}
.summary-row span:first-child {
    opacity: 0.85;
}
.summary-row span:last-child {
    font-weight: 600;
    text-align: right;
}

/* ---------- Compare (before / after) ---------- */
.compare {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-card);
    background: var(--surface-color);
}
.compare-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.compare-after {
    clip-path: inset(0 0 0 50%);
}
.compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #ffffff;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
}
.compare-handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.4rem;
    height: 2.4rem;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.5);
}
.compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}
.compare-tag {
    position: absolute;
    top: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}
.compare-tag-before { left: 0.75rem; }
.compare-tag-after { right: 0.75rem; }

/* ---------- Testimonials ---------- */
.testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}
.stars {
    color: #f59e0b;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}
.avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--primary-dark);
    font-weight: 700;
    font-family: var(--font-heading);
}

/* ---------- Contact ---------- */
.contact-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}
.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.85rem;
    background: var(--surface-alt);
    color: var(--primary-color);
}
.social-btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.social-btn-lg:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

/* ---------- Footer ---------- */
.footer-link {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: var(--primary-color);
}
.float-wa {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    font-size: 1.6rem;
    box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.7);
    transition: transform 0.25s ease;
}
.float-wa:hover {
    transform: scale(1.06);
}

/* ---------- Panel & login ---------- */
.panel-card {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}
.panel-stat {
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
}
.panel-stat-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}
.booking-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-new {
    background: var(--surface-alt);
    color: var(--primary-dark);
}
.badge-confirmed {
    background: #dbeafe;
    color: #1d4ed8;
}
.badge-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}
.login-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

/* ---------- Certificates ---------- */
.cert-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.cert-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 22px 40px -26px rgba(20, 120, 196, 0.6);
}
.cert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: var(--shadow-soft);
}
.cert-code {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--primary-dark);
}